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

Public Types | |
| enum | { kDefaultIID = IID_IPRINTCONTENTPREFS } |
| enum | GridView { kInvalidView = -1, kPerFrameGridView = 0, kGridView = 1, kZNGridView = 2, kAlignmentGridView = 3 } |
| enum | WhenGrid { kAlways = 0, kWhenEmpty = 1 } |
Public Member Functions | |
| virtual void | SetPrintText (bool16 printText)=0 |
| virtual bool16 | GetPrintText () const =0 |
| virtual void | SetPrintPageItems (bool16 printPageItems)=0 |
| virtual bool16 | GetPrintPageItems () const =0 |
| virtual void | SetPrintLayoutGrids (bool16 printLayoutGrids)=0 |
| virtual bool16 | GetPrintLayoutGrids () const =0 |
| virtual void | SetPrintFrameGrids (bool16 printFrameGrids)=0 |
| virtual bool16 | GetPrintFrameGrids () const =0 |
| virtual void | SetOnlyPrintFrameGridWhenEmpty (bool16 printWhenEmpty)=0 |
| virtual bool16 | GetOnlyPrintFrameGridWhenEmpty () const =0 |
| virtual void | SetPrintFrameGridView (int32 viewNumber)=0 |
| virtual int32 | GetPrintFrameGridView () const =0 |
| virtual void | SetFrameGridStrokeWeight (const PMReal &points)=0 |
| virtual PMReal | GetFrameGridStrokeWeight () const =0 |
| virtual void | SetLayoutGridStrokeWeight (const PMReal &points)=0 |
| virtual PMReal | GetLayoutGridStrokeWeight () const =0 |
| virtual void | SetUIFlags (UIFlags nFlags)=0 |
| virtual UIFlags | GetUIFlags () const =0 |
| virtual void | CopyFrom (IPrintContentPrefs const *from)=0 |
| virtual void | CopyFrom (IPrintData const *printData)=0 |
| virtual void | CopyTo (IPrintData *printData) 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 |
IPrintContentPrefs are used to allow users to control which content they would like printed or omitted from printing. Such content includes text, page items, layout grids, and frame grids.
These preferences are only considered when IViewPortAttributes::SetViewPortFilterContent on the print port is set to true.
The printing of baseline grids and ruler guides is controlled by a different interface, IPrintData->GetPrintWYSIWYGGridsGuides(), and has core access for Roman and J products in the Print dialog, General subdialog.
Enumeration governing how grids are to be printed
Unused
| pure virtual |
Copies preferences from an IPrintContentPrefs instance
| from | The prefs to copy |
| pure virtual |
Copies preferences from an IPrintData instance
| printData | The data to copy |
| pure virtual |
Copies preferences to an IPrintData instance
| printData | The data to copy to |
| pure virtual |
Gets preference for frame grid stroke weight
| pure virtual |
Gets preference for layout grid stroke weight
| pure virtual |
Gets preference for printing frame grids when empty
| pure virtual |
Gets preference for printing frame grids
| pure virtual |
Gets preference for printing frame grid view
| pure virtual |
Gets preference for printing layout grids
| pure virtual |
Gets preference for printing page items
| pure virtual |
Gets preference for printing text
| pure virtual |
Gets preference for UI flags to use during print
| pure virtual |
Sets preference for frame grid stroke weight
| points | The new frame grid stroke weight |
| pure virtual |
Sets preference for layout grid stroke weight
| points | The new layout grid stroke weight |
| pure virtual |
Sets preference for printing frame grids when empty
| printWhenEmpty | Flag: whether to print frame grids when empty |
| pure virtual |
Sets preference for printing frame grids
| printFrameGrids | Flag: whether to print frame grids |
| pure virtual |
Sets preference for printing frame grid view
| viewNumber | The frame grid view to print |
| pure virtual |
Sets preference for printing layout grids
| printLayoutGrids | Flag: whether to print layout grids |
| pure virtual |
Sets preference for printing page items
| printPageItems | Flag: whether to print page items |
| pure virtual |
Sets preference for printing text
| printText | Flag: whether to print text |
| pure virtual |
Sets preference for UI flags used during print
| nFlags | The new UI flags |