/************************************************************** * * 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 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * *************************************************************/ m_b m_s m_n m_ INCLUDED_ _HXX #ifndef #define #include <resourcemodel/WW8ResourceModel.hxx> #include <rtl/ustring.hxx> namespace writerfilter { namespace dmapper { }} #endif // #include " .hxx" #include <ooxml/resourceids.hxx> #ifdef DEBUG_DOMAINMAPPER #include <resourcemodel/QNameToString.hxx> #include "dmapperLoggers.hxx" #endif namespace writerfilter { namespace dmapper { }} class : public , { public: // constructor (); // destructor virtual ~ (); // sprm void sprm(Sprm & r_sprm); void resolveSprm(Sprm & r_sprm); // attribute void attribute(Id name, Value & val); private: }; ::rtl::OUString // typedefs typedef ::boost::shared_ptr< > ::std::vector< > ; set get PushBack true void :: ( ) true :: () const void :: ( true r_Element ) // member: ; ; ; ; rtl::OUString :: const & r_s r_ { = ; } { return ; } { .push_back(r_Element); } getString() getInt() { = ; } { .push_back( ); ; } { resolveSprm(r_Sprm); } void ::sprm(Sprm & r_Sprm) { #ifdef DEBUG_DOMAINMAPPER dmapper_logger->startElement(" .sprm"); dmapper_logger->chars(r_Sprm.toString()); #endif switch(r_Sprm.getId()) { case : /* WRITERFILTERSTATUS done: 100, planned: 2, spent: 0 */ r_Sprm.getValue()-> break; default: #ifdef DEBUG_DOMAINMAPPER dmapper_logger->element("unhandled"); #endif DEBUG_DOMAINMAPPER break; } #ifdef DEBUG_DOMAINMAPPER dmapper_logger->endElement(" .sprm"); #endif } void ::resolveSprm(Sprm & r_Sprm) { writerfilter::Reference<Properties>::Pointer_t pProperties = r_Sprm.getProps(); if( pProperties.get()) pProperties->resolve(*this); } void :: attribute(Id name, Value & val) { #ifdef DEBUG_DOMAINMAPPER dmapper_logger->startElement(" .attribute"); dmapper_logger->attribute("name", (*QNameToString::Instance())(name)); dmapper_logger->attribute("value", val.toString()); dmapper_logger->endElement(" .attribute"); #endif switch (name) { case : /* WRITERFILTERSTATUS done: 100, planned: 2, spent: 0 */ val. break; default: #ifdef DEBUG_DOMAINMAPPER dmapper_logger->element("unhandled"); #endif DEBUG_DOMAINMAPPER break; } } :: () , (0) (false) : { } ::~ () { } class: /*** * * * ** **/ // member: ::