InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
ShellGraphicsContext.h
1
//========================================================================================
2
//
3
// $File$
4
//
5
// Owner: Brendan O'Shea
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 __ShellGraphicsContext__
25
#define __ShellGraphicsContext__
26
27
#include "IGraphicsContext.h"
28
#include "K2Assert.h"
29
#include "PMMatrix.h"
30
31
class
IControlView
;
32
class
IViewPort
;
33
class
ITransform
;
34
35
#ifdef PUBLIC_BUILD
36
#endif
37
38
39
//========================================================================================
40
// CLASS ShellGraphicsContext - A shell around an IGraphicsContext, holds the passed in
41
// constructor parameters & returns them when asked. Most useful
42
// for taking an existing AGMGraphicsContext & applying some
43
// transformation to it (e.g. master pages).
44
//========================================================================================
45
46
class
ShellGraphicsContext
:
public
IGraphicsContext
47
{
48
public
:
49
50
// ----- Initialization -----
51
52
ShellGraphicsContext
(SysRgn clipRgn, SysRgn originAdjustedClip,
53
SysPort sysPort,
IViewPort
* viewPort,
54
ITransform
* xform,
IControlView
*controlView);
55
56
ShellGraphicsContext
(SysRgn clipRgn, SysRgn originAdjustedClip,
57
SysPort sysPort,
IViewPort
* viewPort,
58
const
PMMatrix
& theMatrix,
IControlView
*controlView);
59
60
// ----- Clipping -----
61
62
virtual
SysRgn
GetClip
()
const
;
63
virtual
SysRgn
GetOriginAdjustedClip
()
const
;
64
65
// ----- Accessors -----
66
67
virtual
SysPort
GetSysPort
()
const
;
68
virtual
IViewPort
*
GetViewPort
()
const
;
69
virtual
const
PMMatrix
&
GetContentToViewTransform
()
const
;
70
virtual
const
PMMatrix
&
GetViewToContentTransform
()
const
;
71
virtual
IControlView
*
GetView
()
const
;
72
73
virtual
bool16
IsCurrent
()
const
;
74
75
virtual
dvaui::drawbot::Drawbot*
GetDrawbot
()
const
76
{
77
return
NULL;
78
}
79
80
private
:
81
82
// ----- Data fields -----
83
SysPort fSysPort;
84
IViewPort
* fViewPort;
85
PMMatrix
fTransform;
86
PMMatrix
fInvTransform;
87
bool16 fInverseValid;
88
IControlView
* fControlView;
89
SysRgn fClipRgn;
90
SysRgn fOriginAdjustedClip;
91
};
92
93
94
#endif
tmpdoxygeninput
ShellGraphicsContext.h
Generated on Sat Jul 19 2025 02:54:18 for InDesign SDK by
1.8.3.1