# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- # # 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 . # $(eval $(call gb_Library_Library,svxcore)) $(eval $(call gb_Library_set_componentfile,svxcore,svx/util/svxcore)) $(eval $(call gb_Library_add_sdi_headers,svxcore,svx/sdi/svxslots)) $(eval $(call gb_Library_use_packages,svxcore,\ svx_inc \ svx_sdi \ )) $(eval $(call gb_Library_use_sdk_api,svxcore)) $(eval $(call gb_Library_set_include,svxcore,\ -I$(SRCDIR)/svx/inc \ -I$(SRCDIR)/svx/source/inc \ $$(INCLUDE) \ -I$(WORKDIR)/SdiTarget/svx/sdi \ )) #BOOST switch in customshapes #dialog: #.IF "$(GUI)"=="WNT" #CFLAGS+= -DUNICODE -D_UNICODE #.ENDIF $(eval $(call gb_Library_add_defs,svxcore,\ -DSVX_DLLIMPLEMENTATION \ -DBOOST_SPIRIT_USE_OLD_NAMESPACE \ )) $(eval $(call gb_Library_use_libraries,svxcore,\ avmedia \ basegfx \ sb \ comphelper \ cppuhelper \ cppu \ drawinglayer \ editeng \ fwe \ i18nisolang1 \ lng \ sal \ salhelper \ sax \ sfx \ sot \ svl \ svt \ tk \ tl \ ucbhelper \ utl \ vcl \ xo \ $(gb_UWINAPI) \ )) $(eval $(call gb_Library_use_external,svxcore,icuuc)) $(eval $(call gb_Library_add_exception_objects,svxcore,\ svx/source/core/coreservices \ svx/source/core/extedit \ svx/source/core/graphichelper \ svx/source/customshapes/EnhancedCustomShape2d \ svx/source/customshapes/EnhancedCustomShapeGeometry \ svx/source/customshapes/EnhancedCustomShapeTypeNames \ svx/source/dialog/checklbx \ svx/source/dialog/dialmgr \ svx/source/dialog/dlgutil \ svx/source/dialog/framelink \ svx/source/dialog/langbox \ svx/source/dialog/simptabl \ svx/source/dialog/stddlg \ svx/source/dialog/svxdlg \ svx/source/engine3d/camera3d \ svx/source/engine3d/cube3d \ svx/source/engine3d/deflt3d \ svx/source/engine3d/dragmt3d \ svx/source/engine3d/e3dsceneupdater \ svx/source/engine3d/e3dundo \ svx/source/engine3d/extrud3d \ svx/source/engine3d/helperhittest3d \ svx/source/engine3d/helperminimaldepth3d \ svx/source/engine3d/lathe3d \ svx/source/engine3d/obj3d \ svx/source/engine3d/objfac3d \ svx/source/engine3d/polygn3d \ svx/source/engine3d/polysc3d \ svx/source/engine3d/scene3d \ svx/source/engine3d/sphere3d \ svx/source/engine3d/svx3ditems \ svx/source/engine3d/view3d \ svx/source/engine3d/view3d1 \ svx/source/engine3d/viewpt3d2 \ svx/source/gallery2/codec \ svx/source/gallery2/galbrws \ svx/source/gallery2/galbrws1 \ svx/source/gallery2/galbrws2 \ svx/source/gallery2/galctrl \ svx/source/gallery2/galexpl \ svx/source/gallery2/gallery1 \ svx/source/gallery2/galmisc \ svx/source/gallery2/galobj \ svx/source/gallery2/galtheme \ svx/source/items/chrtitem \ svx/source/items/clipfmtitem \ svx/source/items/customshapeitem \ svx/source/items/drawitem \ svx/source/items/e3ditem \ svx/source/items/grfitem \ svx/source/sdr/animation/scheduler \ svx/source/sdr/animation/objectanimator \ svx/source/sdr/animation/animationstate \ svx/source/sdr/attribute/sdrlinefillshadowtextattribute \ svx/source/sdr/attribute/sdrfilltextattribute \ svx/source/sdr/attribute/sdrshadowtextattribute \ svx/source/sdr/attribute/sdrtextattribute \ svx/source/sdr/attribute/sdrlineshadowtextattribute \ svx/source/sdr/attribute/sdrformtextattribute \ svx/source/sdr/attribute/sdrformtextoutlineattribute \ svx/source/sdr/contact/viewobjectcontactofgroup \ svx/source/sdr/contact/viewobjectcontactofsdrpage \ svx/source/sdr/contact/viewcontactofpageobj \ svx/source/sdr/contact/viewcontactofe3d \ svx/source/sdr/contact/viewcontactofe3dcube \ svx/source/sdr/contact/viewcontactofsdrmediaobj \ svx/source/sdr/contact/viewobjectcontactofmasterpagedescriptor \ svx/source/sdr/contact/viewobjectcontactofpageobj \ svx/source/sdr/contact/viewobjectcontactofe3dscene \ svx/source/sdr/contact/viewcontactofgraphic \ svx/source/sdr/contact/viewobjectcontactredirector \ svx/source/sdr/contact/viewcontactofsdrcircobj \ svx/source/sdr/contact/viewcontactofgroup \ svx/source/sdr/contact/viewcontactofunocontrol \ svx/source/sdr/contact/viewcontactofsdrobjcustomshape \ svx/source/sdr/contact/viewcontactofsdrobj \ svx/source/sdr/contact/objectcontact \ svx/source/sdr/contact/viewcontactoftextobj \ svx/source/sdr/contact/viewcontactofe3dlathe \ svx/source/sdr/contact/viewcontactofsdrpage \ svx/source/sdr/contact/viewcontactofe3dextrude \ svx/source/sdr/contact/viewcontactofmasterpagedescriptor \ svx/source/sdr/contact/viewcontact \ svx/source/sdr/contact/viewcontactofsdrole2obj \ svx/source/sdr/contact/displayinfo \ svx/source/sdr/contact/viewcontactofe3dscene \ svx/source/sdr/contact/viewcontactofsdrrectobj \ svx/source/sdr/contact/viewobjectcontactofsdrole2obj \ svx/source/sdr/contact/viewobjectcontactofunocontrol \ svx/source/sdr/contact/viewobjectcontactofgraphic \ svx/source/sdr/contact/sdrmediawindow \ svx/source/sdr/contact/viewobjectcontactofsdrmediaobj \ svx/source/sdr/contact/viewcontactofsdrcaptionobj \ svx/source/sdr/contact/viewcontactofvirtobj \ svx/source/sdr/contact/viewcontactofe3dsphere \ svx/source/sdr/contact/viewcontactofe3dpolygon \ svx/source/sdr/contact/viewcontactofsdredgeobj \ svx/source/sdr/contact/viewobjectcontact \ svx/source/sdr/contact/viewobjectcontactofsdrobj \ svx/source/sdr/contact/objectcontactofpageview \ svx/source/sdr/contact/viewcontactofsdrpathobj \ svx/source/sdr/contact/viewcontactofsdrmeasureobj \ svx/source/sdr/contact/objectcontactofobjlistpainter \ svx/source/sdr/contact/viewobjectcontactofe3d \ svx/source/sdr/event/eventhandler \ svx/source/sdr/overlay/overlayline \ svx/source/sdr/overlay/overlaycrosshair \ svx/source/sdr/overlay/overlayrollingrectangle \ svx/source/sdr/overlay/overlaytriangle \ svx/source/sdr/overlay/overlayselection \ svx/source/sdr/overlay/overlayhatchrect \ svx/source/sdr/overlay/overlaybitmapex \ svx/source/sdr/overlay/overlaymanagerbuffered \ svx/source/sdr/overlay/overlayhelpline \ svx/source/sdr/overlay/overlayanimatedbitmapex \ svx/source/sdr/overlay/overlaypolypolygon \ svx/source/sdr/overlay/overlayobjectcell \ svx/source/sdr/overlay/overlaytools \ svx/source/sdr/overlay/overlayprimitive2dsequenceobject \ svx/source/sdr/overlay/overlayobject \ svx/source/sdr/overlay/overlaymanager \ svx/source/sdr/overlay/overlayobjectlist \ svx/source/sdr/primitive2d/sdrellipseprimitive2d \ svx/source/sdr/primitive2d/sdrprimitivetools \ svx/source/sdr/primitive2d/sdrtextprimitive2d \ svx/source/sdr/primitive2d/primitivefactory2d \ svx/source/sdr/primitive2d/sdrolecontentprimitive2d \ svx/source/sdr/primitive2d/sdrcustomshapeprimitive2d \ svx/source/sdr/primitive2d/sdrgrafprimitive2d \ svx/source/sdr/primitive2d/sdrole2primitive2d \ svx/source/sdr/primitive2d/sdrpathprimitive2d \ svx/source/sdr/primitive2d/sdrrectangleprimitive2d \ svx/source/sdr/primitive2d/sdrcaptionprimitive2d \ svx/source/sdr/primitive2d/sdrconnectorprimitive2d \ svx/source/sdr/primitive2d/sdrmeasureprimitive2d \ svx/source/sdr/primitive2d/sdrattributecreator \ svx/source/sdr/primitive2d/sdrdecompositiontools \ svx/source/sdr/primitive3d/sdrattributecreator3d \ svx/source/sdr/properties/pageproperties \ svx/source/sdr/properties/e3dsceneproperties \ svx/source/sdr/properties/itemsettools \ svx/source/sdr/properties/captionproperties \ svx/source/sdr/properties/e3dextrudeproperties \ svx/source/sdr/properties/e3dproperties \ svx/source/sdr/properties/measureproperties \ svx/source/sdr/properties/customshapeproperties \ svx/source/sdr/properties/rectangleproperties \ svx/source/sdr/properties/groupproperties \ svx/source/sdr/properties/properties \ svx/source/sdr/properties/e3dlatheproperties \ svx/source/sdr/properties/graphicproperties \ svx/source/sdr/properties/circleproperties \ svx/source/sdr/properties/emptyproperties \ svx/source/sdr/properties/e3dsphereproperties \ svx/source/sdr/properties/defaultproperties \ svx/source/sdr/properties/textproperties \ svx/source/sdr/properties/attributeproperties \ svx/source/sdr/properties/connectorproperties \ svx/source/sdr/properties/e3dcompoundproperties \ svx/source/sdr/properties/oleproperties \ svx/source/svdraw/clonelist \ svx/source/svdraw/charthelper \ svx/source/svdraw/gradtrns \ svx/source/svdraw/polypolygoneditor \ svx/source/svdraw/sdrhittesthelper \ svx/source/svdraw/sdrmasterpagedescriptor \ svx/source/svdraw/sdrpagewindow \ svx/source/svdraw/sdrpaintwindow \ svx/source/svdraw/selectioncontroller \ svx/source/svdraw/svdattr \ svx/source/svdraw/svdcrtv \ svx/source/svdraw/svddrag \ svx/source/svdraw/svddrgmt \ svx/source/svdraw/svddrgv \ svx/source/svdraw/svdedtv \ svx/source/svdraw/svdedtv1 \ svx/source/svdraw/svdedtv2 \ svx/source/svdraw/svdedxv \ svx/source/svdraw/svdetc \ svx/source/svdraw/svdfmtf \ svx/source/svdraw/svdglev \ svx/source/svdraw/svdglue \ svx/source/svdraw/svdhdl \ svx/source/svdraw/svdhlpln \ svx/source/svdraw/svdibrow \ svx/source/svdraw/svditer \ svx/source/svdraw/svdlayer \ svx/source/svdraw/svdmark \ svx/source/svdraw/svdmodel \ svx/source/svdraw/svdmrkv \ svx/source/svdraw/svdmrkv1 \ svx/source/svdraw/svdoashp \ svx/source/svdraw/svdoattr \ svx/source/svdraw/svdobj \ svx/source/svdraw/svdocapt \ svx/source/svdraw/svdocirc \ svx/source/svdraw/svdoedge \ svx/source/svdraw/svdograf \ svx/source/svdraw/svdogrp \ svx/source/svdraw/svdomeas \ svx/source/svdraw/svdomedia \ svx/source/svdraw/svdoole2 \ svx/source/svdraw/svdopage \ svx/source/svdraw/svdopath \ svx/source/svdraw/svdorect \ svx/source/svdraw/svdotext \ svx/source/svdraw/svdotextdecomposition \ svx/source/svdraw/svdotextpathdecomposition \ svx/source/svdraw/svdotxat \ svx/source/svdraw/svdotxdr \ svx/source/svdraw/svdotxed \ svx/source/svdraw/svdotxfl \ svx/source/svdraw/svdotxln \ svx/source/svdraw/svdotxtr \ svx/source/svdraw/svdouno \ svx/source/svdraw/svdoutl \ svx/source/svdraw/svdoutlinercache \ svx/source/svdraw/svdovirt \ svx/source/svdraw/svdpage \ svx/source/svdraw/svdpagv \ svx/source/svdraw/svdpntv \ svx/source/svdraw/svdpoev \ svx/source/svdraw/svdsnpv \ svx/source/svdraw/svdtext \ svx/source/svdraw/svdtrans \ svx/source/svdraw/svdundo \ svx/source/svdraw/svdview \ svx/source/svdraw/svdviter \ svx/source/svdraw/svdxcgv \ svx/source/table/cell \ svx/source/table/cellcursor \ svx/source/table/cellrange \ svx/source/table/propertyset \ svx/source/table/svdotable \ svx/source/table/tablecolumn \ svx/source/table/tablecolumns \ svx/source/table/tablecontroller \ svx/source/table/tablehandles \ svx/source/table/tablelayouter \ svx/source/table/tablemodel \ svx/source/table/tablerow \ svx/source/table/tablerows \ svx/source/table/tableundo \ svx/source/table/viewcontactoftableobj \ svx/source/tbxctrls/extrusioncontrols \ svx/source/tbxctrls/fontworkgallery \ svx/source/tbxctrls/tbcontrl \ svx/source/tbxctrls/tbxcolorupdate \ svx/source/toolbars/extrusionbar \ svx/source/toolbars/fontworkbar \ svx/source/unodraw/gluepts \ svx/source/unodraw/shapepropertynotifier \ svx/source/unodraw/tableshape \ svx/source/unodraw/unobtabl \ svx/source/unodraw/unodtabl \ svx/source/unodraw/UnoGraphicExporter \ svx/source/unodraw/unogtabl \ svx/source/unodraw/unohtabl \ svx/source/unodraw/unomlstr \ svx/source/unodraw/unomod \ svx/source/unodraw/unomtabl \ svx/source/unodraw/UnoNameItemTable \ svx/source/unodraw/unopage \ svx/source/unodraw/unoprov \ svx/source/unodraw/unoshap2 \ svx/source/unodraw/unoshap3 \ svx/source/unodraw/unoshap4 \ svx/source/unodraw/unoshape \ svx/source/unodraw/unoshtxt \ svx/source/unodraw/unottabl \ svx/source/unodraw/XPropertyTable \ svx/source/xml/xmleohlp \ svx/source/xml/xmlexport \ svx/source/xml/xmlgrhlp \ svx/source/xml/xmlxtexp \ svx/source/xml/xmlxtimp \ svx/source/xoutdev/xattr \ svx/source/xoutdev/xattr2 \ svx/source/xoutdev/xattrbmp \ svx/source/xoutdev/xexch \ svx/source/xoutdev/_xoutbmp \ svx/source/xoutdev/_xpoly \ svx/source/xoutdev/xpool \ svx/source/xoutdev/xtabbtmp \ svx/source/xoutdev/xtabcolr \ svx/source/xoutdev/xtabdash \ svx/source/xoutdev/xtabgrdt \ svx/source/xoutdev/xtabhtch \ svx/source/xoutdev/xtable \ svx/source/xoutdev/xtablend \ )) ifneq (,$(filter DBCONNECTIVITY,$(BUILD_TYPE))) $(eval $(call gb_Library_use_packages,svxcore,\ connectivity_inc \ connectivity_generated \ )) $(eval $(call gb_Library_add_exception_objects,svxcore,\ svx/source/fmcomp/dbaexchange \ svx/source/fmcomp/fmgridcl \ svx/source/fmcomp/fmgridif \ svx/source/fmcomp/gridcell \ svx/source/fmcomp/gridcols \ svx/source/fmcomp/gridctrl \ svx/source/fmcomp/trace \ svx/source/fmcomp/xmlexchg \ svx/source/form/dataaccessdescriptor \ svx/source/form/datalistener \ svx/source/form/datanavi \ svx/source/form/dbtoolsclient \ svx/source/form/delayedevent \ svx/source/form/fmcontrolbordermanager \ svx/source/form/fmcontrollayout \ svx/source/form/fmdmod \ svx/source/form/fmdocumentclassification \ svx/source/form/fmdpage \ svx/source/form/fmexch \ svx/source/form/fmexpl \ svx/source/form/fmitems \ svx/source/form/fmmodel \ svx/source/form/fmobj \ svx/source/form/fmpage \ svx/source/form/fmpgeimp \ svx/source/form/fmscriptingenv \ svx/source/form/fmservs \ svx/source/form/fmshell \ svx/source/form/fmshimp \ svx/source/form/fmtextcontroldialogs \ svx/source/form/fmtextcontrolfeature \ svx/source/form/fmtextcontrolshell \ svx/source/form/fmtools \ svx/source/form/fmundo \ svx/source/form/fmview \ svx/source/form/fmvwimp \ svx/source/form/formcontrolfactory \ svx/source/form/formcontroller \ svx/source/form/formcontrolling \ svx/source/form/formdispatchinterceptor \ svx/source/form/formfeaturedispatcher \ svx/source/form/formtoolbars \ svx/source/form/legacyformcontroller \ svx/source/form/navigatortree \ svx/source/form/navigatortreemodel \ svx/source/form/ParseContext \ svx/source/form/sdbdatacolumn \ svx/source/form/sqlparserclient \ svx/source/form/stringlistresource \ svx/source/form/typeconversionclient \ svx/source/form/typemap \ svx/source/form/xfm_addcondition \ )) endif # the following source file can't be compiled with optimization by some compilers (crash or endless loop): # Solaris Sparc with Sun compiler, gcc on MacOSX and Linux PPC # the latter is currently not supported by gbuild and needs a fix here later ifeq ($(OS),$(filter-out SOLARIS MACOSX,$(OS))) $(eval $(call gb_Library_add_exception_objects,svxcore,\ svx/source/customshapes/EnhancedCustomShapeFunctionParser \ )) else $(eval $(call gb_Library_add_cxxobjects,svxcore,\ svx/source/customshapes/EnhancedCustomShapeFunctionParser \ , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \ )) endif $(eval $(call gb_SdiTarget_SdiTarget,svx/sdi/svxslots,svx/sdi/svx)) $(eval $(call gb_SdiTarget_set_include,svx/sdi/svxslots,\ $$(INCLUDE) \ -I$(SRCDIR)/svx/inc \ -I$(SRCDIR)/svx/sdi \ )) # Runtime dependency for unit-tests $(call gb_LinkTarget_get_target,$(call gb_Library_get_linktargetname,svxcore)) :| \ $(call gb_AllLangResTarget_get_target,svx) # vim: set noet sw=4 ts=4: '>feature/fastparser LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdotxtr.cxx
AgeCommit message (Collapse)Author
2024-11-27PVS: V560 A part of conditional expression is always true: bRotate90Xisco Fauli
Since commit fd069bee7e57ad529c3c0974559fd2d84ec3151a Author: Jens-Heiner Rechtien <hr@openoffice.org> Date: Mon Sep 18 16:07:07 2000 +0000 initial import Change-Id: Ie2aeabafb1ff2a73b1c8cb90ee1a4d03a7482ab5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177410 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-19improve loplugin passparamsbyrefNoel Grandin
I think I managed to disable this when I converted it to use the shared plugin infrastructure. So fix that, and then make it much smarter to avoid various false positives. Change-Id: I0a4657cff3b40a00434924bf764d024dbfd7d5b3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176646 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-07-30tdf#161846 remove one layout operations (iii)Noel Grandin
of the 6 we perform per caption Change-Id: I5afbc296a9be4fcb732cfbe28d43a2ad45aa6c9e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171172 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-07-23cid#1555167 COPY_INSTEAD_OF_MOVECaolán McNamara
and cid#1555172 COPY_INSTEAD_OF_MOVE cid#1555184 COPY_INSTEAD_OF_MOVE cid#1555188 COPY_INSTEAD_OF_MOVE cid#1555197 COPY_INSTEAD_OF_MOVE cid#1555209 COPY_INSTEAD_OF_MOVE cid#1555211 COPY_INSTEAD_OF_MOVE cid#1555215 COPY_INSTEAD_OF_MOVE cid#1555216 COPY_INSTEAD_OF_MOVE cid#1555217 COPY_INSTEAD_OF_MOVE cid#1555218 COPY_INSTEAD_OF_MOVE cid#1555222 COPY_INSTEAD_OF_MOVE cid#1556674 COPY_INSTEAD_OF_MOVE cid#1555229 COPY_INSTEAD_OF_MOVE cid#1555233 COPY_INSTEAD_OF_MOVE cid#1555234 COPY_INSTEAD_OF_MOVE cid#1555242 COPY_INSTEAD_OF_MOVE cid#1555250 COPY_INSTEAD_OF_MOVE cid#1555251 COPY_INSTEAD_OF_MOVE cid#1555254 COPY_INSTEAD_OF_MOVE cid#1555304 COPY_INSTEAD_OF_MOVE cid#1555307 COPY_INSTEAD_OF_MOVE cid#1555317 COPY_INSTEAD_OF_MOVE cid#1555329 COPY_INSTEAD_OF_MOVE cid#1555340 COPY_INSTEAD_OF_MOVE cid#1555347 COPY_INSTEAD_OF_MOVE cid#1555352 COPY_INSTEAD_OF_MOVE cid#1555358 COPY_INSTEAD_OF_MOVE cid#1555363 COPY_INSTEAD_OF_MOVE cid#1555365 COPY_INSTEAD_OF_MOVE cid#1555367 COPY_INSTEAD_OF_MOVE cid#1555374 COPY_INSTEAD_OF_MOVE cid#1555380 COPY_INSTEAD_OF_MOVE Change-Id: I343194c10749488a1143e2517ee0638ab19da218 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170888 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-30move IsFuzzing to comphelperCaolán McNamara
and try something a bit more generic Change-Id: I1d8256576cd02f0a589df350ba7b53059dd586a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161250 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-07-10svx: prefix members of GeoStatMiklos Vajna
See tdf#94879 for motivation. Change-Id: Id8d116bfa375f7dd30ca8dcdec0ee02df8105030 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154234 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2023-03-05svx: remove unneeded rectangle initsTomaž Vajngerl
Change-Id: If430eace7e82ff52bb10c83b5f66148e2d9ade13 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148248 Tested-by: Tomaž Vajngerl <quikee@gmail.com> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-03-04svx: change Poly2Rect to return a rectangle, also clean-up the codeTomaž Vajngerl
There is no need to pass the rectangle by reference and to change it inside the function, better to return a new instance. Also clean-up the code of Poly2Rect and rename the function to svx::polygonToRectangle. Change-Id: I25e77c8abd12e2075939f55e06f40343ac23ca97 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148211 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-03-04svx: SdrTextObj maRect - use getter and add funcs. for manipulationTomaž Vajngerl
Change-Id: I0a416fa2ac470650c2ef430dbb91bf8d5a8013cd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148210 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-01-26ofz#54906 TimeoutCaolán McNamara
Change-Id: I87a59723566c561cf84f5b5fb74bd8cf30801d16 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146217 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-09-03crashtesting: fix use-after-freeCaolán McNamara
seen on exporting forum-mso-de-77310.pptx to ppt presumbly since: commit 8611f6e259b807b4f19c8dc0eab86ca648891ce3 Date: Thu May 27 10:27:46 2021 +0200 ref-count SdrObject Change-Id: I883ecb8b39c95550673c51e086dcf3058588f9e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139325 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-08-29ref-count SdrObjectNoel Grandin
Which means we can get rid of the majestic hack of ScCaptionPtr Previously, SdrObject was manually managed, and the ownership passed around in very complicated fashion. Notes: (*) SvxShape has a strong reference to SdrObject, where previously it had a weak reference. It is now strong since otherwise the SdrObject will go away very eagerly. (*) SdrObject still has a weak reference to SvxShape (*) In the existing places that an SdrObject is being deleted, we now just clear the reference (*) instead of SwVirtFlyDrawObj removing itself from the page that contains inside it's destructor, make the call site do the removing from the page. (*) Needed to take the SolarMutex in UndoManagerHelper_Impl::impl_clear because this can be called from UNO (e.g. sfx2_complex JUnit test) and the SdrObjects need the SolarMutex when destructing. (*) handle a tricky situation with SwDrawVirtObj in the SwDrawModel destructor because the existing code wants mpDrawObj in SwAnchoredObject to be sometimes owning, sometimes not, which results in a cycle with the new code. Change-Id: I4d79df1660e386388e5d51030653755bca02a163 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138837 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-24tools: rename Rectangle::Justify() to Rectangle::Normalize()Chris Sherlock
Jusify() normalizes the rectangle so both the Width and Height are positive, without changing the location of the rectangle. It ensures that the x and y coordinates will be moved to the top left of the rectangle. The name is strange, so renaming Justify() to Normalize(). Change-Id: Idbf163e65e52a798e38f785b8961b8042cf0cf2a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137379 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-07-29svx: manipulate SdrObject::m_aOutRect indirectlyTomaž Vajngerl
Change-Id: I0d8a8e4df06595250c07a61181fbd76fe1da5662 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137571 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-07-25loplugin:moveitNoel Grandin
make the plugin more conservative, so we see less false+ (although we also miss some possibilities in the process) Change-Id: I91b1806271e7f802d7459834ab7bcc569047da3a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137342 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-01-07remove E3D_INVENTOR_FLAG and convert SdrObjKind to scoped enumNoel Grandin
We don't need E3D_INVENTOR_FLAG, we can just check if the SdrObjKind is in the right range. Which exposes some dodgy code in DrawViewShell::GetMenuStateSel SfxItemState::DEFAULT == rSet.GetItemState( OBJ_TITLETEXT ) || SfxItemState::DEFAULT == rSet.GetItemState( OBJ_OUTLINETEXT ) || which has been there ever since commit f47a9d9db3d06927380bb79b04bb6d4721a92d2b Date: Mon Sep 18 16:07:07 2000 +0000 initial import just remove that. In SwFEShell::ImpEndCreate() move some logic around to avoid using an out-of-range SdrObjKind value Change-Id: I4620bfe61aca8f7415503debe3c84bfe5f4368a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127763 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-12-05improve ImpConvertContainedTextToSdrPathObjsNoel Grandin
no need to create a temporary container Change-Id: I60eceec1800ff57c0a600c2b049c157d94aef3b7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126370 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-12-04use visitor in getViewIndependentPrimitive2DContainerNoel Grandin
to reduce intermediate temporary data creation Change-Id: I3f13b0e02c1fa374e8d70768ae47c7f6da254462 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126322 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-08-20Revert "ofz#37370 Null-dereference"Caolán McNamara
This reverts the code of commit 9343551f5588ffa4916e2c5d33cbd6fcf56ca99d but keeps the test-case No reason to have this after: 0bb3ccf9148106ce3e5d9e03c23ab5a9602e843c 'Revert "Simplify Rect2Poly"' Change-Id: I37f363e51dc5daed3faf85f27203b2cfe09b82c1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120746 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-08-19ofz#37370 Null-dereferenceCaolán McNamara
since... commit 5b025285b3528910a4360899abb2bbbaadc72c97 Date: Wed Aug 18 07:35:05 2021 +0200 Simplify Rect2Poly where tools::Polygon from tools::Rectangle ctor has special handling for an 'empty' Rectangle Change-Id: Ifb93efeee4c2c1fe1f9fe5422e0e648ad91da77a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120702 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-08-17rename SetRectsDirty->SetBoundAndSnapRectsDirtyNoel Grandin
because there are lots of things being marked dirty, and I like to be sure I know what the code is doing Change-Id: Ifd0380c5560adc4a054495551885fe33af4f3e5a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120460 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-06-19svx: prefix member variables for SdrTextObj and othersTomaž Vajngerl
All classes in svdotext.hxx Change-Id: Ib15deca2a625d8352a2572d9fc3e15188b4e718a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117478 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2021-04-12svx: prefix members of SdrObjectMiklos Vajna
So that nOrdNum doesn't cause -Wshadow in SwDrawVirtObj::AddToDrawingPage(). Change-Id: Ie7b1401f5c3cb07bfa653c4268dbdce7ba7abea5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113966 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
2021-01-02introduce Degree100 strong_int typeNoel
Change-Id: I78f837a1340be0ca5c49097f543a481b7b43a632 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108367 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-12-22rename members of GeoStat classNoel
to make it obvious what they are used for. Change-Id: I8ed825ea0131faa969fa3fd69cd64d195ef61b6b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108145 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-10-26switching long to a 64-bit type on 64-bit windowsNoel
(*) create a rewriting plugin to do most of the work, heavily based on the fakebool plugin (*) but there are still a number of "long"s in the codebase that will need to be done by hand (*) the plugin needs lots of handholding, due to needing to add #include and update macros Change-Id: I8184d7000ca482c0469514bb73178c3a1123b1e9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104203 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-03-02tdf#42949 Fix IWYU warnings in svx/source/s*/*cxxGabor Kelemen
Except for already done svx/source/sdr/ Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: I1c4b34cf42aa9faa2f7de36fe1602059460c6c1f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89656 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2019-09-06use unique_ptr in DoConvertToPolyObjNoel Grandin
Change-Id: Ia7f9ff4d8f7b9834b6634e5c126bd65014dacf19 Reviewed-on: https://gerrit.libreoffice.org/78684 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-09-06use unique_ptr in ImpConvertContainedTextToSdrPathObjsNoel Grandin
Change-Id: I7995bb3e8732ec20b941bd029e5a77aa78d09592 Reviewed-on: https://gerrit.libreoffice.org/78673 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-09-06return unique_ptr from ImpConvertMakeObjNoel Grandin
Change-Id: I24b53dceb79bd43aed92c8130dc33b637410d231 Reviewed-on: https://gerrit.libreoffice.org/78672 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-09-04reduce Primitive2DContainer copyingNoel Grandin
Change-Id: I418b17034c1949ddda1de7025821ca51f4cdb018 Reviewed-on: https://gerrit.libreoffice.org/78579 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-06-11tdf#42949 Fix IWYU warnings in include/svx/[sS][v-Z]*Gabor Kelemen
Found with bin/find-unneeded-includes Only removal proposals are dealt with here. Change-Id: Ie2a4122d67d2d40732e6fd00b584f33edd802c5b Reviewed-on: https://gerrit.libreoffice.org/73476 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2019-05-10tdf#62699 Drop pass-through header file include/svx/svdattr.hxxGabor Kelemen
Change-Id: I04289589196ac69b31f75989d9252c79d03c890f Reviewed-on: https://gerrit.libreoffice.org/71633 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2018-12-08Translate German variable namesJohnny_M
Change-Id: I141c003bead8eda9bdfa8a7fd286f76390cf77ac Reviewed-on: https://gerrit.libreoffice.org/62843 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
2018-08-03Move angle normalization code from various places to toolsMike Kaganski
Also rename svx angle normalization functions in include/svx/svdtrans.hxx, that deal with 100ths of degree, to avoid confusion: NormAngle180 -> NormAngle18000; NormAngle360 -> NormAngle36000. Some places were fixed that previously returned inclusive ranges (i.e., both 0 and 360), see changes in these files: chart2/source/view/main/PlottingPositionHelper.cxx chart2/source/view/main/PolarLabelPositionHelper.cxx chart2/source/view/main/ShapeFactory.cxx filter/source/graphicfilter/idxf/dxf2mtf.cxx sw/source/core/graphic/grfatr.cxx (the latter now matches the comment in the function). Change-Id: I9f274bbb4168360d60dceff02aeba6332c519a59 Reviewed-on: https://gerrit.libreoffice.org/58556 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2018-05-08tdf#116977 secured ::Clone methodsArmin Le Grand
Renamed SdrPage::Clone -> SdrPage::CloneSdrPage Renamed SdrObject::Clone -> SdrObject::CloneSdrObject Giving SdrModel is no longer an option, but a must (as reference). This makes future changes more safe by force usage to think about it. Also equals the constructors which already require a target SdrModel. Done the same for ::CloneSdrPage. Change-Id: I06f0129e15140bd8693db27a445037d7e2f7f652 Reviewed-on: https://gerrit.libreoffice.org/53933 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>