1c45d927aSAndrew Rist /************************************************************** 2c45d927aSAndrew Rist * 3c45d927aSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4c45d927aSAndrew Rist * or more contributor license agreements. See the NOTICE file 5c45d927aSAndrew Rist * distributed with this work for additional information 6c45d927aSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7c45d927aSAndrew Rist * to you under the Apache License, Version 2.0 (the 8c45d927aSAndrew Rist * "License"); you may not use this file except in compliance 9c45d927aSAndrew Rist * with the License. You may obtain a copy of the License at 10c45d927aSAndrew Rist * 11c45d927aSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13c45d927aSAndrew Rist * Unless required by applicable law or agreed to in writing, 14c45d927aSAndrew Rist * software distributed under the License is distributed on an 15c45d927aSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16c45d927aSAndrew Rist * KIND, either express or implied. See the License for the 17c45d927aSAndrew Rist * specific language governing permissions and limitations 18c45d927aSAndrew Rist * under the License. 19c45d927aSAndrew Rist * 20c45d927aSAndrew Rist *************************************************************/ 21c45d927aSAndrew Rist 22c45d927aSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _SD_TPOPTION_HXX 25cdf0e10cSrcweir #define _SD_TPOPTION_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir 28cdf0e10cSrcweir #ifndef _LSTBOX_HXX //autogen 29cdf0e10cSrcweir #include <vcl/lstbox.hxx> 30cdf0e10cSrcweir #endif 31cdf0e10cSrcweir #ifndef _GROUP_HXX //autogen 32cdf0e10cSrcweir #include <vcl/group.hxx> 33cdf0e10cSrcweir #endif 34cdf0e10cSrcweir #ifndef _FIXED_HXX //autogen 35cdf0e10cSrcweir #include <vcl/fixed.hxx> 36cdf0e10cSrcweir #endif 37cdf0e10cSrcweir #ifndef _FIELD_HXX //autogen 38cdf0e10cSrcweir #include <vcl/field.hxx> 39cdf0e10cSrcweir #endif 40cdf0e10cSrcweir #ifndef _BUTTON_HXX //autogen 41cdf0e10cSrcweir #include <vcl/button.hxx> 42cdf0e10cSrcweir #endif 43cdf0e10cSrcweir #include <svtools/stdctrl.hxx> 44cdf0e10cSrcweir #include <sfx2/tabdlg.hxx> 45cdf0e10cSrcweir #include <svx/optgrid.hxx> 46cdf0e10cSrcweir 47cdf0e10cSrcweir /************************************************************************* 48cdf0e10cSrcweir |* 49cdf0e10cSrcweir |* Optionen-Tab-Page: Snap 50cdf0e10cSrcweir |* 51cdf0e10cSrcweir \************************************************************************/ 52cdf0e10cSrcweir class SdTpOptionsSnap : public SvxGridTabPage 53cdf0e10cSrcweir { 54cdf0e10cSrcweir public: 55cdf0e10cSrcweir SdTpOptionsSnap( Window* pParent, const SfxItemSet& rInAttrs ); 56cdf0e10cSrcweir ~SdTpOptionsSnap(); 57cdf0e10cSrcweir 58cdf0e10cSrcweir static SfxTabPage* Create( Window*, const SfxItemSet& ); 59cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& ); 60cdf0e10cSrcweir virtual void Reset( const SfxItemSet & ); 61cdf0e10cSrcweir 62cdf0e10cSrcweir // virtual void ActivatePage( const SfxItemSet& rSet ); 63cdf0e10cSrcweir // virtual int DeactivatePage( SfxItemSet* pSet ); 64cdf0e10cSrcweir }; 65cdf0e10cSrcweir /************************************************************************* 66cdf0e10cSrcweir |* 67cdf0e10cSrcweir |* Optionen-Tab-Page: Contents (Inhalte) 68cdf0e10cSrcweir |* 69cdf0e10cSrcweir \************************************************************************/ 70cdf0e10cSrcweir class SdTpOptionsContents : public SfxTabPage 71cdf0e10cSrcweir { 72cdf0e10cSrcweir private: 73cdf0e10cSrcweir FixedLine aGrpDisplay; 74cdf0e10cSrcweir CheckBox aCbxRuler; 75cdf0e10cSrcweir CheckBox aCbxDragStripes; 76cdf0e10cSrcweir CheckBox aCbxHandlesBezier; 77cdf0e10cSrcweir CheckBox aCbxMoveOutline; 78cdf0e10cSrcweir 79cdf0e10cSrcweir 80cdf0e10cSrcweir public: 81cdf0e10cSrcweir SdTpOptionsContents( Window* pParent, const SfxItemSet& rInAttrs ); 82cdf0e10cSrcweir ~SdTpOptionsContents(); 83cdf0e10cSrcweir 84cdf0e10cSrcweir static SfxTabPage* Create( Window*, const SfxItemSet& ); 85cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& ); 86cdf0e10cSrcweir virtual void Reset( const SfxItemSet & ); 87cdf0e10cSrcweir }; 88cdf0e10cSrcweir 89cdf0e10cSrcweir /************************************************************************* 90cdf0e10cSrcweir |* 91cdf0e10cSrcweir |* Optionen-Tab-Page: View 92cdf0e10cSrcweir |* 93cdf0e10cSrcweir \************************************************************************/ 94cdf0e10cSrcweir class SdModule; 95cdf0e10cSrcweir class SdTpOptionsMisc : public SfxTabPage 96cdf0e10cSrcweir { 97cdf0e10cSrcweir friend class SdOptionsDlg; 98cdf0e10cSrcweir friend class SdModule; 99cdf0e10cSrcweir 100cdf0e10cSrcweir private: 101cdf0e10cSrcweir FixedLine aGrpText; 102cdf0e10cSrcweir CheckBox aCbxQuickEdit; 103cdf0e10cSrcweir CheckBox aCbxPickThrough; 104cdf0e10cSrcweir 105cdf0e10cSrcweir FixedLine aGrpProgramStart; 106cdf0e10cSrcweir CheckBox aCbxStartWithTemplate; 107cdf0e10cSrcweir 108cdf0e10cSrcweir FixedLine aGrpSettings; 109cdf0e10cSrcweir CheckBox aCbxMasterPageCache; 110cdf0e10cSrcweir CheckBox aCbxCopy; 111cdf0e10cSrcweir CheckBox aCbxMarkedHitMovesAlways; 112cdf0e10cSrcweir CheckBox aCbxCrookNoContortion; 113cdf0e10cSrcweir 114cdf0e10cSrcweir FixedText aTxtMetric; 115cdf0e10cSrcweir ListBox aLbMetric; 116cdf0e10cSrcweir FixedText aTxtTabstop; 117cdf0e10cSrcweir MetricField aMtrFldTabstop; 118cdf0e10cSrcweir 119cdf0e10cSrcweir CheckBox aCbxStartWithActualPage; 120*2da1a64cSAriel Constenla-Haile CheckBox aCbxStartWithPresenterScreen; 121cdf0e10cSrcweir FixedLine aGrpStartWithActualPage; 122cdf0e10cSrcweir FixedLine aTxtCompatibility; 123cdf0e10cSrcweir CheckBox aCbxUsePrinterMetrics; 124cdf0e10cSrcweir CheckBox aCbxCompatibility; 125cdf0e10cSrcweir 126cdf0e10cSrcweir //Scale 127cdf0e10cSrcweir FixedLine aGrpScale; 128cdf0e10cSrcweir FixedText aFtScale; 129cdf0e10cSrcweir ComboBox aCbScale; 130cdf0e10cSrcweir 131cdf0e10cSrcweir FixedText aFtOriginal; 132cdf0e10cSrcweir FixedText aFtEquivalent; 133cdf0e10cSrcweir 134cdf0e10cSrcweir FixedText aFtPageWidth; 135cdf0e10cSrcweir FixedInfo aFiInfo1; 136cdf0e10cSrcweir MetricField aMtrFldOriginalWidth; 137cdf0e10cSrcweir 138cdf0e10cSrcweir FixedText aFtPageHeight; 139cdf0e10cSrcweir FixedInfo aFiInfo2; 140cdf0e10cSrcweir MetricField aMtrFldOriginalHeight; 141cdf0e10cSrcweir 142cdf0e10cSrcweir MetricField aMtrFldInfo1; 143cdf0e10cSrcweir MetricField aMtrFldInfo2; 144cdf0e10cSrcweir 145cdf0e10cSrcweir sal_uInt32 nWidth; 146cdf0e10cSrcweir sal_uInt32 nHeight; 147cdf0e10cSrcweir String aInfo1; 148cdf0e10cSrcweir String aInfo2; 149cdf0e10cSrcweir 150cdf0e10cSrcweir SfxMapUnit ePoolUnit; 151cdf0e10cSrcweir 152cdf0e10cSrcweir String GetScale( sal_Int32 nX, sal_Int32 nY ); 153cdf0e10cSrcweir sal_Bool SetScale( const String& aScale, sal_Int32& rX, sal_Int32& rY ); 154cdf0e10cSrcweir 155cdf0e10cSrcweir DECL_LINK( ModifyScaleHdl, void * ); 156cdf0e10cSrcweir DECL_LINK( ModifyOriginalScaleHdl, void * ); 157cdf0e10cSrcweir DECL_LINK( SelectMetricHdl_Impl, ListBox * ); 158cdf0e10cSrcweir 159cdf0e10cSrcweir /** Enable or disable the controls in the compatibility section of the 160cdf0e10cSrcweir 'general' tab page depending on whether there is at least one 161cdf0e10cSrcweir document. 162cdf0e10cSrcweir */ 163cdf0e10cSrcweir void UpdateCompatibilityControls (void); 164cdf0e10cSrcweir 165cdf0e10cSrcweir protected: 166cdf0e10cSrcweir virtual void ActivatePage( const SfxItemSet& rSet ); 167cdf0e10cSrcweir virtual int DeactivatePage( SfxItemSet* pSet ); 168cdf0e10cSrcweir 169cdf0e10cSrcweir public: 170cdf0e10cSrcweir SdTpOptionsMisc( Window* pParent, const SfxItemSet& rInAttrs ); 171cdf0e10cSrcweir ~SdTpOptionsMisc(); 172cdf0e10cSrcweir 173cdf0e10cSrcweir static SfxTabPage* Create( Window*, const SfxItemSet& ); 174cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& ); 175cdf0e10cSrcweir virtual void Reset( const SfxItemSet & ); 176cdf0e10cSrcweir 177cdf0e10cSrcweir /** Hide Impress specific controls, make Draw specific controls visible 178cdf0e10cSrcweir and arrange the visible controls. Do not call this method or the 179cdf0e10cSrcweir <member>SetImpressMode()</member> method more than once. 180cdf0e10cSrcweir */ 181cdf0e10cSrcweir void SetDrawMode (void); 182cdf0e10cSrcweir 183cdf0e10cSrcweir /** Hide Draw specific controls, make Impress specific controls visible 184cdf0e10cSrcweir and arrange the visible controls. Do not call this method or the 185cdf0e10cSrcweir <member>SetDrawMode()</member> method more than once. 186cdf0e10cSrcweir */ 187cdf0e10cSrcweir void SetImpressMode (void); 188cdf0e10cSrcweir virtual void PageCreated (SfxAllItemSet aSet); 189cdf0e10cSrcweir 190cdf0e10cSrcweir using TabPage::ActivatePage; 191cdf0e10cSrcweir using TabPage::DeactivatePage; 192cdf0e10cSrcweir using OutputDevice::SetDrawMode; 193cdf0e10cSrcweir 194cdf0e10cSrcweir }; 195cdf0e10cSrcweir 196cdf0e10cSrcweir 197cdf0e10cSrcweir #endif // _SD_TPOPTION_HXX 198cdf0e10cSrcweir 199