InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
HidTxtFacade.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Adobe Developer Technologies
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 __HidTxtFacade_h__
25 #define __HidTxtFacade_h__
26 
27 class UIDRef;
28 class WideString;
29 
37 {
38  public:
43  HidTxtFacade(const UIDRef& textModelUIDRef, const TextIndex& anchorTextIndex);
44 
47  virtual ~HidTxtFacade();
48 
49  public:
52  virtual bool16 CanCreateHiddenText();
53 
58  virtual ErrorCode CreateHiddenText(const WideString& text);
59 
62  virtual bool16 CanGetHiddenText();
63 
67  virtual ErrorCode GetHiddenText(WideString& text);
68 
71  virtual bool16 CanModifyHiddenText();
72 
77  virtual ErrorCode ModifyHiddenText(const WideString& text);
78 
81  virtual bool16 CanDeleteHiddenText();
82 
86  virtual ErrorCode DeleteHiddenText();
87 
88  private:
89  const UIDRef fTextModelUIDRef;
90  const TextIndex fAnchorTextIndex;
91  UIDRef fHidTxtModelUIDRef;
92 
93  private:
96  virtual bool16 CanChangeHiddenText();
97 
100  virtual bool16 IsTextLocked();
101 };
102 
103 #endif
104 
105 // End, HidTxtFacade.h