Update ooo320-m1
[ooovba.git] / svx / source / cui / optsave.hxx
blob4971ccc68aeaa3255a3bd7bd01dad5be0a78e088
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: optsave.hxx,v $
10 * $Revision: 1.11 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SVX_OPTSAVE_HXX
31 #define _SVX_OPTSAVE_HXX
33 // include ---------------------------------------------------------------
35 #include <vcl/group.hxx>
36 #include <vcl/field.hxx>
37 #include <vcl/fixed.hxx>
38 #include <vcl/lstbox.hxx>
39 #include <sfx2/tabdlg.hxx>
40 #include <com/sun/star/uno/Reference.h>
41 #include <readonlyimage.hxx>
43 namespace com { namespace sun { namespace star {
44 namespace beans {
45 struct PropertyValue;
46 }}}}
48 // define ----------------------------------------------------------------
50 #define SfxSaveTabPage SvxSaveTabPage
52 // class SvxSaveTabPage --------------------------------------------------
54 struct SvxSaveTabPage_Impl;
56 class SvxSaveTabPage : public SfxTabPage
58 private:
59 FixedLine aLoadFL;
60 CheckBox aLoadUserSettingsCB;
61 CheckBox aLoadDocPrinterCB;
63 FixedLine aSaveFL;
64 CheckBox aDocInfoCB;
65 ReadOnlyImage aBackupFI;
66 CheckBox aBackupCB;
67 CheckBox aAutoSaveCB;
68 NumericField aAutoSaveEdit;
69 FixedText aMinuteFT;
70 CheckBox aRelativeFsysCB;
71 CheckBox aRelativeInetCB;
73 FixedLine aDefaultFormatFL;
74 FixedText aODFVersionFT;
75 ListBox aODFVersionLB;
76 CheckBox aSizeOptimizationCB;
77 CheckBox aWarnAlienFormatCB;
78 FixedText aDocTypeFT;
79 ListBox aDocTypeLB;
80 FixedText aSaveAsFT;
81 ReadOnlyImage aSaveAsFI;
82 ListBox aSaveAsLB;
83 FixedImage aODFWarningFI;
84 FixedText aODFWarningFT;
86 SvxSaveTabPage_Impl* pImpl;
88 #ifdef _SVX_OPTSAVE_CXX
89 DECL_LINK( AutoClickHdl_Impl, CheckBox * );
90 DECL_LINK( FilterHdl_Impl, ListBox * );
91 DECL_LINK( ODFVersionHdl_Impl, ListBox * );
93 bool AcceptFilter( USHORT nPos );
94 void DetectHiddenControls();
95 #endif
97 public:
98 SvxSaveTabPage( Window* pParent, const SfxItemSet& rSet );
99 virtual ~SvxSaveTabPage();
101 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
103 virtual BOOL FillItemSet( SfxItemSet& rSet );
104 virtual void Reset( const SfxItemSet& rSet );
107 #endif // #ifndef _SVX_OPTSAVE_HXX