xref: /aoo4110/main/sd/source/ui/inc/prntopts.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SD_PRNTOPTS_HXX
25 #define _SD_PRNTOPTS_HXX
26 
27 #include <vcl/group.hxx>
28 
29 #ifndef _SV_BUTTON_HXX //autogen
30 #include <vcl/button.hxx>
31 #endif
32 #include <sfx2/tabdlg.hxx>
33 #include <vcl/fixed.hxx>
34 
35 /*
36 enum PrintType
37 {
38 	PT_DRAWING,
39 	PT_NOTES,
40 	PT_HANDOUT,
41 	PT_OUTLINE
42 };
43 */
44 class SdModule;
45 class SdPrintOptions : public SfxTabPage
46 {
47  friend class SdOptionsDlg;
48  friend class SdModule;
49 
50 private:
51     FixedLine           aGrpPrint;
52     CheckBox            aCbxDraw;
53 	CheckBox			aCbxNotes;
54 	CheckBox			aCbxHandout;
55 	CheckBox			aCbxOutline;
56 
57     FixedLine           aSeparator1FL;
58     FixedLine           aGrpOutput;
59     RadioButton         aRbtColor;
60 	RadioButton			aRbtGrayscale;
61 	RadioButton			aRbtBlackWhite;
62 
63     FixedLine           aGrpPrintExt;
64     CheckBox            aCbxPagename;
65 	CheckBox			aCbxDate;
66 	CheckBox			aCbxTime;
67     CheckBox            aCbxHiddenPages;
68 
69     FixedLine           aSeparator2FL;
70     FixedLine           aGrpPageoptions;
71     RadioButton         aRbtDefault;
72 	RadioButton 		aRbtPagesize;
73 	RadioButton			aRbtPagetile;
74 	RadioButton			aRbtBooklet;
75 	CheckBox			aCbxFront;
76 	CheckBox			aCbxBack;
77 
78 	CheckBox			aCbxPaperbin;
79 
80 	const SfxItemSet&	rOutAttrs;
81 
82 	DECL_LINK( ClickCheckboxHdl, CheckBox * );
83 	DECL_LINK( ClickBookletHdl, CheckBox * );
84 
85 	void updateControls();
86 
87 	using OutputDevice::SetDrawMode;
88 public:
89             SdPrintOptions( Window* pParent, const SfxItemSet& rInAttrs);
90 			~SdPrintOptions();
91 
92 	static	SfxTabPage* Create( Window*, const SfxItemSet& );
93 
94 	virtual sal_Bool FillItemSet( SfxItemSet& );
95 	virtual void Reset( const SfxItemSet & );
96 
97     void    SetDrawMode();
98 	virtual void		PageCreated (SfxAllItemSet aSet);
99 };
100 
101 
102 
103 #endif // _SD_PRNTOPTS_HXX
104 
105 
106