#include <factories.h>
Static Public Member Functions | |
| static CDict * | getInstance () |
| static CDict * | getInstance (boost::shared_ptr< CPdf > pdf, const IndiRef &indirefParent, const Object &obj) |
| static CDict * | getInstance (const Object &obj) |
Factory class for CDict creation.
Use getInstance methods for instants creation.
| static CDict* pdfobjects::CDictFactory::getInstance | ( | const Object & | obj | ) | [inline, static] |
Creates CDict from xpdf Object.
| obj | Xpdf Object instance (must by objDict). |
| ElementBadTypeException | If given object doesn't represent dictionary object. |
| static CDict* pdfobjects::CDictFactory::getInstance | ( | boost::shared_ptr< CPdf > | pdf, | |
| const IndiRef & | indirefParent, | |||
| const Object & | obj | |||
| ) | [inline, static] |
Creates CDict for specific pdf from xpdf Object.
| Pdf for which to create CDict. | ||
| indirefParent | Indirect reference to nearest indirect parent. | |
| obj | Xpdf object to use for intialization. |
This should be used only internaly by kernel. Instance initialized this way is not checked in cobjects routines and so nonsense information may lead to mass.
REMARK:
If you don't know what exactly these parameters mean, DON'T use this method.
| static CDict* pdfobjects::CDictFactory::getInstance | ( | ) | [inline, static] |
Creates default CDict instance.
Referenced by pdfobjects::utils::createObjFromXpdfObj(), and gui::Base::createReal().