wxMaxima
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes
wxPdfStream Class Reference

Class representing a stream object. (For internal use only) More...

#include <pdfobjects.h>

Inheritance diagram for wxPdfStream:
[legend]
Collaboration diagram for wxPdfStream:
[legend]

Public Member Functions

 wxPdfStream ()
 Default constructor.
 
 wxPdfStream (off_t offset)
 Constructor.
 
virtual ~wxPdfStream ()
 Destructor.
 
off_t GetOffset ()
 Get the offset of the stream data.
 
void SetDictionary (wxPdfDictionary *dictionary)
 Set the associated stream dictionary.
 
wxPdfDictionary * GetDictionary ()
 Get the associated stream dictionary.
 
void SetBuffer (wxMemoryOutputStream *buffer)
 Set the stream data buffer.
 
wxMemoryOutputStream * GetBuffer ()
 Get the stream data buffer.
 
wxPdfObject * Get (const wxString &key)
 Get a value identified by the given key from the associated dictionary.
 
void SetHasObjOffsets (bool hasObjOffsets)
 Set flag whether an object stream has already read the object index.
 
bool HasObjOffsets ()
 Get flag whether the offsets of objects in an object stream are available.
 
wxArrayInt * GetObjOffsets ()
 Get a pointer to the object offsets array.
 
int GetObjOffset (int index) const
 Get the offset of an object in the object stream.
 
int GetType ()
 Get the type of the object.
 
void SetObjNum (int objNum, int objGen=0)
 Set object and generation number.
 
int GetNumber ()
 Get object number.
 
int GetGeneration ()
 Get generation number.
 
void SetActualId (int actualId)
 Set actual object id.
 
int GetActualId ()
 
void SetCreatedIndirect (bool indirect)
 Flag this object as created through an indirect reference.
 
bool IsCreatedIndirect ()
 Check whether this object was created through an indirect reference.
 
bool CanBeInObjStm ()
 Check whether this object can be in an object stream.
 
bool IsNull ()
 Checks whether this is a wxPdfNull object.
 
bool IsBoolean ()
 Checks whether this is a wxPdfBoolean object.
 
bool IsNumber ()
 Checks whether this is a wxPdfNumber object.
 
bool IsString ()
 Checks whether this is a wxPdfString object.
 
bool IsName ()
 Checks whether this is a wxPdfName object.
 
bool IsArray ()
 Checks whether this is a wxPdfArray object.
 
bool IsDictionary ()
 Checks whether this is a wxPdfDictionary object.
 
bool IsStream ()
 Checks whether this PdfObject is of the type PdfStream.
 
bool IsIndirect ()
 Checks if this is an indirect object.
 

Protected Attributes

int m_type
 Object type.
 
int m_objNum
 Object number.
 
int m_objGen
 Object generation.
 
int m_actualId
 Actual object id.
 
bool m_indirect
 Flag whether created through indirect reference.
 

Detailed Description

Class representing a stream object. (For internal use only)

Constructor & Destructor Documentation

◆ wxPdfStream()

wxPdfStream::wxPdfStream ( off_t  offset)

Constructor.

Parameters
offsetThe offset of the stream data

Member Function Documentation

◆ CanBeInObjStm()

bool wxPdfObject::CanBeInObjStm ( )
inherited

Check whether this object can be in an object stream.

Returns
true if the object can be in an object stream, false otherwise

◆ Get()

wxPdfObject * wxPdfStream::Get ( const wxString &  key)

Get a value identified by the given key from the associated dictionary.

Parameters
keyThe key name
Returns
The object associated with the key in the stream dictionary

◆ GetActualId()

int wxPdfObject::GetActualId ( )
inlineinherited
Returns
The actual object ID

◆ GetBuffer()

wxMemoryOutputStream * wxPdfStream::GetBuffer ( )
inline

Get the stream data buffer.

Returns
The memory output stream containing the data

◆ GetDictionary()

wxPdfDictionary * wxPdfStream::GetDictionary ( )
inline

Get the associated stream dictionary.

Returns
The stream dictionary

◆ GetGeneration()

int wxPdfObject::GetGeneration ( )
inlineinherited

Get generation number.

Returns
The generation number

◆ GetNumber()

int wxPdfObject::GetNumber ( )
inlineinherited

Get object number.

Returns
The object number

◆ GetObjOffset()

int wxPdfStream::GetObjOffset ( int  index) const

Get the offset of an object in the object stream.

Parameters
indexThe object index
Returns
The offset of the object, or -1 if the index is out of range

◆ GetObjOffsets()

wxArrayInt * wxPdfStream::GetObjOffsets ( )
inline

Get a pointer to the object offsets array.

Returns
Pointer to the array of object offsets

◆ GetOffset()

off_t wxPdfStream::GetOffset ( )
inline

Get the offset of the stream data.

Returns
The stream data offset

◆ GetType()

int wxPdfObject::GetType ( )
inlineinherited

Get the type of the object.

Returns
The object type

◆ HasObjOffsets()

bool wxPdfStream::HasObjOffsets ( )
inline

Get flag whether the offsets of objects in an object stream are available.

Returns
true if the offsets are available, false otherwise

◆ IsArray()

bool wxPdfObject::IsArray ( )
inlineinherited

Checks whether this is a wxPdfArray object.

Returns
true if this is an array object, false otherwise

◆ IsBoolean()

bool wxPdfObject::IsBoolean ( )
inlineinherited

Checks whether this is a wxPdfBoolean object.

Returns
true if this is a boolean object, false otherwise

◆ IsCreatedIndirect()

bool wxPdfObject::IsCreatedIndirect ( )
inlineinherited

Check whether this object was created through an indirect reference.

Returns
true if the object was created through an indirect reference, false otherwise

◆ IsDictionary()

bool wxPdfObject::IsDictionary ( )
inlineinherited

Checks whether this is a wxPdfDictionary object.

Returns
true if this is a dictionary object, false otherwise

◆ IsIndirect()

bool wxPdfObject::IsIndirect ( )
inlineinherited

Checks if this is an indirect object.

Returns
true if this is an indirect object, false otherwise

◆ IsName()

bool wxPdfObject::IsName ( )
inlineinherited

Checks whether this is a wxPdfName object.

Returns
true if this is a name object, false otherwise

◆ IsNull()

bool wxPdfObject::IsNull ( )
inlineinherited

Checks whether this is a wxPdfNull object.

Returns
true if this is a null object, false otherwise

◆ IsNumber()

bool wxPdfObject::IsNumber ( )
inlineinherited

Checks whether this is a wxPdfNumber object.

Returns
true if this is a number object, false otherwise

◆ IsStream()

bool wxPdfObject::IsStream ( )
inlineinherited

Checks whether this PdfObject is of the type PdfStream.

Returns
true if this is a stream object, false otherwise

◆ IsString()

bool wxPdfObject::IsString ( )
inlineinherited

Checks whether this is a wxPdfString object.

Returns
true if this is a string object, false otherwise

◆ SetActualId()

void wxPdfObject::SetActualId ( int  actualId)
inlineinherited

Set actual object id.

Parameters
actualIdThe actual object ID

◆ SetBuffer()

void wxPdfStream::SetBuffer ( wxMemoryOutputStream *  buffer)
inline

Set the stream data buffer.

Parameters
bufferThe memory output stream containing the data

◆ SetCreatedIndirect()

void wxPdfObject::SetCreatedIndirect ( bool  indirect)
inlineinherited

Flag this object as created through an indirect reference.

Parameters
indirectFlag whether the object is an indirect reference

◆ SetDictionary()

void wxPdfStream::SetDictionary ( wxPdfDictionary *  dictionary)
inline

Set the associated stream dictionary.

Parameters
dictionaryThe stream dictionary

◆ SetHasObjOffsets()

void wxPdfStream::SetHasObjOffsets ( bool  hasObjOffsets)
inline

Set flag whether an object stream has already read the object index.

Parameters
hasObjOffsetsFlag whether the object stream has object offsets

◆ SetObjNum()

void wxPdfObject::SetObjNum ( int  objNum,
int  objGen = 0 
)
inherited

Set object and generation number.

Parameters
objNumThe object number
objGenThe generation number

The documentation for this class was generated from the following files: