fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / inc / tpformula.hxx
bloba3175b8ee1fdba2165fe70c0a19dc759e3e29f9e
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_TPFORMULA_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_TPFORMULA_HXX
23 #include <sfx2/tabdlg.hxx>
24 #include <vcl/fixed.hxx>
25 #include <vcl/lstbox.hxx>
26 #include <vcl/edit.hxx>
27 #include <vcl/button.hxx>
29 #include "calcconfig.hxx"
31 class ScTpFormulaOptions : public SfxTabPage
33 friend class VclPtr<ScTpFormulaOptions>;
34 public:
35 using SfxTabPage::DeactivatePage;
37 static VclPtr<SfxTabPage> Create (vcl::Window* pParent, const SfxItemSet* rCoreSet);
39 virtual bool FillItemSet(SfxItemSet* rCoreSet) SAL_OVERRIDE;
40 virtual void Reset( const SfxItemSet* rCoreSet ) SAL_OVERRIDE;
41 virtual sfxpg DeactivatePage(SfxItemSet* pSet = NULL) SAL_OVERRIDE;
43 private:
44 explicit ScTpFormulaOptions(vcl::Window* pParent, const SfxItemSet& rCoreSet);
45 virtual ~ScTpFormulaOptions();
46 virtual void dispose() SAL_OVERRIDE;
47 void ResetSeparators();
48 void OnFocusSeparatorInput(Edit* pEdit);
49 void UpdateCustomCalcRadioButtons(bool bDefault);
50 void LaunchCustomCalcSettings();
52 bool IsValidSeparator(const OUString& rSep) const;
53 bool IsValidSeparatorSet() const;
55 DECL_LINK( ButtonHdl, Button* );
56 DECL_LINK( SepModifyHdl, Edit* );
57 DECL_LINK( SepEditOnFocusHdl, Edit* );
59 private:
60 VclPtr<ListBox> mpLbFormulaSyntax;
61 VclPtr<CheckBox> mpCbEnglishFuncName;
63 VclPtr<RadioButton> mpBtnCustomCalcDefault;
64 VclPtr<RadioButton> mpBtnCustomCalcCustom;
65 VclPtr<PushButton> mpBtnCustomCalcDetails;
67 VclPtr<Edit> mpEdSepFuncArg;
68 VclPtr<Edit> mpEdSepArrayCol;
69 VclPtr<Edit> mpEdSepArrayRow;
70 VclPtr<PushButton> mpBtnSepReset;
72 VclPtr<ListBox> mpLbOOXMLRecalcOptions;
73 VclPtr<ListBox> mpLbODFRecalcOptions;
75 /** Stores old separator value of currently focused separator edit box.
76 This value is used to revert undesired value change. */
77 OUString maOldSepValue;
79 ScCalcConfig maSavedConfig;
80 ScCalcConfig maCurrentConfig;
82 sal_Unicode mnDecSep;
85 #endif
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */