InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
INXOptions.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Steve Pellegrin
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __INXOptions_h__
25 #define __INXOptions_h__
26 
27 // Typedef for style.
28 typedef uint32 INXStyle;
29 
30 
31 // Option bits
32 // Overall XML structure options
33 static const INXStyle bINXStructureMask = 0x0000000F;
34 static const INXStyle bINXCompact = 0x00000001;
35 static const INXStyle bINXExpanded = 0x00000002;
36 
37 // Token level options
38 static const INXStyle bINXVerboseNames = 0x00000010;
39 static const INXStyle bINXReadableNumbers = 0x00000020;
40 
41 // DTD options
42 static const INXStyle bINXUseDTD = 0x00000100; // obsolete in CS3, might still being used in some old file
43 static const INXStyle bINXUseNamespace = 0x00000200;
44 
45 
46 // Standard styles
47 static const INXStyle kINXDragontailTraditional = (bINXCompact);
48 static const INXStyle kINXTraditional = (bINXCompact | bINXReadableNumbers);
49 static const INXStyle kINXExpanded = (bINXExpanded | bINXReadableNumbers | bINXVerboseNames);
50 
51 
53 {
54 public:
59  INXOptions(INXStyle style = kINXExpanded);
60 
64  ~INXOptions();
65 
70  bool16 operator==(const INXOptions &other) const
71  {return fStyle == other.GetStyle();}
72 
77  INXStyle GetStyle() const;
78 
83  uint32 GetINXStructure() const;
84 
89  bool16 IsTraditionalStructure() const;
90 
95  bool16 IsExpandedStructure() const;
96 
101  bool16 GetVerboseNames() const;
102 
107  bool16 GetReadableNumbers() const;
108 
113  bool16 GetUseDTD() const;
114 
119  bool16 GetUseNamespace() const;
120 
121 private:
122  INXStyle fStyle;
123 };
124 
125 #endif // __INXOptions_h__