#include <IMarginPrefs.h>
|
| enum | { kDefaultIID = IID_IMARGINPREFERENCES } |
| |
Abstract interface to margin preferences. This interface exists on both the session and document workspace.
- See Also
- kPageBoss
- kSetMarginPrefsCmdBoss
| virtual UIDRef IMarginPrefs::GetColor | ( | | ) | |
| pure virtual |
Return the color to use for drawing margin lines.
- Returns
- the UIDRef of the color from IID_IUICOLORLIST.
- See Also
- IUIColorUtils.h
| virtual int32 IMarginPrefs::GetColorIndex_DURING_CONVERSION_ONLY | ( | | ) | |
| pure virtual |
Get the UI color index for the margins. DO NOT USE, used for conversion only.
- Returns
- int32 index of the color in the IID_IUICOLORLIST.
| virtual bool16 IMarginPrefs::GetUseUniformMargins | ( | | ) | |
| pure virtual |
Tells whether all margin values are set from one value (top).
| virtual void IMarginPrefs::SetColor | ( | const UID | uiColorUID | ) | |
| pure virtual |
Set the UI color by UID for the margins.
- Parameters
| uiColorUID | the UID of the UI color to use for drawing the margin lines. |
- See Also
- IUIColorUtils.h
| virtual void IMarginPrefs::SetMargins | ( | const PMReal & | insideLeft, | | | const PMReal & | top, | | | const PMReal & | outsideRight, | | | const PMReal & | bottom | | ) | | |
| pure virtual |
Set the margins for default pages and new documents.
- Parameters
| insideLeft | refers to inside (for facing pages case) or left margin. |
| top | refers to top margin. |
| outsideRight | refers to outside (for facing pages case) or right margin. |
| bottom | refers to bottom margin. |
| virtual void IMarginPrefs::SetUseUniformMargins | ( | bool16 | bUniform | ) | |
| pure virtual |
Tells that all margin values set from one value (top).
- Parameters
| bUniform | Whether to force all margin values to be uniform, using Top value. |