??在DWFPaper类中,有描述页面的基本信息,页面宽高,页面单位,颜色和页面裁剪范围,但是并没有视图信息。源代码如下所示:
class DWFPaper : public DWFXMLBuildable#ifndef DWFTK_READ_ONLY, public DWFXMLSerializable
#endif_DWFTK_EXPORT_API_MEMORY_CONTROL_BASE_MEMBER
{public://////\brief This type defines a list of DWFPaper pointers.///typedef _DWFTK_STD_VECTOR(DWFPaper*) tList;public:typedef enum{eMillimeters,eInches,eUnknown} teUnits;//支持的单位public:////// Constructor//////\throw None///_DWFTK_APIDWFPaper()throw();////// Constructor//////\param nWidth The paper width in \a eUnits.///\param nHeight The paper height in \a eUnits.///\param eUnits The units in which the paper dimensions apply.///\param nColorARGB The paper color (as a 32-bit value)///\param anClip An optional clipping path to be applied to the paper graphics.///\param bShow Indicates whether or not the paper should be shown under the graphics.///\throw None///_DWFTK_APIDWFPaper( double nWidth,double nHeight,teUnits eUnits = eUnknown,unsigned int nColorARGB = 0x00ffffff,const double* anClip = NULL,bool bShow = true )throw();////// Copy Constructor//////\param rPaper The source paper from which to copy.///\throw None///_DWFTK_APIDWFPaper( const DWFPaper& rPaper )throw();////// Assignment Operator//////\param rPaper The source paper from which to copy.///\throw None///_DWFTK_APIDWFPaper& operator=( const DWFPaper& rPaper )throw();////// Destructor//////\throw None///_DWFTK_APIvirtual ~DWFPaper()throw();////// Indicates whether or not the paper should be shown under the graphics.////// The graphics must still be drawn on the paper regardless of this setting.///\return The show state.///\throw None///_DWFTK_APIbool show() constthrow(){return _bShow;}////// Returns the horizontal dimension in \a units().//////\return The paper width.///\throw None///_DWFTK_APIdouble width() constthrow(){return _nWidth;}////// Returns the vertical dimension in \a units().//////\return The paper height.///\throw None///_DWFTK_APIdouble height() constthrow(){return _nHeight;}////// Returns the 32-bit paper color.//////\return The color value.///\throw None///_DWFTK_APIunsigned int color() constthrow(){return _nColorARGB;}////// Returns the path by which the graphic data should be clipped.//////\return The clipping path. This pointer should not be deleted by the caller.///\throw None///_DWFTK_APIconst double* const clip() constthrow(){return (const double* const)_anClip;}////// Returns the units that apply to the paper dimensions.//////\return The units enumeration.///\throw None///_DWFTK_APIconst teUnits units() constthrow(){return _eUnits;}//////\copydoc DWFCore::DWFXMLBuildable::parseAttributeList()///_DWFTK_APIvirtual void parseAttributeList( const char** ppAttributeList )throw( DWFException );#ifndef DWFTK_READ_ONLY//////\copydoc DWFXMLSerializable::serializeXML()///_DWFTK_APIvoid serializeXML( DWFXMLSerializer& rSerializer, unsigned int nFlags )throw( DWFException );
#endifprivate:bool _bShow;//是否显示double _nWidth;double _nHeight;unsigned int _nColorARGB;double _anClip[4];//裁剪teUnits _eUnits;
};
??欢迎光临知了软件开发网络平台,本公司定制开发各类软件,主要方向为桌面专业软件开发和插件定制开发,桌面软件主要包括文字图形识别类软件,信息管理类软件,3D打印类软件,视频类软件以及其它涉及专业的各类图形图像处理软件。插件包含AE插件,AI插件,PS插件,PDF插件,3DMAX插件以及Word,Excel等Office插件开发。详情请咨询,微信QQ:312117271,手机:18928899728,邮箱: anjingzhi_sea@163.com.
公司网址:http://www.zhiliaos.com