kword
KWStyleManager.cpp00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include "KWDocument.h"
00021 #include "KWStyleManager.h"
00022 #include "KWStyleManager.moc"
00023
00024 #include <KoUnit.h>
00025 #include <KoStyleCollection.h>
00026 #include <kdebug.h>
00027
00028
00029
00030
00031 KWStyleManager::KWStyleManager( QWidget *_parent, KoUnit::Unit unit,
00032 KWDocument *_doc, const KoStyleCollection & styles,
00033 const QString & activeStyleName)
00034 : KoStyleManager( _parent, unit,
00035 styles, activeStyleName,
00036 ShowIncludeInToc )
00037 {
00038 m_doc = _doc;
00039 }
00040
00041 KoParagStyle* KWStyleManager::addStyleTemplate(KoParagStyle *style)
00042 {
00043 m_doc->setModified( true);
00044 return m_doc->styleCollection()->addStyle(style);
00045 }
00046
00047 void KWStyleManager::applyStyleChange( KoStyleChangeDefMap changed )
00048 {
00049 m_doc->applyStyleChange( changed );
00050 }
00051
00052 void KWStyleManager::removeStyleTemplate( KoParagStyle *style )
00053 {
00054 m_doc->setModified( true);
00055 m_doc->styleCollection()->removeStyle(style);
00056 }
00057
00058 void KWStyleManager::updateAllStyleLists()
00059 {
00060 m_doc->updateAllStyleLists();
00061 }
00062
00063 void KWStyleManager::updateStyleListOrder( const QStringList & list)
00064 {
00065 m_doc->styleCollection()->updateStyleListOrder( list );
00066 }
00067
00068
|