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

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

#include <pdfobjects.h>

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

Public Member Functions

 wxPdfNumber (const wxString &value)
 Constructor (value as string)
 
 wxPdfNumber (int value)
 Constructor (value as integer)
 
 wxPdfNumber (double value)
 Constructor (value as floating point)
 
virtual ~wxPdfNumber ()
 Destructor.
 
double GetValue ()
 Get value as floating point.
 
int GetInt ()
 Get value as integer.
 
wxString GetAsString ()
 Get value as string.
 
bool IsInt ()
 Check whether value is integer.
 
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 numeric object. (For internal use only)

Constructor & Destructor Documentation

◆ wxPdfNumber() [1/3]

wxPdfNumber::wxPdfNumber ( const wxString &  value)

Constructor (value as string)

Parameters
valueThe string representation of the numeric value

◆ wxPdfNumber() [2/3]

wxPdfNumber::wxPdfNumber ( int  value)

Constructor (value as integer)

Parameters
valueThe integer value

◆ wxPdfNumber() [3/3]

wxPdfNumber::wxPdfNumber ( double  value)

Constructor (value as floating point)

Parameters
valueThe floating point value

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

◆ GetActualId()

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

◆ GetAsString()

wxString wxPdfNumber::GetAsString ( )
inline

Get value as string.

Returns
The string representation of the numeric value

◆ GetGeneration()

int wxPdfObject::GetGeneration ( )
inlineinherited

Get generation number.

Returns
The generation number

◆ GetInt()

int wxPdfNumber::GetInt ( )
inline

Get value as integer.

Returns
The numeric value as integer

◆ GetNumber()

int wxPdfObject::GetNumber ( )
inlineinherited

Get object number.

Returns
The object number

◆ GetType()

int wxPdfObject::GetType ( )
inlineinherited

Get the type of the object.

Returns
The object type

◆ GetValue()

double wxPdfNumber::GetValue ( )
inline

Get value as floating point.

Returns
The numeric value as double

◆ 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

◆ IsInt()

bool wxPdfNumber::IsInt ( )
inline

Check whether value is integer.

Returns
true if the value is an integer, 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

◆ 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

◆ 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: