![]() | InDesign SDK 20.5 |
#include <IUnitOfMeasureSettings.h>

Public Types | |
| enum | { kDefaultIID = IID_IUNITOFMEASURESETTINGS } |
Public Member Functions | |
| virtual void | Init (const ClassID &xBossId, const ClassID &yBossId, const ClassID &textBossId, const ClassID &textSizeBossId, const ClassID &printUnitsBossId, const ClassID &lineUnitsBossId, const PMReal customHPoints=12.0, const PMReal customVPoints=12.0, const PMReal keyNudgeIncPts=1.0, const PMReal pointsPerInch=72.0)=0 |
| virtual void | SetXUnitOfMeasure (const ClassID &bossId)=0 |
| virtual ClassID | GetXUnitOfMeasure () const =0 |
| virtual int16 | GetXUnitOfMeasureIndex ()=0 |
| virtual void | SetYUnitOfMeasure (const ClassID &bossId)=0 |
| virtual ClassID | GetYUnitOfMeasure () const =0 |
| virtual int16 | GetYUnitOfMeasureIndex ()=0 |
| virtual void | SetTextUnitOfMeasure (const ClassID &bossId)=0 |
| virtual ClassID | GetTextUnitOfMeasure () const =0 |
| virtual int16 | GetTextUnitOfMeasureIndex ()=0 |
| virtual void | SetTextSizeUnitOfMeasure (const ClassID &bossId)=0 |
| virtual ClassID | GetTextSizeUnitOfMeasure () const =0 |
| virtual int16 | GetTextSizeUnitOfMeasureIndex ()=0 |
| virtual void | SetPrintUnitOfMeasure (const ClassID &bossId)=0 |
| virtual ClassID | GetPrintUnitOfMeasure () const =0 |
| virtual int16 | GetPrintUnitOfMeasureIndex ()=0 |
| virtual void | SetLineUnitOfMeasure (const ClassID &bossId)=0 |
| virtual ClassID | GetLineUnitOfMeasure () const =0 |
| virtual int16 | GetLineUnitOfMeasureIndex ()=0 |
| virtual void | SetHorzCustomPoints (const PMReal customPoints)=0 |
| virtual PMReal | GetHorzCustomPoints () const =0 |
| virtual void | SetVertCustomPoints (const PMReal customPoints)=0 |
| virtual PMReal | GetVertCustomPoints () const =0 |
| virtual void | SetKeyNudgeInc (const PMReal keyNudgeIncPts)=0 |
| virtual PMReal | GetKeyNudgeInc () const =0 |
| virtual void | SetPointsPerInch (const PMReal pointsPerInch)=0 |
| virtual PMReal | GetPointsPerInch () const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Interface that holds all the unit of measure settings. Installed on kWorkspaceBoss and kDocWorkspaceBoss.
Measurement systems themselves may be installed via service providers. All of the Get methods in this class check for missing service providers and return points as a default.
| pure virtual |
Returns the value to use for horizontal rulers when using kRulerCustomMSBoss.
| PMReal |
| pure virtual |
Returns the amount (in points) to use for keyboard nudging for various action IDs (e.g. kNudgeUpActionID).
| pure virtual |
Gets the class id of the line weight measurement system. Typically used by stroke weight controls.
| pure virtual |
Gets the index of the line weight unit of measure (measurement systems are service provider based). Useful as the parameter in a call to IUnitOfMeasure->QueryUnitOfMeasure(index).
| pure virtual |
Returns the value in use for points per inch used for the points-based measurement systems: kPointsBoss, kPicasBoss, and kRulerCustomMSBoss. Typically defaults to 72.0.
| pure virtual |
NOTE: This measurement system is UNUSED. Gets the class id of the print measurement system.
| pure virtual |
NOTE: This measurement system is UNUSED. Gets the index of the print unit of measure (measurement systems are service provider based). Useful as the parameter in a call to IUnitOfMeasure->QueryUnitOfMeasure(index).
| pure virtual |
Gets the class id of the text size measurement system.
| pure virtual |
Gets the index of the text size unit of measure (measurement systems are service provider based). Useful as the parameter in a call to IUnitOfMeasure->QueryUnitOfMeasure(index).
| pure virtual |
NOTE: This measurement system is used in J feature set only, see GetTextSizeUnitOfMeasure. Gets the class id of the text measurement system.
| pure virtual |
NOTE: This measurement system is used in J feature set only, see GetTextUnitOfMeasureIndex. Gets the index of the text unit of measure (measurement systems are service provider based). Useful as the parameter in a call to IUnitOfMeasure->QueryUnitOfMeasure(index).
| pure virtual |
Returns the value to use for vertical rulers when using kRulerCustomMSBoss.
| PMReal |
| pure virtual |
Gets the class id of the x measurement system.
| pure virtual |
Gets the index of the x unit of measure (measurement systems are service provider based). Useful as the parameter in a call to IUnitOfMeasure->QueryUnitOfMeasure(index).
| pure virtual |
Gets the class id of the y measurement system.
| pure virtual |
Gets the index of the y unit of measure (measurement systems are service provider based). Useful as the parameter in a call to IUnitOfMeasure->QueryUnitOfMeasure(index).
| pure virtual |
Sets the class id of all the measurement systems. Used at new document time.
| bossId | - the classID of the measurement system. e.g. kPointsBoss, kMillimetersBoss, etc. |
| pure virtual |
Sets the value to use for horizontal rulers when using kRulerCustomMSBoss. Typically user would set to value of leading grid on the page. Determines where major tickmarks are drawn.
| PMReal | - Value in points to use for kRulerCustomMSBoss. |
| pure virtual |
Sets the amount for keyboard nudging for various action IDs (e.g. kNudgeUpActionID).
| PMReal | - Value in points to use when nudging objects. |
| pure virtual |
Sets the class id of the line weight measurement system. Used by stroke weight menus and edit boxes (LineWtMeasureEditBoxWidget)
| bossId | - the classID of the measurement system. e.g. kPointsBoss |
| pure virtual |
Sets the value to use for points-based custom points per inch. Typically this is 72.0, but may vary between kMinPointsPerInch and kMaxPointsPerInch.
| PMReal | - Value in points to use for kPointsBoss, kPicasBoss, and kRulerCustomMSBoss. |
| pure virtual |
NOTE: This measurement system is UNUSED. Sets the class id of the print measurement system. Used by bleed setting for Print dialog?
| bossId | - the classID of the measurement system. e.g. kPointsBoss, kMillimetersBoss |
| pure virtual |
Sets the class id of the text size measurement system. Used by text size measurement menus (TextSizeMeasureEditBoxWidget).
| bossId | - the classID of the measurement system. e.g. kPointsBoss, kQBoss |
| pure virtual |
NOTE: This measurement system is used in J feature set only, see SetTextSizeUnitOfMeasure. Sets the class id of the text measurement system. Used by text measurement editboxes (TextMeasureEditBoxWidget).
| bossId | - the classID of the measurement system. e.g. kPointsBoss |
| pure virtual |
Sets the value to use for vertical rulers when using kRulerCustomMSBoss. Typically user would set to value of leading grid on the page. Determines where major tickmarks are drawn.
| PMReal | - Value in points to use for kRulerCustomMSBoss. |
| pure virtual |
Sets the class id of the x measurement system. Used by horizontal rulers and horizontal measurement editboxes (XMeasureEditBoxWidget).
| bossId | - the classID of the measurement system. e.g. kPointsBoss, kMillimetersBoss |
| pure virtual |
Returns the class id of the y measurement system. Used by vertical rulers and vertical measurement editboxes (YMeasureEditBoxWidget).
| bossId | - the classID of the measurement system. e.g. kPointsBoss, kMillimetersBoss |