update dev300-m58
[ooovba.git] / sc / source / ui / inc / areasdlg.hxx
blobc0044248b6810e9cb493e73f9745b8d3f8e384d4
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: areasdlg.hxx,v $
10 * $Revision: 1.5 $
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 ************************************************************************/
31 #ifndef SC_AREASDLG_HXX
32 #define SC_AREASDLG_HXX
34 #include "address.hxx"
36 #ifndef _LSTBOX_HXX //autogen
37 #include <vcl/lstbox.hxx>
38 #endif
39 #ifndef _FIXED_HXX //autogen
40 #include <vcl/fixed.hxx>
41 #endif
42 #include <anyrefdg.hxx>
44 class ScDocument;
45 class ScViewData;
46 class ScRangeUtil;
47 class ScRangeItem;
50 //============================================================================
52 class ScPrintAreasDlg : public ScAnyRefDlg
54 public:
55 ScPrintAreasDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent );
56 ~ScPrintAreasDlg();
58 virtual void SetReference( const ScRange& rRef, ScDocument* pDoc );
59 virtual void AddRefEntry();
61 virtual BOOL IsTableLocked() const;
63 virtual void SetActive();
64 virtual void Deactivate();
65 virtual BOOL Close();
67 private:
68 ListBox aLbPrintArea;
69 FixedLine aFlPrintArea;
70 formula::RefEdit aEdPrintArea;
71 formula::RefButton aRbPrintArea;
73 ListBox aLbRepeatRow;
74 FixedLine aFlRepeatRow;
75 formula::RefEdit aEdRepeatRow;
76 formula::RefButton aRbRepeatRow;
78 ListBox aLbRepeatCol;
79 FixedLine aFlRepeatCol;
80 formula::RefEdit aEdRepeatCol;
81 formula::RefButton aRbRepeatCol;
83 OKButton aBtnOk;
84 CancelButton aBtnCancel;
85 HelpButton aBtnHelp;
87 BOOL bDlgLostFocus;
88 formula::RefEdit* pRefInputEdit;
89 ScDocument* pDoc;
90 ScViewData* pViewData;
91 SCTAB nCurTab;
93 #ifdef _AREASDLG_CXX
94 private:
95 void Impl_Reset();
96 BOOL Impl_CheckRefStrings();
97 void Impl_FillLists();
98 BOOL Impl_GetItem( Edit* pEd, SfxStringItem& rItem );
100 // Handler:
101 DECL_LINK( Impl_SelectHdl, ListBox* );
102 DECL_LINK( Impl_ModifyHdl, formula::RefEdit* );
103 DECL_LINK( Impl_BtnHdl, PushButton* );
104 DECL_LINK( Impl_GetFocusHdl, Control* );
105 #endif
110 #endif