/usr/include/scribus/page.h is in scribus-dev 1.4.6+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | /*
For general Scribus (>=1.3.2) copyright and licensing information please refer
to the COPYING file provided with the program. Following this notice may exist
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
/***************************************************************************
page.h - description
-------------------
begin : Sat Apr 7 2001
copyright : (C) 2001 by Franz Schmid
email : Franz.Schmid@altmuehlnet.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef PAGE_H
#define PAGE_H
#include <utility>
#include <QList>
#include "scribusapi.h"
#include "undostate.h"
#include "scribusstructs.h"
#include "guidemanagercore.h"
class PageItem;
class QString;
class UndoManager;
class UndoState;
class ScribusDoc;
/**
*@author Franz Schmid
*/
class SCRIBUS_API Page : public UndoObject, public SingleObservable<Page>
{
public:
Page(const double x, const double y, const double b, const double h);
~Page();
double xOffset() const { return m_xOffset; }
double yOffset() const { return m_yOffset; }
double width() const { return m_width; }
double height() const { return m_height; }
double initialWidth() const { return m_initialWidth; }
double initialHeight() const { return m_initialHeight; }
void setXOffset(const double);
void setYOffset(const double);
void setWidth(const double);
void setHeight(const double);
void setInitialWidth(const double);
void setInitialHeight(const double);
void copySizingProperties(Page *sourcePage, const MarginStruct& pageMargins);
double leftMargin() const { return Margins.Left; }
double topMargin() const { return Margins.Top; }
double bottomMargin() const { return Margins.Bottom; }
double rightMargin() const { return Margins.Right; }
MarginStruct Margins;
MarginStruct initialMargins;
/** Nummer der Seite */
int LeftPg;
//! Name of the master page that this page uses
QString MPageNam;
QString m_pageSize;
int PageOri;
int marginPreset;
ScribusDoc* doc() const { return m_Doc; }
void setDocument(ScribusDoc* doc);
int pageNr() const { return m_pageNr; }
void setPageNr(int pageNr);
const QString& pageSectionNumber() const { return m_pageSectionNumber; }
void setPageSectionNumber(const QString&);
//! Return the page's name
const QString& pageName() const {return m_PageName;};
void setPageName(const QString& newName);
void restore(UndoState* state, bool isUndo);
/*! \brief As a bit of a dirty hack, we declare this mutable so it can be altered
even while the object is `const'. That's normally only for internal
implementation, but in this case it at least lets us guarantee the rest
of the object is unchanged in (eg) pdflib. This should be replaced with
proper access methods later. */
mutable QList<PageItem*> FromMaster;
//! \brief Guides lists and basic operations
GuideManagerCore guides;
protected:
UndoManager * const undoManager;
void restorePageItemCreation(ItemState<PageItem*> *state, bool isUndo);
void restorePageItemDeletion(ItemState< QList<PageItem*> > *state, bool isUndo);
void restorePageItemConversion(ItemState<std::pair<PageItem*, PageItem*> >*state, bool isUndo);
double m_xOffset;
double m_yOffset;
double m_width;
double m_height;
double m_initialWidth;
double m_initialHeight;
int m_pageNr;
//! Name of this page, currently only allowed to be used by a master page
QString m_PageName;
ScribusDoc* m_Doc;
QString m_pageSectionNumber;
};
Q_DECLARE_METATYPE(Page*);
#endif
|