InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
QuoteEntry.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Adnan_Sulejmanpasic
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 __QuoteEntry__
25 #define __QuoteEntry__
26 
27 #include "IPMUnknown.h"
28 #include "BaseType.h"
29 #include "K2Vector.h"
30 #include "ILanguage.h"
31 
33 
35 {
36 public:
37 
38  QuoteEntry() : fQuotes()
39  {
40  fQuotes.reserve(kNumQuotes);
41  }
42 
44 
45  QuoteEntry(InterfacePtr<ILanguage>& pLanguage, const UTF32TextChar leftSingle, const UTF32TextChar rightSingle, const UTF32TextChar leftDouble, const UTF32TextChar rightDouble);
46 
47  QuoteEntry(const QuoteEntry& otherQuoteEntry);
48 
49  void ConstructorHelp(InterfacePtr<ILanguage>& pLanguage, bool16 defaultQuotes, const UTF32TextChar leftSingle = 0, const UTF32TextChar rightSingle = 0, UTF32TextChar leftDouble = 0, const UTF32TextChar rightDouble = 0);
50 
51  bool16 operator!=(const QuoteEntry& otherQuoteEntry) const;
52 
53  textchar GetTypographersQuotes(const ILanguage::QuotationType nType, const ILanguage::QuotationPosition nPosition) const;
54 
55  void ReadWrite(IPMStream *s);
56 
57 private:
58  PMString fName;
59  QuoteList fQuotes;
60  enum { kNumQuotes = 4 };
61 
62  friend class QuoteTable;
63  friend class QuoteData;
64  friend class Quotes;
65 };
66 
67 DECLARE_OBJECT_TYPE(QuoteEntry);
68 
69 #endif