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_SERIESTOAXIS_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_SERIESTOAXIS_HXX
22 #include <sfx2/tabdlg.hxx>
23 #include <vcl/fixed.hxx>
24 #include <vcl/button.hxx>
25 #include <vcl/field.hxx>
30 class SchOptionTabPage
: public SfxTabPage
33 SchOptionTabPage(vcl::Window
* pParent
, const SfxItemSet
& rInAttrs
);
34 virtual ~SchOptionTabPage();
35 virtual void dispose() SAL_OVERRIDE
;
37 static VclPtr
<SfxTabPage
> Create(vcl::Window
* pParent
, const SfxItemSet
* rInAttrs
);
38 virtual bool FillItemSet(SfxItemSet
* rOutAttrs
) SAL_OVERRIDE
;
39 virtual void Reset(const SfxItemSet
* rInAttrs
) SAL_OVERRIDE
;
41 void Init( bool bProvidesSecondaryYAxis
, bool bProvidesOverlapAndGapWidth
, bool bProvidesBarConnectors
);
44 void AdaptControlPositionsAndVisibility();
47 VclPtr
<VclFrame
> m_pGrpAxis
;
48 VclPtr
<RadioButton
> m_pRbtAxis1
;
49 VclPtr
<RadioButton
> m_pRbtAxis2
;
51 VclPtr
<VclFrame
> m_pGrpBar
;
52 VclPtr
<MetricField
> m_pMTGap
;
53 VclPtr
<MetricField
> m_pMTOverlap
;
54 VclPtr
<CheckBox
> m_pCBConnect
;
55 VclPtr
<CheckBox
> m_pCBAxisSideBySide
;
57 VclPtr
<VclFrame
> m_pGrpPlotOptions
;
58 VclPtr
<VclGrid
> m_pGridPlotOptions
;
59 VclPtr
<RadioButton
> m_pRB_DontPaint
;
60 VclPtr
<RadioButton
> m_pRB_AssumeZero
;
61 VclPtr
<RadioButton
> m_pRB_ContinueLine
;
63 VclPtr
<CheckBox
> m_pCBIncludeHiddenCells
;
65 DECL_LINK(EnableHdl
, void * );
67 sal_Int32 m_nAllSeriesAxisIndex
;
69 bool m_bProvidesSecondaryYAxis
;
70 bool m_bProvidesOverlapAndGapWidth
;
71 bool m_bProvidesBarConnectors
;
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */