diff options
| author | craig <craig@11d20701-8431-0410-a711-e3c959e3b870> | 2012-01-01 11:40:09 +0000 |
|---|---|---|
| committer | craig <craig@11d20701-8431-0410-a711-e3c959e3b870> | 2012-01-01 11:40:09 +0000 |
| commit | 7ed83b6c6666eb8b6b104c211ae7e52907350372 (patch) | |
| tree | 4430b556abac0ad660a0aacf1887d77f85d8be02 /scribus/plugins/scriptplugin/scripter2/scripter2_scribusstructs.cpp | |
| download | scribus-7ed83b6c6666eb8b6b104c211ae7e52907350372.tar.gz scribus-7ed83b6c6666eb8b6b104c211ae7e52907350372.tar.xz scribus-7ed83b6c6666eb8b6b104c211ae7e52907350372.zip | |
Branch 1.3.5 tree to 1.4.x tree, goodbye 1.3.x
git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17163 11d20701-8431-0410-a711-e3c959e3b870
Diffstat (limited to 'scribus/plugins/scriptplugin/scripter2/scripter2_scribusstructs.cpp')
| -rw-r--r-- | scribus/plugins/scriptplugin/scripter2/scripter2_scribusstructs.cpp | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/scribus/plugins/scriptplugin/scripter2/scripter2_scribusstructs.cpp b/scribus/plugins/scriptplugin/scripter2/scripter2_scribusstructs.cpp new file mode 100644 index 0000000..eb2e6ef --- /dev/null +++ b/scribus/plugins/scriptplugin/scripter2/scripter2_scribusstructs.cpp @@ -0,0 +1,67 @@ +/* +For general Scribus (>=1.3.2) copyright and licensing information please refer +to the COPYING file provided with the program. Following this notice may exist +a copyright and/or license notice that predates the release of Scribus 1.3.2 +for which a new license (GPL+exception) is in place. +*/ +#include "cmdvar.h" + +#include "scribusstructs.h" + + +using namespace boost::python; + +/** + * @brief Wrap the ParagraphStyle class + */ +void export_ParagraphStyle() +{ + class_<ParagraphStyle>("ParagraphStyle") +// .def_readwrite("Vname", &ParagraphStyle::Vname) + .add_property("Vname", make_getter(&ParagraphStyle::Vname, return_value_policy<return_by_value>()), + make_setter(&ParagraphStyle::Vname, return_value_policy<return_by_value>())) + .def_readwrite("LineSpaMode", &ParagraphStyle::LineSpaMode) + .def_readwrite("LineSpa", &ParagraphStyle::LineSpa) + .def_readwrite("textAlignment", &ParagraphStyle::textAlignment) + .def_readwrite("Indent", &ParagraphStyle::Indent) + .def_readwrite("First", &ParagraphStyle::First) + .def_readwrite("gapBefore", &ParagraphStyle::gapBefore) + .def_readwrite("gapAfter", &ParagraphStyle::gapAfter) +// .def_readwrite("Font", &ParagraphStyle::Font) + .add_property("Font", make_getter(&ParagraphStyle::Font, return_value_policy<return_by_value>()), + make_setter(&ParagraphStyle::Font, return_value_policy<return_by_value>())) + .def_readwrite("FontSize", &ParagraphStyle::FontSize) + .def_readwrite("TabValues", &ParagraphStyle::TabValues) + .def_readwrite("Drop", &ParagraphStyle::Drop) + .def_readwrite("DropLin", &ParagraphStyle::DropLin) + .def_readwrite("DropDist", &ParagraphStyle::DropDist) + .def_readwrite("FontEffect", &ParagraphStyle::FontEffect) +// .def_readwrite("FColor", &ParagraphStyle::FColor) + .add_property("FColor", make_getter(&ParagraphStyle::FColor, return_value_policy<return_by_value>()), + make_setter(&ParagraphStyle::FColor, return_value_policy<return_by_value>())) + .def_readwrite("FShade", &ParagraphStyle::FShade) +// .def_readwrite("SColor", &ParagraphStyle::SColor) + .add_property("SColor", make_getter(&ParagraphStyle::SColor, return_value_policy<return_by_value>()), + make_setter(&ParagraphStyle::SColor, return_value_policy<return_by_value>())) + .def_readwrite("SShade", &ParagraphStyle::SShade) + .def_readwrite("BaseAdj", &ParagraphStyle::BaseAdj) + .def_readwrite("txtShadowX", &ParagraphStyle::txtShadowX) + .def_readwrite("txtShadowY", &ParagraphStyle::txtShadowY) + .def_readwrite("txtOutline", &ParagraphStyle::txtOutline) + .def_readwrite("txtUnderPos", &ParagraphStyle::txtUnderPos) + .def_readwrite("txtUnderWidth", &ParagraphStyle::txtUnderWidth) + .def_readwrite("txtStrikePos", &ParagraphStyle::txtStrikePos) + .def_readwrite("txtStrikeWidth", &ParagraphStyle::txtStrikeWidth) + .def_readwrite("scaleH", &ParagraphStyle::scaleH) + .def_readwrite("scaleV", &ParagraphStyle::scaleV) + .def_readwrite("baseOff", &ParagraphStyle::baseOff) + .def_readwrite("kernVal", &ParagraphStyle::kernVal) + ; +} + +void export_ScribusStructs() +{ + export_ParagraphStyle(); +} + + |
