KoStyleCollection.cpp
78 const TQString following = styleElem.attributeNS( KoXmlNS::style, "next-style-name", TQString() );
107void KoStyleCollection::saveOasis( KoGenStyles& styles, int styleType, KoSavingContext& context ) const
115 for ( TQValueList<KoUserStyle *>::const_iterator styleIt = m_styleList.begin(), styleEnd = m_styleList.end() ; styleIt != styleEnd ; ++styleIt ) {
118 kdDebug() << k_funcinfo << "Saved style " << style->displayName() << " to OASIS format as " << style->name() << endl;
142 for ( TQValueList<KoUserStyle *>::const_iterator styleIt = styles.begin(), styleEnd = styles.end() ; styleIt != styleEnd ; ++styleIt ) {
236 for ( TQValueList<KoUserStyle *>::const_iterator styleIt = m_styleList.begin(), styleEnd = m_styleList.end() ; styleIt != styleEnd ; ++styleIt ) {
240 // kdDebug() << style << " " << style->name() << " " << style->displayName() << " followingStyle=" << style->followingStyle() << endl;
242 kdDebug() << "Style " << style << " " << style->name() << " isOutline=" << style->isOutline() << endl;
244 static const char * const s_align[] = { "Auto", "Left", "Right", "ERROR", "HCenter", "ERR", "ERR", "ERR", "Justify", };
245 kdDebug() << " align: " << s_align[(TQt::AlignmentFlags)style->paragLayout().alignment] << endl;
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
KoGenStyle * styleForModification(const TQString &name)
Definition KoGenStyles.cpp:126
Used during loading of Oasis format (and discarded at the end of the loading).
Definition KoOasisContext.h:46
This is the structure associated with a paragraph (KoTextParag), to define the bullet or numbering of...
Definition KoParagCounter.h:37
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
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
TQValueVector< KoParagStyle * > outlineStyles() const
Definition KoStyleCollection.cpp:185
KoParagStyle * outlineStyleForLevel(int level) const
Definition KoStyleCollection.cpp:197
KoParagStyle * defaultStyle() const
Definition KoStyleCollection.cpp:228
KoParagStyle * addStyle(KoParagStyle *sty)
See KoUserStyleCollection::addStyle.
Definition KoStyleCollection.h:62
KoParagStyle * findStyle(const TQString &name) const
Find style based on the internal name name.
Definition KoStyleCollection.h:70
void importStyles(const KoStyleCollection &styleList)
Import a number of styles (e.g. loaded from another document).
Definition KoStyleCollection.cpp:138
void saveOasis(KoGenStyles &styles, int styleType, KoSavingContext &context) const
Save the entire style collection in the OASIS OpenDocument format styleType is the STYLE_* value for ...
Definition KoStyleCollection.cpp:107
KoParagStyle * numberedStyleForLevel(int level) const
Definition KoStyleCollection.cpp:211
int loadOasisStyles(KoOasisContext &context)
Loads the entire style collection, in the OASIS OpenDocument format.
Definition KoStyleCollection.cpp:43
void saveOasisOutlineStyles(KoXmlWriter &writer) const
Save the text:outline-style element, mostly for OOo.
Definition KoStyleCollection.cpp:166
Generic style collection class, for all "user styles" (see KoUserStyle).
Definition KoUserStyleCollection.h:33
TQValueList< KoUserStyle * > styleList() const
Return the list of all styles in the collection.
Definition KoUserStyleCollection.h:69
void removeStyle(KoUserStyle *style)
Remove style from the collection.
Definition KoUserStyleCollection.cpp:123
TQString name() const
The internal name (used for loading/saving, but not shown to the user) Should be unique in a given st...
Definition KoUserStyle.h:40
A class for writing out XML (to any TQIODevice), with a special attention on performance.
Definition KoXmlWriter.h:37
void startElement(const char *tagName, bool indentInside=true)
Start a new element, as a child of the current element.
Definition KoXmlWriter.cpp:103
