/*************************************************************************
*
* 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
*
* 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.
*
************************************************************************/
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
:
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
:
val.
break;
default:
#ifdef DEBUG_DOMAINMAPPER
dmapper_logger->element("unhandled");
#endif DEBUG_DOMAINMAPPER
break;
}
}
::
()
,
(0)
(false)
:
{
}
::~
()
{
}
class:
/***
*
*
*
**
**/
// member:
::