xref: /AOO41X/main/cui/source/options/optcolor.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
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.
14  *
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).
20  *
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.
25  *
26  ************************************************************************/
27 #ifndef _SVX_OPTCOLOR_HXX
28 #define _SVX_OPTCOLOR_HXX
29 
30 // include ---------------------------------------------------------------
31 
32 #include <sfx2/tabdlg.hxx>
33 #include <vcl/group.hxx>
34 #include <vcl/fixed.hxx>
35 #include <vcl/lstbox.hxx>
36 
37 /* -----------------------------25.03.2002 10:40------------------------------
38 
39  ---------------------------------------------------------------------------*/
40 namespace svtools {class EditableColorConfig;class EditableExtendedColorConfig;}
41 class ColorConfigCtrl_Impl;
42 class AbstractSvxNameDialog; //CHINA001 class SvxNameDialog;
43 class SvxColorOptionsTabPage : public SfxTabPage
44 {
45 	using SfxTabPage::DeactivatePage;
46 
47 	FixedLine               aColorSchemeFL;
48     FixedText               aColorSchemeFT;
49     ListBox                 aColorSchemeLB;
50     PushButton              aSaveSchemePB;
51     PushButton              aDeleteSchemePB;
52 
53     FixedLine               aCustomColorsFL;
54 
55     sal_Bool                    bFillItemSetCalled;
56 
57     svtools::EditableColorConfig* pColorConfig;
58 	svtools::EditableExtendedColorConfig* pExtColorConfig;
59     ColorConfigCtrl_Impl*   pColorConfigCT;
60 
61     DECL_LINK(SchemeChangedHdl_Impl, ListBox*);
62     DECL_LINK(SaveDeleteHdl_Impl, PushButton*);
63     DECL_LINK(CheckNameHdl_Impl, AbstractSvxNameDialog*);
64     void UpdateColorConfig();
65 
66 public:
67     SvxColorOptionsTabPage( Window* pParent, const SfxItemSet& rSet );
68     ~SvxColorOptionsTabPage(  );
69 
70 	static SfxTabPage*	Create( Window* pParent, const SfxItemSet& rAttrSet );
71 
72 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
73 	virtual	void 		Reset( const SfxItemSet& rSet );
74 
75 	virtual int  		DeactivatePage( SfxItemSet* pSet );
76     virtual void        FillUserData();
77 
78 };
79 
80 #endif
81 
82