gui::QSContentStream Class Reference
QObject wrapper around CContentStream.
More...
#include <qscontentstream.h>
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 () |
| QSPdfOperator * | getFirstOperator () |
| QSPdfOperator * | getLastOperator () |
| bool | isEmpty () |
Public Member Functions |
| | QSContentStream (boost::shared_ptr< CContentStream > _cs, BaseCore *_base) |
| virtual | ~QSContentStream () |
| boost::shared_ptr< CContentStream > | get () |
Private Member Functions |
| bool | opValid (QSPdfOperator *op, bool checkThis=false) |
Private Attributes |
| boost::shared_ptr< CContentStream > | obj |
Detailed Description
QObject wrapper around CContentStream.
Constructor & Destructor Documentation
Construct wrapper with given CContentStream
- Parameters:
-
| _cs | Content Stream |
| _base | scripting base |
| gui::QSContentStream::~QSContentStream |
( |
|
) |
[virtual] |
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
| QSPdfOperator * gui::QSContentStream::getFirstOperator |
( |
|
) |
[slot] |
Return first operator in this contentstream.
- Returns:
- If not contains any operator, return NULL.
Return last operator in this contentstream.
- Returns:
- If not contains any operator, return NULL.
| QString gui::QSContentStream::getText |
( |
|
) |
[slot] |
| 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
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 |
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] |
Member Data Documentation
The documentation for this class was generated from the following files: