16#ifndef QGSLAYOUTMANAGERMODEL_H
17#define QGSLAYOUTMANAGERMODEL_H
23#include <QAbstractListModel>
25#include <QSortFilterProxyModel>
90 void setAllowEmptyLayout(
bool allowEmpty );
110class CORE_EXPORT QgsLayoutManagerProxyModel :
public QgsProjectStoredObjectManagerProxyModelBase
List model representing the print layouts and reports available in a layout manager.
CustomRole
Custom model roles.
bool allowEmptyLayout() const
Returns true if the model allows the empty layout ("not set") choice.
QgsLayoutManagerModel(QgsLayoutManager *manager, QObject *parent=nullptr)
Constructor for QgsLayoutManagerModel, showing the layouts from the specified manager.
void setFilters(QgsLayoutManagerProxyModel::Filters filters)
Sets the current filters used for filtering available layouts.
QgsLayoutManagerProxyModel::Filters filters() const
Returns the current filters used for filtering available layouts.
Filter
Available filter flags for filtering the model.
@ FilterReports
Includes reports.
@ FilterPrintLayouts
Includes print layouts.
QgsLayoutManagerProxyModel(QObject *parent=nullptr)
Constructor for QgsLayoutManagerProxyModel.
bool filterAcceptsRowInternal(int sourceRow, const QModelIndex &sourceParent) const override
Returns true if the proxy accepts the matching source row.
Manages storage of a set of layouts.
Interface for master layout type objects, such as print layouts and reports.
Print layout, a QgsLayout subclass for static or atlas-based layouts.
Base class for list models representing the objects available in a QgsAbstractProjectStoredObjectMana...
QgsProjectStoredObjectManagerModel(QgsAbstractProjectStoredObjectManager< QgsMasterLayoutInterface > *manager, QObject *parent=nullptr)
bool allowEmptyObject() const
QgsProjectStoredObjectManagerProxyModel(QObject *parent=nullptr)
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
An interface for classes which can visit style entity (e.g.
#define SIP_ENUM_BASETYPE(type)
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
#define SIP_MONKEYPATCH_COMPAT_NAME(FORMERNAME)