CVS commit by goutte: Add frame data to the cell data (Needed for the table support of the RTF export filter.) CCMAIL:koffice-devel@kde.org M +2 -2 KWEFKWordLeader.cc 1.41 M +4 -3 KWEFStructures.cc 1.13 M +38 -34 KWEFStructures.h 1.45 --- koffice/filters/kword/libexport/KWEFKWordLeader.cc #1.40:1.41 @@ -381,5 +381,5 @@ static void ProcessFramesetTag ( QDomNod ProcessSubtags (myNode, tagProcessingList, leader); - frameAnchor->table.addCell (col, row, cellParaList); + frameAnchor->table.addCell (col, row, cellParaList, frameAnchor->frame); } else --- koffice/filters/kword/libexport/KWEFStructures.cc #1.12:1.13 @@ -44,5 +44,6 @@ TableCell::~TableCell ( void ) void Table::addCell ( int c, int r, - QValueList &p ) + QValueList &p, + FrameData &frameData ) { if ( c + 1 > cols ) @@ -51,5 +52,5 @@ void Table::addCell ( int } - cellList << TableCell ( c, r, new QValueList (p) ); + cellList << TableCell ( c, r, new QValueList (p), frameData ); } --- koffice/filters/kword/libexport/KWEFStructures.h #1.44:1.45 @@ -110,37 +110,4 @@ class TextFormatting -class ParaData; - -class TableCell -{ - public: - TableCell (): col( 0 ), row( 0 ), paraList( 0 ) {} - - TableCell ( int c, - int r, - QValueList *p ) : col (c), row (r), paraList (p) {} - - ~TableCell (); - - int col; - int row; - QValueList *paraList; -}; - - -class Table -{ - public: - Table () : cols (0) {} - - void addCell ( int c, - int r, - QValueList &p ); - - int cols; - QValueList cellList; -}; - - class Picture { @@ -186,4 +153,41 @@ public: double bleftpt, brightpt, btoppt, bbottompt; }; + + +class ParaData; + +class TableCell +{ + public: + TableCell (): col( 0 ), row( 0 ), paraList( 0 ) {} + + TableCell ( int c, + int r, + QValueList *p, + FrameData &frameData ) : col (c), row (r), paraList (p), frame (frameData) {} + + ~TableCell (); + + int col; + int row; + QValueList *paraList; + FrameData frame; +}; + + +class Table +{ + public: + Table () : cols (0) {} + + void addCell ( int c, + int r, + QValueList &p, + FrameData &frameData ); + + int cols; + QValueList cellList; +}; + //This is basically FRAMESET tag _______________________________________________ koffice-devel mailing list koffice-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/koffice-devel