xref: /aoo42x/main/cui/source/options/optcolor.hxx (revision c4eee24d)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _SVX_OPTCOLOR_HXX
24 #define _SVX_OPTCOLOR_HXX
25 
26 // include ---------------------------------------------------------------
27 
28 #include <sfx2/tabdlg.hxx>
29 #include <vcl/group.hxx>
30 #include <vcl/fixed.hxx>
31 #include <vcl/lstbox.hxx>
32 
33 /* -----------------------------25.03.2002 10:40------------------------------
34 
35  ---------------------------------------------------------------------------*/
36 namespace svtools {class EditableColorConfig;class EditableExtendedColorConfig;}
37 class ColorConfigCtrl_Impl;
38 class AbstractSvxNameDialog; //CHINA001 class SvxNameDialog;
39 class SvxColorOptionsTabPage : public SfxTabPage
40 {
41 	using SfxTabPage::DeactivatePage;
42 
43 	FixedLine               aColorSchemeFL;
44     FixedText               aColorSchemeFT;
45     ListBox                 aColorSchemeLB;
46     PushButton              aSaveSchemePB;
47     PushButton              aDeleteSchemePB;
48 
49     FixedLine               aCustomColorsFL;
50 
51     sal_Bool                    bFillItemSetCalled;
52 
53     svtools::EditableColorConfig* pColorConfig;
54 	svtools::EditableExtendedColorConfig* pExtColorConfig;
55     ColorConfigCtrl_Impl*   pColorConfigCT;
56 
57     DECL_LINK(SchemeChangedHdl_Impl, ListBox*);
58     DECL_LINK(SaveDeleteHdl_Impl, PushButton*);
59     DECL_LINK(CheckNameHdl_Impl, AbstractSvxNameDialog*);
60     void UpdateColorConfig();
61 
62 public:
63     SvxColorOptionsTabPage( Window* pParent, const SfxItemSet& rSet );
64     ~SvxColorOptionsTabPage(  );
65 
66 	static SfxTabPage*	Create( Window* pParent, const SfxItemSet& rAttrSet );
67 
68 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
69 	virtual	void 		Reset( const SfxItemSet& rSet );
70 
71 	virtual int  		DeactivatePage( SfxItemSet* pSet );
72     virtual void        FillUserData();
73 
74 };
75 
76 #endif
77 
78