InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IApplyCJKGridDirection.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Heath Lynn
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 // Notes: The ApplyCJKGridCmd applies the attributes of the CJKGrid to a
24 // specified range of text. Due to constraints on scaling attributes
25 // the attributes are applied differently depending on the direction
26 // of the story. This optional data interface allows you to force
27 // the attributes to be applied using a particular direction. By
28 // default, this data merely uses the story direction.
29 //
30 //========================================================================================
31 
32 #ifndef __ApplyCJKGridDirection__
33 #define __ApplyCJKGridDirection__
34 
35 #include "IPMUnknown.h"
36 #include "ICompositionStyle.h"
37 #include "CTextEnum.h"
38 #include "IDrawingStyle.h"
39 
40 class ICJKGridData;
42 
50 {
51 
52 public:
53 
57  {
58  kApplyStoryDirection,
59  kForceVerticalDirection,
60  kForceHorizontalDirection
61  };
62 
63 
64 
68  virtual ApplyDirection GetDirectionOption() = 0;
69 
73  virtual void SetDirectionOption( ApplyDirection applyDirection ) = 0;
74 
75 };
76 
77 #endif