Scribus
Open source desktop publishing at your fingertips
cmdstyle.h
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 02.01.2008: Joachim Neu - joachim_neu@web.de - http://www.joachim-neu.de
7 */
8 #ifndef CMDSTYLE_H
9 #define CMDSTYLE_H
10 
11 // Pulls in <Python.h> first
12 #include "cmdvar.h"
13 //Added by qt3to4:
14 #include <QPixmap>
15 
18 /* PARAGRAPH STYLES */
19 
21 PyDoc_STRVAR(scribus_createparagraphstyle__doc__,
22 QT_TR_NOOP("createParagraphStyle(...)\n\n\
23 Creates a paragraph style. This function takes the following keyword parameters:\n\n\
24 \"name\" [required] -> specifies the name of the paragraphstyle to create\n\n\
25 linespacingmode [optional] -> specifies the linespacing mode; possible modes are:\n\n\
26 fixed linespacing: 0\n\n\
27 automatic linespacing: 1\n\n\
28 baseline grid linespacing: 2\n\n\
29 linespacing [optional] -> specifies the linespacing if using fixed linespacing\n\n\
30 alignment [optional] -> specifies the alignment of the paragraph\n\n\
31 -> left: 0\n\n\
32 -> center: 1\n\n\
33 -> right: 2\n\n\
34 -> justify: 3\n\n\
35 -> extend: 4\n\n\
36 leftmargin [optional], rightmargin [optional] -> specify the margin\n\n\
37 gapbefore [optional], gapafter [optional] -> specify the gaps to the heading and following paragraphs\n\n\
38 firstindent [optional] -> the indent of the first line\n\n\
39 hasdropcap [optional] -> specifies if there are caps (1 = yes, 0 = no)\n\n\
40 dropcaplines [optional] -> height (in lines) of the caps if used\n\n\
41 dropcapoffset [optional] -> offset of the caps if used\n\n\
42 \"charstyle\" [optional] -> char style to use\n\n\
43 "));
46 PyObject *scribus_createparagraphstyle(PyObject * /* self */, PyObject* args, PyObject* keywords);
47 
48 /* CHAR STYLES */
49 
51 PyDoc_STRVAR(scribus_createcharstyle__doc__,
52 QT_TR_NOOP("createCharStyle(...)\n\n\
53 Creates a character style. This function takes the following keyword parameters:\n\n\
54 \"name\" [required] -> name of the char style to create\n\n\
55 \"font\" [optional] -> name of the font to use\n\n\
56 fontsize [optional] -> font size to set (double)\n\n\
57 \"features\" [optional] -> nearer typographic details can be defined by a string that might contain the following phrases comma-seperated (without spaces!):\n\n\
58 -> inherit\n\n\
59 -> bold\n\n\
60 -> italic\n\n\
61 -> underline\n\n\
62 -> underlinewords\n\n\
63 -> strike\n\n\
64 -> superscript\n\n\
65 -> subscript\n\n\
66 -> outline\n\n\
67 -> shadowed\n\n\
68 -> allcaps\n\n\
69 -> smallcaps\n\n\
70 \"fillcolor\" [optional], \"fillshade\" [optional] -> specify fill options\n\n\
71 \"strokecolor\" [optional], \"strokeshade\" [optional] -> specify stroke options\n\n\
72 baselineoffset [optional] -> offset of the baseline\n\n\
73 shadowxoffset [optional], shadowyoffset [optional] -> offset of the shadow if used\n\n\
74 outlinewidth [optional] -> width of the outline if used\n\n\
75 underlineoffset [optional], underlinewidth [optional] -> underline options if used\n\n\
76 strikethruoffset [optional], strikethruwidth [optional] -> strikethru options if used\n\n\
77 scaleh [optional], scalev [optional] -> scale of the chars\n\n\
78 tracking [optional] -> tracking of the text\n\n\
79 \"language\" [optional] -> language code\n\n\
80 "));
83 PyObject *scribus_createcharstyle(PyObject * /* self */, PyObject* args, PyObject* keywords);
84 
85 #endif
86