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

Public Types | |
| enum | { kDefaultIID = IID_IVIEWPORTATTRIBUTES } |
| enum | { kViewPortBMSampleOmit_Inval = 0, kViewPortBMSampleHiRes, kViewPortBMSampleLowRes, kViewPortBMSampleOptimized } |
Public Member Functions | |
| virtual void | Initialize (IDataBase *db=nil, IControlView *controlView=nil)=0 |
| virtual PMReal | GetViewPortResolution (void) const =0 |
| virtual void | SetViewPortResolution (PMReal resolution)=0 |
| virtual bool16 | GetViewPortOutputOPIComments (void) const =0 |
| virtual void | SetViewPortOutputOPIComments (bool16 b)=0 |
| virtual bool16 | GetViewPortCacheing (void) const =0 |
| virtual void | SetViewPortCacheing (bool16 cacheing)=0 |
| virtual int32 | GetViewPortBitmapSampling (void) const =0 |
| virtual void | SetViewPortBitmapSampling (int32 sampling)=0 |
| virtual int32 | GetViewPortVectorSampling (void) const =0 |
| virtual void | SetViewPortVectorSampling (int32 sampling)=0 |
| virtual bool16 | GetViewPortFilterContent (void) const =0 |
| virtual void | SetViewPortFilterContent (bool16 filter)=0 |
| virtual PMReal | GetViewPortLineScreen (void) const =0 |
| virtual void | SetViewPortLineScreen (const PMReal &n)=0 |
| virtual bool16 | GetViewPortTiling (void) const =0 |
| virtual void | SetViewPortTiling (bool16 b)=0 |
| virtual bool16 | GetViewPortProofPrint (void) const =0 |
| virtual void | SetViewPortProofPrint (bool16 b)=0 |
| virtual bool16 | GetViewPortDisallowImageCrop (void) const =0 |
| virtual void | SetViewPortDisallowImageCrop (bool16 b)=0 |
| virtual bool16 | GetViewPortOmitEPS (void) const =0 |
| virtual void | SetViewPortOmitEPS (bool16 b)=0 |
| virtual bool16 | GetViewPortOmitPDF (void) const =0 |
| virtual void | SetViewPortOmitPDF (bool16 b)=0 |
| virtual bool16 | GetViewPortOmitBitmapImages (void) const =0 |
| virtual void | SetViewPortOmitBitmapImages (bool16 b)=0 |
| virtual void | SetViewPortDrawPasteboardShadow (bool16 drawShadow)=0 |
| virtual bool16 | GetViewPortDrawPasteboardShadow (void) const =0 |
| virtual void | SetViewPortDrawPageShadow (bool16 drawShadow)=0 |
| virtual bool16 | GetViewPortDrawPageShadow (void) const =0 |
| virtual bool16 | GetViewPortIsPrintingPort (void) const =0 |
| virtual void | SetViewPortIsPrintingPort (bool16 b)=0 |
| virtual bool32 | IsAttrDefined (VPAttrID attr) const =0 |
| virtual void | SetAttr (VPAttrID attr, int32 value)=0 |
| virtual void | SetAttr (VPAttrID attr, PMReal value)=0 |
| virtual int32 | GetAttr (VPAttrID attr, int32 defVal=0) const =0 |
| virtual PMReal | GetAttrReal (VPAttrID attr, PMReal defVal=0.) 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 |
Provides the interface for determining the set of attributes supported by a port
| anonymous enum |
Bitmap output options
| pure virtual |
Gets the value for an attribute as an integer
| attr | IN The attribute to set |
| defVal | IN The attribute's default value |
Implemented in ViewPortAttributes.
| pure virtual |
Gets the value for an attribute as a real
| attr | IN The attribute to set |
| defVal | IN The attribute's default value |
Implemented in ViewPortAttributes.
| pure virtual |
Gets the type of bitmap data the ViewPort wants to display, export, or print
Implemented in ViewPortAttributes.
| pure 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.
Implemented in ViewPortAttributes.
| pure virtual |
Gets whether we want to make sure that we get all the image data–even what has been cropped by the frame
Implemented in ViewPortAttributes.
| pure virtual |
Gets whether to draw page shadow. Initial value is implementation dependent
Implemented in ViewPortAttributes.
| pure virtual |
Gets whether to draw pasteboard shadow. Initial value is implementation dependent
Implemented in ViewPortAttributes.
| pure virtual |
Gets whether this port wants to filter content
Implemented in ViewPortAttributes.
| pure 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.
Implemented in ViewPortAttributes.
| pure 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.
Implemented in ViewPortAttributes.
| pure virtual |
Gets whether placed bitmap images should be omitted
Implemented in ViewPortAttributes.
| pure virtual |
Gets whether placed EPS's should be omitted
Implemented in ViewPortAttributes.
| pure virtual |
Gets whether placed PDF's should be omitted
Implemented in ViewPortAttributes.
| pure virtual |
Gets whether the port wants to output OPI comments
Implemented in ViewPortAttributes.
| pure virtual |
Gets whether the port is doing a proof print
Implemented in ViewPortAttributes.
| pure 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.
Implemented in ViewPortAttributes.
| pure virtual |
Gets whether the port supports tiling
Implemented in ViewPortAttributes.
| pure virtual |
Gets the type of vector data the ViewPort wants to display, export, or print
Implemented in ViewPortAttributes.
| pure 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 |
Implemented in ViewPortAttributes.
| pure 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 |
Implemented in ViewPortAttributes.
| pure virtual |
Sets the value for an attribute as an integer
| attr | IN The attribute to set |
| value | IN The attribute's value |
Implemented in ViewPortAttributes.
Sets the value for an attribute as a real
| attr | IN The attribute to set |
| value | IN The attribute's value |
Implemented in ViewPortAttributes.
| pure virtual |
Sets the type of bitmap data the ViewPort wants to display, export, or print
| sampling | IN The sampling type |
Implemented in ViewPortAttributes.
| pure 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 |
Implemented in ViewPortAttributes.
| pure 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 |
Implemented in ViewPortAttributes.
| pure virtual |
Sets whether to draw page shadow. Initial value is implementation dependent
| drawShadow | IN whether to draw pasteboard shadow |
Implemented in ViewPortAttributes.
| pure virtual |
Sets whether to draw pasteboard shadow. Initial value is implementation dependent
| drawShadow | IN whether to draw pasteboard shadow |
Implemented in ViewPortAttributes.
| pure virtual |
Sets whether this port wants to filter content
| filter | IN kTrue if the port should filter content |
Implemented in ViewPortAttributes.
| pure 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 |
Implemented in ViewPortAttributes.
| pure 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 |
Implemented in ViewPortAttributes.
| pure virtual |
Sets whether placed bitmap images should be omitted
| b | IN kTrue if placed bitmap images should be omitted, else kFalse |
Implemented in ViewPortAttributes.
| pure virtual |
Sets whether placed EPS's should be omitted
| b | IN kTrue if placed EPS's should be omitted, else kFalse |
Implemented in ViewPortAttributes.
| pure virtual |
Sets whether placed PDF's should be omitted
| b | IN kTrue if placed PDF's should be omitted, else kFalse |
Implemented in ViewPortAttributes.
| pure virtual |
Sets whether the port wants to output OPI comments
| b | IN If kTrue, the port should output OPI |
Implemented in ViewPortAttributes.
| pure virtual |
Sets whether the port is doing a proof print
| b | IN kTrue if the port is doing a proof print |
Implemented in ViewPortAttributes.
| pure 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 |
Implemented in ViewPortAttributes.
| pure virtual |
Sets whether the port supports tiling
| b | IN kTrue if the port supports tiling |
Implemented in ViewPortAttributes.
| pure virtual |
Sets the type of bitmap data the ViewPort wants to display, export, or print
| sampling | IN The sampling type |
Implemented in ViewPortAttributes.