-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a common base class for print layouts and reports, and adapt
QgsLayoutManager to suit
- Loading branch information
1 parent
d8af098
commit 6f2c63f
Showing
39 changed files
with
543 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgsmasterlayoutinterface.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
class QgsMasterLayoutInterface | ||
{ | ||
%Docstring | ||
Interface for master layout type objects, such as print layouts and reports. | ||
|
||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsmasterlayoutinterface.h" | ||
%End | ||
public: | ||
|
||
virtual ~QgsMasterLayoutInterface(); | ||
|
||
virtual QgsMasterLayoutInterface *clone() const = 0 /Factory/; | ||
%Docstring | ||
Creates a clone of the layout. Ownership of the returned layout | ||
is transferred to the caller. | ||
%End | ||
|
||
virtual QString name() const = 0; | ||
%Docstring | ||
Returns the layout's name. | ||
|
||
.. seealso:: :py:func:`setName()` | ||
%End | ||
|
||
virtual void setName( const QString &name ) = 0; | ||
%Docstring | ||
Sets the layout's name. | ||
|
||
.. seealso:: :py:func:`name()` | ||
%End | ||
|
||
virtual QgsProject *layoutProject() const = 0; | ||
%Docstring | ||
The project associated with the layout. Used to get access to layers, map themes, | ||
relations and various other bits. It is never null. | ||
%End | ||
|
||
virtual QDomElement writeLayoutXml( QDomDocument &document, const QgsReadWriteContext &context ) const = 0; | ||
%Docstring | ||
Returns the layout's state encapsulated in a DOM element. | ||
|
||
.. seealso:: :py:func:`readLayoutXml()` | ||
%End | ||
|
||
virtual bool readLayoutXml( const QDomElement &layoutElement, const QDomDocument &document, const QgsReadWriteContext &context ) = 0; | ||
%Docstring | ||
Sets the layout's state from a DOM element. ``layoutElement`` is the DOM node corresponding to the layout. | ||
|
||
.. seealso:: :py:func:`writeLayoutXml()` | ||
%End | ||
|
||
}; | ||
|
||
|
||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgsmasterlayoutinterface.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.