xref: /trunk/main/cui/source/options/optsave.hxx (revision 972a6c96)
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 #ifndef _SVX_OPTSAVE_HXX
24 #define _SVX_OPTSAVE_HXX
25 
26 // include ---------------------------------------------------------------
27 
28 #include <vcl/group.hxx>
29 #include <vcl/field.hxx>
30 #include <vcl/fixed.hxx>
31 #include <vcl/lstbox.hxx>
32 #include <sfx2/tabdlg.hxx>
33 #include <com/sun/star/uno/Reference.h>
34 #include <readonlyimage.hxx>
35 
36 namespace com { namespace sun { namespace star {
37   namespace beans {
38     struct PropertyValue;
39 }}}}
40 
41 // define ----------------------------------------------------------------
42 
43 #define SfxSaveTabPage SvxSaveTabPage
44 
45 // class SvxSaveTabPage --------------------------------------------------
46 
47 struct SvxSaveTabPage_Impl;
48 
49 class SvxSaveTabPage : public SfxTabPage
50 {
51 private:
52     FixedLine               aLoadFL;
53     CheckBox                aLoadUserSettingsCB;
54     CheckBox                aLoadDocPrinterCB;
55 
56     FixedLine               aSaveFL;
57     CheckBox                aDocInfoCB;
58     ReadOnlyImage           aBackupFI;
59     CheckBox                aBackupCB;
60     CheckBox                aAutoSaveCB;
61     NumericField            aAutoSaveEdit;
62     FixedText               aMinuteFT;
63     CheckBox                aRelativeFsysCB;
64     CheckBox                aRelativeInetCB;
65 
66     FixedLine               aDefaultFormatFL;
67     FixedText               aODFVersionFT;
68     ListBox                 aODFVersionLB;
69     CheckBox                aODFEncryptionCB;
70     CheckBox                aSizeOptimizationCB;
71     CheckBox                aWarnAlienFormatCB;
72     FixedText               aDocTypeFT;
73     ListBox                 aDocTypeLB;
74     FixedText               aSaveAsFT;
75     ReadOnlyImage           aSaveAsFI;
76     ListBox                 aSaveAsLB;
77     FixedImage              aODFWarningFI;
78     FixedText               aODFWarningFT;
79 
80     SvxSaveTabPage_Impl*    pImpl;
81 
82 #ifdef _SVX_OPTSAVE_CXX
83 	DECL_LINK( AutoClickHdl_Impl, CheckBox * );
84     DECL_LINK( FilterHdl_Impl, ListBox * );
85     DECL_LINK( ODFVersionHdl_Impl, ListBox * );
86 
87     bool    AcceptFilter( sal_uInt16 nPos );
88     void    DetectHiddenControls();
89 #endif
90 
91 public:
92 	SvxSaveTabPage( Window* pParent, const SfxItemSet& rSet );
93 	virtual ~SvxSaveTabPage();
94 
95 	static SfxTabPage*	Create( Window* pParent, const SfxItemSet& rAttrSet );
96 
97 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
98 	virtual	void 		Reset( const SfxItemSet& rSet );
99 };
100 
101 #endif	// #ifndef _SVX_OPTSAVE_HXX
102 
103