InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
AutoGSave.h
1
//========================================================================================
2
//
3
// $File$
4
//
5
// Owner: Sanjay 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
// Purpose of class
24
// AutoGSave is to used with IGraphicsPort to automatically call gsave and grestore
25
//
26
//========================================================================================
27
28
#ifndef __AUTOGSAVE__
29
#define __AUTOGSAVE__
30
31
#include "IGraphicsPort.h"
32
113
class
AutoGSave
114
{
115
public
:
118
explicit
AutoGSave
(
IGraphicsPort
* graphicsPort):fGraphicsPort(graphicsPort)
119
{
120
fGraphicsPort->
gsave
();
121
}
124
~AutoGSave
()
125
{
126
fGraphicsPort->
grestore
();
127
}
128
129
private
:
130
IGraphicsPort
* fGraphicsPort;
131
};
132
133
#endif //__AUTOGSAVE__
tmpdoxygeninput
AutoGSave.h
Generated on Sat Jul 19 2025 02:54:11 for InDesign SDK by
1.8.3.1