cmdpage.cpp File Reference
#include "cmdpage.h"#include "cmdutil.h"#include "page.h"#include "scribuscore.h"#include "commonstrings.h"

Go to the source code of this file.
Functions | |
| PyObject * | scribus_actualpage (PyObject *) |
| PyObject * | scribus_redraw (PyObject *) |
| PyObject * | scribus_pageposition (PyObject *, PyObject *args) |
| PyObject * | scribus_savepageeps (PyObject *, PyObject *args) |
| PyObject * | scribus_deletepage (PyObject *, PyObject *args) |
| PyObject * | scribus_gotopage (PyObject *, PyObject *args) |
| PyObject * | scribus_newpage (PyObject *, PyObject *args) |
| PyObject * | scribus_pagecount (PyObject *) |
| PyObject * | scribus_pagedimension (PyObject *) |
| PyObject * | scribus_getpageitems (PyObject *) |
| PyObject * | scribus_getHguides (PyObject *) |
| PyObject * | scribus_setHguides (PyObject *, PyObject *args) |
| PyObject * | scribus_getVguides (PyObject *) |
| PyObject * | scribus_setVguides (PyObject *, PyObject *args) |
| PyObject * | scribus_getpagemargins (PyObject *) |
| void | import_addpages (int total, int pos) |
| PyObject * | scribus_importpage (PyObject *, PyObject *args) |
| void | cmdpagedocwarnings () |
Function Documentation
| void cmdpagedocwarnings | ( | ) |
HACK: this removes "warning: 'blah' defined but not used" compiler warnings with header files structure untouched (docstrings are kept near declarations) PV
Definition at line 458 of file cmdpage.cpp.
| void import_addpages | ( | int | total, | |
| int | pos | |||
| ) |
Definition at line 333 of file cmdpage.cpp.
References ScribusDoc::currentPageLayout, ScribusMainWindow::doc, LeftPage, ScribusDoc::locationOfPage(), MiddlePage, ScribusDoc::Pages, ScribusDoc::pageSets, ScribusCore::primaryMainWindow(), RightPage, ScCore, ScribusMainWindow::slotNewPageP(), CommonStrings::trMasterPageNormal, CommonStrings::trMasterPageNormalLeft, CommonStrings::trMasterPageNormalMiddle, and CommonStrings::trMasterPageNormalRight.
Referenced by scribus_importpage().
| PyObject* scribus_actualpage | ( | PyObject * | ) |
get actual page
Definition at line 14 of file cmdpage.cpp.
References checkHaveDocument(), ScribusDoc::currentPageNumber(), ScribusMainWindow::doc, ScribusCore::primaryMainWindow(), and ScCore.
| PyObject* scribus_deletepage | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Delete page
Definition at line 70 of file cmdpage.cpp.
References checkHaveDocument(), ScribusMainWindow::DeletePage2(), ScribusMainWindow::doc, ScribusDoc::Pages, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, ScCore, and tr().
| PyObject* scribus_getHguides | ( | PyObject * | ) |
get H guides
Definition at line 211 of file cmdpage.cpp.
References checkHaveDocument(), ScribusDoc::currentPage(), ScribusMainWindow::doc, Page::guides, GuideManagerCore::horizontals(), PointToValue(), ScribusCore::primaryMainWindow(), ScCore, and GuideManagerCore::Standard.
| PyObject* scribus_getpageitems | ( | PyObject * | ) |
returns a list of tuples with items on the actual page TODO: solve utf/iso chars in object names (Petr Vanek 03/02/2004)
Definition at line 179 of file cmdpage.cpp.
References checkHaveDocument(), ScribusDoc::currentPageNumber(), ScribusMainWindow::doc, ScribusDoc::Items, ScribusCore::primaryMainWindow(), and ScCore.
| PyObject* scribus_getpagemargins | ( | PyObject * | ) |
returns a tuple with page margins Craig Ringer, Petr Vanek 09/25/2004
Definition at line 313 of file cmdpage.cpp.
References MarginStruct::Bottom, checkHaveDocument(), ScribusMainWindow::doc, MarginStruct::Left, ScribusDoc::pageMargins, PointToValue(), ScribusCore::primaryMainWindow(), MarginStruct::Right, ScCore, and MarginStruct::Top.
| PyObject* scribus_getVguides | ( | PyObject * | ) |
get V guides
Definition at line 262 of file cmdpage.cpp.
References checkHaveDocument(), ScribusDoc::currentPage(), ScribusMainWindow::doc, Page::guides, PointToValue(), ScribusCore::primaryMainWindow(), ScCore, GuideManagerCore::Standard, and GuideManagerCore::verticals().
| PyObject* scribus_gotopage | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Go to page
Definition at line 89 of file cmdpage.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusView::GotoPage(), ScribusDoc::Pages, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, ScCore, tr(), and ScribusMainWindow::view.
| PyObject* scribus_importpage | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Definition at line 369 of file cmdpage.cpp.
References checkHaveDocument(), ScribusDoc::currentPage(), ScribusMainWindow::doc, doc, ScribusDoc::DocPages, ScribusView::GotoPa(), import_addpages(), ScribusMainWindow::loadPage(), ScribusDoc::masterPageMode(), p, Page::pageNr(), ScribusCore::primaryMainWindow(), Py_RETURN_NONE, ScCore, tr(), and ScribusMainWindow::view.
| PyObject* scribus_newpage | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
new page
Definition at line 108 of file cmdpage.cpp.
References checkHaveDocument(), ScribusDoc::currentPageLayout, ScribusMainWindow::doc, LeftPage, ScribusDoc::locationOfPage(), ScribusDoc::MasterNames, MiddlePage, ScribusDoc::Pages, ScribusDoc::pageSets, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, RightPage, ScCore, ScribusMainWindow::slotNewPageP(), tr(), CommonStrings::trMasterPageNormal, CommonStrings::trMasterPageNormalLeft, CommonStrings::trMasterPageNormalMiddle, and CommonStrings::trMasterPageNormalRight.
| PyObject* scribus_pagecount | ( | PyObject * | ) |
Go to page
Definition at line 159 of file cmdpage.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::Pages, ScribusCore::primaryMainWindow(), and ScCore.
| PyObject* scribus_pagedimension | ( | PyObject * | ) |
returns a tuple with page domensions in used system e.g. when is the doc in picas returns picas ;) (Petr Vanek 02/17/04)
Definition at line 166 of file cmdpage.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::pageHeight, ScribusDoc::pageWidth, PointToValue(), ScribusCore::primaryMainWindow(), and ScCore.
| PyObject* scribus_pageposition | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Go to page
Definition at line 31 of file cmdpage.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::locationOfPage(), ScribusDoc::Pages, ScribusCore::primaryMainWindow(), ScCore, and tr().
| PyObject* scribus_redraw | ( | PyObject * | ) |
redraw all
Definition at line 21 of file cmdpage.cpp.
References checkHaveDocument(), ScribusView::DrawNew(), ScribusCore::primaryMainWindow(), Py_RETURN_NONE, ScCore, and ScribusMainWindow::view.
| PyObject* scribus_savepageeps | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Export page as EPS file
Definition at line 47 of file cmdpage.cpp.
References checkHaveDocument(), ScribusMainWindow::DoSaveAsEps(), ScribusCore::primaryMainWindow(), ScCore, ScribusException, and tr().
| PyObject* scribus_setHguides | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
set H guides
Definition at line 232 of file cmdpage.cpp.
References GuideManagerCore::addHorizontal(), checkHaveDocument(), GuideManagerCore::clearHorizontals(), ScribusDoc::currentPage(), ScribusMainWindow::doc, Page::guides, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, ScCore, GuideManagerCore::Standard, tr(), and ValueToPoint().
| PyObject* scribus_setVguides | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
set V guides
Definition at line 283 of file cmdpage.cpp.
References GuideManagerCore::addVertical(), checkHaveDocument(), GuideManagerCore::clearVerticals(), ScribusDoc::currentPage(), ScribusMainWindow::doc, Page::guides, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, ScCore, GuideManagerCore::Standard, tr(), and ValueToPoint().
