1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef _SVX_OPTCOLOR_HXX
28 #define _SVX_OPTCOLOR_HXX
30 // include ---------------------------------------------------------------
32 #include <sfx2/tabdlg.hxx>
33 #include <vcl/group.hxx>
34 #include <vcl/fixed.hxx>
35 #include <vcl/lstbox.hxx>
37 /* -----------------------------25.03.2002 10:40------------------------------
39 ---------------------------------------------------------------------------*/
40 namespace svtools
{class EditableColorConfig
;class EditableExtendedColorConfig
;}
41 class ColorConfigCtrl_Impl
;
42 class AbstractSvxNameDialog
; //CHINA001 class SvxNameDialog;
43 class SvxColorOptionsTabPage
: public SfxTabPage
45 using SfxTabPage::DeactivatePage
;
47 FixedLine aColorSchemeFL
;
48 FixedText aColorSchemeFT
;
49 ListBox aColorSchemeLB
;
50 PushButton aSaveSchemePB
;
51 PushButton aDeleteSchemePB
;
53 FixedLine aCustomColorsFL
;
55 sal_Bool bFillItemSetCalled
;
57 svtools::EditableColorConfig
* pColorConfig
;
58 svtools::EditableExtendedColorConfig
* pExtColorConfig
;
59 ColorConfigCtrl_Impl
* pColorConfigCT
;
61 DECL_LINK(SchemeChangedHdl_Impl
, ListBox
*);
62 DECL_LINK(SaveDeleteHdl_Impl
, PushButton
*);
63 DECL_LINK(CheckNameHdl_Impl
, AbstractSvxNameDialog
*);
64 void UpdateColorConfig();
67 SvxColorOptionsTabPage( Window
* pParent
, const SfxItemSet
& rSet
);
68 ~SvxColorOptionsTabPage( );
70 static SfxTabPage
* Create( Window
* pParent
, const SfxItemSet
& rAttrSet
);
72 virtual sal_Bool
FillItemSet( SfxItemSet
& rSet
);
73 virtual void Reset( const SfxItemSet
& rSet
);
75 virtual int DeactivatePage( SfxItemSet
* pSet
);
76 virtual void FillUserData();