InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
NonMarkingAGMGraphicsContext.h
1
//========================================================================================
2
//
3
// $File$
4
//
5
// Owner: Rishi Kumar
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 __NonMarkingAGMGraphicsContext__
25
#define __NonMarkingAGMGraphicsContext__
26
27
#include "AGMGraphicsContext.h"
28
#include "IViewPortArbitrator.h"
29
#include "IRasterPort.h"
30
31
/*
32
This class is constructed to mimic the construction and delayed destruction behavior of the stack based AGMGraphicsContext object behavior
33
*/
34
class
NonMarkingAGMGraphicsContext
:
public
IGraphicsContext
35
{
36
public
:
37
NonMarkingAGMGraphicsContext
(
IControlView
* view) :
38
arbitrator(GetExecutionContextSession(),
UseDefaultIID
()),
39
nonmarkingRasterPort(arbitrator->QueryNonMarkingRasterViewPort()),
40
nonmarkingViewPort(nonmarkingRasterPort, IID_IVIEWPORT),
41
gc(nonmarkingViewPort, view)
42
{
43
}
44
45
virtual
~
NonMarkingAGMGraphicsContext
()
46
{
47
}
48
49
// IGraphicsContext methods overrides
50
virtual
SysRgn
GetClip
()
const
{
return
gc.
GetClip
();}
51
52
virtual
SysRgn
GetOriginAdjustedClip
()
const
{
return
gc.
GetOriginAdjustedClip
();}
53
54
virtual
SysPort
GetSysPort
()
const
{
return
gc.
GetSysPort
();}
55
56
virtual
IViewPort
*
GetViewPort
()
const
{
return
gc.
GetViewPort
();}
57
58
virtual
const
PMMatrix
&
GetContentToViewTransform
()
const
{
return
gc.
GetContentToViewTransform
();}
59
60
virtual
const
PMMatrix
&
GetViewToContentTransform
()
const
{
return
gc.
GetViewToContentTransform
();}
61
62
virtual
IControlView
*
GetView
()
const
{
return
gc.
GetView
();}
63
64
virtual
bool16
IsCurrent
()
const
{
return
gc.
IsCurrent
();}
65
66
virtual
dvaui::drawbot::Drawbot*
GetDrawbot
()
const
{
return
gc.
GetDrawbot
();}
67
68
private
:
69
InterfacePtr<IViewPortArbitrator>
arbitrator;
70
InterfacePtr<IRasterPort>
nonmarkingRasterPort;
71
InterfacePtr<IViewPort>
nonmarkingViewPort;
72
AGMGraphicsContext
gc;
73
74
};
75
#endif
tmpdoxygeninput
NonMarkingAGMGraphicsContext.h
Generated on Sat Jul 19 2025 02:54:17 for InDesign SDK by
1.8.3.1