gui::QSContentStream Class Reference

QObject wrapper around CContentStream. More...

#include <qscontentstream.h>

Inheritance diagram for gui::QSContentStream:
gui::QSCObject

List of all members.

Public Slots

bool equals (QObject *otherObject)
void deleteOperator (QSPdfOperator *op, bool indicateChange=true)
void deleteOperator (QObject *op, bool indicateChange=true)
QString getText ()
void insertOperator (QSPdfOperator *op, QSPdfOperator *newOp, bool indicateChange=true)
void insertOperator (QObject *op, QObject *newOp, bool indicateChange=true)
void replace (QSPdfOperator *oldOp, QSPdfOperator *newOp, bool indicateChange=true)
void replace (QObject *oldOp, QObject *newOp, bool indicateChange=true)
void saveChange ()
QSPdfOperatorgetFirstOperator ()
QSPdfOperatorgetLastOperator ()
bool isEmpty ()

Public Member Functions

 QSContentStream (boost::shared_ptr< CContentStream > _cs, BaseCore *_base)
virtual ~QSContentStream ()
boost::shared_ptr< CContentStreamget ()

Private Member Functions

bool opValid (QSPdfOperator *op, bool checkThis=false)

Private Attributes

boost::shared_ptr< CContentStreamobj

Detailed Description

QObject wrapper around CContentStream.


Constructor & Destructor Documentation

gui::QSContentStream::QSContentStream ( boost::shared_ptr< CContentStream _cs,
BaseCore _base 
)

Construct wrapper with given CContentStream

Parameters:
_cs Content Stream
_base scripting base
gui::QSContentStream::~QSContentStream (  )  [virtual]

destructor


Member Function Documentation

void gui::QSContentStream::deleteOperator ( QObject *  op,
bool  indicateChange = true 
) [slot]

Delete operator from content stream

See also:
CContentStream::deleteOperator
Parameters:
op Operator to delete
indicateChange If set to true (default), changes will be written to underlying stream
QSA bugfixed version

void gui::QSContentStream::deleteOperator ( QSPdfOperator op,
bool  indicateChange = true 
) [slot]

Delete operator from content stream

See also:
CContentStream::deleteOperator
Parameters:
op Operator to delete
indicateChange If set to true (default), changes will be written to underlying stream
bool gui::QSContentStream::equals ( QObject *  otherObject  )  [slot]

Return true, if this contentstream is equal to given object (i.e. if objects inside the wrapper are the same)

Parameters:
otherObject object to compare with this one
Returns:
True if the both objects hold the same item, false otherwise
boost::shared_ptr< CContentStream > gui::QSContentStream::get (  ) 

get CContentStream held inside this class. Not exposed to scripting

Returns:
stored CContentStream shared pointer

Referenced by gui::QSPage::moveAbove(), and gui::QSPage::moveBelow().

QSPdfOperator * gui::QSContentStream::getFirstOperator (  )  [slot]

Return first operator in this contentstream.

Returns:
If not contains any operator, return NULL.
QSPdfOperator * gui::QSContentStream::getLastOperator (  )  [slot]

Return last operator in this contentstream.

Returns:
If not contains any operator, return NULL.
QString gui::QSContentStream::getText (  )  [slot]

Return text representation of Content Stream

See also:
CContentStream::getStringRepresentation
Returns:
string representation
void gui::QSContentStream::insertOperator ( QObject *  op,
QObject *  newOp,
bool  indicateChange = true 
) [slot]

Insert operator in content stream

See also:
CContentStream::insertOperator
Parameters:
op after which one to insert
newOp operator to insert
indicateChange write changes to underlying stream?
QSA bugfixed version

void gui::QSContentStream::insertOperator ( QSPdfOperator op,
QSPdfOperator newOp,
bool  indicateChange = true 
) [slot]

Insert operator in content stream

See also:
CContentStream::insertOperator
Parameters:
op after which one to insert
newOp operator to insert
indicateChange write changes to underlying stream?
bool gui::QSContentStream::isEmpty (  )  [slot]

Check if contentstream contains some operator.

Returns:
Return false if conntentstream contains some operator. Otherwise return true.
bool gui::QSContentStream::opValid ( QSPdfOperator op,
bool  checkThis = false 
) [private]

Check validity of given PDF operator
Operator is valid if:
1. Is not NULL
2. Is in this contentstream (if checkThis is true)

Parameters:
op Operator to check
checkThis Check also if operator is in this contentstream
Returns:
true if operator is valid, false if not.
void gui::QSContentStream::replace ( QObject *  oldOp,
QObject *  newOp,
bool  indicateChange = true 
) [slot]

QSA bugfix version Replace old operator oldOp with new operator newOp in this stream

Parameters:
oldOp Old operator that will be replaced
newOp New operator (replacement)
indicateChange If set to true (default), changes will be written to underlying stream

void gui::QSContentStream::replace ( QSPdfOperator oldOp,
QSPdfOperator newOp,
bool  indicateChange = true 
) [slot]

Replace old operator oldOp with new operator newOp in this stream

Parameters:
oldOp Old operator that will be replaced
newOp New operator (replacement)
indicateChange If set to true (default), changes will be written to underlying stream
void gui::QSContentStream::saveChange (  )  [slot]

Save changes to underlying content stream

See also:
CContentStream::saveChange

Member Data Documentation

boost::shared_ptr<CContentStream> gui::QSContentStream::obj [private]

Object held in class


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