diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-03-05 17:41:43 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-03-05 17:41:43 +0000 |
commit | 29b71e7fcc1c55dcdbd2dcaaac8f8fa3df5813f3 (patch) | |
tree | f2d23c7eab7c7d5b3d4d4c282a73876c0883fa30 /oox/source/dump/pptxdumper.cxx | |
parent | e9e331a54ea6ba5dfb0ab11eb5bc2e04ce81308c (diff) |
INTEGRATION: CWS xmlfilter03_DEV300 (1.1.2); FILE ADDED
2008/02/07 10:21:58 dr 1.1.2.2: vml fixes
2008/01/30 09:40:23 dr 1.1.2.1: add XML pretty printer for OOXML dumpers, add PPTX dumper
Diffstat (limited to 'oox/source/dump/pptxdumper.cxx')
-rw-r--r-- | oox/source/dump/pptxdumper.cxx | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/oox/source/dump/pptxdumper.cxx b/oox/source/dump/pptxdumper.cxx new file mode 100644 index 000000000000..29d9dbd896a1 --- /dev/null +++ b/oox/source/dump/pptxdumper.cxx @@ -0,0 +1,85 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: pptxdumper.cxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: kz $ $Date: 2008-03-05 18:41:43 $ + * + * 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 + * + ************************************************************************/ + +#include "oox/dump/pptxdumper.hxx" + +#if OOX_INCLUDE_DUMPER + +using ::rtl::OUString; +using ::oox::core::FilterBase; + +namespace oox { +namespace dump { +namespace pptx { + +// ============================================================================ + +RootStorageObject::RootStorageObject( const DumperBase& rParent ) +{ + RootStorageObjectBase::construct( rParent ); +} + +void RootStorageObject::implDumpStream( BinaryInputStreamRef xStrm, const OUString& /*rStrgPath*/, const OUString& rStrmName, const OUString& rSystemFileName ) +{ + OUString aExt = InputOutputHelper::getFileNameExtension( rStrmName ); + if( aExt.equalsIgnoreAsciiCaseAscii( "xml" ) || + aExt.equalsIgnoreAsciiCaseAscii( "vml" ) || + aExt.equalsIgnoreAsciiCaseAscii( "rels" ) ) + { + XmlStreamObject( *this, rSystemFileName, xStrm ).dump(); + } +} + +// ============================================================================ + +Dumper::Dumper( const FilterBase& rFilter ) +{ + ConfigRef xCfg( new Config( "OOO_PPTXDUMPER" ) ); + DumperBase::construct( rFilter, xCfg ); +} + +void Dumper::implDump() +{ + RootStorageObject( *this ).dump(); +} + +// ============================================================================ + +} // namespace pptx +} // namespace dump +} // namespace oox + +#endif + |