InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IFormFieldFactory.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Tim Wright
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 __IFormFieldFactory_h__
25 #define __IFormFieldFactory_h__
26 
27 #include "IPMUnknown.h"
28 #include "PMString.h"
29 #include "FormFieldTypes.h"
30 #include "FormFieldID.h"
31 
32 //=============================================================================
33 
34 class IDocument;
36 
47 {
48 public:
49  enum { kDefaultIID = IID_IFORMFIELDFACTORY };
50 
52  virtual PMString GetFieldTypeName() const = 0;
53 
58  virtual UIDRef CreateFormField (const UIDRef& inParent, const PMRect& inBounds ) const = 0;
59 
60 
65  virtual PMString GetStyleLibName() const = 0;
66 
67 
71  virtual PMString GetDefaultBaseObjectName() const = 0;
72 
80  virtual void AddDefaultAttributes( IGraphicStyleAttributeBossList* outAttrs, IGraphicStyleAttributeBossList* defaultAttrs, IDocument* inDoc ) = 0;
81 
82 
89 
96  virtual PMString GetUniqueName( const PMString& inName, IDocument* inDoc ) = 0;
97 };
98 
99 //=============================================================================
100 
101 #endif //
102 
103 // IFormFieldFactory.h.