[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/koffice-essen/filters/libmsooxml
From: Carlos Licea <carlos_licea () hotmail ! com>
Date: 2010-12-04 23:52:42
Message-ID: 20101204235242.DB998AC8B2 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1203650 by clicea:
Add local styles to the table instance properties so that it can be applied when \
properly.
M +10 -0 MsooXmlDrawingTableStyle.cpp
M +2 -0 MsooXmlDrawingTableStyle.h
--- branches/work/koffice-essen/filters/libmsooxml/MsooXmlDrawingTableStyle.cpp \
#1203649:1203650 @@ -38,6 +38,11 @@
return *this;
}
+TableStyleInstanceProperties& TableStyleInstanceProperties::localStyles(const \
MSOOXML::LocalTableStyles& localStyles) +{
+ m_localStyles = localStyles;
+}
+
TableStyleInstance::TableStyleInstance(TableStyle* style, \
TableStyleInstanceProperties properties) : m_style(style)
, m_properties(properties)
@@ -155,6 +160,11 @@
}
}
+ TableStyleProperties* localStyle = m_properties.m_localStyles.localStyle(row, \
column); + if(localStyle) {
+ applyStyle(localStyle, cellStyle, row, column);
+ }
+
return cellStyle;
}
--- branches/work/koffice-essen/filters/libmsooxml/MsooXmlDrawingTableStyle.h \
#1203649:1203650 @@ -154,6 +154,7 @@
TableStyleInstanceProperties& rowBandSize(int size);
TableStyleInstanceProperties& columnBandSize(int size);
+ TableStyleInstanceProperties& localStyles(const LocalTableStyles& localStyles);
enum Role {
FirstRow = 1,
@@ -178,6 +179,7 @@
int m_rowBandSize;
int m_columnBandSize;
Roles m_role;
+ LocalTableStyles m_localStyles;
};
class MSOOXML_EXPORT TableStyleInstance
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic