/* -*- 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 . */ #include #include #include #include #include #include #include #include #include #include #include "xmlbahdl.hxx" #include #include #include "cdouthdl.hxx" #include "csmaphdl.hxx" #include "fonthdl.hxx" #include "kernihdl.hxx" #include "postuhdl.hxx" #include "shadwhdl.hxx" #include "shdwdhdl.hxx" #include "undlihdl.hxx" #include "weighhdl.hxx" #include "breakhdl.hxx" #include "adjushdl.hxx" #include "escphdl.hxx" #include "chrhghdl.hxx" #include "chrlohdl.hxx" #include "lspachdl.hxx" #include "bordrhdl.hxx" #include "tabsthdl.hxx" #include #include #include "durationhdl.hxx" #include #include #include "DrawAspectHdl.hxx" #include #include using namespace ::com::sun::star; using namespace ::xmloff::token; SvXMLEnumMapEntry const aXML_ColorMode_EnumMap[] = { { XML_GREYSCALE, drawing::ColorMode_GREYS }, { XML_MONO, drawing::ColorMode_MONO }, { XML_WATERMARK, drawing::ColorMode_WATERMARK }, { XML_STANDARD, drawing::ColorMode_STANDARD }, { XML_TOKEN_INVALID, drawing::ColorMode(0) } }; SvXMLEnumMapEntry const aXML_HorizontalAdjust_Enum[] = { { XML_LEFT, text::HorizontalAdjust_LEFT }, { XML_CENTER, text::HorizontalAdjust_CENTER }, { XML_RIGHT, text::HorizontalAdjust_RIGHT }, { XML_TOKEN_INVALID, text::HorizontalAdjust(0) } }; // aXML_WritingDirection_Enum is used with and without 'page' // attribute, so you'll find uses of aXML_WritingDirection_Enum // directly, as well as &(aXML_WritingDirection_Enum[1]) SvXMLEnumMapEntry const aXML_WritingDirection_Enum[] = { // aXML_WritingDirection_Enum { XML_PAGE, text::WritingMode2::PAGE }, // &(aXML_WritingDirection_Enum[1]) { XML_LR_TB, text::WritingMode2::LR_TB }, { XML_RL_TB, text::WritingMode2::RL_TB }, { XML_TB_RL, text::WritingMode2::TB_RL }, { XML_TB_LR, text::WritingMode2::TB_LR }, { XML_BT_LR, text::WritingMode2::BT_LR }, // alternative names of the above, as accepted by XSL { XML_LR, text::WritingMode2::LR_TB }, { XML_RL, text::WritingMode2::RL_TB }, { XML_TB, text::WritingMode2::TB_RL }, // vertical as clockwise 90deg rotation, for OOXML vert="vert" { XML_TB_RL90, text::WritingMode2::TB_RL90 }, { XML_TOKEN_INVALID, 0 } }; SvXMLEnumMapEntry const pXML_VertPos_Enum[] = { { XML_FROM_TOP, text::VertOrientation::NONE }, { XML_TOP, text::VertOrientation::TOP }, { XML_TOP, text::VertOrientation::CHAR_TOP }, // export only { XML_TOP, text::VertOrientation::LINE_TOP }, // export only { XML_MIDDLE, text::VertOrientation::CENTER }, { XML_MIDDLE, text::VertOrientation::CHAR_CENTER }, // export only { XML_MIDDLE, text::VertOrientation::LINE_CENTER }, // export only { XML_BOTTOM, text::VertOrientation::BOTTOM }, { XML_BOTTOM, text::VertOrientation::CHAR_BOTTOM }, // export only { XML_BOTTOM, text::VertOrientation::LINE_BOTTOM }, // export only { XML_BELOW, text::VertOrientation::CHAR_BOTTOM }, // import only { XML_TOKEN_INVALID, 0 } }; typedef std::map CacheMap; struct XMLPropertyHandlerFactory::Impl { mutable CacheMap maHandlerCache; }; XMLPropertyHandlerFactory::XMLPropertyHandlerFactory() : mpImpl(new Impl) {} XMLPropertyHandlerFactory::~XMLPropertyHandlerFactory() { for( const auto& rCacheEntry : mpImpl->maHandlerCache ) delete rCacheEntry.second; } // Interface const XMLPropertyHandler* XMLPropertyHandlerFactory::GetPropertyHandler( sal_Int32 nType ) const { SAL_WARN_IF( (nType & ~(sal_uInt32(MID_FLAG_MASK))) != 0, "xmloff", "GetPropertyHandler called with flags in type" ); return GetBasicHandler( nType ); } // Helper-methods to create and cache PropertyHandler const XMLPropertyHandler* XMLPropertyHandlerFactory::GetHdlCache( sal_Int32 nType ) const { const XMLPropertyHandler* pRet = nullptr; if( mpImpl->maHandlerCache.find( nType ) != mpImpl->maHandlerCache.end() ) pRet = mpImpl->maHandlerCache.find( nType )->second; return pRet; } void XMLPropertyHandlerFactory::PutHdlCache( sal_Int32 nType, const XMLPropertyHandler* pHdl ) const { mpImpl->maHandlerCache[nType] = pHdl; } const XMLPropertyHandler* XMLPropertyHandlerFactory::GetBasicHandler( sal_Int32 nType ) const { const XMLPropertyHandler* pPropHdl = GetHdlCache( nType ); if( pPropHdl ) return pPropHdl; std::unique_ptr pNewPropHdl = CreatePropertyHandler( nType ); if( pNewPropHdl ) PutHdlCache( nType, pNewPropHdl.get() ); return pNewPropHdl.release(); } std::unique_ptr XMLPropertyHandlerFactory::CreatePropertyHandler( sal_Int32 nType ) { std::unique_ptr pPropHdl; switch( nType ) { case XML_TYPE_BOOL : pPropHdl.reset(new XMLBoolPropHdl); break; case XML_TYPE_BOOL_FALSE : pPropHdl.reset(new XMLBoolFalsePropHdl); break; case XML_TYPE_MEASURE : pPropHdl.reset(new XMLMeasurePropHdl( 4 )); break; case XML_TYPE_MEASURE8 : pPropHdl.reset(new XMLMeasurePropHdl( 1 )); break; case XML_TYPE_MEASURE16: pPropHdl.reset(new XMLMeasurePropHdl( 2 )); break; case XML_TYPE_PERCENT : pPropHdl.reset(new XMLPercentPropHdl( 4 )); break; case XML_TYPE_PERCENT8 : pPropHdl.reset(new XMLPercentPropHdl( 1 )); break; case XML_TYPE_PERCENT16 : pPropHdl.reset(new XMLPercentPropHdl( 2 )); break; case XML_TYPE_PERCENT100: pPropHdl.reset(new XML100thPercentPropHdl); break; case XML_TYPE_DOUBLE_PERCENT : pPropHdl.reset(new XMLDoublePercentPropHdl); break; case XML_TYPE_NEG_PERCENT : pPropHdl.reset(new XMLNegPercentPropHdl( 4 )); break; case XML_TYPE_NEG_PERCENT8 : pPropHdl.reset(new XMLNegPercentPropHdl( 1 )); break; case XML_TYPE_NEG_PERCENT16 : pPropHdl.reset(new XMLNegPercentPropHdl( 2 )); break; case XML_TYPE_MEASURE_PX : pPropHdl.reset(new XMLMeasurePxPropHdl( 4 )); break; case XML_TYPE_STRING : pPropHdl.reset(new XMLStringPropHdl); break; case XML_TYPE_COLOR : pPropHdl.reset(new XMLColorPropHdl); break; case XML_TYPE_HEX : pPropHdl.reset(new XMLHexPropHdl); break; case XML_TYPE_NUMBER : pPropHdl.reset(new XMLNumberPropHdl( 4 )); break; case XML_TYPE_NUMBER8 : pPropHdl.reset(new XMLNumberPropHdl( 1 )); break; case XML_TYPE_NUMBER16: pPropHdl.reset(new XMLNumberPropHdl( 2 )); break; case XML_TYPE_NUMBER_NONE : pPropHdl.reset(new XMLNumberNonePropHdl); break; case XML_TYPE_NUMBER8_NONE : pPropHdl.reset(new XMLNumberNonePropHdl( 1 )); break; case XML_TYPE_NUMBER16_NONE : pPropHdl.reset(new XMLNumberNonePropHdl( 2 )); break; case XML_TYPE_DOUBLE : pPropHdl.reset(new XMLDoublePropHdl); break; case XML_TYPE_NBOOL : pPropHdl.reset(new XMLNBoolPropHdl); break; case XML_TYPE_COLORTRANSPARENT : pPropHdl.reset(new XMLColorTransparentPropHdl); break; case XML_TYPE_ISTRANSPARENT : pPropHdl.reset(new XMLIsTransparentPropHdl); break; case XML_TYPE_COLORAUTO : pPropHdl.reset(new XMLColorAutoPropHdl); break; case XML_TYPE_ISAUTOCOLOR : pPropHdl.reset(new XMLIsAutoColorPropHdl); break; case XML_TYPE_BUILDIN_CMP_ONLY : pPropHdl.reset(new XMLCompareOnlyPropHdl); break; case XML_TYPE_RECTANGLE_LEFT : case XML_TYPE_RECTANGLE_TOP : case XML_TYPE_RECTANGLE_WIDTH : case XML_TYPE_RECTANGLE_HEIGHT : pPropHdl.reset(new XMLRectangleMembersHdl( nType )); break; case XML_TYPE_TEXT_CROSSEDOUT_TYPE: pPropHdl.reset(new XMLCrossedOutTypePropHdl) ; break; case XML_TYPE_TEXT_CROSSEDOUT_STYLE: pPropHdl.reset(new XMLCrossedOutStylePropHdl) ; break; case XML_TYPE_TEXT_CROSSEDOUT_WIDTH: pPropHdl.reset(new XMLCrossedOutWidthPropHdl) ; break; case XML_TYPE_TEXT_CROSSEDOUT_TEXT: pPropHdl.reset(new XMLCrossedOutTextPropHdl) ; break; case XML_TYPE_TEXT_BOOLCROSSEDOUT: pPropHdl.reset(new XMLNamedBoolPropertyHdl( GetXMLToken(XML_SOLID), GetXMLToken(XML_NONE) )); break; case XML_TYPE_TEXT_ESCAPEMENT: pPropHdl.reset(new XMLEscapementPropHdl); break; case XML_TYPE_TEXT_ESCAPEMENT_HEIGHT: pPropHdl.reset(new XMLEscapementHeightPropHdl); break; case XML_TYPE_TEXT_CASEMAP: pPropHdl.reset(new XMLCaseMapPropHdl); break; case XML_TYPE_TEXT_CASEMAP_VAR: pPropHdl.reset(new XMLCaseMapVariantHdl); break; case XML_TYPE_TEXT_FONTFAMILYNAME: pPropHdl.reset(new XMLFontFamilyNamePropHdl); break; case XML_TYPE_TEXT_FONTFAMILY: pPropHdl.reset(new XMLFontFamilyPropHdl); break; case XML_TYPE_TEXT_FONTENCODING: pPropHdl.reset(new XMLFontEncodingPropHdl); break; case XML_TYPE_TEXT_FONTPITCH: pPropHdl.reset(new XMLFontPitchPropHdl); break; case XML_TYPE_TEXT_KERNING: pPropHdl.reset(new XMLKerningPropHdl); break; case XML_TYPE_TEXT_POSTURE: pPropHdl.reset(new XMLPosturePropHdl); break; case XML_TYPE_TEXT_SHADOWED: pPropHdl.reset(new XMLShadowedPropHdl); break; case XML_TYPE_TEXT_UNDERLINE_TYPE: pPropHdl.reset(new XMLUnderlineTypePropHdl); break; case XML_TYPE_TEXT_UNDERLINE_STYLE: pPropHdl.reset(new XMLUnderlineStylePropHdl); break; case XML_TYPE_TEXT_UNDERLINE_WIDTH: pPropHdl.reset(new XMLUnderlineWidthPropHdl); break; case XML_TYPE_TEXT_UNDERLINE_COLOR: pPropHdl.reset(new XMLColorTransparentPropHdl( XML_FONT_COLOR )); break; case XML_TYPE_TEXT_UNDERLINE_HASCOLOR: pPropHdl.reset(new XMLIsTransparentPropHdl( XML_FONT_COLOR, false )); break; case XML_TYPE_TEXT_OVERLINE_TYPE: pPropHdl.reset(new XMLUnderlineTypePropHdl); break; case XML_TYPE_TEXT_OVERLINE_STYLE: pPropHdl.reset(new XMLUnderlineStylePropHdl); break; case XML_TYPE_TEXT_OVERLINE_WIDTH: pPropHdl.reset(new XMLUnderlineWidthPropHdl); break; case XML_TYPE_TEXT_OVERLINE_COLOR: pPropHdl.reset(new XMLColorTransparentPropHdl( XML_FONT_COLOR )); break; case XML_TYPE_TEXT_OVERLINE_HASCOLOR: pPropHdl.reset(new XMLIsTransparentPropHdl( XML_FONT_COLOR, false )); break; case XML_TYPE_TEXT_WEIGHT: pPropHdl.reset(new XMLFontWeightPropHdl); break; case XML_TYPE_TEXT_SPLIT: pPropHdl.reset(new XMLNamedBoolPropertyHdl( GetXMLToken(XML_AUTO), GetXMLToken(XML_ALWAYS) )); break; case XML_TYPE_TEXT_BREAKBEFORE: pPropHdl.reset(new XMLFmtBreakBeforePropHdl); break; case XML_TYPE_TEXT_BREAKAFTER: pPropHdl.reset(new XMLFmtBreakAfterPropHdl); break; case XML_TYPE_TEXT_SHADOW: pPropHdl.reset(new XMLShadowPropHdl); break; case XML_TYPE_TEXT_ADJUST: pPropHdl.reset(new XMLParaAdjustPropHdl); break; case XML_TYPE_TEXT_ADJUSTLAST: pPropHdl.reset(new XMLLastLineAdjustPropHdl); break; case XML_TYPE_CHAR_HEIGHT: pPropHdl.reset(new XMLCharHeightHdl); break; case XML_TYPE_CHAR_HEIGHT_PROP: pPropHdl.reset(new XMLCharHeightPropHdl); break; case XML_TYPE_CHAR_HEIGHT_DIFF: pPropHdl.reset(new XMLCharHeightDiffHdl); break; case XML_TYPE_CHAR_RFC_LANGUAGE_TAG: pPropHdl.reset(new XMLCharRfcLanguageTagHdl); break; case XML_TYPE_CHAR_LANGUAGE: pPropHdl.reset(new XMLCharLanguageHdl); break; case XML_TYPE_CHAR_SCRIPT: pPropHdl.reset(new XMLCharScriptHdl); break; case XML_TYPE_CHAR_COUNTRY: pPropHdl.reset(new XMLCharCountryHdl); break; case XML_TYPE_LINE_SPACE_FIXED: pPropHdl.reset(new XMLLineHeightHdl); break; case XML_TYPE_LINE_SPACE_MINIMUM: pPropHdl.reset(new XMLLineHeightAtLeastHdl); break; case XML_TYPE_LINE_SPACE_DISTANCE: pPropHdl.reset(new XMLLineSpacingHdl); break; case XML_TYPE_BORDER_WIDTH: pPropHdl.reset(new XMLBorderWidthHdl); break; case XML_TYPE_BORDER: pPropHdl.reset(new XMLBorderHdl); break; case XML_TYPE_TEXT_TABSTOP: pPropHdl.reset(new XMLTabStopPropHdl); break; case XML_TYPE_ATTRIBUTE_CONTAINER: pPropHdl.reset(new XMLAttributeContainerHandler); break; case XML_TYPE_COLOR_MODE: pPropHdl.reset(new XMLEnumPropertyHdl(aXML_ColorMode_EnumMap)); break; case XML_TYPE_DURATION16_MS: pPropHdl.reset(new XMLDurationMS16PropHdl_Impl); break; case XML_TYPE_TEXT_HORIZONTAL_ADJUST: pPropHdl.reset(new XMLEnumPropertyHdl(aXML_HorizontalAdjust_Enum)); break; case XML_TYPE_TEXT_DRAW_ASPECT: pPropHdl.reset(new DrawAspectHdl); break; case XML_TYPE_TEXT_WRITING_MODE: pPropHdl.reset(new XMLConstantsPropertyHandler( &(aXML_WritingDirection_Enum[1]), XML_LR_TB)); break; case XML_TYPE_TEXT_WRITING_MODE_WITH_DEFAULT: pPropHdl.reset(new XMLConstantsPropertyHandler( aXML_WritingDirection_Enum, XML_PAGE)); break; case XML_TYPE_TEXT_HIDDEN_AS_DISPLAY: pPropHdl.reset(new XMLNamedBoolPropertyHdl( GetXMLToken(XML_NONE), GetXMLToken(XML_TRUE) )); break; case XML_TYPE_STYLENAME : pPropHdl.reset(new XMLStyleNamePropHdl); break; case XML_TYPE_NUMBER_NO_ZERO: pPropHdl.reset(new XMLNumberWithoutZeroPropHdl( 4 )); break; case XML_TYPE_NUMBER8_NO_ZERO: pPropHdl.reset(new XMLNumberWithoutZeroPropHdl( 1 )); break; case XML_TYPE_NUMBER16_NO_ZERO: pPropHdl.reset(new XMLNumberWithoutZeroPropHdl( 2 )); break; case XML_TYPE_NUMBER16_AUTO: pPropHdl.reset(new XMLNumberWithAutoForVoidPropHdl); break; case XML_TYPE_TEXT_VERTICAL_POS: pPropHdl.reset(new XMLConstantsPropertyHandler( pXML_VertPos_Enum, XML_TOKEN_INVALID )); break; case XML_TYPE_TEXT_OVERFLOW_BEHAVIOR: // auto-create-new-frame isn't properly implemented yet. It just means don't clip. pPropHdl.reset(new XMLNamedBoolPropertyHdl(GetXMLToken(XML_CLIP), GetXMLToken(XML_AUTO_CREATE_NEW_FRAME))); break; case XML_TYPE_COMPLEX_COLOR: pPropHdl.reset(new XMLComplexColorHandler); break; } return pPropHdl; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ soc-basic-ide-completion-and-other-bits LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-10-25DBG_UTIL implementation differs only by never-wrong assertMike Kaganski
Change-Id: Ifb879d6536c80f00da61707fb0aa0700dcd19bcc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158288 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-04-19use more concrete UNO type in SwFieldTypeNoel Grandin
Change-Id: Iffb0ffad6daf102299fa7ce072bfc117cdf38b55 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150589 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-04-10Resolves: tdf#154217 Edit date+time User Field and Set VariableEike Rathke
... instead of the raw numeric value. Change-Id: I256cb4fde1e4ea6b0580b3208c5d4948e2573448 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150169 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
2023-02-25refactor DocPosUpdate, part 2Bjoern Michaelsen
- separate the message send from the field manager to the fields containing no start index from those send from the field to the frames containing an index - use member functions where possible: SwFieldType, SwFormatField, SwTextNode Change-Id: I488e4003b75bf7b0ae700f39e2364d6e34a8bbfc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147490 Tested-by: Jenkins Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
2022-12-21sw, field insert: handle the Content param for refmarks and accept HTML thereMiklos Vajna
Creating a bookmark just to refer to it is a bit hacky, refmarks are the proper solution to that. But while .uno:InsertBookmark allows specifying custom HTML for the content of the created bookmark, there is no matching UNO command that would do the same for refmarks. Fix the problem by extending .uno:InsertField: - add a TypeName parameter, so TypeName=SetRef can be used in macros, which is more readable than Type=12 - handle the previously ignored Content parameter when creating a refmark and accept HTML there to allow rich formatting Note that unlike bookmarks, refmarks are text attributes in a text node, so in case multi-paragraph HTML would be provided, the created refmark will only cover the content till the end of the first paragraph. Also not that unlike fieldmarks and bookmarks, a refmark can only represent a reference, not a bibliography, we'll need sections for that. Change-Id: I4d95f0a6e5618f1b611f7431e9189a63ee75d349 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144646 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2022-04-20loplugin:passstuffbyrefNoel Grandin
Change-Id: I336fd329b577b6fa141265d8bc7ce67784bd7306 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133210 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-03-24sw fields: add Title uno propertyMiklos Vajna
The use-case is user fields, which are kind of variables in the document. They have a name and a value, but the name might be only readable to an extension or macro, not to the user. In this case, it makes sense to have a way to specify a user-readable tooltip. Be consistent with TextFrames which already have a Title property. Change-Id: I986792f5e55e0b96489347be482d640d155113cc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132077 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2022-03-10Recheck sw headers with IWYUGabor Kelemen
See tdf#42949 for motivation Change-Id: I99558e6b6952b3f2c1ee32dd07354ff659ad9cd0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131183 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-02-22Add XWeak constructor and operator= to uno::WeakReferenceNoel Grandin
which is faster since we can skip the UNO_QUERY. Change-Id: Id95ad9f3568213e974bd13659d92d4ea94dbfbd6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130282 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-12-07loplugin:unusedmethodsNoel Grandin
Change-Id: Ic1ba90447575278d854af85312271c41766b776b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126422 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-10-29use virtual function call for dynamic dispatchBjoern Michaelsen
... as it is around since the dawn of C++ and should be stable -- certainly more stable and less errorprone that manual typetagging. Change-Id: I5dfe2ce40c2334dc8fe60705d358779fa4bf1586 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124131 Tested-by: Jenkins Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
2021-10-25tdf#138531: Also update DDE tables, not only fieldsBjoern Michaelsen
Change-Id: I0cbf8ce355b460b2f7ea73c8fae653641c980979 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124129 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2021-10-21introduce SwNodeOffset strong typedefNoel Grandin
for indexing into node children. Replaces various usage of sal_uLong, tools::Long, sal_uInt32 with an underlying type of sal_Int32. Also add a NODE_OFFSET_MAX constant to replace usage of ULONG_MAX Change-Id: I2f466922e1ebc19029bb2883d2b29aa4c0614170 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123892 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-01-26loplugin:passstuffbyrefNoel
Change-Id: I330e0ab6c9955939dad313f9d472f93e39dbd313 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109924 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-11-24tdf#42949 Fix new IWYU warnings in directory swGabor Kelemen
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I4bb84c3f401aba8a3dede9cec3a7f2187a2ba02a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106473 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-11-05Ensure no class directly derives from SwModifyBjoern Michaelsen
- make all classes that used to be SwModify to be sw::BroadcastingModify's - this makes sure they are all sw::BroadcastMixin too, so all clients of SwModify can be migrated over to use sw::BroadcastMixin (only) instead Change-Id: Idd217b98f9c20f01e0788bc65af796050dbb5699 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105207 Tested-by: Jenkins Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
2020-11-02SwFieldType: ModifyNotification no more ...Bjoern Michaelsen
Change-Id: Idb6c0a6cca5df729037067f6def5594eed2cca19 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105178 Tested-by: Jenkins Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
2020-10-06loplugin:const* make some params and methods constNoel
Change-Id: I3c8ca72b2b41a4f82ee20cbe025b41425f32e715 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104028 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-08-21Fix typo in codeAndrea Gelmini
Change-Id: I8681bd1be07fe44ab017bce65807b9bf0afa7b42 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101107 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2020-05-29pack a few more classesNoel Grandin
Change-Id: Ia7870d1d0d91de213727116ccda5b41913223866 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95097 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-05-09compact namespace in swNoel Grandin
Change-Id: Ie2c3e3f95a687b12b89bcfc5cad44fb7a1d4568f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93862 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>