cmdmisc.cpp File Reference
#include "cmdmisc.h"#include "cmdutil.h"#include "qbuffer.h"#include "qpixmap.h"#include <QList>#include "scribuscore.h"#include "fonts/scfontmetrics.h"#include "prefsmanager.h"

Go to the source code of this file.
Functions | |
| PyObject * | scribus_setredraw (PyObject *, PyObject *args) |
| PyObject * | scribus_fontnames (PyObject *) |
| PyObject * | scribus_xfontnames (PyObject *) |
| PyObject * | scribus_renderfont (PyObject *, PyObject *args, PyObject *kw) |
| PyObject * | scribus_getlayers (PyObject *) |
| PyObject * | scribus_setactlayer (PyObject *, PyObject *args) |
| PyObject * | scribus_getactlayer (PyObject *) |
| PyObject * | scribus_senttolayer (PyObject *, PyObject *args) |
| PyObject * | scribus_layervisible (PyObject *, PyObject *args) |
| PyObject * | scribus_layerprint (PyObject *, PyObject *args) |
| PyObject * | scribus_layerlock (PyObject *, PyObject *args) |
| PyObject * | scribus_layeroutline (PyObject *, PyObject *args) |
| PyObject * | scribus_layerflow (PyObject *, PyObject *args) |
| PyObject * | scribus_layerblend (PyObject *, PyObject *args) |
| PyObject * | scribus_layertrans (PyObject *, PyObject *args) |
| PyObject * | scribus_glayervisib (PyObject *, PyObject *args) |
| PyObject * | scribus_glayerprint (PyObject *, PyObject *args) |
| PyObject * | scribus_glayerlock (PyObject *, PyObject *args) |
| PyObject * | scribus_glayeroutline (PyObject *, PyObject *args) |
| PyObject * | scribus_glayerflow (PyObject *, PyObject *args) |
| PyObject * | scribus_glayerblend (PyObject *, PyObject *args) |
| PyObject * | scribus_glayertrans (PyObject *, PyObject *args) |
| PyObject * | scribus_removelayer (PyObject *, PyObject *args) |
| PyObject * | scribus_createlayer (PyObject *, PyObject *args) |
| PyObject * | scribus_getlanguage (PyObject *) |
| PyObject * | scribus_moveselectiontofront (PyObject *) |
| PyObject * | scribus_moveselectiontoback (PyObject *) |
| void | cmdmiscdocwarnings () |
Function Documentation
| void cmdmiscdocwarnings | ( | ) |
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 778 of file cmdmisc.cpp.
| PyObject* scribus_createlayer | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
New layer
Definition at line 737 of file cmdmisc.cpp.
References ScribusDoc::activeLayer(), ScribusDoc::addLayer(), ScribusMainWindow::changeLayer(), checkHaveDocument(), ScribusMainWindow::doc, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, ScCore, and tr().
| PyObject* scribus_fontnames | ( | PyObject * | ) |
simple list of font names.
Definition at line 32 of file cmdmisc.cpp.
References SCFontsIterator::current(), SCFontsIterator::currentKey(), SCFontsIterator::hasNext(), PrefsManager::instance(), SCFontsIterator::next(), and ScFace::usable().
| PyObject* scribus_getactlayer | ( | PyObject * | ) |
Get layer name
Definition at line 185 of file cmdmisc.cpp.
References ScribusDoc::activeLayerName(), checkHaveDocument(), ScribusMainWindow::doc, ScribusCore::primaryMainWindow(), and ScCore.
| PyObject* scribus_getlanguage | ( | PyObject * | ) |
Language of the GUI
Definition at line 756 of file cmdmisc.cpp.
References ScribusCore::getGuiLanguage(), and ScCore.
| PyObject* scribus_getlayers | ( | PyObject * | ) |
List of the layers
Definition at line 149 of file cmdmisc.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::Layers, ScribusCore::primaryMainWindow(), and ScCore.
| PyObject* scribus_glayerblend | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Set layer visible
Definition at line 618 of file cmdmisc.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::Layers, NotFoundError, ScribusCore::primaryMainWindow(), ScCore, and tr().
| PyObject* scribus_glayerflow | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Set layer visible
Definition at line 587 of file cmdmisc.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::Layers, NotFoundError, ScribusCore::primaryMainWindow(), ScCore, and tr().
| PyObject* scribus_glayerlock | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Set layer visible
Definition at line 525 of file cmdmisc.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::Layers, NotFoundError, ScribusCore::primaryMainWindow(), ScCore, and tr().
| PyObject* scribus_glayeroutline | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Set layer visible
Definition at line 556 of file cmdmisc.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::Layers, NotFoundError, ScribusCore::primaryMainWindow(), ScCore, and tr().
| PyObject* scribus_glayerprint | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Set layer printable
Definition at line 494 of file cmdmisc.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::Layers, NotFoundError, ScribusCore::primaryMainWindow(), ScCore, and tr().
| PyObject* scribus_glayertrans | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Set layer visible
Definition at line 649 of file cmdmisc.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::Layers, NotFoundError, ScribusCore::primaryMainWindow(), ScCore, and tr().
| PyObject* scribus_glayervisib | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Set layer visible
Definition at line 463 of file cmdmisc.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::Layers, NotFoundError, ScribusCore::primaryMainWindow(), ScCore, and tr().
| PyObject* scribus_layerblend | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Set layer printable
Definition at line 397 of file cmdmisc.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::Layers, NotFoundError, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, ScCore, and tr().
| PyObject* scribus_layerflow | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Set layer printable
Definition at line 364 of file cmdmisc.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::Layers, NotFoundError, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, ScCore, and tr().
| PyObject* scribus_layerlock | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Set layer printable
Definition at line 298 of file cmdmisc.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::Layers, NotFoundError, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, ScCore, and tr().
| PyObject* scribus_layeroutline | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Set layer printable
Definition at line 331 of file cmdmisc.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::Layers, NotFoundError, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, ScCore, and tr().
| PyObject* scribus_layerprint | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Set layer printable
Definition at line 265 of file cmdmisc.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::Layers, NotFoundError, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, ScCore, and tr().
| PyObject* scribus_layertrans | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Set layer printable
Definition at line 430 of file cmdmisc.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::Layers, NotFoundError, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, ScCore, and tr().
| PyObject* scribus_layervisible | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Set layer visible
Definition at line 232 of file cmdmisc.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::Layers, NotFoundError, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, ScCore, and tr().
| PyObject* scribus_moveselectiontoback | ( | PyObject * | ) |
04.01.2007 : Joachim Neu : Moves item selection to back.
Definition at line 769 of file cmdmisc.cpp.
References ScribusMainWindow::doc, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, ScCore, and ScribusDoc::sendItemSelectionToBack().
| PyObject* scribus_moveselectiontofront | ( | PyObject * | ) |
04.01.2007 : Joachim Neu : Moves item selection to front.
Definition at line 762 of file cmdmisc.cpp.
References ScribusDoc::bringItemSelectionToFront(), ScribusMainWindow::doc, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, and ScCore.
| PyObject* scribus_removelayer | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Remove layer
Definition at line 680 of file cmdmisc.cpp.
References ScribusMainWindow::changeLayer(), checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::Layers, ScLayer::Level, ScLayer::LNr, NotFoundError, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, ScribusDoc::removeLayer(), ScCore, ScribusException, ScribusDoc::setActiveLayer(), and tr().
| PyObject* scribus_renderfont | ( | PyObject * | , | |
| PyObject * | args, | |||
| PyObject * | kw | |||
| ) |
Font example to image.
Definition at line 79 of file cmdmisc.cpp.
References PrefsManager::appPrefs, ApplicationPrefs::AvailFonts, FontSample(), PrefsManager::instance(), NotFoundError, ScribusException, and tr().
| PyObject* scribus_senttolayer | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Move object from one layer to other one
Definition at line 192 of file cmdmisc.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, GetUniqueItem(), PageItem::ItemNr, PageItem::LayerNr, ScribusDoc::Layers, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, ScCore, ScribusException, ScribusView::SelectItemNr(), tr(), and ScribusMainWindow::view.
| PyObject* scribus_setactlayer | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Move into layer
Definition at line 160 of file cmdmisc.cpp.
References ScribusDoc::activeLayer(), ScribusMainWindow::changeLayer(), checkHaveDocument(), ScribusMainWindow::doc, NotFoundError, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, ScCore, ScribusDoc::setActiveLayer(), and tr().
| PyObject* scribus_setredraw | ( | PyObject * | , | |
| PyObject * | args | |||
| ) |
Enable/disable page redrawing.
Definition at line 19 of file cmdmisc.cpp.
References checkHaveDocument(), ScribusMainWindow::doc, ScribusDoc::DoDrawing, ScribusCore::primaryMainWindow(), Py_RETURN_NONE, and ScCore.
| PyObject* scribus_xfontnames | ( | PyObject * | ) |
return a list of the tuples with Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file
Definition at line 55 of file cmdmisc.cpp.
References PrefsManager::instance().
