|
| QgsLayoutPageCollection (QgsLayout *layout) |
| Constructor for QgsLayoutItemPage, with the specified parent layout. More...
|
|
| ~QgsLayoutPageCollection () override |
|
void | addPage (QgsLayoutItemPage *page) |
| Adds a page to the collection. More...
|
|
void | beginPageSizeChange () |
| Should be called before changing any page item sizes, and followed by a call to endPageSizeChange(). More...
|
|
void | clear () |
| Removes all pages from the collection. More...
|
|
void | deletePage (int pageNumber) |
| Deletes a page from the collection. More...
|
|
void | deletePage (QgsLayoutItemPage *page) |
| Deletes a page from the collection. More...
|
|
void | endPageSizeChange () |
| Should be called after changing any page item sizes, and preceded by a call to beginPageSizeChange(). More...
|
|
QgsLayoutItemPage * | extendByNewPage () |
| Adds a new page to the end of the collection. More...
|
|
QgsLayoutGuideCollection & | guides () |
| Returns a reference to the collection's guide collection, which manages page snap guides. More...
|
|
const QgsLayoutGuideCollection & | guides () const |
| Returns a reference to the collection's guide collection, which manages page snap guides. More...
|
|
bool | hasUniformPageSizes () const |
| Returns true if the layout has uniform page sizes, e.g. More...
|
|
void | insertPage (QgsLayoutItemPage *page, int beforePage) |
| Inserts a page into a specific position in the collection. More...
|
|
QList< QgsLayoutItem * > | itemsOnPage (int page) const |
| Returns a list of layout items on the specified page index. More...
|
|
template<class T > |
void | itemsOnPage (QList< T * > &itemList, int page) const |
| Returns layout items of a specific type on a specified page. More...
|
|
QgsLayout * | layout () override |
| Returns the layout the object belongs to. More...
|
|
QSizeF | maximumPageSize () const |
| Returns the maximum size of any page in the collection, by area. More...
|
|
double | maximumPageWidth () const |
| Returns the maximum width of pages in the collection. More...
|
|
QgsLayoutItemPage * | page (int pageNumber) |
| Returns a specific page (by pageNumber) from the collection. More...
|
|
const QgsLayoutItemPage * | page (int pageNumber) const |
| Returns a specific page (by pageNumber) from the collection. More...
|
|
QgsLayoutItemPage * | pageAtPoint (QPointF point) const |
| Returns the page at a specified point (in layout coordinates). More...
|
|
int | pageCount () const |
| Returns the number of pages in the collection. More...
|
|
bool | pageIsEmpty (int page) const |
| Returns whether a given page index is empty, ie, it contains no items except for the background paper item. More...
|
|
int | pageNumber (QgsLayoutItemPage *page) const |
| Returns the page number for the specified page, or -1 if the page is not contained in the collection. More...
|
|
int | pageNumberForPoint (QPointF point) const |
| Returns the page number corresponding to a point in the layout (in layout units). More...
|
|
QgsLayoutPoint | pagePositionToAbsolute (int page, const QgsLayoutPoint &position) const |
| Converts a position on a page to an absolute position in (maintaining the units from the input position). More...
|
|
QPointF | pagePositionToLayoutPosition (int page, const QgsLayoutPoint &position) const |
| Converts a position on a page to an absolute position in layout coordinates. More...
|
|
QList< QgsLayoutItemPage * > | pages () |
| Returns a list of pages in the collection. More...
|
|
double | pageShadowWidth () const |
| Returns the size of the page shadow, in layout units. More...
|
|
Q_DECL_DEPRECATED const QgsFillSymbol * | pageStyleSymbol () const |
| Returns the symbol to use for drawing pages in the collection. More...
|
|
QPointF | positionOnPage (QPointF point) const |
| Returns the position within a page of a point in the layout (in layout units). More...
|
|
int | predictPageNumberForPoint (QPointF point) const |
| Returns the theoretical page number corresponding to a point in the layout (in layout units), assuming that enough pages exist in the layout to cover that point. More...
|
|
bool | readXml (const QDomElement &collectionElement, const QDomDocument &document, const QgsReadWriteContext &context) override |
| Sets the collection's state from a DOM element. More...
|
|
void | reflow () |
| Forces the page collection to reflow the arrangement of pages, e.g. More...
|
|
void | resizeToContents (const QgsMargins &margins, QgsUnitTypes::LayoutUnit marginUnits) |
| Resizes the layout to a single page which fits the current contents of the layout. More...
|
|
void | setPageStyleSymbol (QgsFillSymbol *symbol) |
| Sets the symbol to use for drawing pages in the collection. More...
|
|
bool | shouldExportPage (int page) const |
| Returns whether the specified page number should be included in exports of the layouts. More...
|
|
double | spaceBetweenPages () const |
| Returns the space between pages, in layout units. More...
|
|
QString | stringType () const override |
| Returns the object type as a string. More...
|
|
QgsLayoutItemPage * | takePage (QgsLayoutItemPage *page) |
| Takes a page from the collection, returning ownership of the page to the caller. More...
|
|
QList< int > | visiblePageNumbers (const QRectF ®ion) const |
| Returns a list of the page numbers which are visible within the specified region (in layout coordinates). More...
|
|
QList< QgsLayoutItemPage * > | visiblePages (const QRectF ®ion) const |
| Returns a list of the pages which are visible within the specified region (in layout coordinates). More...
|
|
bool | writeXml (QDomElement &parentElement, QDomDocument &document, const QgsReadWriteContext &context) const override |
| Stores the collection's state in a DOM element. More...
|
|
QgsAbstractLayoutUndoCommand * | createCommand (const QString &text, int id, QUndoCommand *parent=nullptr) override |
| Creates a new layout undo command with the specified text and parent. More...
|
|
virtual QgsLayout * | layout ()=0 |
| Returns the layout the object belongs to. More...
|
|
virtual bool | readXml (const QDomElement &element, const QDomDocument &document, const QgsReadWriteContext &context)=0 |
| Sets the objects's state from a DOM element. More...
|
|
virtual QString | stringType () const =0 |
| Returns the object type as a string. More...
|
|
virtual bool | writeXml (QDomElement &parentElement, QDomDocument &document, const QgsReadWriteContext &context) const =0 |
| Stores the objects's state in a DOM element. More...
|
|
virtual | ~QgsLayoutUndoObjectInterface ()=default |
| Destructor for QgsLayoutUndoObjectInterface. More...
|
|
virtual QgsAbstractLayoutUndoCommand * | createCommand (const QString &text, int id=0, QUndoCommand *parent=nullptr)=0 |
| Creates a new layout undo command with the specified text and parent. More...
|
|