InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
DocumentPresFindCriteria.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Dave Burnard
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 _DocumentPresFindCriteria_
25 #define _DocumentPresFindCriteria_
26 
27 #include "IDocumentPresentation.h"
28 #include "IDocumentUIUtils.h"
29 
80 {
81  static unary_presentation_predicate accept_all;
82 
83  static unary_presentation_predicate is_active;
84  static unary_presentation_predicate is_frontmost_in_tabgroup;
85  static unary_presentation_predicate is_layout;
86  static unary_presentation_predicate is_floating;
87  static unary_presentation_predicate is_minimized;
88  static unary_presentation_predicate is_autonomous;
89  static unary_presentation_predicate is_visible;
90  static unary_presentation_predicate is_not_minimized;
91 
92  static unary_presentation_predicate IC_in_layoutmode;
93  static unary_presentation_predicate IC_in_galleymode;
94  static unary_presentation_predicate IC_in_storymode;
95  static unary_presentation_predicate IC_in_galleyorstory;
96 
97  static FindPresentation_PreferCriteria empty;
98 };
99 
123 {
124  //functors that test some quality of a potential relative
125  static binary_presentation_predicate accept_all;
126 
127  static binary_presentation_predicate is_active;
128  static binary_presentation_predicate is_frontmost_in_tabgroup;
129  static binary_presentation_predicate is_layout;
130  static binary_presentation_predicate is_floating;
131  static binary_presentation_predicate is_minimized;
132  static binary_presentation_predicate is_autonomous;
133  static binary_presentation_predicate is_visible;
134 
135  static binary_presentation_predicate IC_in_layoutmode;
136  static binary_presentation_predicate IC_in_galleymode;
137  static binary_presentation_predicate IC_in_storymode;
138  static binary_presentation_predicate IC_in_galleyorstory;
139 
140  //functors that do some sort of comparison between two potential relatives
141  static binary_presentation_predicate is_samekind;
142  static binary_presentation_predicate isnot_samekind;
143  static binary_presentation_predicate is_samedocument;
144  static binary_presentation_predicate isnot_samedocument;
145 
146  static FindRelatedPresentation_PreferCriteria empty;
147 };
148 
149 #endif /* DocumentPresFindCriteria */