summaryrefslogtreecommitdiff
path: root/sfx2
AgeCommit message (Expand)Author
2015-02-18boost->stdCaolán McNamara
2015-02-18Better way to avoid ambiguities among ResId ctorsStephan Bergmann
2015-02-17boost->stdCaolán McNamara
2015-02-16boost::foo_ptr->std::foo_ptrCaolán McNamara
2015-02-16add GetSelectEntryData to ListBox and ComboBoxNoel Grandin
2015-02-14coverity#1267643 Logically dead codeCaolán McNamara
2015-02-14related tdf#89004 move to std:set instead of std::vectorUrsache Vladimir
2015-02-11Fold INetRFC822Message into INetMIMEMessageStephan Bergmann
2015-02-08Typo: we has->we haveJulien Nabet
2015-02-07coverity#440978 Dereference before null checkCaolán McNamara
2015-02-07loplugin:deletedspecialStephan Bergmann
2015-02-06fdo#87675: Disable 'edit' when next style is same as current one.Heena Gupta
2015-02-06fdo#87675-"Edit" Button for next style in edit paragraph styleHeena Gupta
2015-02-06fdo#75757: Remove inheritance from std::vectorMatthew Pottage
2015-02-06shared_ptr<T>(new T(args)) -> make_shared<T>(args)Caolán McNamara
2015-02-05Updated all precompiled headers.Ashod Nakashian
2015-02-05callcatcher: update unused codeCaolán McNamara
2015-02-04rename MenuConfiguration::Attributes->MenuAttributesCaolán McNamara
2015-02-03valgrind: fix leakCaolán McNamara
2015-02-03callcatcher: shave off some moreCaolán McNamara
2015-02-02seeing as it assumed it was non-null since day 0, so can weCaolán McNamara
2015-02-02callcatcher: remove some unused methodsCaolán McNamara
2015-02-01coverity#440978 Dereference before null checkCaolán McNamara
2015-01-29callcatcher: large newly detected unused methods post de-virtualizationCaolán McNamara
2015-01-28Some more loplugin:cstylecast clean-upStephan Bergmann
2015-01-28tdf#60739 code factorisationMichaël Lefèvre
2015-01-28remove unused typedefsNoel Grandin
2015-01-26coverity#1266518 Use after freeCaolán McNamara
2015-01-26followup code removal after changing virtual methods to non-virtualNoel Grandin
2015-01-26new loplugin: change virtual methods to non-virtualNoel Grandin
2015-01-25coverity#1266505 Useless callCaolán McNamara
2015-01-25coverity#1266510 Useless callCaolán McNamara
2015-01-24Typo: syncro->synchroJulien Nabet
2015-01-21add has-focus .ui supportCaolán McNamara
2015-01-21slot:5500 -> .uno:NewDoc(FromTemplate)Caolán McNamara
2015-01-21Resolves: fdo#88562 convert filename widget from ro-edit to selectable-labelCaolán McNamara
2015-01-21Related: fdo#88562 Nothing actually sets ID_FILETP_READONLY or ID_FILETP_TITLECaolán McNamara
2015-01-21Resolves: fdo#88594 crash on F1 with local helpCaolán McNamara
2015-01-20Some more loplugin:cstylecast: sfx2Stephan Bergmann
2015-01-19Remove unused STR_SAVECOPYDOCStephan Bergmann
2015-01-19fdo#86147: Do not reset r/o mode for SID_SAVETOStephan Bergmann
2015-01-19Re fdo#80538: Remove read-only infobar after "Save As..."Stephan Bergmann
2015-01-19fdo#88241 Floating sidebar second call to same item should dismiss itTrent MacAlpine
2015-01-19fdo#87217 Inconsistent floating sidebar close behaviorTrent MacAlpine
2015-01-16Provide thumbnail size via constructor for RecentDocsViewItemTomaž Vajngerl
2015-01-14do TODO: replace ImplCallEventListeners() by CallEventListeners() in vclCaolán McNamara
2015-01-14infobar: add buttons one by one with addButtonTomaž Vajngerl
2015-01-14infobar: reuse gathering the dark/light colors from settingsTomaž Vajngerl
2015-01-14infobar: combine anon. namespace, light/dark color to constantTomaž Vajngerl
2015-01-14Scale the infobar controls correctly with DPI scale factorTomaž Vajngerl
lt with here. Change-Id: Ide75232858599c275e023c2300201090acd22307 Reviewed-on: https://gerrit.libreoffice.org/63237 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com> 2018-04-18tdf#42949 Remove unnecessary localization headers of editengGabor Kelemen Found by searching for the header names and the localization function: git grep -l -e \<editeng/eerdll.hxx\> -e \<editeng/editrids.hrc\> | xargs grep -c EditResId | grep :0$ | grep -v /pch Change-Id: Ic542ceee09352cb52dcdc9780d4cb1890e02f383 Reviewed-on: https://gerrit.libreoffice.org/53062 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> 2018-01-15More loplugin:cstylecast: svxStephan Bergmann Change-Id: If370ad12d2885ea9a6348736a3bcab618bc2e6ec 2018-01-12More loplugin:cstylecast: svxStephan Bergmann auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I100e6c14cbf1d780f0e5ebca6b0c9e71ce1caaf7 2017-10-05clang-tidy modernize-use-equals-default in svxJochen Nitschke SfxPoolItem has a copy constructor and its copy assignment operator is deleted. Derived classes have a implicit defined copy constructor too, if all members are copy constructible. This patch removes default-able copy constructors and destructors on such items. Also removing copy constructors of pool item members SvxClipboardFormatItem_Impl and SvxColumnItem. Change-Id: Ic0f39c992d1fd7b667cb56134fd7c953681a3131 Reviewed-on: https://gerrit.libreoffice.org/43143 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> 2017-09-14improve redundantcast lopluginNoel Grandin to find c-style casts where the expression is a templated method Change-Id: Ifbd1e2cdc72d906fc95a7ec0f9408c3f6d2a836b Reviewed-on: https://gerrit.libreoffice.org/42275 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> 2017-09-14convert SvxCellOrientation to scoped enumNoel Grandin Change-Id: Ia4c75c6394b47805f24a7daca593e0074a8ddf0b Reviewed-on: https://gerrit.libreoffice.org/42268 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> 2017-07-31make IntlWrapper arg to GetPresentation non-implicit and non-optionalCaolán McNamara which requires explicitly adding null in 1) SdrItemBrowserControl::SetAttributes(const SfxItemSet* pSet, const SfxItemSet* p2ndSet) where SdrItemBrowserControl is only used by SdrItemBrowser and the only use of that is within DBG_UTIL in SdrPaintView 2) SwCursorShell::GetContentAtPos( const Point& rPt, within a #ifdef DBG_UTIL block in 3) SvxSearchDialog::BuildAttrText_Impl( OUString& rStr, bool bSrchFlag ) const where the other branch uses SvxResId 4) SfxPoolItem::dumpAsXml(xmlTextWriterPtr pWriter) const 5) XFillStyleItem::dumpAsXml(xmlTextWriterPtr pWriter) const looks very much like all uses (outside the dumpers) are intended to be in the ui locale results in that INetContentTypes::GetPresentation always called with UI Locale Change-Id: I5a110c107838b4db3c355476426d6532f2b6ce52 Reviewed-on: https://gerrit.libreoffice.org/40538 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> 2017-07-21migrate to boost::gettextCaolán McNamara * all .ui files go from <interface> to <interface domain="MODULE"> e.g. vcl * all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string") * ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching MODULE .mo files * UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui goes from l10n target to normal one, so the res/lang.zips of UI files go away * translation via Translation::get(hrc-define-key, imbued-std::locale) * python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there to keep finding the .hrc file uniform) so magic numbers can go away there * java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation mechanism * en-US res files go away, their strings are now the .hrc keys in the source code * remaining .res files are replaced by .mo files * in .res/.ui-lang-zip files, the old scheme missing translations of strings results in inserting the english original so something can be found, now the standard fallback of using the english original from the source key is used, so partial translations shrink dramatically in size * extract .hrc strings with hrcex which backs onto xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap * extract .ui strings with uiex which backs onto xgettext --add-comments --no-wrap * qtz for gettext translations is generated at runtime as ascii-ified crc32 of content + "|" + msgid * [API CHANGE] remove deprecated binary .res resouce loader related uno apis com::sun::star::resource::OfficeResourceLoader com::sun::star::resource::XResourceBundleLoader com::sun::star::resource::XResourceBundle when translating strings via uno apis com.sun.star.resource.StringResourceWithLocation can continue to be used Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a 2017-05-19make string translation loading more uniformCaolán McNamara change various ResId classes that use conversion operator to OUString to functions that return a OUString drop various defines drop unnecessary toString calls Change-Id: Ibeccdf2b91a46a2ed5b4b74e6024e301a023bc92 Reviewed-on: https://gerrit.libreoffice.org/37817 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> 2017-04-27Translate German comments (rest of svx/ except svx/source/form/)Johnny_M Change-Id: Ib0fccc41c71902861f450c6184f57be2c5da0811 Reviewed-on: https://gerrit.libreoffice.org/36804 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> 2017-04-06Improved loplugin:redundantcast, static_cast on arithmetic types: svxStephan Bergmann Change-Id: I4705917cd6e583b1209671ca4a9122581f7b4417 2017-03-18remove EE_RESSTR preprocessor abuseBjoern Michaelsen Change-Id: I83b35c4e2d4275ac76a36bec03807be69a605c58 Reviewed-on: https://gerrit.libreoffice.org/35370 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> 2017-03-03remove unused CreateDefault methodsNoel Grandin Change-Id: Ifbdd7d41f0938e9a03693f88416792ff8087f8c2 Reviewed-on: https://gerrit.libreoffice.org/34850 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> 2017-03-03convert SfxEnumItem to type-safe template classNoel Grandin and drop the SvxChartTextOrientItem class, unused. Change-Id: I99100837d1beb953450f57b2cda47d165df1620c Reviewed-on: https://gerrit.libreoffice.org/34747 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> 2016-11-18svx: assert SfxPoolItem::operator==Michael Stahl Change-Id: I7a5898f0dffb4d25b6e1bb916b3c6b36374f9912 2016-10-27loplugin:expandablemethods in svxNoel Grandin Change-Id: I0d193ddf07cc0ddc89b6ce2df6eb71d44e49b631 Reviewed-on: https://gerrit.libreoffice.org/30295 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> 2016-09-21convert SfxItemPresentation to scoped enumNoel Grandin Change-Id: Ibf605706a9f804ab509ac4f92f5f88fcf3daebc1 Reviewed-on: https://gerrit.libreoffice.org/29131 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> 2016-08-19Resolves: coverity#705366 Mixing enum typesCaolán McNamara and coverity#705367 Mixing enum types coverity#705371 Mixing enum types coverity#982694 Mixing enum types coverity#1027717 Mixing enum types coverity#1371228 Mixing enum types coverity#1371242 Mixing enum types coverity#1371280 Mixing enum types coverity#1371310 Mixing enum types MapUnit and SfxMapUnit share the same values and are freely cast from one to the other. Now that commit d30a4298bdb5ba53cd1fe659f2b742f218a2e527 Date: Thu Aug 11 15:02:19 2016 +0200 loplugin:unusedenumconstants in package..svtools removed the SfxMapUnit entries that were directly unused, they don't match anymore and casting from one to the other is dangerous. Why there was two of these anyway escapes me, get rid of SfxMapUnit and just use MapUnit universally Change-Id: I4db5dcd04b59be2f85b62b728f96c90afe00c57e Reviewed-on: https://gerrit.libreoffice.org/28234 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> 2016-02-09Remove excess newlinesChris Sherlock A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> 2015-11-115th step to remove tools/rtti.hxxOliver Specht 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>