• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

samples/H03-May-2022-912676

scripter2/H03-May-2022-982647

scripts/H03-May-2022-27,03625,915

README.BOOSTH A D25-Apr-20212 KiB5143

cmdannotations.cppH A D03-May-202219.2 KiB729596

cmdannotations.hH A D03-May-20226.4 KiB200155

cmdcell.cppH A D03-May-202216.8 KiB520477

cmdcell.hH A D03-May-20228.4 KiB216153

cmdcolor.cppH A D03-May-202222.1 KiB695625

cmdcolor.hH A D03-May-202211.7 KiB310230

cmddialog.cppH A D03-May-20225.7 KiB163132

cmddialog.hH A D03-May-20225 KiB11785

cmddoc.cppH A D03-May-202215.1 KiB504411

cmddoc.hH A D03-May-202210.8 KiB319248

cmdgetprop.cppH A D03-May-202214.8 KiB496433

cmdgetprop.hH A D03-May-202210 KiB270187

cmdgetsetprop.cppH A D03-May-202215 KiB491306

cmdgetsetprop.hH A D03-May-20226.8 KiB20752

cmdmani.cppH A D03-May-202220.7 KiB681553

cmdmani.hH A D03-May-202210.2 KiB282204

cmdmisc.cppH A D03-May-202224.6 KiB845778

cmdmisc.hH A D03-May-202212.4 KiB386276

cmdobj.cppH A D03-May-202238.3 KiB1,106900

cmdobj.hH A D03-May-202216.7 KiB406285

cmdpage.cppH A D03-May-202215.2 KiB548464

cmdpage.hH A D03-May-20227.4 KiB229146

cmdsetprop.cppH A D03-May-202216 KiB567521

cmdsetprop.hH A D03-May-20228.5 KiB238169

cmdstyle.cppH A D03-May-202216.6 KiB527426

cmdstyle.hH A D03-May-20226.2 KiB162116

cmdtable.cppH A D03-May-202217.2 KiB543500

cmdtable.hH A D03-May-20228.7 KiB242170

cmdtext.cppH A D03-May-202247.7 KiB1,5931,375

cmdtext.hH A D03-May-202224.3 KiB675491

cmdutil.cppH A D03-May-20227.6 KiB273194

cmdutil.hH A D03-May-20223 KiB9621

cmdvar.hH A D03-May-20222.6 KiB8945

guiapp.cppH A D03-May-20223.8 KiB136104

guiapp.hH A D03-May-20223.4 KiB11464

install.targetsH A D25-Apr-20211 KiB2725

objimageexport.cppH A D03-May-202210.5 KiB316235

objimageexport.hH A D03-May-20222 KiB4829

objpdffile.cppH A D03-May-202257.4 KiB1,7531,504

objpdffile.hH A D03-May-2022978 3417

objprinter.cppH A D03-May-202218.4 KiB591474

objprinter.hH A D03-May-2022847 3114

pconsole.cppH A D03-May-202211.6 KiB419336

pconsole.hH A D03-May-20223.7 KiB14576

pconsole.uiH A D25-Apr-20213.3 KiB131130

prefs_scripter.cppH A D03-May-20224.8 KiB165129

prefs_scripter.hH A D03-May-20221.9 KiB5332

prefs_scripterbase.uiH A D25-Apr-20218.6 KiB308307

runscriptdialog.cppH A D03-May-20222.2 KiB8063

runscriptdialog.hH A D03-May-20221.1 KiB4520

runscriptdialog.uiH A D25-Apr-20211.2 KiB5049

scriptercore.cppH A D03-May-202222.6 KiB648523

scriptercore.hH A D03-May-20223 KiB9558

scriptplugin.cppH A D03-May-202273.5 KiB1,050857

scriptplugin.hH A D03-May-20221.4 KiB5132

svgimport.cppH A D03-May-20222.6 KiB8266

svgimport.hH A D03-May-20222.4 KiB7445

README.BOOST

1Experimental support for the use of Boost::Python has been added to the Python
2interface. All Boost code is exported in a separate module, scribus2, that is
3only created if Boost::Python is available.
4
5Currently there's no autotools support for this in Scribus, so to compile the
6scripter with this highly experimental feature you must:
7
8$ make clean
9$ make CXXFLAGS=" -Wno-extra -Wno-unused -DHAVE_BOOST_PYTHON -fexceptions " LDFLAGS=" -lboost_python "
10$ make install
11
12For more information on Boost::Python see:
13	http://www.boost.org/libs/python/doc/
14	http://www-eleves-isia.cma.fr/documentation/BoostDoc/boost_1_29_0/libs/python/doc/tutorial/
15
16It's strongly recommended that you read the FAQ at:
17	http://www.boost.org/libs/python/doc/v2/faq.html
18(probably once before reading the code, and again after).
19
20All the fun stuff is in the `scribus2' module and is used for manipulating
21paragraph styles. There are currently two (dirty hack) interfaces. One is a
22"value based" interface - ask for a /copy of/ a style, add a style by /copying/
23it into the style list, etc. The other interface is reference based - get a
24dict of references to the existing styles and modify them directly. Soon,
25hopefully, add and remove styles from the dict as if it was a Python one too.
26The value based interface is safer but clumsier; the reference based one
27can be a tad dangerous but is very handy.
28
29Examples:
30
31>>> import scribus2
32>>> p = scribus2.ParagraphStyle()
33>>> p.Vname = "testing"
34>>> scribus2.addStyle(p)
35>>> scribus2.getStyleNames()
36[ blah, blah, blah , "testing" ]
37>>> scribus2.getStylesRef()['testing'].Vname = "newname"
38>>> scribus2.getStyleNames()
39[ blah, blah, blah, "newname"]
40>>> ref = scribus2.getStyleRef("newname")
41>>> ref.Vname = "renamed"
42>>> scribus2.getStyleNames()
43[ blah, blah, blah, "renamed"]
44>>> val = scribus2.getStyleVal("renamed")
45>>> val.Vname = "doesnothing"
46>>> scribus2.getStyleNames()
47[ blah, blah, blah, "renamed"]
48>>> scribus2.addStyle(val)
49>>> scribus2.getStyleNames()
50[ blah, blah, blah, "renamed", "doesnothing"]
51