diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-03-05 18:04:38 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-03-05 18:04:38 +0000 |
commit | c347d117c7b1749a60eaf4c780a9d2002f9f7e18 (patch) | |
tree | 6444fc176f993c5165e3f501d016bc3158a38cfd /oox/source/xls/querytablefragment.cxx | |
parent | 04bdbf319203c3fd1f828102c9b35ca8ef47e643 (diff) |
INTEGRATION: CWS xmlfilter03_DEV300 (1.2.4); FILE MERGED
2008/02/05 14:08:07 dr 1.2.4.2: oox::core::ContextHandler2 and oox::core::FragmentHandler2 for convenience
2008/01/25 12:53:11 dr 1.2.4.1: simplified OoxContextHelper interface
Diffstat (limited to 'oox/source/xls/querytablefragment.cxx')
-rw-r--r-- | oox/source/xls/querytablefragment.cxx | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/oox/source/xls/querytablefragment.cxx b/oox/source/xls/querytablefragment.cxx index 703ec9f9f156..9ce282588007 100644 --- a/oox/source/xls/querytablefragment.cxx +++ b/oox/source/xls/querytablefragment.cxx @@ -4,9 +4,9 @@ * * $RCSfile: querytablefragment.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: rt $ $Date: 2008-01-17 08:06:09 $ + * last change: $Author: kz $ $Date: 2008-03-05 19:04:38 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -38,12 +38,6 @@ using ::rtl::OUString; using ::com::sun::star::uno::Reference; -using ::com::sun::star::uno::Exception; -using ::com::sun::star::uno::RuntimeException; -using ::com::sun::star::uno::UNO_QUERY; -using ::com::sun::star::uno::UNO_QUERY_THROW; -using ::com::sun::star::sheet::XSpreadsheet; -using ::com::sun::star::xml::sax::SAXException; namespace oox { namespace xls { @@ -54,18 +48,19 @@ OoxQueryTableFragment::OoxQueryTableFragment( { } -bool OoxQueryTableFragment::onCanCreateContext( sal_Int32 nElement ) const +ContextWrapper OoxQueryTableFragment::onCreateContext( sal_Int32 nElement, const AttributeList& ) { - switch( getCurrentContext() ) + switch( getCurrentElement() ) { - case XML_ROOT_CONTEXT: return (nElement == XLS_TOKEN( queryTable )); + case XML_ROOT_CONTEXT: + return (nElement == XLS_TOKEN( queryTable )); } return false; } void OoxQueryTableFragment::onStartElement( const AttributeList& rAttribs ) { - switch ( getCurrentContext() ) + switch ( getCurrentElement() ) { case XLS_TOKEN( queryTable ): importQueryTable( rAttribs ); @@ -80,3 +75,4 @@ void OoxQueryTableFragment::importQueryTable( const AttributeList& rAttribs ) } // namespace xls } // namespace oox + |