InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IMeasurementType.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: lance bushore
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 __IMeasurementType__
25 #define __IMeasurementType__
26 
27 #include "IPMUnknown.h"
28 #include "K2Vector.h"
29 #include "widgetid.h"
30 
32 {
33 public:
34  enum { kDefaultIID = IID_IMEASUREMENTTYPE };
35 
36  virtual int32 GetUnitOfMeasureIndex() const = 0;
37 
38  // clients return false if they don't want their strings dynamically changed.
39  virtual bool16 ShouldRebuildStringList() const = 0;
40 
41  typedef enum { kTextMeasureKind, kObjectMeasureKind, kTextMeasureOffsetKind } MeasureKind;
42  virtual MeasureKind WhatKind() const = 0;
43 
44  virtual void GetMeasurementEntries(K2Vector<PMString*> *measureEntries) const = 0;
45 
46  // set this value to true if you need the edit box to switch x and y measure based on
47  // vertical text direction
48  virtual void SetCheckVertical(bool16 checkVertical) = 0;
49  virtual bool16 GetCheckVertical() const = 0;
50 };
51 
52 #endif //__IMeasurementType__