LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / xmloff / source / text / xmllinebreakcontext.hxx
blobef1f744bb44dbecd876ef579df511dea16bbf472
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 #pragma once
12 #include <xmloff/dllapi.h>
13 #include <xmloff/xmlictxt.hxx>
15 class XMLTextImportHelper;
17 /// Handles <text:line-break loext:clear="..."> when the attribute is present.
18 class XMLOFF_DLLPUBLIC SvXMLLineBreakContext : public SvXMLImportContext
20 XMLTextImportHelper& m_rHelper;
22 public:
23 SvXMLLineBreakContext(SvXMLImport& rImport, XMLTextImportHelper& rHelper);
25 protected:
26 void SAL_CALL startFastElement(
27 sal_Int32 nElement,
28 const css::uno::Reference<css::xml::sax::XFastAttributeList>& xAttrList) override;
31 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */