InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISectionUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Ryan Gano
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
18 //
19 // NOTICE: All information contained herein is, and remains
20 // the property of Adobe Systems Incorporated and its suppliers,
21 // if any. The intellectual and technical concepts contained
22 // herein are proprietary to Adobe Systems Incorporated and its
23 // suppliers and may be covered by U.S. and Foreign Patents,
24 // patents in process, and are protected by trade secret or copyright law.
25 // Dissemination of this information or reproduction of this material
26 // is strictly forbidden unless prior written permission is obtained
27 // from Adobe Systems Incorporated.
28 //
29 //========================================================================================
30 
31 #ifndef __ISectionUtils__
32 #define __ISectionUtils__
33 
34 #include "SectionID.h"
35 #include "WidgetDefs.h"
36 
37 class IDocument;
38 class ISection;
39 
42 class ISectionUtils : public IPMUnknown
43 {
44 public:
45  enum { kDefaultIID = IID_ISECTIONUTILS };
46 
49  virtual bool16 IsPageStartOfSection(const UIDRef& pageRef, int32* sectionIndex = nil) = 0;
50 
54  virtual ErrorCode RemoveEmptySection(IDocument* doc) = 0;
55 
62  virtual bool16 IsLegalAlternateLayoutName(IDocument* doc, const PMString& nameToCheck, const PMString& nameToSkip) = 0;
63 
72  virtual void GetSectionNames(IDocument* doc, K2Vector<PMString>& sectionNames, PageNameStyle style) = 0;
73 };
74 
75 
76 #endif // __ISectionUtils__