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 24 #ifndef SC_AREASDLG_HXX 25 #define SC_AREASDLG_HXX 26 27 #include "address.hxx" 28 29 #ifndef _LSTBOX_HXX //autogen 30 #include <vcl/lstbox.hxx> 31 #endif 32 #ifndef _FIXED_HXX //autogen 33 #include <vcl/fixed.hxx> 34 #endif 35 #include <anyrefdg.hxx> 36 37 class ScDocument; 38 class ScViewData; 39 class ScRangeUtil; 40 class ScRangeItem; 41 42 43 //============================================================================ 44 45 class ScPrintAreasDlg : public ScAnyRefDlg 46 { 47 public: 48 ScPrintAreasDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent ); 49 ~ScPrintAreasDlg(); 50 51 virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ); 52 virtual void AddRefEntry(); 53 54 virtual sal_Bool IsTableLocked() const; 55 56 virtual void SetActive(); 57 virtual void Deactivate(); 58 virtual sal_Bool Close(); 59 60 private: 61 FixedLine aFlPrintArea; 62 ListBox aLbPrintArea; 63 formula::RefEdit aEdPrintArea; 64 formula::RefButton aRbPrintArea; 65 66 FixedLine aFlRepeatRow; 67 ListBox aLbRepeatRow; 68 formula::RefEdit aEdRepeatRow; 69 formula::RefButton aRbRepeatRow; 70 71 FixedLine aFlRepeatCol; 72 ListBox aLbRepeatCol; 73 formula::RefEdit aEdRepeatCol; 74 formula::RefButton aRbRepeatCol; 75 76 OKButton aBtnOk; 77 CancelButton aBtnCancel; 78 HelpButton aBtnHelp; 79 80 sal_Bool bDlgLostFocus; 81 formula::RefEdit* pRefInputEdit; 82 ScDocument* pDoc; 83 ScViewData* pViewData; 84 SCTAB nCurTab; 85 86 #ifdef _AREASDLG_CXX 87 private: 88 void Impl_Reset(); 89 sal_Bool Impl_CheckRefStrings(); 90 void Impl_FillLists(); 91 sal_Bool Impl_GetItem( Edit* pEd, SfxStringItem& rItem ); 92 93 // Handler: 94 DECL_LINK( Impl_SelectHdl, ListBox* ); 95 DECL_LINK( Impl_ModifyHdl, formula::RefEdit* ); 96 DECL_LINK( Impl_BtnHdl, PushButton* ); 97 DECL_LINK( Impl_GetFocusHdl, Control* ); 98 #endif 99 }; 100 101 102 103 #endif 104 105