Scribus
Open source desktop publishing at your fingertips
cmdutil.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef CMDUTIL_H
8 #define CMDUTIL_H
9 
10 // Pulls in <Python.h> first
11 #include "cmdvar.h"
12 
13 double PointToValue(double Val);
14 double ValueToPoint(double Val);
15 
18 double pageUnitXToDocX(double pageUnitX);
20 double docUnitXToPageX(double pageUnitX);
21 
26 double pageUnitYToDocY(double pageUnitY);
28 double docUnitYToPageY(double pageUnitY);
29 
30 PageItem *GetItem(QString Name);
31 void ReplaceColor(QString col, QString rep);
43 PageItem* GetUniqueItem(QString name);
44 
51 PageItem* getPageItemByName(QString name);
52 
53 // 2004-10-27 Craig Ringer see cmdutil.cpp for description
54 bool checkHaveDocument();
55 
56 // 2004-11-12 Craig Ringer see cmdutil.cpp for description
57 bool ItemExists(QString name);
58 
62 QStringList getSelectedItemsByName();
69 bool setSelectedItemsByName(QStringList& itemNames);
70 
72 TableBorder parseBorder(PyObject* borderLines, bool* ok);
73 
74 
75 #endif
Definition: tableborder.h:86
Definition: pageitem.h:92