[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/filters/libmsooxml
From: Lassi Taneli Nieminen <lassniem () gmail ! com>
Date: 2010-11-29 7:50:31
Message-ID: 20101129075031.12EDEAC8A3 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1201927 by lassin:
Fixed drawingML bullet font and bullet size inheritance.
M +9 -6 MsooXmlUtils.cpp
M +1 -1 MsooXmlUtils.h
--- trunk/koffice/filters/libmsooxml/MsooXmlUtils.cpp #1201926:1201927
@@ -1333,6 +1333,7 @@
m_align = UNUSED;
m_indent = UNUSED;
m_picturePath = UNUSED;
+ m_bulletSize = QSize();
m_bulletColor = UNUSED;
m_bulletRelativeSize = UNUSED;
}
@@ -1382,7 +1383,7 @@
MSOOXML_EXPORT void Utils::ParagraphBulletProperties::setBulletSize(const QSize& \
size) {
- m_pictureSize = size;
+ m_bulletSize = size;
}
MSOOXML_EXPORT void Utils::ParagraphBulletProperties::setBulletFont(const QString& \
font) @@ -1422,7 +1423,7 @@
m_type = properties.m_type;
}
if (properties.m_bulletFont != UNUSED) {
- m_bulletFont = m_bulletFont;
+ m_bulletFont = properties.m_bulletFont;
}
if (properties.m_bulletChar != UNUSED) {
m_bulletChar = properties.m_bulletChar;
@@ -1448,8 +1449,10 @@
if (properties.m_bulletRelativeSize != UNUSED) {
m_bulletRelativeSize = properties.m_bulletRelativeSize;
}
- m_pictureSize = properties.m_pictureSize;
+ if (!properties.m_bulletSize.isEmpty()) {
+ m_bulletSize = properties.m_bulletSize;
}
+}
MSOOXML_EXPORT QString Utils::ParagraphBulletProperties::convertToListProperties() \
const {
@@ -1496,9 +1499,9 @@
returnValue += QString("text:space-before=\"%1pt\" ").arg(m_indent);
}
- if (m_type == ParagraphBulletProperties::PictureType) {
- returnValue += QString("fo:width=\"%1\" fo:height=\"%2\" \
").arg(MSOOXML::Utils::cmString(POINT_TO_CM(m_pictureSize.width()))).
- arg(MSOOXML::Utils::cmString(POINT_TO_CM(m_pictureSize.height())));
+ if (!m_bulletSize.isEmpty()) {
+ returnValue += QString("fo:width=\"%1\" fo:height=\"%2\" \
").arg(MSOOXML::Utils::cmString(POINT_TO_CM(m_bulletSize.width()))). + \
arg(MSOOXML::Utils::cmString(POINT_TO_CM(m_bulletSize.height()))); }
returnValue += "/>";
--- trunk/koffice/filters/libmsooxml/MsooXmlUtils.h #1201926:1201927
@@ -125,7 +125,7 @@
QString m_indent;
QString m_picturePath;
QString m_bulletColor;
- QSize m_pictureSize;
+ QSize m_bulletSize;
QString m_bulletRelativeSize;
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic