Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
samples/ | H | 03-May-2022 | - | 912 | 676 | |
scripter2/ | H | 03-May-2022 | - | 982 | 647 | |
scripts/ | H | 03-May-2022 | - | 27,036 | 25,915 | |
README.BOOST | H A D | 25-Apr-2021 | 2 KiB | 51 | 43 | |
cmdannotations.cpp | H A D | 03-May-2022 | 19.2 KiB | 729 | 596 | |
cmdannotations.h | H A D | 03-May-2022 | 6.4 KiB | 200 | 155 | |
cmdcell.cpp | H A D | 03-May-2022 | 16.8 KiB | 520 | 477 | |
cmdcell.h | H A D | 03-May-2022 | 8.4 KiB | 216 | 153 | |
cmdcolor.cpp | H A D | 03-May-2022 | 22.1 KiB | 695 | 625 | |
cmdcolor.h | H A D | 03-May-2022 | 11.7 KiB | 310 | 230 | |
cmddialog.cpp | H A D | 03-May-2022 | 5.7 KiB | 163 | 132 | |
cmddialog.h | H A D | 03-May-2022 | 5 KiB | 117 | 85 | |
cmddoc.cpp | H A D | 03-May-2022 | 15.1 KiB | 504 | 411 | |
cmddoc.h | H A D | 03-May-2022 | 10.8 KiB | 319 | 248 | |
cmdgetprop.cpp | H A D | 03-May-2022 | 14.8 KiB | 496 | 433 | |
cmdgetprop.h | H A D | 03-May-2022 | 10 KiB | 270 | 187 | |
cmdgetsetprop.cpp | H A D | 03-May-2022 | 15 KiB | 491 | 306 | |
cmdgetsetprop.h | H A D | 03-May-2022 | 6.8 KiB | 207 | 52 | |
cmdmani.cpp | H A D | 03-May-2022 | 20.7 KiB | 681 | 553 | |
cmdmani.h | H A D | 03-May-2022 | 10.2 KiB | 282 | 204 | |
cmdmisc.cpp | H A D | 03-May-2022 | 24.6 KiB | 845 | 778 | |
cmdmisc.h | H A D | 03-May-2022 | 12.4 KiB | 386 | 276 | |
cmdobj.cpp | H A D | 03-May-2022 | 38.3 KiB | 1,106 | 900 | |
cmdobj.h | H A D | 03-May-2022 | 16.7 KiB | 406 | 285 | |
cmdpage.cpp | H A D | 03-May-2022 | 15.2 KiB | 548 | 464 | |
cmdpage.h | H A D | 03-May-2022 | 7.4 KiB | 229 | 146 | |
cmdsetprop.cpp | H A D | 03-May-2022 | 16 KiB | 567 | 521 | |
cmdsetprop.h | H A D | 03-May-2022 | 8.5 KiB | 238 | 169 | |
cmdstyle.cpp | H A D | 03-May-2022 | 16.6 KiB | 527 | 426 | |
cmdstyle.h | H A D | 03-May-2022 | 6.2 KiB | 162 | 116 | |
cmdtable.cpp | H A D | 03-May-2022 | 17.2 KiB | 543 | 500 | |
cmdtable.h | H A D | 03-May-2022 | 8.7 KiB | 242 | 170 | |
cmdtext.cpp | H A D | 03-May-2022 | 47.7 KiB | 1,593 | 1,375 | |
cmdtext.h | H A D | 03-May-2022 | 24.3 KiB | 675 | 491 | |
cmdutil.cpp | H A D | 03-May-2022 | 7.6 KiB | 273 | 194 | |
cmdutil.h | H A D | 03-May-2022 | 3 KiB | 96 | 21 | |
cmdvar.h | H A D | 03-May-2022 | 2.6 KiB | 89 | 45 | |
guiapp.cpp | H A D | 03-May-2022 | 3.8 KiB | 136 | 104 | |
guiapp.h | H A D | 03-May-2022 | 3.4 KiB | 114 | 64 | |
install.targets | H A D | 25-Apr-2021 | 1 KiB | 27 | 25 | |
objimageexport.cpp | H A D | 03-May-2022 | 10.5 KiB | 316 | 235 | |
objimageexport.h | H A D | 03-May-2022 | 2 KiB | 48 | 29 | |
objpdffile.cpp | H A D | 03-May-2022 | 57.4 KiB | 1,753 | 1,504 | |
objpdffile.h | H A D | 03-May-2022 | 978 | 34 | 17 | |
objprinter.cpp | H A D | 03-May-2022 | 18.4 KiB | 591 | 474 | |
objprinter.h | H A D | 03-May-2022 | 847 | 31 | 14 | |
pconsole.cpp | H A D | 03-May-2022 | 11.6 KiB | 419 | 336 | |
pconsole.h | H A D | 03-May-2022 | 3.7 KiB | 145 | 76 | |
pconsole.ui | H A D | 25-Apr-2021 | 3.3 KiB | 131 | 130 | |
prefs_scripter.cpp | H A D | 03-May-2022 | 4.8 KiB | 165 | 129 | |
prefs_scripter.h | H A D | 03-May-2022 | 1.9 KiB | 53 | 32 | |
prefs_scripterbase.ui | H A D | 25-Apr-2021 | 8.6 KiB | 308 | 307 | |
runscriptdialog.cpp | H A D | 03-May-2022 | 2.2 KiB | 80 | 63 | |
runscriptdialog.h | H A D | 03-May-2022 | 1.1 KiB | 45 | 20 | |
runscriptdialog.ui | H A D | 25-Apr-2021 | 1.2 KiB | 50 | 49 | |
scriptercore.cpp | H A D | 03-May-2022 | 22.6 KiB | 648 | 523 | |
scriptercore.h | H A D | 03-May-2022 | 3 KiB | 95 | 58 | |
scriptplugin.cpp | H A D | 03-May-2022 | 73.5 KiB | 1,050 | 857 | |
scriptplugin.h | H A D | 03-May-2022 | 1.4 KiB | 51 | 32 | |
svgimport.cpp | H A D | 03-May-2022 | 2.6 KiB | 82 | 66 | |
svgimport.h | H A D | 03-May-2022 | 2.4 KiB | 74 | 45 |
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