QObject wrapper around PdfOperator. More...
#include <qspdfoperator.h>
QObject wrapper around PdfOperator.
| gui::QSPdfOperator::QSPdfOperator | ( | BaseCore * | _base | ) |
Construct wrapper with empty PdfOperator (NULL)
| _base | scripting base |
Referenced by clone(), and getLastOperator().
| gui::QSPdfOperator::QSPdfOperator | ( | boost::shared_ptr< PdfOperator > | op, | |
| BaseCore * | _base | |||
| ) |
Construct wrapper with given PdfOperator
| op | PDF Operator | |
| _base | scripting base |
References obj.
| gui::QSPdfOperator::QSPdfOperator | ( | boost::shared_ptr< PdfOperator > | op, | |
| boost::shared_ptr< CContentStream > | cs, | |||
| BaseCore * | _base | |||
| ) |
| gui::QSPdfOperator::~QSPdfOperator | ( | ) | [virtual] |
destructor
| QSPdfOperatorIterator * gui::QSPdfOperator::changeableIterator | ( | bool | forwardDir = true |
) | [slot] |
Create new changeable operator iterator from this PDF operator. The iterator will be initialized from this item.
| forwardDir | Direction of traversing the operators for first valid item. |
References gui::QSCObject::base, csCheck(), csRef, and obj.
| int gui::QSPdfOperator::childCount | ( | ) | [slot] |
Return number of child operators under this operator
References gui::QSCObject::nullPtr(), and obj.
| QSPdfOperatorStack * gui::QSPdfOperator::childs | ( | ) | [slot] |
Return stack with all child operators
References gui::QSPdfOperatorStack::append(), gui::QSCObject::base, gui::QSCObject::nullPtr(), and obj.
| QSPdfOperator * gui::QSPdfOperator::clone | ( | ) | [slot] |
Clone this object.
References gui::QSCObject::base, csCheck(), obj, and QSPdfOperator().
| bool gui::QSPdfOperator::containsNonStrokingOperator | ( | ) | [slot] |
Call containsNonStrokingOperator() on this operator
References gui::QSCObject::nullPtr(), and obj.
| bool gui::QSPdfOperator::containsStrokingOperator | ( | ) | [slot] |
Call containsStrokingOperator() on this operator
References gui::QSCObject::nullPtr(), and obj.
| void gui::QSPdfOperator::csCheck | ( | ) | [private] |
Reset the csRef to the real contentstream
Referenced by changeableIterator(), clone(), fontIterator(), graphicalIterator(), inlineImageIterator(), iterator(), nonStrokingIterator(), QSPdfOperator(), stream(), strokingIterator(), and textIterator().
| bool gui::QSPdfOperator::equals | ( | QObject * | otherObject | ) | [slot] |
| QSPdfOperatorIterator * gui::QSPdfOperator::fontIterator | ( | bool | forwardDir = true |
) | [slot] |
Create new font operator iterator from this PDF operator. The iterator will be initialized from this item.
| forwardDir | Direction of traversing the operators for first valid item. |
References gui::QSCObject::base, csCheck(), csRef, and obj.
| boost::shared_ptr< PdfOperator > gui::QSPdfOperator::get | ( | ) |
Get Pdf Operator shared pointer held inside this class. Not exposed to scripting
References obj.
Referenced by gui::QSPdfOperatorStack::append(), equals(), gui::QSPdfOperatorStack::prepend(), pushBack(), setNext(), and setPrev().
| QVariant gui::QSPdfOperator::getBBox | ( | ) | [slot] |
| QString gui::QSPdfOperator::getEncodedText | ( | ) | [slot] |
References util::convertToUnicode(), pdfobjects::TextSimpleOperator::getFontText(), obj, and util::PDF.
| QSPdfOperator * gui::QSPdfOperator::getLastOperator | ( | ) | [slot] |
Call getLastOperator() on this operator
References gui::QSCObject::base, pdfobjects::getLastOperator(), gui::QSCObject::nullPtr(), obj, and QSPdfOperator().
| QString gui::QSPdfOperator::getName | ( | ) | [slot] |
Get operator name
References util::convertToUnicode(), gui::QSCObject::nullPtr(), obj, and util::PDF.
| QString gui::QSPdfOperator::getText | ( | ) | [slot] |
Return text representation of pdf operator
References util::convertToUnicode(), gui::QSCObject::nullPtr(), obj, and util::PDF.
| QSPdfOperatorIterator * gui::QSPdfOperator::graphicalIterator | ( | bool | forwardDir = true |
) | [slot] |
Create new graphical operator iterator from this PDF operator. The iterator will be initialized from this item.
| forwardDir | Direction of traversing the operators for first valid item. |
References gui::QSCObject::base, csCheck(), csRef, and obj.
| QSPdfOperatorIterator * gui::QSPdfOperator::inlineImageIterator | ( | bool | forwardDir = true |
) | [slot] |
Create new inline image operator iterator from this PDF operator. The iterator will be initialized from this item.
| forwardDir | Direction of traversing the operators for first valid item. |
References gui::QSCObject::base, csCheck(), csRef, and obj.
| bool gui::QSPdfOperator::isEmpty | ( | ) | [slot] |
Return true, if operator inside this wrapper is empty (NULL) operator. In that case, most operations of this operator will fail, throwing an exception.
The only methods that are guaranteed to succeed in that case are isEmpty(), textIterator() and iterator() and also you can pass this empty operator as parameter to some functions.
Return true, if operator inside this wrapper is NULL
References obj.
| QSPdfOperatorIterator * gui::QSPdfOperator::iterator | ( | ) | [slot] |
Create new operator iterator from this PDF operator. The iterator will be initially positioned at this item
References gui::QSCObject::base, csCheck(), csRef, and obj.
| QSPdfOperatorIterator * gui::QSPdfOperator::nonStrokingIterator | ( | bool | forwardDir = true |
) | [slot] |
Create new non stroking operator iterator from this PDF operator. The iterator will be initialized from this item.
| forwardDir | Direction of traversing the operators for first valid item. |
References gui::QSCObject::base, csCheck(), csRef, and obj.
| int gui::QSPdfOperator::paramCount | ( | ) | [slot] |
Return number of parameters for this operator
References gui::QSCObject::nullPtr(), and obj.
| QSIPropertyArray * gui::QSPdfOperator::params | ( | ) | [slot] |
Return all parameters of this operator
References gui::QSIPropertyArray::append(), gui::QSCObject::base, gui::QSCObject::nullPtr(), and obj.
| void gui::QSPdfOperator::pushBack | ( | QObject * | op, | |
| QObject * | prev = NULL | |||
| ) | [slot] |
QSA bug workaround version Add an operator to the end of composite.
| op | Operator to be added. | |
| prev | Operator, after which we should place the added one |
References gui::QSCObject::base, gui::BaseCore::errorException(), get(), gui::QSCObject::nullPtr(), obj, and gui::QSCObject::qobject_cast().
| void gui::QSPdfOperator::pushBack | ( | QSPdfOperator * | op, | |
| QSPdfOperator * | prev = NULL | |||
| ) | [slot] |
Add an operator to the end of composite.
| op | Operator to be added. | |
| prev | Operator, after which we should place the added one |
References gui::QSCObject::base, gui::BaseCore::errorException(), get(), gui::QSCObject::nullPtr(), and obj.
| void gui::QSPdfOperator::remove | ( | ) | [slot] |
Remove itself from the stream. After this operation, the operator must not be used
References gui::QSCObject::base, gui::BaseCore::errorException(), gui::QSCObject::nullPtr(), and obj.
| void gui::QSPdfOperator::setNext | ( | QObject * | op | ) | [slot] |
QSA bug workaround Set next operator
| op | operator to set as next |
References gui::QSCObject::base, gui::BaseCore::errorException(), get(), gui::QSCObject::nullPtr(), obj, and gui::QSCObject::qobject_cast().
| void gui::QSPdfOperator::setNext | ( | QSPdfOperator * | op | ) | [slot] |
Set next operator
| op | operator to set as next |
References gui::QSCObject::base, gui::BaseCore::errorException(), get(), gui::QSCObject::nullPtr(), and obj.
| void gui::QSPdfOperator::setPrev | ( | QObject * | op | ) | [slot] |
QSA bug workaround Set previous operator
| op | operator to set as previous |
References gui::QSCObject::base, gui::BaseCore::errorException(), get(), gui::QSCObject::nullPtr(), obj, and gui::QSCObject::qobject_cast().
| void gui::QSPdfOperator::setPrev | ( | QSPdfOperator * | op | ) | [slot] |
Set previous operator
| op | operator to set as previous |
References gui::QSCObject::base, gui::BaseCore::errorException(), get(), gui::QSCObject::nullPtr(), and obj.
| QSContentStream * gui::QSPdfOperator::stream | ( | ) | [slot] |
Return content stream in which this operator is contained. May return NULL (if operator is not contained in any content stream or if content stream is not known at time of creation)
References gui::QSCObject::base, csCheck(), and csRef.
| QSPdfOperatorIterator * gui::QSPdfOperator::strokingIterator | ( | bool | forwardDir = true |
) | [slot] |
Create new stroking operator iterator from this PDF operator. The iterator will be initialized from this item.
| forwardDir | Direction of traversing the operators for first valid item. |
References gui::QSCObject::base, csCheck(), csRef, and obj.
| QSPdfOperatorIterator * gui::QSPdfOperator::textIterator | ( | bool | forwardDir = true |
) | [slot] |
Create new text operator iterator from this PDF operator. The iterator will be initialized from this item
| forwardDir | Direction of traversing the operators for first valid item. |
References gui::QSCObject::base, csCheck(), csRef, and obj.
boost::shared_ptr<CContentStream> gui::QSPdfOperator::csRef [private] |
Reference to content stream that is holding this operator. It may be NULL (empty shared_ptr) if unknown
Referenced by changeableIterator(), csCheck(), fontIterator(), graphicalIterator(), inlineImageIterator(), iterator(), nonStrokingIterator(), QSPdfOperator(), stream(), strokingIterator(), and textIterator().
boost::shared_ptr<PdfOperator> gui::QSPdfOperator::obj [private] |
Object held in class
Referenced by changeableIterator(), childCount(), childs(), clone(), containsNonStrokingOperator(), containsStrokingOperator(), csCheck(), equals(), fontIterator(), get(), getBBox(), getEncodedText(), getLastOperator(), getName(), getText(), graphicalIterator(), inlineImageIterator(), isEmpty(), iterator(), nonStrokingIterator(), paramCount(), params(), pushBack(), QSPdfOperator(), remove(), setNext(), setPrev(), strokingIterator(), and textIterator().