• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ODi_FontFaceDecls.h

Go to the documentation of this file.
00001 /* AbiSource
00002  *
00003  * Copyright (C) 2005 INdT
00004  * Author: Daniel d'Andrada T. de Carvalho <daniel.carvalho@indt.org.br>
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00019  * 02111-1307, USA.
00020  */
00021 
00022 #ifndef ODI_FONTFACEDECLS_H_
00023 #define ODI_FONTFACEDECLS_H_
00024 
00025 #include <map>
00026 #include <string>
00027 
00028 // Internal includes
00029 #include "ODi_ListenerState.h"
00030 
00031 class UT_UTF8String;
00032 
00039 class ODi_FontFaceDecls : public ODi_ListenerState {
00040 
00041 public:
00042 
00043     ODi_FontFaceDecls(ODi_ElementStack& rElementStack);
00044 
00045     void startElement (const gchar* pName, const gchar** ppAtts,
00046                        ODi_ListenerStateAction& rAction);
00047 
00048     void endElement (const gchar* pName, ODi_ListenerStateAction& rAction);
00049 
00050     void charData (const gchar* /*pBuffer*/, int /*length*/) {}
00051 
00052     const std::string & getFontFamily(const UT_UTF8String& rStyleName);
00053 
00054     void clear() {m_fontFamilies.clear();}
00055 
00056 private:
00057 
00058     // Maps a font face style:name into its svg:font-family
00059     std::map<std::string, std::string> m_fontFamilies;
00060 };
00061 
00062 #endif /*ODI_FONTFACEDECLS_H_*/

Generated on Sat May 26 2012 for AbiWord by  doxygen 1.7.1