nss: upgrade to release 3.73
[LibreOffice.git] / editeng / source / misc / SvXMLAutoCorrectTokenHandler.hxx
blob352f77385a67882d850802ffe19a815a083c594c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef EDITENG_SOURCE_MISC_SVXMLAUTOCORRECTTOKENHANDLER_HXX
11 #define EDITENG_SOURCE_MISC_SVXMLAUTOCORRECTTOKENHANDLER_HXX
13 #include <sal/types.h>
14 #include <xmloff/xmltoken.hxx>
15 #include <xmloff/xmlnamespace.hxx>
16 #include <com/sun/star/xml/sax/FastToken.hpp>
17 #include <sax/fastattribs.hxx>
19 using namespace css::xml::sax;
20 using namespace ::xmloff::token;
22 enum SvXMLAutoCorrectToken : sal_Int32
24 NAMESPACE = FastToken::NAMESPACE | XML_NAMESPACE_BLOCKLIST, //65553
25 ABBREVIATED_NAME = FastToken::NAMESPACE | XML_NAMESPACE_BLOCKLIST | XML_ABBREVIATED_NAME, //65655
26 BLOCK = FastToken::NAMESPACE | XML_NAMESPACE_BLOCKLIST | XML_BLOCK, //65791
27 BLOCKLIST = FastToken::NAMESPACE | XML_NAMESPACE_BLOCKLIST | XML_BLOCK_LIST, //65792
28 NAME = FastToken::NAMESPACE | XML_NAMESPACE_BLOCKLIST | XML_NAME //66737
31 class SvXMLAutoCorrectTokenHandler :
32 public sax_fastparser::FastTokenHandlerBase
34 public:
35 explicit SvXMLAutoCorrectTokenHandler();
36 virtual ~SvXMLAutoCorrectTokenHandler() override;
38 //XFastTokenHandler
39 virtual sal_Int32 SAL_CALL getTokenFromUTF8( const css::uno::Sequence< sal_Int8 >& Identifier ) override;
40 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getUTF8Identifier( sal_Int32 Token ) override;
42 // Much faster direct C++ shortcut to the method that matters
43 virtual sal_Int32 getTokenDirect( const char *pToken, sal_Int32 nLength ) const override;
46 #endif // EDITENG_SOURCE_MISC_SVXMLAUTOCORRECTTOKENHANDLER_HXX
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */