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

pdf::page::CResDict Class Reference

resource dictionary of page and page tree nodes More...

#include <ResDict.hh>

Collaboration diagram for pdf::page::CResDict:

Collaboration graph
[legend]
List of all members.

Public Methods

Private Attributes


Detailed Description

resource dictionary of page and page tree nodes

the resources dictionary contains a list of resources.


Member Function Documentation

void pdf::page::CResDict::AddFont font::CFont   font
 

add a font to the list. it will call RegName() to generate a name for it.

00129 {
00130     assert( font != 0 ) ;
00131     m_fonts.Add( font ) ;
00132 }

core::CObject * pdf::page::CResDict::Write core::CFile   file const
 

write all the font indirect reference list into a dictionary, and write all the fonts into referenced objects.

00164 {
00165     using namespace core ;
00166     CDictionary *dict = new CDictionary ;
00167     
00168     const std::string names[] = { "PDF", "Text" } ;
00169     dict->AddPair( CName( "ProcSet" ), new CArray( names, names + 2 ) ) ;
00170 
00171     if ( !m_fonts.Empty( ) )
00172         dict->AddPair( CName( "Font" ), m_fonts.Write( file ) ) ;
00173     if ( !m_xobjs.Empty( ) )
00174         dict->AddPair( CName( "XObject" ), m_xobjs.Write( file ) ) ;
00175 
00176     return dict ;
00177 }


The documentation for this class was generated from the following files:
Generated on Sun Feb 2 09:17:31 2003 for libpdf++ by doxygen1.2.16