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

gr_Abi_StandardSymbolsShaper.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 2004 Luca Padovani <lpadovan@cs.unibo.it>
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 USA.
00018  */
00019 
00020 #ifndef __gr_Abi_StandardSymbolsShaper_h__
00021 #define __gr_Abi_StandardSymbolsShaper_h__
00022 
00023 #include "mathview_proxy.h"
00024 
00025 #include "ut_types.h" // for UT_UCS4Char
00026 #include "gr_Graphics.h"
00027 
00028 class GR_Abi_StandardSymbolsShaper : public StandardSymbolsShaper
00029 {
00030 protected:
00031   GR_Abi_StandardSymbolsShaper(void);
00032   virtual ~GR_Abi_StandardSymbolsShaper();
00033 
00034 public:
00035   static SmartPtr<GR_Abi_StandardSymbolsShaper> create(void)
00036   { return new GR_Abi_StandardSymbolsShaper(); }
00037 
00038   void setGraphics(class GR_Graphics*);
00039   class GR_Graphics* getGraphics(void) const { return m_pGraphics; }
00040 
00041 protected:
00042   virtual AreaRef getGlyphArea(const SmartPtr<class AreaFactory>&, Char8, const scaled&) const;
00043 
00044   struct AbiTextProperties
00045   {
00046     MathVariant variant;
00047     const char* style;
00048     const char* weight;
00049   };
00050 
00051   static const AbiTextProperties& getTextProperties(MathVariant = NORMAL_VARIANT);
00052 
00053   AreaRef shapeChar(MathVariant, const class MathFormattingContext&, UT_UCS4Char) const;
00054 
00055   class GR_Graphics* m_pGraphics;
00056 };
00057 
00058 #endif // __gr_Abi_StandardSymbolsShaper_h__

Generated on Wed Mar 5 2014 for AbiWord by  doxygen 1.7.1