/* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ /* 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 <doctok/WW8StructBase.hxx> #endif #ifndef INCLUDED_WW8_RESOURCE_MODEL_IMPL_HXX #include <doctok/WW8ResourceModelImpl.hxx> #endif #ifndef INCLUDED_WW8_PROPERTY_SET_IMPL_HXX #include <doctok/WW8PropertySetImpl.hxx> #endif #ifndef INCLUDED_DFF_HXX #include <doctok/Dff.hxx> #endif namespace writerfilter { namespace doctok { class WW8DocumentImpl; typedef const WW8DocumentImpl * WW8DocumentImplPointer; using namespace ::std; 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 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( )) ; } 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 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 ""; } };