INTEGRATION: CWS xmlfilter02 (1.1.12); FILE MERGED
2007/11/15 13:03:22 hbrinkm 1.1.12.5: corrected DLLPUBLIC 2007/11/14 13:00:50 hbrinkm 1.1.12.4: namespace clean up 2007/11/08 15:11:24 hbrinkm 1.1.12.3: no need for includes: OOXMLDocument.hxx, WW8Document.hxx 2007/10/18 10:07:29 hbrinkm 1.1.12.2: analyzerIds 2007/10/01 10:11:13 os 1.1.12.1: integration of cws writerfilter3 into cws xmlfilter02
This commit is contained in:
parent
43e916afb2
commit
bde9b3c3e4
1 changed files with 12 additions and 6 deletions
|
@ -4,9 +4,9 @@
|
|||
*
|
||||
* $RCSfile: qnametostrheader,v $
|
||||
*
|
||||
* $Revision: 1.1 $
|
||||
* $Revision: 1.2 $
|
||||
*
|
||||
* last change: $Author: hbrinkm $ $Date: 2007-04-13 10:05:32 $
|
||||
* last change: $Author: obo $ $Date: 2008-01-10 12:17:18 $
|
||||
*
|
||||
* The Contents of this file are made available subject to
|
||||
* the terms of GNU Lesser General Public License Version 2.1.
|
||||
|
@ -36,13 +36,14 @@
|
|||
#include <doctok/resourceids.hxx>
|
||||
#include <ooxml/resourceids.hxx>
|
||||
#include <resourcemodel/QNameToString.hxx>
|
||||
#include <stdio.h>
|
||||
|
||||
namespace writerfilter
|
||||
{
|
||||
|
||||
QNameToString::Pointer_t QNameToString::pInstance;
|
||||
|
||||
QNameToString::Pointer_t QNameToString::Instance()
|
||||
QNameToString::Pointer_t WRITERFILTER_DLLPUBLIC QNameToString::Instance()
|
||||
{
|
||||
if (pInstance.get() == NULL)
|
||||
pInstance = QNameToString::Pointer_t(new QNameToString());
|
||||
|
@ -50,10 +51,15 @@ QNameToString::Pointer_t QNameToString::Instance()
|
|||
return pInstance;
|
||||
}
|
||||
|
||||
string QNameToString::operator()(writerfilter::QName_t qName)
|
||||
string WRITERFILTER_DLLPUBLIC QNameToString::operator()(Id qName)
|
||||
{
|
||||
string sResult;
|
||||
|
||||
Map::const_iterator aIt = mMap.find(qName);
|
||||
|
||||
if (aIt != mMap.end())
|
||||
sResult = aIt->second;
|
||||
|
||||
return mMap[qName];
|
||||
}
|
||||
|
||||
QNameToString::QNameToString()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue