InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
RunInLineStyleList.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Eric_Menninga
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 __RunInLineStyleList__
25 #define __RunInLineStyleList__
26 
27 #include "WideString.h"
28 #include "K2Vector.h"
29 
30 class IPMStream;
31 
32 
45 {
46  public:
47  typedef object_type data_type;
48 
49  RunInLineStyleRule() : fCharacterStyle(kInvalidUID), fNumberLines(0)
50  {}
51 
52  RunInLineStyleRule(UID charstyle, int32 n)
53  : fCharacterStyle(charstyle), fNumberLines(n)
54  {}
55 
56  bool operator==(const RunInLineStyleRule&) const
57  { ASSERT_FAIL("appease K2Vector.Location"); return false; }
58 
62  void SetCharacterStyle(const UID& cs)
63  { fCharacterStyle = cs; }
64 
67  { return fCharacterStyle; }
68 
72  void SetNumberLines(int32 lines)
73  { fNumberLines = lines; }
74 
76  int32 GetNumberLines() const
77  { return fNumberLines; }
78 
79  bool IsLoopbackRule() const
80  { return (fCharacterStyle == kInvalidUID); }
81 
83  void ReadWrite(IPMStream *stream);
84 
85  private:
86  UID fCharacterStyle;
87  int32 fNumberLines;
88 };
89 
90 
91 
92 
97 class RunInLineStyleList : public K2Vector<RunInLineStyleRule>
98 {
99 };
100 
101 #endif
102  //__RunInStyleList__