summaryrefslogtreecommitdiff
path: root/idl/inc/slot.hxx
AgeCommit message (Collapse)AuthorFilesLines
2024-03-16tdf#143148 update all headers in idl/inc to use #pragma oncedmc_dev1-5/+1
Change-Id: I65a5d21bed1753f3dbb5ad1b87fb76ea16066413 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164928 Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2023-02-24tdf#114441 Convert sal_uLong to a better typeAdoche Onaji1-3/+3
In slot.cxx, GetAttrCount() return a size_t type and same type can be assigned directly to nSCount. In hash.hxx, sal_uLong was declared in SvStringHashEntry, the only default parameter it the class takes is aName (type OString) while nValue was directly initialized as 0 in the constructor. The interface to change nValue is through a method setValue of same type.Also In idl/inc/hash.hxx SetValue() and GetValue functionsb are used in idl/source/prj/database.cxx with sal_uInt32 parameter and return type and thus, sal_uInt32 is suitable here.The instances of sal_uLong in source/objects/object.cxx are replaced with sal_uInt32. In object.cxx an iterator was declared using std::find to find nId in rSuperList (originally declared as std::vector<sal_uLong>), therefore if nId is sal_uInt32, the parent vector, rSuperList should be sal_uInt32. This change is now applicable to the void method InsertSlot's parameter rSuperList in object.hxx and also variables n, nId, iter, rSuperList in InsertSlot definition block in the file object.cxx. Variable aSuperList in obect.cxx is also changed to sal_uInt32 because its an argument for rSuperList parameter. nC1 and nC2 in idl/source/prj/svidl.cxx are chnaged from sal_uLong to size_t as this is suitable here. Change-Id: Ie075875229a676ea32dbf9e3049881a479773703 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147220 Reviewed-by: Hossein <hossein@libreoffice.org> Tested-by: Hossein <hossein@libreoffice.org>
2022-01-27Recheck modules [i-l]* with IWYUGabor Kelemen1-1/+2
See tdf#42949 for motivation Change-Id: I758bb27e93779e3df21c463714e49354748f446f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128715 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2021-04-27use more string_view in tools/streamNoel Grandin1-4/+4
Change-Id: I2a957cd72d71fea717734488cdb3670e0bcdd6f4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114657 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-09-10Remove the useless Export sdi propertyMaxim Monastirsky1-3/+0
Maybe I'm missing something, but its usage - "if ( !GetExport() && !GetHidden() )" seems like expects it to be true and false at the same time. Anyway, there's no diff in workdir/SdiTarget after this change, so should be safe to remove. Change-Id: I6db508ff40c05dc828ffa91bb41a37c17b697503 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102345 Tested-by: Jenkins Tested-by: Maxim Monastirsky <momonasmon@gmail.com> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2018-09-18loplugin:useuniqueptr in SvMetaSlotNoel Grandin1-1/+1
no need to store ref-counted object like OString on the heap Change-Id: Ifd031ae68dfd615e99f54414cb2dc32aac60daa8 Reviewed-on: https://gerrit.libreoffice.org/60623 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-06-11tdf#96099 Remove some trivial std::vector typedefsArkadiy Illarionov1-1/+1
Change-Id: I0e60ec7a3edae42b25ff0917828d0a893ed39a38 Reviewed-on: https://gerrit.libreoffice.org/55245 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-30loplugin:constmethod in idl,helpcompilerNoel Grandin1-2/+2
Change-Id: I9b328fc0a3ebdd15a646ee6dab800ffbadb1aaef Reviewed-on: https://gerrit.libreoffice.org/44050 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-23loplugin:includeform: idlStephan Bergmann1-2/+2
Change-Id: I9631129331ef4b858ed3dd7b0e617002e6d461fb
2017-05-01svidl: Adapt to SlotType removalMaxim Monastirsky1-2/+0
No diff in workdir/SdiTarget. BEWARE: If you're going to revert this for whatever reason, you should also revert the previous commit that removed the SlotType property from sdi files! Change-Id: I78cc391a6b47f4672157926eba1b55e786f48f2d
2017-05-01svidl: Remove nested method supportMaxim Monastirsky1-3/+0
No diff in workdir/SdiTarget. Change-Id: I53e974c8ccafbbc3675f67b87a0e1b8ff19b6790
2017-03-28remove PseudoSlot support from idl compilerNoel Grandin1-10/+2
Since we have removed the last usage with commit 12c6caa84a61f23df996a0396432fa4b8d5c4785 "Kill remaining PseudoSlots usage" And remove corresponding support from the list-dispatch-commands script. Also remove the now unused SFX_NEW_SLOT_ENUM macro Change-Id: Id07c431de4404acf61a8bdd3507e390e5249879a Reviewed-on: https://gerrit.libreoffice.org/35754 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-08loplugin:expandablemethods in hwpfilter..linguisticNoel Grandin1-3/+0
Change-Id: I62ae20ab4a47b3b7e2b0d503cedcad3319cc9c85 Reviewed-on: https://gerrit.libreoffice.org/30683 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-19loplugin:expandablemethodds in hwpfilter..linguisticNoel Grandin1-4/+0
Change-Id: If20fd4a6cf8a8e005804dbb7caf41cce73d587a5 Reviewed-on: https://gerrit.libreoffice.org/30016 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-08remove IMAGEROTATION and IMAGEREFLECTION SfxSlotMode enums...Caolán McNamara1-4/+0
unused since... commit 7affe26a1291eef8c77e890228061f13e987bff1 Author: Maxim Monastirsky <momonasmon@gmail.com> Date: Mon Feb 22 18:47:15 2016 +0200 Kill sfx2 menu support Change-Id: I902957b8379be7c314f5357750aeba5a2fcc0a00 Reviewed-on: https://gerrit.libreoffice.org/28749 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-06-22move the attribute parsing code to SvParserNoel Grandin1-1/+1
and simplify considerably Change-Id: I2a4af15e77904b62abc81dad78a2990e2eab05f0
2016-02-11use exceptions for error handling in .SDI parsingNoel Grandin1-1/+1
to simplify the normal control flow Change-Id: If325ec0507a51d8e2d3340fc5b628bb75a078a44
2016-02-08move isMethod/isVariable down from SvMetaAttribute to SvMetaSlotNoel Grandin1-3/+3
Change-Id: Ic13c61d6bd75d12e9dc5c75eaa75573dcb3b3b0b
2016-02-08simplify getMangleName()Noel Grandin1-1/+1
Change-Id: I811acbbb88d8d9639001d7b9af6b0d4a66a80656
2016-02-08SvString is a just thin wrapper around OStringNoel Grandin1-1/+1
eliminate it Change-Id: Icb91d25cc7bffb3060b9392f71d37e5a95844aa3
2016-02-08format IDL compiler headers a littleNoel Grandin1-44/+31
Change-Id: I54cb7a664908f8817958d4482a5adfdc6d2a0f3d
2016-02-08aMethod is more accurately an SvMetaSlotNoel Grandin1-1/+1
Change-Id: Iaa57a3f24f545c49a5af0fd0b634994ea3d7551e
2016-02-08Export attribute only applies to SvMetaSlot, so move it downNoel Grandin1-1/+4
Change-Id: I686fd2148d4cf03acbef892223c3ed2b1966e73a
2016-02-08ReadonlyDoc only applies to Slot'sNoel Grandin1-0/+2
so move it down from SvMetaAttribute to SvMetaSlot Change-Id: I3a433d9a1cee0a5a9f52b57c6cd16b16198dade1
2016-02-07remove some dead code, found using LCOVNoel Grandin1-3/+0
Change-Id: Ibdca0a70722290bbb560726c88e9821c3ae0af14 Reviewed-on: https://gerrit.libreoffice.org/22151 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-07.SDI compiler: expand out some typedefsNoel Grandin1-5/+2
Change-Id: I898bc1d95b1d3394cae74776c0e7dcbaafa934e4 Reviewed-on: https://gerrit.libreoffice.org/22146 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-05remove unused Hidden/Description/UnoName from .SDI filesNoel Grandin1-3/+1
Change-Id: I9660690b29da411dcdf148007242ffa944957f78
2016-02-05remove unused int/char/map/ItemName/AllConfig from .SDI filesNoel Grandin1-6/+0
Change-Id: Iaf2633d7591b705bd0e84a376e06a01c2ec22b9b
2016-02-05remove unused SlotId/Volatile from .SDI filesNoel Grandin1-5/+0
Change-Id: I29f039c2fec8433fa062c603b64afffa60e7b0d0
2016-02-05remove unused Default from .SDI filesNoel Grandin1-12/+10
Change-Id: I253174197e2c10765f9b1e8cff46178854fe3495
2016-02-04remove unused GET/SET/STATUSBARCONFIG in .SDI filesNoel Grandin1-5/+0
Change-Id: I74404d72e9146950a9881d2a59323c2bf08c9742 Reviewed-on: https://gerrit.libreoffice.org/22100 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-04remove unused RecordManual from SDI filesNoel Grandin1-11/+3
Change-Id: Ia6af0d00b68f5694c9fc9cc453fe36fb923f0a2d Reviewed-on: https://gerrit.libreoffice.org/22099 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-04remove unused HasDialog from SDI filesNoel Grandin1-2/+0
Change-Id: I26f2cef48fcc7a6c4a6b93668b836879254f3eb0 Reviewed-on: https://gerrit.libreoffice.org/22098 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-04remove unused Synchron from SDI filesNoel Grandin1-10/+0
Change-Id: I0b8c63a97bfa4a49ac87869e164ab22d2aa99de3 Reviewed-on: https://gerrit.libreoffice.org/22097 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-04remove unused Cachable keyword from SDI filesNoel Grandin1-10/+0
Change-Id: I60c423b799f34f79f58bc39cf7ea616ec4f5d16a Reviewed-on: https://gerrit.libreoffice.org/22096 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-03remove unused HasCoreId from SDI filesNoel Grandin1-2/+0
Change-Id: I4aca4b8a79ce92d64ce004ccdb7e9a0f408dc768
2015-11-115th step to remove tools/rtti.hxxOliver Specht1-1/+0
tools/rtti.hxx removed completed the interface of some Sdr.* Items and removed pseudo items Change-Id: I0cdcd01494be35b97a27d5985aa908affa96048a Reviewed-on: https://gerrit.libreoffice.org/19837 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann1-1/+1
Change-Id: Ibe4adf92bb8eaf8b093bae87136d3a6a59e856f4
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann1-7/+7
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-07-30loplugin:unusedmethodsNoel Grandin1-25/+2
Change-Id: Ib4d77ee01e7362f5951f81fceeca3c489872d971 Reviewed-on: https://gerrit.libreoffice.org/17378 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-16Remove more unused idl partsStephan Bergmann1-3/+0
Change-Id: Id78de487b36a1c939dc3a4a5b38ab0b77999478c
2014-10-16Strip svidl down to what is still usedStephan Bergmann1-9/+2
...the generated .ilb, .lst, and .sid outputs requested by SdiTarget were apparently unused. Change-Id: I1abb2abc7945070451fce4a98a11d955515e3f63
2014-09-29loplugin: cstylecastNoel Grandin1-1/+1
Change-Id: I31bbeb5f068754d6dc77c22d759058089b03c9b1
2014-09-22remove unused fields pName and pMethodName in SfxSlot classNoel Grandin1-3/+1
Change-Id: Icca5a0dee296fae1abeb78ea8ffa2f9e934bb111
2014-05-08idl: sal_Bool->boolNoel Grandin1-57/+57
Change-Id: I8b15c97b1fcc6acaf567e8b1d2d37cbc99687a9d
2014-04-19fixincludeguards.sh: idl and idlcThomas Arnhold1-3/+3
Change-Id: I665e901eb6f65308b8f130da1c6da95bc3255490
2014-04-07Replace SV_DECL/IMPL_REF macros with SvRef templateStephan Bergmann1-1/+1
Change-Id: I0ef2e67f6d61e0ce118c0f5e926b8194ef9d8058
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann1-12/+12
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák1-16/+16
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2012-08-08STL'ify SV_DECL_IMPL_PERSIST_LISTNoel Grandin1-1/+2
Converts it to a template based on std::vector Change-Id: Id7f89f494164c61a3a573cff443ac0e0488e93f1