a64eae6ae3
Map <text:line-break loext:clear="..."/> to com.sun.star.text.LineBreak and set its Clear property based on the XML attribute. Change-Id: I76d375de23146592c2327df16aa5066ee2a6598d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131645 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
31 lines
944 B
C++
31 lines
944 B
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
/*
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <xmloff/dllapi.h>
|
|
#include <xmloff/xmlictxt.hxx>
|
|
|
|
class XMLTextImportHelper;
|
|
|
|
/// Handles <text:line-break loext:clear="..."> when the attribute is present.
|
|
class XMLOFF_DLLPUBLIC SvXMLLineBreakContext : public SvXMLImportContext
|
|
{
|
|
XMLTextImportHelper& m_rHelper;
|
|
|
|
public:
|
|
SvXMLLineBreakContext(SvXMLImport& rImport, XMLTextImportHelper& rHelper);
|
|
|
|
protected:
|
|
void SAL_CALL startFastElement(
|
|
sal_Int32 nElement,
|
|
const css::uno::Reference<css::xml::sax::XFastAttributeList>& xAttrList) override;
|
|
};
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|