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 aSizeOptimizationCB; 70 CheckBox aWarnAlienFormatCB; 71 FixedText aDocTypeFT; 72 ListBox aDocTypeLB; 73 FixedText aSaveAsFT; 74 ReadOnlyImage aSaveAsFI; 75 ListBox aSaveAsLB; 76 FixedImage aODFWarningFI; 77 FixedText aODFWarningFT; 78 79 SvxSaveTabPage_Impl* pImpl; 80 81 #ifdef _SVX_OPTSAVE_CXX 82 DECL_LINK( AutoClickHdl_Impl, CheckBox * ); 83 DECL_LINK( FilterHdl_Impl, ListBox * ); 84 DECL_LINK( ODFVersionHdl_Impl, ListBox * ); 85 86 bool AcceptFilter( sal_uInt16 nPos ); 87 void DetectHiddenControls(); 88 #endif 89 90 public: 91 SvxSaveTabPage( Window* pParent, const SfxItemSet& rSet ); 92 virtual ~SvxSaveTabPage(); 93 94 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet ); 95 96 virtual sal_Bool FillItemSet( SfxItemSet& rSet ); 97 virtual void Reset( const SfxItemSet& rSet ); 98 }; 99 100 #endif // #ifndef _SVX_OPTSAVE_HXX 101 102