31 #include "scribusapi.h"
32 #include "undostate.h"
33 #include "scribusstructs.h"
34 #include "guidemanagercore.h"
49 ScPage(
const double x,
const double y,
const double b,
const double h);
51 double xOffset()
const {
return m_xOffset; }
52 double yOffset()
const {
return m_yOffset; }
53 double width()
const {
return m_width; }
54 double height()
const {
return m_height; }
55 double initialWidth()
const {
return m_initialWidth; }
56 double initialHeight()
const {
return m_initialHeight; }
57 int orientation()
const {
return m_orientation; }
58 void setXOffset(
const double);
59 void setYOffset(
const double);
60 void setWidth(
const double);
61 void setHeight(
const double);
62 void setInitialWidth(
const double);
63 void setInitialHeight(
const double);
64 void setOrientation(
int);
67 double leftMargin()
const {
return Margins.
left(); }
68 double topMargin()
const {
return Margins.
top(); }
83 int pageNr()
const {
return m_pageNr; }
84 void setPageNr(
int pageNr);
85 const QString& pageSectionNumber()
const {
return m_pageSectionNumber; }
86 void setPageSectionNumber(
const QString&);
88 const QString&
pageName()
const {
return m_PageName;};
89 void setPageName(
const QString& newName);
105 void restorePageItemDeletion(
ScItemState< QList<PageItem*> > *state,
bool isUndo);
106 void restorePageAttributes(
SimpleState *state,
bool isUndo);
107 void restorePageItemConversion(
ScItemState<std::pair<PageItem*, PageItem*> >*state,
bool isUndo);
108 void restorePageItemConversionToSymbol(
ScItemState<std::pair<PageItem*, PageItem*> >*state,
bool isUndo);
114 double m_initialWidth;
115 double m_initialHeight;
121 QString m_pageSectionNumber;
124 Q_DECLARE_METATYPE(
ScPage*);
Definition: scribusstructs.h:171
double right
Definition: api_document.h:119
int LeftPg
Definition: scpage.h:75
GuideManagerCore guides
Guides lists and basic operations.
Definition: scpage.h:99
Pagemargins and bleeds.
Definition: margins.h:25
double left
Definition: api_document.h:118
UndoState describes an undoable state (action).
Definition: undostate.h:59
Definition: observable.h:159
double top
Definition: api_document.h:117
Core manipulation with the guides. Basic idea:
Definition: guidemanagercore.h:36
the Document Class
Definition: scribusdoc.h:90
Definition: undostate.h:291
Superclass for all objects that are wanted to have undoable actions.
Definition: undoobject.h:59
const QString & pageName() const
Return the page's name.
Definition: scpage.h:88
double bottom
Definition: api_document.h:120
QString MPageNam
Name of the master page that this page uses.
Definition: scpage.h:77
Definition: pageitem.h:92
UndoManager handles the undo stack.
Definition: undomanager.h:81
QList< PageItem * > FromMaster
As a bit of a dirty hack, we declare this mutable so it can be altered even while the object is `cons...
Definition: scpage.h:97
Definition: api_document.h:114
QString m_PageName
Name of this page, currently only allowed to be used by a master page.
Definition: scpage.h:119
SimpleState provides a simple implementation of the UndoState.
Definition: undostate.h:145
virtual void restore(UndoState *state, bool isUndo)=0
Method used when an undo/redo is requested.