InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
SelectionSnapshotData.h
1
//========================================================================================
2
//
3
// $File$
4
//
5
// Owner: Rich Gartland
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 __SelectionSnapshotData__
25
#define __SelectionSnapshotData__
26
27
#include "InterfacePtr.h"
28
#include "ISelectionSnapshotSuite.h"
29
30
//---------------------------------------------------------------
31
//
32
// class SelectionSnapshotData
33
//
34
//---------------------------------------------------------------
42
class
SelectionSnapshotData
43
{
44
public
:
45
virtual
~
SelectionSnapshotData
() {}
46
51
virtual
ClassID
GetOwningCSBClass
()
const
= 0;
52
53
protected
:
54
SelectionSnapshotData
() {};
55
56
private
:
57
// Disallow copy & assignment to avoid possible splicing
58
SelectionSnapshotData
(
const
SelectionSnapshotData
& other);
59
SelectionSnapshotData
& operator=(
const
SelectionSnapshotData
& other);
60
};
61
62
63
//---------------------------------------------------------------
64
//
65
// class SelectionSnapshotDesc
66
//
67
//---------------------------------------------------------------
68
72
class
SelectionSnapshotDesc
:
public
SelectionSnapshotData
{
73
public
:
74
typedef
object_type
data_type
;
75
SelectionSnapshotDesc
(
const
ClassID
owningCSBClass,
const
ISelectionSnapshotSuite
* adoptSnapShotData) : fCSBClass(owningCSBClass), fSnapshotData(adoptSnapShotData) {}
76
81
virtual
ClassID
GetOwningCSBClass
()
const
{
return
fCSBClass; }
82
87
const
ISelectionSnapshotSuite
*
GetSnapShotData
()
const
{
return
fSnapshotData.
get
(); };
88
89
private
:
90
// Disallow copy & assignment to avoid possible splicing
91
SelectionSnapshotDesc
(
const
SelectionSnapshotDesc
& copy);
92
SelectionSnapshotDesc
& operator=(
const
SelectionSnapshotDesc
& other);
93
94
// Data
95
ClassID
fCSBClass;
96
InterfacePtr<const ISelectionSnapshotSuite>
fSnapshotData;
97
};
98
99
#endif // __SelectionSnapshotData__
tmpdoxygeninput
SelectionSnapshotData.h
Generated on Sat Jul 19 2025 02:54:18 for InDesign SDK by
1.8.3.1