diff options
Diffstat (limited to 'writerfilter/source/ooxml/OOXMLFastTokenHandler.cxx')
-rw-r--r-- | writerfilter/source/ooxml/OOXMLFastTokenHandler.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/writerfilter/source/ooxml/OOXMLFastTokenHandler.cxx b/writerfilter/source/ooxml/OOXMLFastTokenHandler.cxx index 95f054dfd3e6..6d6692b671fc 100644 --- a/writerfilter/source/ooxml/OOXMLFastTokenHandler.cxx +++ b/writerfilter/source/ooxml/OOXMLFastTokenHandler.cxx @@ -29,6 +29,7 @@ ************************************************************************/ #include <iostream> +#include <string.h> #include <ooxml/resourceids.hxx> #include "OOXMLFastTokenHandler.hxx" #include "gperffasttoken.hxx" @@ -85,6 +86,15 @@ OOXMLFastTokenHandler::OOXMLFastTokenHandler return sResult; } +css::uno::Sequence< ::sal_Int8 > SAL_CALL OOXMLFastTokenHandler::getUTF8Identifier(::sal_Int32 Token) + throw (css::uno::RuntimeException) +{ + if ( Token < 0 || Token >= OOXML_FAST_TOKENS_END ) + return css::uno::Sequence< ::sal_Int8 >(); + + return css::uno::Sequence< ::sal_Int8 >(reinterpret_cast< const sal_Int8 *>(tokenmap::wordlist[Token].name), strlen(tokenmap::wordlist[Token].name)); +} + ::sal_Int32 SAL_CALL OOXMLFastTokenHandler::getTokenFromUTF8 (const css::uno::Sequence< ::sal_Int8 > & Identifier) throw (css::uno::RuntimeException) { |