00001 /************************************************************************* 00002 * 00003 * OpenOffice.org - a multi-platform office productivity suite 00004 * 00005 * $RCSfile: config.hxx,v $ 00006 * 00007 * $Revision: 1.4 $ 00008 * 00009 * last change: $Author: rt $ $Date: 2005/09/07 14:57:28 $ 00010 * 00011 * The Contents of this file are made available subject to 00012 * the terms of GNU Lesser General Public License Version 2.1. 00013 * 00014 * 00015 * GNU Lesser General Public License Version 2.1 00016 * ============================================= 00017 * Copyright 2005 by Sun Microsystems, Inc. 00018 * 901 San Antonio Road, Palo Alto, CA 94303, USA 00019 * 00020 * This library is free software; you can redistribute it and/or 00021 * modify it under the terms of the GNU Lesser General Public 00022 * License version 2.1, as published by the Free Software Foundation. 00023 * 00024 * This library is distributed in the hope that it will be useful, 00025 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00026 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00027 * Lesser General Public License for more details. 00028 * 00029 * You should have received a copy of the GNU Lesser General Public 00030 * License along with this library; if not, write to the Free Software 00031 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 00032 * MA 02111-1307 USA 00033 * 00034 ************************************************************************/ 00035 #ifndef CONFIG_HXX 00036 #define CONFIG_HXX 00037 00038 #ifndef _SFXBRDCST_HXX //autogen 00039 #include <svtools/brdcst.hxx> 00040 #endif 00041 #ifndef _SFXLSTNER_HXX //autogen 00042 #include <svtools/lstner.hxx> 00043 #endif 00044 #ifndef _FORMAT_HXX 00045 #include "format.hxx" 00046 #endif 00047 00048 #include "cfgitem.hxx" 00049 00050 00051 class SmPreferenceDialog; 00052 class SmPrintDialog; 00053 class SmPrintOptionDialog; 00054 class SfxItemSet; 00055 00056 class SmConfig : public SmMathConfig, public SfxBroadcaster 00057 { 00058 SmFontPickList vFontPickList[7]; 00059 00060 public: 00061 SmConfig(); 00062 virtual ~SmConfig(); 00063 00064 SmFontPickList & GetFontPickList(USHORT nIdent) { return vFontPickList[nIdent]; } 00065 00066 void ItemSetToConfig(const SfxItemSet &rSet); 00067 void ConfigToItemSet(SfxItemSet &rSet) const; 00068 }; 00069 00070 #endif 00071 00072