CFx SDK Documentation  2022 SP0
PdfPublishCommon.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 
25 #ifndef _PDFPUBLISH_COMMON_INCLUDED_
26 #define _PDFPUBLISH_COMMON_INCLUDED_
27 
28 #include "OdaCommon.h"
29 
33 namespace OdPdfPublish {
34 
41  {
42  eOk = 0,
51  exOdError = 0x00020000,
52  //DOM-IGNORE-BEGIN
53  eLastErrorNum = 0xFFFF
54  //DOM-IGNORE-END
55  };
56 
60  namespace Activation {
61 
65  enum When {
68  kVisible
69  };
70  }
71 
75  namespace Deactivation {
76 
80  enum When {
84  };
85  }
86 
90  namespace Page {
91 
95  enum Format {
96  kA4 = 0,
97  kA3,
99  kA5,
109  //DOM-IGNORE-BEGIN
110  kLastFormat
111  //DOM-IGNORE-END
112  };
113 
117  enum Orientation {
118  kPortrait = 0,
120 
121  //DOM-IGNORE-BEGIN
123  //DOM-IGNORE-END
124  };
125 
127  {
128  kInches = 0,
130  kPixels = 2
131  };
132  }
133 
137  namespace Camera {
138 
142  enum Projection {
144  kPerspective
145  };
146  }
147 
151  namespace Lighting
152  {
153 
157  enum Mode {
158  kDefault = 0,
170  kHeadlamp
171  };
172  }
173 
177  namespace Rendering
178  {
182  enum Mode {
183  kDefault = 0,
199  };
200  }
201 
205  namespace PRC {
206 
211  kNone = 0,
214  kHigh
215  };
216  }
217 
221  namespace Artwork {
222 
229  kBounce
230  };
231 
237  kPDF
238  };
239 
245  kRuntime
246  };
247  }
248 
252  namespace Border {
253 
257  enum Thickness {
260  kWide
261  };
262 
266  enum Style {
272  };
273  }
274 
278  namespace Text {
279 
283  enum FontStyle {
287  kBoldItalic
288  };
289 
296  kCenter
297  };
298 
302  enum Rotation {
307  };
308 
313  {
328  };
330  {
332  kExplicit
333  };
334  enum Language
335  {
348  kDefault
349  };
350  }
351 
355  namespace Label {
356 
360  enum Position
361  {
368  kOnTop
369  };
370  }
371 
375  namespace Highlighting {
376 
381  enum Mode
382  {
386  kPush
387  };
388  }
389 
393  namespace Image {
394 
398  enum Format
399  {
400 
401  kUnknown = -1,
437  kRAW
438  };
439  }
440 
441  namespace Action {
442 
443  enum Type
444  {
455  };
456  }
457 
458  namespace Geometry {
460  {
462  kButtCap = 0,
465  };
466 
468  {
472  kBevelJoin = 2
473  };
474 
476  {
478  kEnd = 1, // End the path
479  kStroke = 2, // Stroke the path
480  kClose = 4, // Close the path
481  kFillEvenOdd = 8, // Fill the path, using the even-odd rule to determine the region to fill
482  kFillNonZero = 16 // Fill the path, using the nonzero winding number rule to determine the region to fill. Any subpaths that are open are implicitly closed before being filled.
483  };
484  }
485 }
486 
487 #endif // _PDFPUBLISH_COMMON_INCLUDED_
488 
489 
@ kOpened
Annotation stays inactive until it is directly activated by a user or a script.
@ kVisible
Annotation is activated when its page is opened.
@ kLoop
No animation style. Application allows other ways of animation control, for example through JavaScrip...
@ kBounce
Animation loop. Application plays the animation in infinite loop.
@ kPDF
Use default view from .prc data (if .prc data exists).
@ kRuntime
Use a view settings.
@ kWide
Border line has medium thickness.
@ kMedium
Border line is thin.
@ kInset
The border is bevelled.
@ kDashed
The border is solid.
@ kBeveled
The border is dashed.
@ kUnderlined
The border is inset.
@ kPerspective
Orthographic camera projection.
@ kNotVisible
Annotation is deactivated when its page is closed.
@ kClosed
Annotation stays active until it is directly deactivated by a user or a script.
@ kPush
Creates an outline border around the control.
@ kOutline
Inverts highlighting colors within the control.
@ kPPMRAW
A .ppm image.
@ kSGI
A .faxg3 image.
@ kRAW
A .pict image.
@ kLBM
A .koala image.
@ kKOALA
A .jng image.
@ kICO
A bitmap image.
@ kJPEG
An icon image.
@ kRAS
A raw .ppm image.
@ kWBMP
A .tiff image.
@ kJNG
A .jpeg image.
@ kFAXG3
A .hdr image.
@ kCUT
A .psd (Adobe Photoshop) image.
@ kPBMRAW
A .pbm image.
@ kPGMRAW
A .pgm image.
@ kPNG
A raw .pgm image.
@ kPCD
A raw .pbm image.
@ kBMP
The format is unknown.
@ kMNG
An .iff image.
@ kTIFF
A .targa image.
@ kPSD
A .wbmp image.
@ kTARGA
A .ras image.
@ kPICT
A .pfm image.
@ kTop
Only label icon is displayed.
@ kLeft
The label is positioned at the bottom of icon associated with it (i.e under the icon).
@ kIconOnly
Only label is displayed.
@ kBottom
The label is positioned at the top of the icon associated with it (i.e above the icon).
@ kRight
The label is positioned at the left edge of the icon associated with it.
@ kOnTop
The label is positioned at the right edge of the icon associated with it.
@ kArtwork
Default light mode. Currently is not applied.
@ kNight
Primary color light mode is used.
@ kWhite
No light mode is used.
@ kDay
White light mode is used.
@ kPrimaryColor
Bright light mode is used.
@ kBright
Day light mode is used.
@ kBlue
Night light mode is used.
@ kNone
Light mode is inherited from the annotation.
@ kHeadlamp
Optimized light from CAD is used.
@ kCube
Red light mode is used.
@ kRed
Blue light mode is used.
@ kCADOptimized
Cube light mode is used.
@ kLow
Use uncompressed BRep data.
@ kMedium
Use BRep data with low compression level.
@ kHigh
Use BRep data with medium compression level.
@ kLastOrientation
Landscape orientation.
@ kLandscape
Portrait orientation.
@ kLastFormat
For internal use only.
@ kA3
Format A4 (842 points width, 1190 points height).
@ kP11x17
Format A3 (595 points width, 842 points height).
@ kShadedWireframe
Monochrome tessellation edges are rendered.
@ kTransparentWireframe
Textured and lighted transparent faces are rendered.
@ kTransparent
Monochrome bounding box edges are rendered.
@ kTransparentBoundingBox
Textured, lighted transparent faces and monochrome tessellation edges are rendered.
@ kIllustration
Monochrome edges and bounding box transparent faces are rendered.
@ kSolidWireframe
Textured and lighted faces are rendered.
@ kSolidOutline
Textured, lighted faces and monochrome tessellation edges are rendered.
@ kBoundingBox
Textured, lighted faces and monochrome silhouette edges are rendered.
@ kShadedVertices
Monochrome vertices are rendered.
@ kShadedIllustration
Monochrome unlighted faces and silhouette edges are rendered.
@ kHiddenWireframe
Interpolated and lighted tessellation edges are rendered.
@ kWireframe
Textured, lighted highly emissive faces and monochrome silhouette edges are rendered.
@ kSolid
Default rendering mode. Currently is not applied.
@ kVertices
Monochrome faces and tessellation edges are rendered.
@ kTransparentBoundingBoxOutline
Monochrome bounding box transparent faces are rendered.
@ kCounterClockwise180Degrees
Counter-clockwise rotation for 90 degrees relative from horizontal position.
@ kCounterClockwise270Degrees
Counter-clockwise rotation for 180 degrees relative from horizontal position.
@ kCounterClockwise90Degrees
Horizontally allocated text, no rotation.
@ kBoldItalic
Text appears as italic.
@ kBold
Normal font style.
@ kItalic
Text appears as bold.
@ kRight
Left text justification.
@ kCenter
Right text justification.
@ kTimesBoldItalic
Oblique Courier font.
@ kTimesBold
Normal Symbol font.
@ kCourier
Normal Helvetica font.
@ kCourierBold
Bold Helvetica font.
@ kHelvetica
Normal Times Roman font.
@ kHelveticaBold
Bold Times Roman font.
@ kZapfDingbats
Bold Courier font.
@ kCourierBoldOblique
Bold and oblique of the Helvetica font.
@ kSymbol
Normal Courier font.
@ kTimesItalic
Normal ZapfDingbats font.
@ kHelveticaBoldOblique
Bold and italic combination of the Times Roman font.
@ kHelveticaOblique
Italic Times Roman font.
@ kCourierOblique
Oblique Helvetica font.
@ eKeyNotFound
A try to proceed an operation with a null smart pointer to the Teigha Publish document.
@ eNullBaseName
The specified key value is not found.
@ eNotImplementedYet
The name of the base object is null.
@ eNullDocument
A duplication of elements found.
@ eNotSortedArray
The input array is empty.
@ exOdError
The feature currently is not implemented.
@ eLastErrorNum
ODA base class error occured during the operation.
@ eEmptyInputArray
An internal error occurred during the operation.
@ eDuplicatedElement
The input arrya is not sorted.
@ eInternalError
Operation has been successfully finished.