[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:06
Message-ID: 20101204235206.8452EAC8A6 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1203639 by clicea:

Add a background to the TableStyleProperties and merge it when appropiate.

 M  +6 -0      MsooXmlDrawingTableStyle.cpp  
 M  +3 -0      MsooXmlDrawingTableStyle.h  


--- branches/work/koffice-essen/filters/libmsooxml/MsooXmlDrawingTableStyle.cpp \
#1203638:1203639 @@ -166,8 +166,14 @@
     //TODO apply other properties
 
     applyBordersStyle(type, style, row, column);
+    applyBackground(type, style, row, column);
 }
 
+void TableStyleInstance::applyBackground(TableStyle::Type type, KoCellStyle::Ptr& \
style, int row, int column) +{
+    style->setBackgroundColor(m_style->properties(type)->backgroundColor);
+}
+
 void TableStyleInstance::applyBordersStyle(TableStyle::Type type, KoCellStyle::Ptr& \
style, int row, int column)  {
     const int lastRow = m_properties.m_rowCount - 1;
--- branches/work/koffice-essen/filters/libmsooxml/MsooXmlDrawingTableStyle.h \
#1203638:1203639 @@ -39,6 +39,8 @@
     KoBorder::BorderData tl2br;
     KoBorder::BorderData top;
     KoBorder::BorderData tr2bl;
+
+    QColor backgroundColor;
 };
 
 class MSOOXML_EXPORT TableStyle
@@ -135,6 +137,7 @@
 private:
     void applyStyle(MSOOXML::TableStyle::Type type, KoCellStyle::Ptr& style, int \
                row, int column);
     void applyBordersStyle(MSOOXML::TableStyle::Type type, KoCellStyle::Ptr& style, \
int row, int column); +    void applyBackground(MSOOXML::TableStyle::Type type, \
KoCellStyle::Ptr& style, int row, int column);  
     TableStyle* m_style;
     TableStyleInstanceProperties m_properties;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic