![]() | InDesign SDK 20.5 |

Public Member Functions | |
| ViewPortAttributes (IPMUnknown *boss) | |
| virtual void | Initialize (IDataBase *db, IControlView *controlView) |
| virtual PMReal | GetViewPortResolution (void) const |
| virtual void | SetViewPortResolution (PMReal resolution) |
| virtual bool16 | GetViewPortOutputOPIComments (void) const |
| virtual void | SetViewPortOutputOPIComments (bool16 b) |
| virtual bool16 | GetViewPortCacheing (void) const |
| virtual void | SetViewPortCacheing (bool16 cacheing) |
| virtual int32 | GetViewPortBitmapSampling (void) const |
| virtual void | SetViewPortBitmapSampling (int32 sampling) |
| virtual int32 | GetViewPortVectorSampling (void) const |
| virtual void | SetViewPortVectorSampling (int32 sampling) |
| virtual bool16 | GetViewPortFilterContent (void) const |
| virtual void | SetViewPortFilterContent (bool16 filter) |
| virtual PMReal | GetViewPortLineScreen (void) const |
| virtual void | SetViewPortLineScreen (const PMReal &n) |
| virtual bool16 | GetViewPortTiling (void) const |
| virtual void | SetViewPortTiling (bool16 b) |
| virtual bool16 | GetViewPortProofPrint (void) const |
| virtual void | SetViewPortProofPrint (bool16 b) |
| virtual bool16 | GetViewPortDisallowImageCrop (void) const |
| virtual void | SetViewPortDisallowImageCrop (bool16 b) |
| virtual bool16 | GetViewPortOmitEPS (void) const |
| virtual void | SetViewPortOmitEPS (bool16 b) |
| virtual bool16 | GetViewPortOmitPDF (void) const |
| virtual void | SetViewPortOmitPDF (bool16 b) |
| virtual bool16 | GetViewPortOmitBitmapImages (void) const |
| virtual void | SetViewPortOmitBitmapImages (bool16 b) |
| virtual void | SetViewPortDrawPasteboardShadow (bool16 drawShadow) |
| virtual bool16 | GetViewPortDrawPasteboardShadow (void) const |
| virtual void | SetViewPortDrawPageShadow (bool16 drawShadow) |
| virtual bool16 | GetViewPortDrawPageShadow (void) const |
| virtual bool16 | GetViewPortIsPrintingPort (void) const |
| virtual void | SetViewPortIsPrintingPort (bool16 b) |
| virtual bool32 | IsAttrDefined (VPAttrID attr) const |
| virtual void | SetAttr (VPAttrID attr, int32 value) |
| virtual void | SetAttr (VPAttrID attr, PMReal value) |
| virtual int32 | GetAttr (VPAttrID attr, int32 defVal=0) const |
| virtual PMReal | GetAttrReal (VPAttrID attr, PMReal defVal=0.) const |
Protected Types | |
| typedef std::map< VPAttrID, PMReal > | VPAttrMap |
Protected Attributes | |
| PMReal | fViewPortResolution |
| PMReal | fViewPortLineScreen |
| bool16 | fViewPortOutputOPI |
| bool16 | fViewPortDoCacheing |
| int32 | fViewPortBitmapSampling |
| int32 | fViewPortVectorSampling |
| bool16 | fViewPortFilterContent |
| bool16 | fViewPortDoTiling |
| bool16 | fViewPortProofPrint |
| bool16 | fViewPortDisallowImageCrop |
| bool16 | fViewPortOmitPDF |
| bool16 | fViewPortOmitEPS |
| bool16 | fViewPortOmitBitmapImages |
| bool16 | fViewPortDrawPasteboardShadow |
| bool16 | fViewPortDrawPageShadow |
| bool16 | fViewPortIsPrintingPort |
| VPAttrMap | fViewPortAttrMap |
Additional Inherited Members | |
Public Types inherited from IViewPortAttributes | |
| enum | { kDefaultIID = IID_IVIEWPORTATTRIBUTES } |
| enum | { kViewPortBMSampleOmit_Inval = 0, kViewPortBMSampleHiRes, kViewPortBMSampleLowRes, kViewPortBMSampleOptimized } |
| virtual |
Gets the value for an attribute as an integer
| attr | IN The attribute to set |
| defVal | IN The attribute's default value |
Implements IViewPortAttributes.
Gets the value for an attribute as a real
| attr | IN The attribute to set |
| defVal | IN The attribute's default value |
Implements IViewPortAttributes.
| virtual |
Gets the type of bitmap data the ViewPort wants to display, export, or print
Implements IViewPortAttributes.
| virtual |
Gets whether the ViewPort wants to optimize re-display by cacheing things like images. Cacheing is most useful when diplaying on-screen; for printing and exporting, it is typically not recommended.
Implements IViewPortAttributes.
| virtual |
Gets whether we want to make sure that we get all the image data–even what has been cropped by the frame
Implements IViewPortAttributes.
| virtual |
Gets whether to draw page shadow. Initial value is implementation dependent
Implements IViewPortAttributes.
| virtual |
Gets whether to draw pasteboard shadow. Initial value is implementation dependent
Implements IViewPortAttributes.
| virtual |
Gets whether this port wants to filter content
Implements IViewPortAttributes.
| virtual |
Gets whether port is a printing port. Indicates if screen drawing things should happen or not. This is the same concept as IShape::kPrinting which is passed to drawing methods, though at port level.
Implements IViewPortAttributes.
| virtual |
Gets the port's line screen. Currently this is used in the calculation of the desired resolution when BitmapSampling is set to Optimize. Currently this is only set up for PS view ports.
Implements IViewPortAttributes.
| virtual |
Gets whether placed bitmap images should be omitted
Implements IViewPortAttributes.
| virtual |
Gets whether placed EPS's should be omitted
Implements IViewPortAttributes.
| virtual |
Gets whether placed PDF's should be omitted
Implements IViewPortAttributes.
| virtual |
Gets whether the port wants to output OPI comments
Implements IViewPortAttributes.
| virtual |
Gets whether the port is doing a proof print
Implements IViewPortAttributes.
| virtual |
Gets the resolution of the view port. Currently this is used when importing an EPS because MPS requires the output device's resolution when creating the display list.
Implements IViewPortAttributes.
| virtual |
Gets whether the port supports tiling
Implements IViewPortAttributes.
| virtual |
Gets the type of vector data the ViewPort wants to display, export, or print
Implements IViewPortAttributes.
| virtual |
Initializes the attributes available by the Get methods below. A ViewPortBoss should call Initialize() before each time it begins to draw in order to be sure that the attributes are up to date. The optional IDataBase argument can be used by initialize to get preference settings from the given database, when it is known that the ViewPort is drawing one document. The optional IControlView argument can be used by initialize to get preference settings from the given IControlView.
Note: Initialization of the ViewPortBounds must be done explicitly with SetViewPortBounds().
| db | IN Optional database from which to take preference settings |
| controlView | IN Optional view from which to take preference settings |
Implements IViewPortAttributes.
| virtual |
Tests whether an attribute is defined
These are an extensible system for new attributes. It's simply a map from the VPAttrID to a PMReal (commonly just using the integer portion). If you have a simple attribute you want to add, this is a good way to do it without having to modify the ViewPortAttributes interface.
Currently the following attributes use this method: kXPIsMaskPortVPAttr - See XPID.h kSpotOVPModeVPAttr - See PrintID.h
| attr | IN The attribute to check |
Implements IViewPortAttributes.
| virtual |
Sets the value for an attribute as an integer
| attr | IN The attribute to set |
| value | IN The attribute's value |
Implements IViewPortAttributes.
Sets the value for an attribute as a real
| attr | IN The attribute to set |
| value | IN The attribute's value |
Implements IViewPortAttributes.
| virtual |
Sets the type of bitmap data the ViewPort wants to display, export, or print
| sampling | IN The sampling type |
Implements IViewPortAttributes.
| virtual |
Sets whether the ViewPort wants to optimize re-display by cacheing things like images. Cacheing is most useful when diplaying on-screen; for printing and exporting, it is typically not recommended.
| cacheing | IN If kTrue, the port should cache |
Implements IViewPortAttributes.
| virtual |
Gets whether we want to make sure that we get all the image data–even what has been cropped by the frame
| b | IN kTrue to disallow image cropping |
Implements IViewPortAttributes.
| virtual |
Sets whether to draw page shadow. Initial value is implementation dependent
| drawShadow | IN whether to draw pasteboard shadow |
Implements IViewPortAttributes.
| virtual |
Sets whether to draw pasteboard shadow. Initial value is implementation dependent
| drawShadow | IN whether to draw pasteboard shadow |
Implements IViewPortAttributes.
| virtual |
Sets whether this port wants to filter content
| filter | IN kTrue if the port should filter content |
Implements IViewPortAttributes.
| virtual |
Sets whether port is a printing port. Indicates if screen drawing things should happen or not. This is the same concept as IShape::kPrinting which is passed to drawing methods, though at port level.
| b | IN whether port is a printing port |
Implements IViewPortAttributes.
| virtual |
Sets the port's line screen. Currently this is used in the calculation of the desired resolution when BitmapSampling is set to Optimize. Currently this is only set up for PS view ports.
| n | IN The line screen to use |
Implements IViewPortAttributes.
| virtual |
Sets whether placed bitmap images should be omitted
| b | IN kTrue if placed bitmap images should be omitted, else kFalse |
Implements IViewPortAttributes.
| virtual |
Sets whether placed EPS's should be omitted
| b | IN kTrue if placed EPS's should be omitted, else kFalse |
Implements IViewPortAttributes.
| virtual |
Sets whether placed PDF's should be omitted
| b | IN kTrue if placed PDF's should be omitted, else kFalse |
Implements IViewPortAttributes.
| virtual |
Sets whether the port wants to output OPI comments
| b | IN If kTrue, the port should output OPI |
Implements IViewPortAttributes.
| virtual |
Sets whether the port is doing a proof print
| b | IN kTrue if the port is doing a proof print |
Implements IViewPortAttributes.
| virtual |
Sets the resolution of the view port. Currently this is used when importing an EPS because MPS requires the output device's resolution when creating the display list.
| resolution | IN the view port's resolution |
Implements IViewPortAttributes.
| virtual |
Sets whether the port supports tiling
| b | IN kTrue if the port supports tiling |
Implements IViewPortAttributes.
| virtual |
Sets the type of bitmap data the ViewPort wants to display, export, or print
| sampling | IN The sampling type |
Implements IViewPortAttributes.