InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IQuotes.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 __IQuotes__
25 #define __IQuotes__
26 
27 #include "IPMUnknown.h"
28 #include "QuoteEntry.h"
29 #include "TextID.h"
30 
34 class IQuotes : public IPMUnknown
35 {
36  public:
37 
38  enum { kDefaultIID = IID_IQUOTES };
39 
40  /*******************************************************************************************************
41  **
42  ** Arguments: const QuoteEntry&
43  **
44  ** Description: Sets the internal quote entry to equal the argument
45  **
46  ********************************************************************************************************/
47 
48  virtual void SetTypographersQuotes(const QuoteEntry& newQuoteEntry) = 0;
49 
50  /*******************************************************************************************************
51  **
52  ** Arguments: None
53  **
54  ** Description: Returns the Quote Entry object which contains four quotes, and the language IDs.
55  **
56  ********************************************************************************************************/
57 
58  virtual const QuoteEntry& GetTypographersQuotes() const = 0;
59 
60  /*******************************************************************************************************
61  **
62  ** Arguments: QuotationType (kDouble/kSingle), QuotationPosition (kLeft/kRight)
63  **
64  ** Description: Returns the unicode value corresponding to the quote given the type and position.
65  **
66  ********************************************************************************************************/
67 
68  virtual const textchar GetTypographersQuotes(const ILanguage::QuotationType nType, const ILanguage::QuotationPosition nPosition) const = 0;
69 };
70 
71 
72 #endif // __IQuotes__