InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IOtherEntryData Class Referenceabstract

#include <IOtherEntryData.h>

Inheritance diagram for IOtherEntryData:
IPMUnknown

Public Member Functions

virtual int32 GetOtherIndex () const =0
 
virtual void SetOtherIndex (int32 index)=0
 
virtual const GlobalTimeGetLaunchTime () const =0
 
virtual void SetLaunchTime (const GlobalTime &launchTime)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

This interface exists to support the behavior for the 'Other' entry in some comboboxes, like the font point size combobox. The functionality is like so: Whenever you launch the application, if you open the font size dropdown, you'll see an entry named 'Other'. If you type in a point size value that's not a predefined value in the list(say, 13.3pt) and open the combobox, 'Other' is replaced by the new custom value. This is intented to make life easier for customers who use 1 weird value repeatedly. This functionality is built into the standard combobox, so if you add an item named 'Other' to your combobox list of initial strings, this will just work.

Member Function Documentation

virtual const GlobalTime& IOtherEntryData::GetLaunchTime () const
pure virtual

Returns the launch time of the app when we last reset the 'Other' entry to read "Other"

virtual int32 IOtherEntryData::GetOtherIndex () const
pure virtual

Returns the index of the 'Other' entry in the list. It may no longer be named 'Other'

virtual void IOtherEntryData::SetLaunchTime (const GlobalTimelaunchTime)
pure virtual

Records the launch time of the app when we last reset the 'Other' entry to read "Other"

Parameters
launchTimethe app launch time, when we reset the entry to be "Other"
virtual void IOtherEntryData::SetOtherIndex (int32 index)
pure virtual

Sets the index of the 'Other' entry in the list. It may no longer be named 'Other'

Parameters
indexthe new index of the 'Other' item.