Back to index

scribus-ng  1.3.4.dfsg+svn20071115
scripter2_scribusstructs.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 "scribusstructs.h"
00010 
00011 
00012 using namespace boost::python;
00013 
00017 void export_ParagraphStyle()
00018 {
00019        class_<ParagraphStyle>("ParagraphStyle")
00020 //            .def_readwrite("Vname", &ParagraphStyle::Vname)
00021               .add_property("Vname", make_getter(&ParagraphStyle::Vname, return_value_policy<return_by_value>()),
00022                                      make_setter(&ParagraphStyle::Vname, return_value_policy<return_by_value>()))
00023               .def_readwrite("LineSpaMode", &ParagraphStyle::LineSpaMode)
00024               .def_readwrite("LineSpa", &ParagraphStyle::LineSpa)
00025               .def_readwrite("textAlignment", &ParagraphStyle::textAlignment)
00026               .def_readwrite("Indent", &ParagraphStyle::Indent)
00027               .def_readwrite("First", &ParagraphStyle::First)
00028               .def_readwrite("gapBefore", &ParagraphStyle::gapBefore)
00029               .def_readwrite("gapAfter", &ParagraphStyle::gapAfter)
00030 //            .def_readwrite("Font", &ParagraphStyle::Font)
00031               .add_property("Font", make_getter(&ParagraphStyle::Font, return_value_policy<return_by_value>()),
00032                                     make_setter(&ParagraphStyle::Font, return_value_policy<return_by_value>()))
00033               .def_readwrite("FontSize", &ParagraphStyle::FontSize)
00034               .def_readwrite("TabValues", &ParagraphStyle::TabValues)
00035               .def_readwrite("Drop", &ParagraphStyle::Drop)
00036               .def_readwrite("DropLin", &ParagraphStyle::DropLin)
00037               .def_readwrite("DropDist", &ParagraphStyle::DropDist)
00038               .def_readwrite("FontEffect", &ParagraphStyle::FontEffect)
00039 //            .def_readwrite("FColor", &ParagraphStyle::FColor)
00040               .add_property("FColor", make_getter(&ParagraphStyle::FColor, return_value_policy<return_by_value>()),
00041                                       make_setter(&ParagraphStyle::FColor, return_value_policy<return_by_value>()))
00042               .def_readwrite("FShade", &ParagraphStyle::FShade)
00043 //            .def_readwrite("SColor", &ParagraphStyle::SColor)
00044               .add_property("SColor", make_getter(&ParagraphStyle::SColor, return_value_policy<return_by_value>()),
00045                                       make_setter(&ParagraphStyle::SColor, return_value_policy<return_by_value>()))
00046               .def_readwrite("SShade", &ParagraphStyle::SShade)
00047               .def_readwrite("BaseAdj", &ParagraphStyle::BaseAdj)
00048               .def_readwrite("txtShadowX", &ParagraphStyle::txtShadowX)
00049               .def_readwrite("txtShadowY", &ParagraphStyle::txtShadowY)
00050               .def_readwrite("txtOutline", &ParagraphStyle::txtOutline)
00051               .def_readwrite("txtUnderPos", &ParagraphStyle::txtUnderPos)
00052               .def_readwrite("txtUnderWidth", &ParagraphStyle::txtUnderWidth)
00053               .def_readwrite("txtStrikePos", &ParagraphStyle::txtStrikePos)
00054               .def_readwrite("txtStrikeWidth", &ParagraphStyle::txtStrikeWidth)
00055               .def_readwrite("scaleH", &ParagraphStyle::scaleH)
00056               .def_readwrite("scaleV", &ParagraphStyle::scaleV)
00057               .def_readwrite("baseOff", &ParagraphStyle::baseOff)
00058               .def_readwrite("kernVal", &ParagraphStyle::kernVal)
00059               ;
00060 }
00061 
00062 void export_ScribusStructs()
00063 {
00064        export_ParagraphStyle();
00065 }
00066 
00067