summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmltbli.cxx
diff options
context:
space:
mode:
authorMichael Brauer <mib@openoffice.org>2000-10-26 08:38:52 +0000
committerMichael Brauer <mib@openoffice.org>2000-10-26 08:38:52 +0000
commit06ffa5b271a172b9154677966edb95b8a33216d3 (patch)
treeed118f81b852edcf1b22c34866e915843e56386a /sw/source/filter/xml/xmltbli.cxx
parentd90529e8e3871a58e4d76377051b162debe5aa76 (diff)
tables within headers and footers
Diffstat (limited to 'sw/source/filter/xml/xmltbli.cxx')
-rw-r--r--sw/source/filter/xml/xmltbli.cxx19
1 files changed, 13 insertions, 6 deletions
diff --git a/sw/source/filter/xml/xmltbli.cxx b/sw/source/filter/xml/xmltbli.cxx
index eacfe63b3832..bc43c5c14d3f 100644
--- a/sw/source/filter/xml/xmltbli.cxx
+++ b/sw/source/filter/xml/xmltbli.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmltbli.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: mib $ $Date: 2000-09-28 12:45:50 $
+ * last change: $Author: mib $ $Date: 2000-10-26 09:38:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -809,11 +809,13 @@ SwXMLTableCell_Impl *SwXMLTableContext::GetCell( sal_uInt32 nRow,
return (*pRows)[nRow]->GetCell( nCol );
}
+TYPEINIT1( SwXMLTableContext, XMLTextTableContext );
+
SwXMLTableContext::SwXMLTableContext( SwXMLImport& rImport,
sal_uInt16 nPrfx,
const OUString& rLName,
const Reference< xml::sax::XAttributeList > & xAttrList ) :
- SvXMLImportContext( rImport, nPrfx, rLName ),
+ XMLTextTableContext( rImport, nPrfx, rLName ),
pRows( new SwXMLTableRows_Impl ),
pTableNode( 0 ),
pBox1( 0 ),
@@ -888,8 +890,8 @@ SwXMLTableContext::SwXMLTableContext( SwXMLImport& rImport,
{
xTable->initialize( 1, 1 );
- Reference< XTextContent > xTxtCnt( xTable, UNO_QUERY );
- GetImport().GetTextImport()->InsertTextContent( xTxtCnt );
+ xTextContent = Reference< XTextContent >( xTable, UNO_QUERY );
+ GetImport().GetTextImport()->InsertTextContent( xTextContent );
Reference<XUnoTunnel> xTableTunnel( xTable, UNO_QUERY);
if( xTableTunnel.is() )
@@ -927,7 +929,7 @@ SwXMLTableContext::SwXMLTableContext( SwXMLImport& rImport,
const OUString& rLName,
const Reference< xml::sax::XAttributeList > & xAttrList,
SwXMLTableContext *pTable ) :
- SvXMLImportContext( rImport, nPrfx, rLName ),
+ XMLTextTableContext( rImport, nPrfx, rLName ),
xParentTable( pTable ),
pRows( new SwXMLTableRows_Impl ),
pTableNode( pTable->pTableNode ),
@@ -2044,6 +2046,11 @@ void SwXMLTableContext::EndElement()
}
}
+Reference < XTextContent > SwXMLTableContext::GetXTextContent() const
+{
+ return xTextContent;
+}
+
class SwXMLTextImportHelper : public XMLTextImportHelper
{
protected: