NiXPSObjects::NOFont Class Reference

#include "NOFont.h"

List of all members.

Public Member Functions

 NOFont (NOPackage *pPackage, NCommon::UInt16 pID)
const NCommon::UTF8String getFileName ()
const NCommon::UTF8String getFontFamilyName ()
NCommon::UInt32 isRestricted ()
void writeToFile (const NCommon::UTF8String &destinationPath)
bool replaceWithFile (const NCommon::UTF8String &sourcePath)


Detailed Description

Class representing a font in an XPS package
Examples:

docexample_createpage.cpp.


Constructor & Destructor Documentation

NiXPSObjects::NOFont::NOFont ( NOPackage pPackage,
NCommon::UInt16  pID 
)

constructor: create a font with a given ID in the package


Member Function Documentation

const NCommon::UTF8String NiXPSObjects::NOFont::getFileName (  ) 

Returns the filename of the font.

const NCommon::UTF8String NiXPSObjects::NOFont::getFontFamilyName (  ) 

Returns the family name of the font.

NCommon::UInt32 NiXPSObjects::NOFont::isRestricted (  ) 

Returns wheter a font is restricted or not. A font is restricted when it's relationship in the XPS package indicates it as such.

void NiXPSObjects::NOFont::writeToFile ( const NCommon::UTF8String destinationPath  ) 

Saves font to a file

Parameters:
destinationPath An UTF8String with the path to write the file to. The path is seperated by forward slashes ('/').

bool NiXPSObjects::NOFont::replaceWithFile ( const NCommon::UTF8String sourcePath  ) 

Replaces a font with the given file

Parameters:
sourcePath An UTF8String with the path of the font file to add as a replacement. The path is seperated by forward slashes ('/').


The documentation for this class was generated from the following files:
Generated on Thu Jul 3 15:30:44 2008 for NiXPS Library SDK by  doxygen 1.5.3