2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_SC_SOURCE_UI_INC_AREASDLG_HXX
20 #define INCLUDED_SC_SOURCE_UI_INC_AREASDLG_HXX
22 #include "address.hxx"
24 #include <svl/stritem.hxx>
25 #include <vcl/lstbox.hxx>
26 #include <vcl/fixed.hxx>
27 #include "anyrefdg.hxx"
32 class ScPrintAreasDlg
: public ScAnyRefDlg
35 ScPrintAreasDlg( SfxBindings
* pB
, SfxChildWindow
* pCW
, vcl::Window
* pParent
);
36 virtual ~ScPrintAreasDlg();
37 virtual void dispose() SAL_OVERRIDE
;
39 virtual void SetReference( const ScRange
& rRef
, ScDocument
* pDoc
) SAL_OVERRIDE
;
40 virtual void AddRefEntry() SAL_OVERRIDE
;
42 virtual bool IsTableLocked() const SAL_OVERRIDE
;
44 virtual void SetActive() SAL_OVERRIDE
;
45 virtual void Deactivate() SAL_OVERRIDE
;
46 virtual bool Close() SAL_OVERRIDE
;
49 VclPtr
<ListBox
> pLbPrintArea
;
50 VclPtr
<formula::RefEdit
> pEdPrintArea
;
51 VclPtr
<formula::RefButton
> pRbPrintArea
;
53 VclPtr
<ListBox
> pLbRepeatRow
;
54 VclPtr
<formula::RefEdit
> pEdRepeatRow
;
55 VclPtr
<formula::RefButton
> pRbRepeatRow
;
57 VclPtr
<ListBox
> pLbRepeatCol
;
58 VclPtr
<formula::RefEdit
> pEdRepeatCol
;
59 VclPtr
<formula::RefButton
> pRbRepeatCol
;
61 VclPtr
<OKButton
> pBtnOk
;
62 VclPtr
<CancelButton
> pBtnCancel
;
65 VclPtr
<formula::RefEdit
> pRefInputEdit
;
67 ScViewData
* pViewData
;
71 bool Impl_CheckRefStrings();
72 void Impl_FillLists();
73 bool Impl_GetItem( Edit
* pEd
, SfxStringItem
& rItem
);
76 DECL_LINK( Impl_SelectHdl
, ListBox
* );
77 DECL_LINK( Impl_ModifyHdl
, formula::RefEdit
* );
78 DECL_LINK( Impl_BtnHdl
, PushButton
* );
79 DECL_LINK( Impl_GetFocusHdl
, Control
* );
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */