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