Back to index

scribus-ng  1.3.4.dfsg+svn20071115
scripter2_scribus_scribusdoc.cpp
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 #include "cmdvar.h"
00008 
00009 using boost::python::list;
00010 using boost::python::throw_error_already_set;
00011 
00012 /*
00013 PageItemList getDocItems(ScribusDoc & doc)
00014 {
00015        return PageItemList(doc.DocItems);
00016 }
00017 
00018 PageItemList getMasterItems(ScribusDoc & doc)
00019 {
00020        return PageItemList(doc.MasterItems);
00021 }
00022 */
00023 
00024 void export_ScribusDoc()
00025 {
00026        using namespace boost::python;
00027 
00028        scope d = class_<ScribusDoc, bases<QObject>, boost::noncopyable>("ScribusDoc",
00029                                    "A Scribus document",
00030                                    no_init)
00031               .add_property("isModified", &ScribusDoc::isModified, &ScribusDoc::setModified);
00032        /*
00033               .add_property("items", &getDocItems)
00034               .add_property("masterPageItems", &getMasterItems);
00035               */
00036 }