KoParagStyle.cpp
140 context.addStyles( &styleElem, "paragraph" ); // Load all parents - only because we don't support inheritance.
144 // loadOasisParagLayout doesn't load the counter. It's modelled differently for parags and for styles.
147 const TQString listStyleName = styleElem.attributeNS( KoXmlNS::style, "list-style-name", TQString() );
149 level = styleElem.attributeNS( KoXmlNS::style, "default-outline-level", TQString() ).toInt(); // 1-based
151 // allow overriding the outline numbering, see http://lists.oasis-open.org/archives/office/200310/msg00033.html
190TQString KoParagStyle::saveStyle( KoGenStyles& genStyles, int styleType, const TQString& parentStyleName, KoSavingContext& context ) const
A KoCharStyle is a set of formatting attributes (font, color, etc.) to be applied to a run of text.
Definition KoParagStyle.h:33
KoCharStyle(const TQString &name)
Create a blank style (with default attributes)
Definition KoParagStyle.cpp:32
void addAttribute(const TQString &attrName, const TQString &attrValue)
Add an attribute to the style The difference between property and attributes is a bit oasis-format-sp...
Definition KoGenStyles.h:323
TQString lookup(const KoGenStyle &style, const TQString &name=TQString(), int flags=NoFlag)
Look up a style in the collection, inserting it if necessary.
Definition KoGenStyles.cpp:32
TQDomElement currentListStyle() const
Definition KoListStyleStack.cpp:30
Used during loading of Oasis format (and discarded at the end of the loading).
Definition KoOasisContext.h:46
bool pushListLevelStyle(const TQString &listStyleName, int level)
Used for lists (numbered paragraphs)
Definition KoOasisContext.cpp:47
void addStyles(const TQDomElement *style, const char *family, bool usingStylesAutoStyles=false)
Add style to the stack, as well as all its parent styles and the default style for this style family.
Definition KoOasisLoadingContext.cpp:67
This is the structure associated with a paragraph (KoTextParag), to define the bullet or numbering of...
Definition KoParagCounter.h:37
void loadOasis(KoOasisContext &context, int restartNumbering, bool orderedList, bool heading, int level, bool loadingStyle=false)
Load from OASIS XML.
Definition KoParagCounter.cpp:179
void saveOasis(KoGenStyle &listStyle, bool savingStyle=false) const
Save as OASIS XML.
Definition KoParagCounter.cpp:265
This class holds the paragraph-specific formatting information It's separated from KoTextParag so tha...
Definition KoParagLayout.h:40
static void loadOasisParagLayout(KoParagLayout &layout, KoOasisContext &context)
Load this parag layout from Oasis XML.
Definition KoParagLayout.cpp:437
void saveOasis(KoGenStyle &gs, KoSavingContext &context, bool savingStyle) const
Save this parag layout to Oasis XML.
Definition KoParagLayout.cpp:807
static void loadParagLayout(KoParagLayout &layout, const TQDomElement &parentElem, int docVersion=2)
Load this parag layout from XML.
Definition KoParagLayout.cpp:144
char alignment
Alignment flag (AlignAuto/AlignLeft/AlignRight/AlignJustify)
Definition KoParagLayout.h:99
void saveParagLayout(TQDomElement &parentElem, int alignment) const
Save this parag layout to XML.
Definition KoParagLayout.cpp:661
A paragraph style is a combination of a character style and paragraph-layout attributes,...
Definition KoParagStyle.h:55
void saveStyle(TQDomElement &parentElem)
Saves the name, layout, the following style and the outline bool.
Definition KoParagStyle.cpp:89
KoParagStyle(const TQString &name)
Create a blank style (with default attributes)
Definition KoParagStyle.cpp:49
void loadStyle(TQDomElement &parentElem, int docVersion=2)
Loads the name, layout and the outline bool.
Definition KoParagStyle.cpp:104
Used during saving to Oasis format (and discarded at the end of the saving).
Definition KoOasisContext.h:112
void restore()
Restore the stack to the state it was at the corresponding save() call.
Definition KoStyleStack.cpp:62
Each character (KoTextStringChar) points to a KoTextFormat that defines the formatting of that charac...
Definition KoTextFormat.h:53
void save(KoGenStyle &gs, KoSavingContext &context, KoTextFormat *refFormat=0) const
Save a text format to OASIS XML Only saves what differs from @refFormat, if set.
Definition KoTextFormat.cpp:541
Base class for any kind of style that the user can create/modify/delete/display.
Definition KoUserStyle.h:34
TQString displayName() const
The user-visible name (e.g. translated, or set by the user)
Definition KoUserStyle.cpp:27
