Back to index

scribus-ng  1.3.4.dfsg+svn20071115
scripter2_scribus_scribusmainwin.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 #include "scribus.h"
00010 #include "scribuswin.h"
00011 #include "scribusdoc.h"
00012 #include "scribusview.h"
00013 
00014 void export_ScribusMainWindow()
00015 {
00016        using namespace boost::python;
00017 
00018        class_<ScribusMainWindow, bases<QWidget>, boost::noncopyable>(
00019                      "ScribusMainWindow",
00020                      "The app's main window, which also provides much of its core functionality",
00021                      no_init)
00022               .add_property("doc", make_getter(&ScribusMainWindow::doc, return_internal_reference<>()))
00023               .add_property("view", make_getter(&ScribusMainWindow::view, return_internal_reference<>()))
00024               .add_property("ActWin", make_getter(&ScribusMainWindow::ActWin, return_internal_reference<>()));
00025 
00026        scope().attr("ScMW") = boost::ref(ScMW);
00027 }
00028 
00029