1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
19 #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_AXISPOSITIONS_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_AXISPOSITIONS_HXX
22 #include <sfx2/tabdlg.hxx>
23 #include <svtools/fmtfield.hxx>
24 #include <vcl/fixed.hxx>
25 #include <vcl/button.hxx>
26 #include <vcl/field.hxx>
27 #include <vcl/lstbox.hxx>
32 class AxisPositionsTabPage
: public SfxTabPage
35 AxisPositionsTabPage( vcl::Window
* pParent
, const SfxItemSet
& rInAttrs
);
36 virtual ~AxisPositionsTabPage();
37 virtual void dispose() SAL_OVERRIDE
;
39 static VclPtr
<SfxTabPage
> Create( vcl::Window
* pParent
, const SfxItemSet
* rInAttrs
);
40 virtual bool FillItemSet( SfxItemSet
* rOutAttrs
) SAL_OVERRIDE
;
41 virtual void Reset( const SfxItemSet
* rInAttrs
) SAL_OVERRIDE
;
42 using TabPage::DeactivatePage
;
43 virtual sfxpg
DeactivatePage( SfxItemSet
* pItemSet
= NULL
) SAL_OVERRIDE
;
45 void SetNumFormatter( SvNumberFormatter
* pFormatter
);
47 void SetCrossingAxisIsCategoryAxis( bool bCrossingAxisIsCategoryAxis
);
48 void SetCategories( const ::com::sun::star::uno::Sequence
< OUString
>& rCategories
);
50 void SupportAxisPositioning( bool bSupportAxisPositioning
);
53 DECL_LINK( CrossesAtSelectHdl
, void* );
54 DECL_LINK( PlaceLabelsSelectHdl
, void* );
57 VclPtr
<VclFrame
> m_pFL_AxisLine
;
58 VclPtr
<ListBox
> m_pLB_CrossesAt
;
59 VclPtr
<FormattedField
> m_pED_CrossesAt
;
60 VclPtr
<ComboBox
> m_pED_CrossesAtCategory
;
61 VclPtr
<CheckBox
> m_pCB_AxisBetweenCategories
;
63 VclPtr
<VclFrame
> m_pFL_Labels
;
64 VclPtr
<ListBox
> m_pLB_PlaceLabels
;
65 VclPtr
<FormattedField
> m_pED_LabelDistance
;
67 VclPtr
<CheckBox
> m_pCB_TicksInner
;
68 VclPtr
<CheckBox
> m_pCB_TicksOuter
;
70 VclPtr
<CheckBox
> m_pCB_MinorInner
;
71 VclPtr
<CheckBox
> m_pCB_MinorOuter
;
73 VclPtr
<VclBox
> m_pBxPlaceTicks
;
74 VclPtr
<ListBox
> m_pLB_PlaceTicks
;
77 // VclPtr<CheckBox> m_pCB_MajorGrid;
78 // VclPtr<PushButton> m_pPB_MajorGrid;
79 // VclPtr<CheckBox> m_pCB_MinorGrid;
80 // VclPtr<PushButton> m_pPB_MinorGrid;
82 SvNumberFormatter
* m_pNumFormatter
;
84 bool m_bCrossingAxisIsCategoryAxis
;
85 ::com::sun::star::uno::Sequence
< OUString
> m_aCategories
;
87 bool m_bSupportAxisPositioning
;
94 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */