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 .
20 #ifndef INCLUDED_CUI_SOURCE_OPTIONS_OPTCHART_HXX
21 #define INCLUDED_CUI_SOURCE_OPTIONS_OPTCHART_HXX
23 #include <sfx2/tabdlg.hxx>
24 #include <vcl/fixed.hxx>
25 #include <svtools/valueset.hxx>
26 #include <svx/dlgctrl.hxx>
27 #include <vcl/button.hxx>
28 #include <svx/xtable.hxx>
30 #include "cfgchart.hxx"
32 class SvxDefaultColorOptPage
: public SfxTabPage
36 VclPtr
<ColorLB
> m_pLbChartColors
;
37 VclPtr
<ValueSet
> m_pValSetColorBox
;
38 VclPtr
<PushButton
> m_pPBDefault
;
39 VclPtr
<PushButton
> m_pPBAdd
;
40 VclPtr
<PushButton
> m_pPBRemove
;
42 SvxChartOptions
* pChartOptions
;
43 SvxChartColorTableItem
* pColorConfig
;
44 XColorListRef pColorList
;
46 DECL_LINK( ResetToDefaults
, void * );
47 DECL_LINK( AddChartColor
, void * );
48 DECL_LINK( RemoveChartColor
, PushButton
* );
49 DECL_LINK( ListClickedHdl
, ColorLB
* );
50 DECL_LINK(BoxClickedHdl
, void *);
53 long GetColorIndex( const Color
& rCol
);
56 SvxDefaultColorOptPage( vcl::Window
* pParent
, const SfxItemSet
& rInAttrs
);
57 virtual ~SvxDefaultColorOptPage();
58 virtual void dispose() SAL_OVERRIDE
;
62 static VclPtr
<SfxTabPage
> Create( vcl::Window
* pParent
, const SfxItemSet
* rInAttrs
);
63 virtual bool FillItemSet( SfxItemSet
* rOutAttrs
) SAL_OVERRIDE
;
64 virtual void Reset( const SfxItemSet
* rInAttrs
) SAL_OVERRIDE
;
67 #endif // INCLUDED_CUI_SOURCE_OPTIONS_OPTCHART_HXX
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */