1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: areasdlg.hxx,v $
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>
39 #ifndef _FIXED_HXX //autogen
40 #include <vcl/fixed.hxx>
42 #include <anyrefdg.hxx>
50 //============================================================================
52 class ScPrintAreasDlg
: public ScAnyRefDlg
55 ScPrintAreasDlg( SfxBindings
* pB
, SfxChildWindow
* pCW
, Window
* pParent
);
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();
69 FixedLine aFlPrintArea
;
70 formula::RefEdit aEdPrintArea
;
71 formula::RefButton aRbPrintArea
;
74 FixedLine aFlRepeatRow
;
75 formula::RefEdit aEdRepeatRow
;
76 formula::RefButton aRbRepeatRow
;
79 FixedLine aFlRepeatCol
;
80 formula::RefEdit aEdRepeatCol
;
81 formula::RefButton aRbRepeatCol
;
84 CancelButton aBtnCancel
;
88 formula::RefEdit
* pRefInputEdit
;
90 ScViewData
* pViewData
;
96 BOOL
Impl_CheckRefStrings();
97 void Impl_FillLists();
98 BOOL
Impl_GetItem( Edit
* pEd
, SfxStringItem
& rItem
);
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
* );