summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMartin Gallwey <mtg@openoffice.org>2001-05-02 15:44:35 +0000
committerMartin Gallwey <mtg@openoffice.org>2001-05-02 15:44:35 +0000
commit8fb075ec753f7df9b94a74b96c44d64b58eda8e4 (patch)
tree0e75c811e9ca045057579d0df2adb3a5cbcbcd9e /sw
parentf91e794dbc24a464de8447affa1a6da7305cd495 (diff)
new boolean allows searching of full XML documents for contents of text paragraphs
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/swg/SwXMLBlockImport.cxx17
1 files changed, 8 insertions, 9 deletions
diff --git a/sw/source/core/swg/SwXMLBlockImport.cxx b/sw/source/core/swg/SwXMLBlockImport.cxx
index 099c5176ec3f..19758d231ca2 100644
--- a/sw/source/core/swg/SwXMLBlockImport.cxx
+++ b/sw/source/core/swg/SwXMLBlockImport.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: SwXMLBlockImport.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: mtg $ $Date: 2001-02-08 16:02:52 $
+ * last change: $Author: mtg $ $Date: 2001-05-02 16:44:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -94,8 +94,10 @@ SvXMLImportContext *SwXMLBlockListImport::CreateContext(
return pContext;
}
-SwXMLTextBlockImport::SwXMLTextBlockImport ( SwXMLTextBlocks &rBlocks )
-: rBlockList (rBlocks)
+SwXMLTextBlockImport::SwXMLTextBlockImport ( SwXMLTextBlocks &rBlocks, String & rNewText, sal_Bool bNewTextOnly )
+: rBlockList ( rBlocks )
+, bTextOnly ( bNewTextOnly )
+, m_rText ( rNewText )
{
// GetNamespaceMap().AddAtIndex( XML_NAMESPACE_BLOCKLIST_IDX, sXML_np__block_list,
// sXML_n_block_list, XML_NAMESPACE_BLOCKLIST );
@@ -111,8 +113,8 @@ SvXMLImportContext *SwXMLTextBlockImport::CreateContext(
const Reference< xml::sax::XAttributeList > & xAttrList )
{
SvXMLImportContext *pContext = 0;
- if( XML_NAMESPACE_OFFICE==nPrefix &&
- rLocalName.compareToAscii( sXML_document ) == 0 )
+ if( XML_NAMESPACE_OFFICE == nPrefix &&
+ rLocalName.compareToAscii( bTextOnly ? sXML_document : sXML_document_content ) == 0 )
pContext = new SwXMLTextBlockDocumentContext( *this, nPrefix, rLocalName, xAttrList );
else
pContext = SvXMLImport::CreateContext( nPrefix, rLocalName, xAttrList );
@@ -122,6 +124,3 @@ void SAL_CALL SwXMLTextBlockImport::endDocument(void)
throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException )
{
}
-void SwXMLTextBlockImport::AppendText ( ::rtl::OUString &rText )
-{
-}