Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

Standard.hh

Go to the documentation of this file.
00001 /*
00002     libpdf++: a C++ Free library to generate PDF file
00003     Copyright (C) 2002 Nestal Wan
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Lesser General Public
00007     License as published by the Free Software Foundation; either
00008     version 2.1 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Lesser General Public License for more details.
00014 
00015     You should have received a copy of the GNU Lesser General Public
00016     License along with this library; if not, write to the Free Software
00017     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 */
00026 #ifndef __PDF_FONT_STANDARD_HEADER_INCLUDED__
00027 #define __PDF_FONT_STANDARD_HEADER_INCLUDED__
00028 
00029 #ifndef __PDF_FONT_SIMPLE_HEADER_INCLUDED__
00030 #include "Simple.hh"
00031 #endif
00032 
00033 namespace pdf { namespace font {
00034 
00042 class CStandard : public CSimple
00043 {
00044 public :
00048     enum EName
00049     {
00050         // variable width fonts
00051         times_roman, times_bold, times_italic, times_bold_italic,
00052         helvetica, helvetica_bold, helvetica_oblique, helvetical_bold_oblique,
00053         symbol, zapf_dingbats,
00054         
00055         // fix width fonts
00056         courier, courier_bold, courier_oblique, courier_bold_oblique
00057     } ;
00058 
00059 private :
00060     EName m_name ;
00061 
00062 private :
00064     static const std::string sc_table[] ;
00065 
00066 public :
00067     CStandard( EName name ) ;
00068     ~CStandard( ) ;
00069 
00070     const core::CObjRef Write( core::CFile& file ) const ;
00071 
00072     double GlyphWidth( wchar_t glyph ) const ;
00073 } ;
00074 
00075 } } // end of namespace
00076 
00077 #endif

Generated on Sun Feb 2 09:16:05 2003 for libpdf++ by doxygen1.2.16