[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/koffice-essen/libs/odf
From: Carlos Licea <carlos_licea () hotmail ! com>
Date: 2010-11-10 2:08:10
Message-ID: 20101110020810.DCE84AC8A0 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1194891 by clicea:
Change KoStyle to a better architecture.
M +1 -5 KoCellStyle.cpp
M +1 -1 KoCellStyle.h
M +1 -0 KoStyle.cpp
M +2 -1 KoStyle.h
--- branches/work/koffice-essen/libs/odf/KoCellStyle.cpp #1194890:1194891
@@ -33,11 +33,7 @@
return m_borders;
}
-QString KoCellStyle::save(KoGenStyles& styles) const
+void KoCellStyle::prepareStyle( KoGenStyle& style ) const
{
- KoGenStyle style;
m_borders->saveOdf(style);
-
- return styles.insert(style);
}
-
--- branches/work/koffice-essen/libs/odf/KoCellStyle.h #1194890:1194891
@@ -31,7 +31,7 @@
KoBorder* borders();
protected:
- virtual QString save(KoGenStyles& styles) const;
+ virtual void prepareStyle( KoGenStyle& style ) const;
private:
KoBorder* m_borders;
--- branches/work/koffice-essen/libs/odf/KoStyle.cpp #1194890:1194891
@@ -1,4 +1,5 @@
#include "KoStyle.h"
+#include "KoGenStyles.h"
KoStyle::KoStyle()
: m_autoStyle(false)
--- branches/work/koffice-essen/libs/odf/KoStyle.h #1194890:1194891
@@ -7,7 +7,8 @@
#include <QString>
#include <QSharedPointer>
-class KoStyle {
+class KoStyle
+{
public:
KoStyle();
virtual ~KoStyle();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic