Back to index

scribus-ng  1.3.4.dfsg+svn20071115
cmdutil.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef CMDUTIL_H
00008 #define CMDUTIL_H
00009 
00010 // Pulls in <Python.h> first
00011 #include "cmdvar.h"
00012 
00013 double PointToValue(double Val);
00014 double ValueToPoint(double Val);
00015 
00018 double pageUnitXToDocX(double pageUnitX);
00020 double docUnitXToPageX(double pageUnitX);
00021 
00026 double pageUnitYToDocY(double pageUnitY);
00028 double docUnitYToPageY(double pageUnitY);
00029 
00030 int GetItem(QString Name);
00031 void ReplaceColor(QString col, QString rep);
00043 PageItem* GetUniqueItem(QString name);
00044 
00051 PageItem* getPageItemByName(QString name);
00052 
00053 // 2004-10-27 Craig Ringer see cmdutil.cpp for description
00054 bool checkHaveDocument();
00055 
00056 // 2004-11-12 Craig Ringer see cmdutil.cpp for description
00057 bool ItemExists(QString name);
00058 
00062 QStringList getSelectedItemsByName();
00069 bool setSelectedItemsByName(QStringList& itemNames);
00070 
00071 #endif