xref: /trunk/main/cui/source/options/optsave.hxx (revision 972a6c96)
1c4eee24dSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3c4eee24dSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4c4eee24dSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5c4eee24dSAndrew Rist  * distributed with this work for additional information
6c4eee24dSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7c4eee24dSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8c4eee24dSAndrew Rist  * "License"); you may not use this file except in compliance
9c4eee24dSAndrew Rist  * with the License.  You may obtain a copy of the License at
10c4eee24dSAndrew Rist  *
11c4eee24dSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12c4eee24dSAndrew Rist  *
13c4eee24dSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14c4eee24dSAndrew Rist  * software distributed under the License is distributed on an
15c4eee24dSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16c4eee24dSAndrew Rist  * KIND, either express or implied.  See the License for the
17c4eee24dSAndrew Rist  * specific language governing permissions and limitations
18c4eee24dSAndrew Rist  * under the License.
19c4eee24dSAndrew Rist  *
20c4eee24dSAndrew Rist  *************************************************************/
21c4eee24dSAndrew Rist 
22c4eee24dSAndrew Rist 
23cdf0e10cSrcweir #ifndef _SVX_OPTSAVE_HXX
24cdf0e10cSrcweir #define _SVX_OPTSAVE_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir // include ---------------------------------------------------------------
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #include <vcl/group.hxx>
29cdf0e10cSrcweir #include <vcl/field.hxx>
30cdf0e10cSrcweir #include <vcl/fixed.hxx>
31cdf0e10cSrcweir #include <vcl/lstbox.hxx>
32cdf0e10cSrcweir #include <sfx2/tabdlg.hxx>
33cdf0e10cSrcweir #include <com/sun/star/uno/Reference.h>
34cdf0e10cSrcweir #include <readonlyimage.hxx>
35cdf0e10cSrcweir 
36cdf0e10cSrcweir namespace com { namespace sun { namespace star {
37cdf0e10cSrcweir   namespace beans {
38cdf0e10cSrcweir     struct PropertyValue;
39cdf0e10cSrcweir }}}}
40cdf0e10cSrcweir 
41cdf0e10cSrcweir // define ----------------------------------------------------------------
42cdf0e10cSrcweir 
43cdf0e10cSrcweir #define SfxSaveTabPage SvxSaveTabPage
44cdf0e10cSrcweir 
45cdf0e10cSrcweir // class SvxSaveTabPage --------------------------------------------------
46cdf0e10cSrcweir 
47cdf0e10cSrcweir struct SvxSaveTabPage_Impl;
48cdf0e10cSrcweir 
49cdf0e10cSrcweir class SvxSaveTabPage : public SfxTabPage
50cdf0e10cSrcweir {
51cdf0e10cSrcweir private:
52cdf0e10cSrcweir     FixedLine               aLoadFL;
53cdf0e10cSrcweir     CheckBox                aLoadUserSettingsCB;
54cdf0e10cSrcweir     CheckBox                aLoadDocPrinterCB;
55cdf0e10cSrcweir 
56cdf0e10cSrcweir     FixedLine               aSaveFL;
57cdf0e10cSrcweir     CheckBox                aDocInfoCB;
58cdf0e10cSrcweir     ReadOnlyImage           aBackupFI;
59cdf0e10cSrcweir     CheckBox                aBackupCB;
60cdf0e10cSrcweir     CheckBox                aAutoSaveCB;
61cdf0e10cSrcweir     NumericField            aAutoSaveEdit;
62cdf0e10cSrcweir     FixedText               aMinuteFT;
63cdf0e10cSrcweir     CheckBox                aRelativeFsysCB;
64cdf0e10cSrcweir     CheckBox                aRelativeInetCB;
65cdf0e10cSrcweir 
66cdf0e10cSrcweir     FixedLine               aDefaultFormatFL;
67cdf0e10cSrcweir     FixedText               aODFVersionFT;
68cdf0e10cSrcweir     ListBox                 aODFVersionLB;
69*972a6c96SJuergen Schmidt     CheckBox                aODFEncryptionCB;
70cdf0e10cSrcweir     CheckBox                aSizeOptimizationCB;
71cdf0e10cSrcweir     CheckBox                aWarnAlienFormatCB;
72cdf0e10cSrcweir     FixedText               aDocTypeFT;
73cdf0e10cSrcweir     ListBox                 aDocTypeLB;
74cdf0e10cSrcweir     FixedText               aSaveAsFT;
75cdf0e10cSrcweir     ReadOnlyImage           aSaveAsFI;
76cdf0e10cSrcweir     ListBox                 aSaveAsLB;
77cdf0e10cSrcweir     FixedImage              aODFWarningFI;
78cdf0e10cSrcweir     FixedText               aODFWarningFT;
79cdf0e10cSrcweir 
80cdf0e10cSrcweir     SvxSaveTabPage_Impl*    pImpl;
81cdf0e10cSrcweir 
82cdf0e10cSrcweir #ifdef _SVX_OPTSAVE_CXX
83cdf0e10cSrcweir 	DECL_LINK( AutoClickHdl_Impl, CheckBox * );
84cdf0e10cSrcweir     DECL_LINK( FilterHdl_Impl, ListBox * );
85cdf0e10cSrcweir     DECL_LINK( ODFVersionHdl_Impl, ListBox * );
86cdf0e10cSrcweir 
87cdf0e10cSrcweir     bool    AcceptFilter( sal_uInt16 nPos );
88cdf0e10cSrcweir     void    DetectHiddenControls();
89cdf0e10cSrcweir #endif
90cdf0e10cSrcweir 
91cdf0e10cSrcweir public:
92cdf0e10cSrcweir 	SvxSaveTabPage( Window* pParent, const SfxItemSet& rSet );
93cdf0e10cSrcweir 	virtual ~SvxSaveTabPage();
94cdf0e10cSrcweir 
95cdf0e10cSrcweir 	static SfxTabPage*	Create( Window* pParent, const SfxItemSet& rAttrSet );
96cdf0e10cSrcweir 
97cdf0e10cSrcweir 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
98cdf0e10cSrcweir 	virtual	void 		Reset( const SfxItemSet& rSet );
99cdf0e10cSrcweir };
100cdf0e10cSrcweir 
101cdf0e10cSrcweir #endif	// #ifndef _SVX_OPTSAVE_HXX
102cdf0e10cSrcweir 
103