InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IHTMLPageItemFacade.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: David Stephens
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 __IHTMLPageItemFacade__
25 #define __IHTMLPageItemFacade__
26 
27 // ----- Interfaces -----
28 
29 #include "IPMUnknown.h"
30 
31 // ----- Includes -----
32 
33 #include "Utils.h"
34 #include "HTMLPGTID.h"
35 
36 class IPMStream;
37 
38 namespace Facade
39 {
40 // Please use the IHTMLPageItemFacade directly via the UtilsBoss if possible, see Utils.h:
41 // i.e. Utils<Facade::IHTMLPageItemFacade>()->GetHTMLContent( ... );
42 // Or, you can simply include HTMLPageItemFacade.h (instead of IHTMLPageItemFacade.h) and then use
43 // HTMLPageItemFacade::GetHTMLContent( ... );
44 
51  {
52  public:
53  enum { kDefaultIID = IID_IHTMLPAGEITEMFACADE };
54 
59  virtual bool32 IsHTMLContent(const WideString& text) const = 0;
60 
65  virtual WideString GetHTMLContent(const IPMUnknown* pageItem) const = 0;
66 
75  virtual ErrorCode CreateHTMLPageItem(IDataBase *db, const WideString& html, bool32 bAddParentFrame, UIDRef& newPageItemOrParentFrame) const = 0;
76 
82  virtual ErrorCode SetHTMLContent(
83  const UIDRef& pageItem,
84  const WideString& html // new HTML content
85  ) const = 0;
86 
92  virtual ErrorCode UpdatePoster (const UIDRef& pageItem, bool32 bAutoResizeParentFrame) const = 0;
93 
103  virtual ErrorCode SetRelativeURIToHTMLFile(const UIDRef& pageItem, const WideString* relativePosixPath) = 0;
104 
113  virtual void GetRelativeURIToHTMLFile(const UIDRef& pageItem, WideString& relativePosixPath) const = 0;
114 
122  virtual ErrorCode SetResizable(const UIDRef& pageItem, bool32 isResizable) = 0;
123 
124 
131  virtual bool32 GetResizable(const UIDRef& pageItem) const = 0;
132  };
133 }
134 
135 #endif // __IHTMLPageItemFacade__