1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #include "cmdvar.h"
8 
9 #include "scribusstructs.h"
10 
11 
12 using namespace boost::python;
13 
14 /**
15  * @brief Wrap the ParagraphStyle class
16  */
export_ParagraphStyle()17 void export_ParagraphStyle()
18 {
19 	class_<ParagraphStyle>("ParagraphStyle")
20 //		.def_readwrite("Vname", &ParagraphStyle::Vname)
21 		.add_property("Vname", make_getter(&ParagraphStyle::Vname, return_value_policy<return_by_value>()),
22 		                       make_setter(&ParagraphStyle::Vname, return_value_policy<return_by_value>()))
23 		.def_readwrite("LineSpaMode", &ParagraphStyle::LineSpaMode)
24 		.def_readwrite("LineSpa", &ParagraphStyle::LineSpa)
25 		.def_readwrite("textAlignment", &ParagraphStyle::textAlignment)
26 		.def_readwrite("Indent", &ParagraphStyle::Indent)
27 		.def_readwrite("First", &ParagraphStyle::First)
28 		.def_readwrite("gapBefore", &ParagraphStyle::gapBefore)
29 		.def_readwrite("gapAfter", &ParagraphStyle::gapAfter)
30 //		.def_readwrite("Font", &ParagraphStyle::Font)
31 		.add_property("Font", make_getter(&ParagraphStyle::Font, return_value_policy<return_by_value>()),
32 		                      make_setter(&ParagraphStyle::Font, return_value_policy<return_by_value>()))
33 		.def_readwrite("FontSize", &ParagraphStyle::FontSize)
34 		.def_readwrite("TabValues", &ParagraphStyle::TabValues)
35 		.def_readwrite("Drop", &ParagraphStyle::Drop)
36 		.def_readwrite("DropLin", &ParagraphStyle::DropLin)
37 		.def_readwrite("DropDist", &ParagraphStyle::DropDist)
38 		.def_readwrite("FontEffect", &ParagraphStyle::FontEffect)
39 //		.def_readwrite("FColor", &ParagraphStyle::FColor)
40 		.add_property("FColor", make_getter(&ParagraphStyle::FColor, return_value_policy<return_by_value>()),
41 		                        make_setter(&ParagraphStyle::FColor, return_value_policy<return_by_value>()))
42 		.def_readwrite("FShade", &ParagraphStyle::FShade)
43 //		.def_readwrite("SColor", &ParagraphStyle::SColor)
44 		.add_property("SColor", make_getter(&ParagraphStyle::SColor, return_value_policy<return_by_value>()),
45 		                        make_setter(&ParagraphStyle::SColor, return_value_policy<return_by_value>()))
46 		.def_readwrite("SShade", &ParagraphStyle::SShade)
47 		.def_readwrite("BaseAdj", &ParagraphStyle::BaseAdj)
48 		.def_readwrite("txtShadowX", &ParagraphStyle::txtShadowX)
49 		.def_readwrite("txtShadowY", &ParagraphStyle::txtShadowY)
50 		.def_readwrite("txtOutline", &ParagraphStyle::txtOutline)
51 		.def_readwrite("txtUnderPos", &ParagraphStyle::txtUnderPos)
52 		.def_readwrite("txtUnderWidth", &ParagraphStyle::txtUnderWidth)
53 		.def_readwrite("txtStrikePos", &ParagraphStyle::txtStrikePos)
54 		.def_readwrite("txtStrikeWidth", &ParagraphStyle::txtStrikeWidth)
55 		.def_readwrite("scaleH", &ParagraphStyle::scaleH)
56 		.def_readwrite("scaleV", &ParagraphStyle::scaleV)
57 		.def_readwrite("baseOff", &ParagraphStyle::baseOff)
58 		.def_readwrite("kernVal", &ParagraphStyle::kernVal)
59 		;
60 }
61 
export_ScribusStructs()62 void export_ScribusStructs()
63 {
64 	export_ParagraphStyle();
65 }
66 
67 
68