/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: resources.xsl,v $ * * $Revision: 1.9 $ * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. * * OpenOffice.org 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 version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * http://www.openoffice.org/license.html * for a copy of the LGPLv3 License. * ************************************************************************/ /* THIS FILE IS GENERATED AUTOMATICALLY! DO NOT EDIT! */ #ifndef INCLUDED_RESOURCES_HXX #define INCLUDED_RESOURCES_HXX #include <vector> #include <boost/shared_ptr.hpp> #ifndef INCLUDED_OUTPUT_WITH_DEPTH_HXX #include <resourcemodel/OutputWithDepth.hxx> #endif #ifndef INCLUDED_RESOURCESIDS_HXX #include <doctok/resourceids.hxx> #endif #ifndef INCLUDED_WW8_STRUCT_BASE_HXX #include <WW8StructBase.hxx> #endif #ifndef INCLUDED_WW8_RESOURCE_MODEL_IMPL_HXX #include <WW8ResourceModelImpl.hxx> #endif #ifndef INCLUDED_WW8_PROPERTY_SET_IMPL_HXX #include <WW8PropertySetImpl.hxx> #endif #ifndef INCLUDED_DFF_HXX #include <Dff.hxx> #endif namespace writerfilter { namespace doctok { class WW8DocumentImpl; typedef const WW8DocumentImpl * WW8DocumentImplPointer; using namespace ::std; rtl::OUString getDffOptName(sal_uInt32 nPid); bool isBooleanDffOpt(sal_uInt32 nId); }} #endif // INCLUDED_RESOURCES_HXX 0 WW8 WW8PropertyImpl WW8StructBase WW8PropertyImpl WW8StructBase /** Automatically generated class: Stereotype Parent Resource: Size: */ class : public , public writerfilter::Reference< > { sal_uInt32 mnIndex; WW8DocumentImplPointer mpDoc; sal_uInt32 mnPlcfPayloadOffset; vector<sal_uInt32> entryOffsets; vector<sal_uInt32> payloadOffsets; vector<sal_uInt32> payloadIndices; public: typedef boost::shared_ptr< > Pointer_t; ( WW8Stream & rStream, sal_uInt32 nOffset = 0, sal_uInt32 nCount = ) : (rStream, nOffset, nCount) , mnIndex(0) { init(); } ( WW8StructBase * pParent, sal_uInt32 nOffset = 0, sal_uInt32 nCount = ) : (pParent, nOffset, nCount) , mnIndex(0) { init(); } ( const & rSurround, sal_uInt32 nOffset = 0, sal_uInt32 nCount = ) : (rSurround, nOffset, nCount) , mnIndex(0) { init(); } ( const Sequence & rSequence, sal_uInt32 nOffset = 0, sal_uInt32 nCount = ) : (rSequence, nOffset, nCount) , mnIndex(0) { init(); } virtual ~ (); void initImpl(); void initPayload(); void init(); /** Return type of resource. */ virtual string getType() const { return " "; } /** Return static size. */ static sal_uInt32 getSize() { return ; } /** Calculate actual size. */ sal_uInt32 calcSize(); /** Return offset for entry of PLCF. @param nIndex index of entry */ sal_uInt32 getEntryOffset(sal_uInt32 nIndex) { return entryOffsets[nIndex]; } /** Calculate offset for payload. */ sal_uInt32 calcPayloadOffset(); /** Set offset for payloads. @param nOffset the offset to set */ void setPayloadOffset(sal_uInt32 nOffset) { mnPlcfPayloadOffset = nOffset; } /** Return offset for payload of PLCF. @param nIndex index of entry */ sal_uInt32 getPayloadOffset(sal_uInt32 nIndex) { return payloadOffsets[nIndex]; } /** Return size of payload. */ sal_uInt32 getPayloadSize(sal_uInt32 nIndex) const { return payloadOffsets[nIndex + 1] - payloadOffsets[nIndex]; } /** Return payload index of an entry. */ sal_uInt32 getPayloadIndex(sal_uInt32 nIndex) { return payloadIndices[nIndex]; } /** Set index in parent. @param nIndex the index */ void setIndex(sal_uInt32 nIndex) { mnIndex = nIndex; } writerfilter::Reference < Properties >::Pointer_t /** Return reference to properties of Sprm. */ getProps() { return (new (*this)); } virtual writerfilter::Reference < BinaryObj > ::Pointer_t getBinary(); void setDoc(WW8DocumentImplPointer pDoc) { mpDoc = pDoc; } }; true false void resolveNoAuto(Properties & rHandler); void dump(OutputWithDepth < string > & o) const; void resolve(Properties & rHandler); sal_uInt32 getEntryCount(); writerfilter::Reference< Properties >::Pointer_t getEntry(sal_uInt32 nIndex); void resolve(Table & rHandler); 0x 0x WW8 /** <table> <tr> <th> Name </th> <td> () </td> </tr> <tr> <th> Offset </th> <td> </td> </tr> <tr> <th> Mask </th> <td> </td> </tr> <tr> <th> Shift </th> <td> </td> </tr> </table> */ virtual get_() const { clog << "<called> </called>" << endl; return writerfilter::Reference < BinaryObj >::Pointer_t(new WW8BinaryObjReference(getRemainder( ))); return (new (*this, )); return (get ( ) & ) >> ; } sal_uInt32 get_ _count() const { return ; } ; get_ (sal_uInt32 nIndex) const { return ( new (static_cast<const WW8StructBase >(*this), + nIndex * ::getSize())); return get ( + nIndex * sizeof( )) ; } rtl::OUString get_() const { return getString(); } get_ () const { return m ; } /** Array: ElementType: () */ sal_uInt32 get__count(); get_(sal_uInt32 pos); /** Operation: */ get_ (); m ; NS_::LN_ sal_uInt8 sal_Int8 sal_uInt16 sal_Int16 sal_uInt32 sal_Int32 rtl::OUString WW8Value::Pointer_t WW8BinaryObjReference::Pointer_t writerfilter::Reference < >::Pointer_t simple simple simple simple simple simple string value complex WW8IntValue WW8IntValue WW8IntValue WW8IntValue WW8IntValue WW8IntValue WW8PropertiesValue Dff /** Automaticallay generated class: */ class : public DffRecord { public: typedef boost::shared_ptr < > Pointer_t; (WW8StructBase * pParent, sal_uInt32 nOffset, sal_uInt32 nCount) : DffRecord(pParent, nOffset, nCount) {} (WW8Stream & rStream, sal_uInt32 nOffset, sal_uInt32 nCount) : DffRecord(rStream, nOffset, nCount) {} (DffRecord & rRecord) : DffRecord(rRecord) {} virtual ~ (); virtual void resolveLocal(Properties & props); void resolveNoAuto(Properties & rHandler); virtual void dump(OutputWithDepth < string > & o) const; virtual DffRecord * clone() const { return new (*this); } virtual string getType() const { return " "; } virtual string getName() const { return ""; } };