LibreOffice Module editeng (master) 1
SvXMLAutoCorrectTokenHandler.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 */
9
10#pragma once
11
12#include <sal/types.h>
13#include <xmloff/xmltoken.hxx>
15#include <com/sun/star/xml/sax/FastToken.hpp>
16#include <sax/fastattribs.hxx>
17
18using namespace css::xml::sax;
19using namespace ::xmloff::token;
20
21enum SvXMLAutoCorrectToken : sal_Int32
22{
28};
29
32{
33public:
35 virtual ~SvXMLAutoCorrectTokenHandler() override;
36
37 //XFastTokenHandler
38 virtual sal_Int32 SAL_CALL getTokenFromUTF8( const css::uno::Sequence< sal_Int8 >& Identifier ) override;
39 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getUTF8Identifier( sal_Int32 Token ) override;
40
41 // Much faster direct C++ shortcut to the method that matters
42 virtual sal_Int32 getTokenDirect( const char *pToken, sal_Int32 nLength ) const override;
43};
44
45/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual sal_Int32 getTokenDirect(const char *pToken, sal_Int32 nLength) const override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getUTF8Identifier(sal_Int32 Token) override
virtual sal_Int32 SAL_CALL getTokenFromUTF8(const css::uno::Sequence< sal_Int8 > &Identifier) override
XML_BLOCK
XML_NAME
XML_BLOCK_LIST
XML_ABBREVIATED_NAME
constexpr sal_uInt16 XML_NAMESPACE_BLOCKLIST
sal_Int32 nLength