fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / inc / consdlg.hxx
blob0c09811eb3ddfe4da3e7b710e925d3f73636ee70
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SC_SOURCE_UI_INC_CONSDLG_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_CONSDLG_HXX
23 #include <vcl/fixed.hxx>
24 #include <vcl/lstbox.hxx>
25 #include <vcl/group.hxx>
26 #include <vcl/layout.hxx>
27 #include <vcl/morebtn.hxx>
28 #include "global.hxx"
29 #include "anyrefdg.hxx"
31 class ScViewData;
32 class ScDocument;
33 class ScRangeUtil;
34 class ScAreaData;
36 class ScConsolidateDlg : public ScAnyRefDlg
38 public:
39 ScConsolidateDlg( SfxBindings* pB, SfxChildWindow* pCW, vcl::Window* pParent,
40 const SfxItemSet& rArgSet );
41 virtual ~ScConsolidateDlg();
42 virtual void dispose() SAL_OVERRIDE;
44 virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ) SAL_OVERRIDE;
46 virtual bool IsRefInputMode() const SAL_OVERRIDE { return true; }
47 virtual void SetActive() SAL_OVERRIDE;
49 virtual bool Close() SAL_OVERRIDE;
51 protected:
52 virtual void Deactivate() SAL_OVERRIDE;
54 private:
55 VclPtr<ListBox> pLbFunc;
56 VclPtr<ListBox> pLbConsAreas;
58 VclPtr<ListBox> pLbDataArea;
59 VclPtr<formula::RefEdit> pEdDataArea;
60 VclPtr<formula::RefButton> pRbDataArea;
62 VclPtr<ListBox> pLbDestArea;
63 VclPtr<formula::RefEdit> pEdDestArea;
64 VclPtr<formula::RefButton> pRbDestArea;
66 VclPtr<VclExpander> pExpander;
67 VclPtr<CheckBox> pBtnByRow;
68 VclPtr<CheckBox> pBtnByCol;
70 VclPtr<CheckBox> pBtnRefs;
72 VclPtr<OKButton> pBtnOk;
73 VclPtr<CancelButton> pBtnCancel;
74 VclPtr<PushButton> pBtnAdd;
75 VclPtr<PushButton> pBtnRemove;
77 OUString aStrUndefined;
79 ScConsolidateParam theConsData;
80 ScViewData& rViewData;
81 ScDocument* pDoc;
82 ScRangeUtil* pRangeUtil;
83 ScAreaData* pAreaData;
84 size_t nAreaDataCount;
85 sal_uInt16 nWhichCons;
87 VclPtr<formula::RefEdit> pRefInputEdit;
88 bool bDlgLostFocus;
90 void Init ();
91 void FillAreaLists ();
92 bool VerifyEdit ( formula::RefEdit* pEd );
94 DECL_LINK( OkHdl, void* );
95 DECL_LINK( ClickHdl, PushButton* );
96 DECL_LINK( GetFocusHdl, Control* );
97 DECL_LINK( ModifyHdl, formula::RefEdit* );
98 DECL_LINK( SelectHdl, ListBox* );
100 static ScSubTotalFunc LbPosToFunc( sal_uInt16 nPos );
101 static sal_uInt16 FuncToLbPos( ScSubTotalFunc eFunc );
104 #endif // INCLUDED_SC_SOURCE_UI_INC_CONSDLG_HXX
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */