xref: /trunk/main/starmath/inc/config.hxx (revision f6a9d5ca)
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 CONFIG_HXX
24 #define CONFIG_HXX
25 
26 #include <svl/brdcst.hxx>
27 #include <svl/lstner.hxx>
28 #include "format.hxx"
29 
30 #include "cfgitem.hxx"
31 
32 
33 class SmPreferenceDialog;
34 class SmPrintDialog;
35 class SmPrintOptionDialog;
36 class SfxItemSet;
37 
38 class SmConfig : public SmMathConfig, public SfxBroadcaster
39 {
40 	SmFontPickList	vFontPickList[7];
41 
42 public:
43 	SmConfig();
44 	virtual ~SmConfig();
45 
GetFontPickList(sal_uInt16 nIdent)46 	SmFontPickList & GetFontPickList(sal_uInt16 nIdent) { return vFontPickList[nIdent]; }
47 
48 	void ItemSetToConfig(const SfxItemSet &rSet);
49 	void ConfigToItemSet(SfxItemSet &rSet) const;
50 };
51 
52 #endif
53 
54 
55