InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
LinkQuery.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael Easter
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 // Description:
24 // This class provides functionality to construct a link query.
25 //
26 //========================================================================================
27 
28 #ifndef __LinkQuery__
29 #define __LinkQuery__
30 
31 // ----- Includes -----
32 #include "ILink.h"
33 
34 class LinkQueryData;
35 
36 
58 class LinkQuery
59 {
60 public:
65  LinkQuery();
66 
72  LinkQuery(const LinkQuery& query);
73 
78  virtual ~LinkQuery();
79 
86  LinkQuery& operator=(const LinkQuery& rhs);
87 
94  bool operator==(const LinkQuery& rhs) const;
95 
102  bool operator!=(const LinkQuery& rhs) const;
103 
109  void SetLinkType(ILink::LinkType type);
110 
116  void SetChild(UID child);
117 
123  void SetParent(UID parent);
124 
130  void SetResource(UID resourceUID);
131 
138 
144  void SetObject(UID objectUID);
145 
152 
159 
166 
173  void SetShowInUI(bool16 bShowInUI);
174 
179  bool IsEmpty() const;
180 
184  void Clear();
185 
186 private:
187  friend class LinkManager;
188  friend class ScrapLinkManager;
189 
190  LinkQueryData* fData;
191 };
192 
193 #endif // __LinkQuery__