InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPreviewPrefs.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Paul Sorrick
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 // Interface that provides setting for Preview mode.
25 // There are currently four values: kPreviewOff, kPreviewToPage, kPreviewToBleed, kPreviewToSlug
26 //
27 //========================================================================================
28 
29 #ifndef __IPreviewPrefs__
30 #define __IPreviewPrefs__
31 
32 #include "IPMUnknown.h"
33 #include "LayoutID.h"
34 
35 class IPreviewPrefs : public IPMUnknown
36 {
37 public:
38  enum { kDefaultIID = IID_IPREVIEWPREFS };
39 
40  // Preview mode values
41  enum PreviewMode {
42  kPreviewOff = 0, // Regular drawing mode
43  kPreviewToPage, // "Hide everything off the page" mode
44  kPreviewToBleed, // "Hide everything beyond the bleed" mode
45  kPreviewToSlug // "Hide everything beyond the slug" mode
46  };
47 
48  virtual void SetPreviewMode(const PreviewMode preview) = 0;
49  virtual const PreviewMode GetPreviewMode() const = 0;
50  virtual bool IsPreviewOn() const = 0;
51 };
52 
53 #endif