InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ILayoutViewUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Bernd Paradies
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 __ILayoutViewUtils__
25 #define __ILayoutViewUtils__
26 
27 #include "LayoutUIID.h"
28 #include "IPMUnknown.h"
29 #include "Utils.h"
30 
31 #include "PMRect.h"
32 #include "ILayoutControlData.h"
33 #include "IDocumentPresentation.h"
34 
35 
38 {
39 public:
40  enum { kDefaultIID = IID_ILAYOUTVIEWUTILS };
41 
45  virtual void ShowSplitLayoutView(IDocumentPresentation* documentPresentation) = 0;
46 
50  virtual void HideSplitLayoutView(IDocumentPresentation* documentPresentation) = 0;
51 
55  virtual void ToggleSplitLayoutView(IDocumentPresentation* documentPresentation) = 0;
56 
61  virtual bool16 IsSplitLayoutViewShown(IDocumentPresentation* documentPresentation) const = 0;
62 
68  virtual void GetAllLayoutViews(K2Vector<IControlView*>& layoutViews, const IControlView* exceptView, IDataBase* db) = 0;
69 
79  virtual void ZoomLayoutViews(K2Vector<IControlView*>& layoutViews, K2Vector<PBPMPoint>& zoomToPoints, bool16 bZoomIn, PMReal newScaleFactor = -1, ILayoutControlData::FitSetting fit = ILayoutControlData::kFitNone) = 0;
80 
86  virtual void GatherSpreadRects(PMRectCollection& rectList, IDocument* document) = 0;
87 
90  virtual PBPMPoint TransformPointToNewSpread(const PBPMPoint& sourcePoint, const PBPMPoint& targetPoint, PMRectCollection& rectList) = 0;
91 };
92 
93 #endif // __ILayoutViewUtils__