diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-03-05 17:01:52 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-03-05 17:01:52 +0000 |
commit | 38d0387899d5e3ad5e7ea3e90320414c1930143e (patch) | |
tree | 13eb1c42935b5127595e80f9547d5283f4837f09 /oox/inc/oox/xls/chartsheetfragment.hxx | |
parent | e717542e8d776dac48441ccc2e86a9eac87ac41f (diff) |
INTEGRATION: CWS xmlfilter03_DEV300 (1.1.2); FILE ADDED
2008/02/12 11:33:09 dr 1.1.2.2: handle drawing fragment in WorksheetHelper
2008/02/12 10:54:46 dr 1.1.2.1: import chart sheet fragment
Diffstat (limited to 'oox/inc/oox/xls/chartsheetfragment.hxx')
-rw-r--r-- | oox/inc/oox/xls/chartsheetfragment.hxx | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/oox/inc/oox/xls/chartsheetfragment.hxx b/oox/inc/oox/xls/chartsheetfragment.hxx new file mode 100644 index 000000000000..cef0f8560371 --- /dev/null +++ b/oox/inc/oox/xls/chartsheetfragment.hxx @@ -0,0 +1,99 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: chartsheetfragment.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: kz $ $Date: 2008-03-05 18:01:52 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ + +#ifndef OOX_XLS_CHARTSHEETFRAGMENT_HXX +#define OOX_XLS_CHARTSHEETFRAGMENT_HXX + +#include "oox/xls/bifffragmenthandler.hxx" +#include "oox/xls/excelhandlers.hxx" + +namespace oox { +namespace xls { + +// ============================================================================ + +class OoxChartsheetFragment : public OoxWorksheetFragmentBase +{ +public: + explicit OoxChartsheetFragment( + const WorkbookHelper& rHelper, + const ::rtl::OUString& rFragmentPath, + ISegmentProgressBarRef xProgressBar, + sal_Int32 nSheet ); + +protected: + // oox.core.ContextHandler2Helper interface ------------------------------- + + virtual ContextWrapper onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ); + virtual void onStartElement( const AttributeList& rAttribs ); + virtual void onEndElement( const ::rtl::OUString& rChars ); + + virtual ContextWrapper onCreateRecordContext( sal_Int32 nRecId, RecordInputStream& rStrm ); + virtual void onStartRecord( RecordInputStream& rStrm ); + + // oox.core.FragmentHandler2 interface ------------------------------------ + + virtual const ::oox::core::RecordInfo* getRecordInfos() const; + virtual void initializeImport(); + virtual void finalizeImport(); + +private: + /** Imports the the relation identifier for the DrawingML part. */ + void importDrawing( const AttributeList& rAttribs ); + /** Imports the DRAWING record containing the relation identifier for the DrawingML part. */ + void importDrawing( RecordInputStream& rStrm ); +}; + +// ============================================================================ + +class BiffChartsheetFragment : public BiffWorksheetFragmentBase +{ +public: + explicit BiffChartsheetFragment( + const WorkbookHelper& rHelper, + ISegmentProgressBarRef xProgressBar, + sal_Int32 nSheet ); + + /** Imports the entire sheet fragment, returns true, if EOF record has been reached. */ + virtual bool importFragment( BiffInputStream& rStrm ); +}; + +// ============================================================================ + +} // namespace xls +} // namespace oox + +#endif + |