/* -*- 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/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #pragma once #include #include namespace com::sun::star { namespace text { class XTextCursor; } namespace xml::sax { class XAttributeList; } } /** * Import elements contained in a * element. */ class XMLChangedRegionImportContext : public SvXMLImportContext { /// if we replace the current XTextCursor/XText by the ones for /// the redline, we remember the old cursor here. css::uno::Reference xOldCursor; /// redline-ID OUString sID; /// merge-last-paragraph flag bool bMergeLastPara; public: XMLChangedRegionImportContext(SvXMLImport& rImport); virtual ~XMLChangedRegionImportContext() override; virtual void SAL_CALL startFastElement( sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override; virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext( sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override; virtual void SAL_CALL endFastElement(sal_Int32 nElement) override; /// change info: To be called from change-info context void SetChangeInfo(const OUString& rType, const OUString& rAuthor, const OUString& rComment, std::u16string_view rDate, const OUString& rMovedId); /// create redline XText/XTextCursor on demand and register with /// XMLTextImportHelper void UseRedlineText(); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ >distro/collabora/co-22.05-testflight LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-11-04yyyyyNoel Grandin
Change-Id: I9a947beefd2dfe21da8239e841ea3fb416bd1548
2014-04-07basic: sal_Bool->boolNoel Grandin
Change-Id: I1c084ca86c0b1308eb2fc1451ba34d2e702c6a7f
2014-04-03remove unnecessary scope qualifier from sal_Bool usesNoel Grandin
i.e. convert "::sal_Bool" to "sal_Bool" Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2012-11-03basic: OUStringification of ddectrlNorbert Thiebaud
Change-Id: I2af40d7c8117aff8ce62a8ea0eec579664f8bdeb
2012-07-18re-base on ALv2 code. Includes:Michael Meeks
118568: switch to using ucpp Patch contributed by Juergen Schmidt http://svn.apache.org/viewvc?view=revision&revision=1209396
2011-11-27rmove include of pch header in basicNorbert Thiebaud
2011-09-30add mode-lines to .m files and last round of merged files, etc.Caolán McNamara
2011-08-24catch ignored exceptions by const referenceTakeshi Abe
2010-09-06mib19: #164517# Add precompiled_basic.hxxAndreas Bregas
2010-09-03mib19: #164517# support COM collections in 'for each'Mikhail Voytenko