update dev300-m58
[ooovba.git] / writerperfect / source / filter / FontStyle.hxx
blobbe44cf1404718286d3659ddea512aa707077562b
1 /* FontStyle: Stores (and writes) font-based information that is needed at
2 * the head of an OO document.
4 * Copyright (C) 2002-2003 William Lachance (william.lachance@sympatico.ca)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 * For further information visit http://libwpd.sourceforge.net
24 /* "This product is not manufactured, approved, or supported by
25 * Corel Corporation or Corel Corporation Limited."
27 #ifndef _FONTSTYLE_H
28 #define _FONTSTYLE_H
29 #if defined _MSC_VER
30 #pragma warning( push, 1 )
31 #endif
32 #include <libwpd/libwpd.h>
33 #if defined _MSC_VER
34 #pragma warning( pop )
35 #endif
37 #include "Style.hxx"
38 #include "WriterProperties.hxx"
40 class FontStyle : public Style
42 public:
43 FontStyle(const char *psName, const char *psFontFamily);
44 ~FontStyle();
45 virtual void write(DocumentHandler *pHandler) const;
46 const WPXString &getFontFamily() const { return msFontFamily; }
48 private:
49 WPXString msFontFamily;
50 WPXString msFontPitch;
52 #endif