summaryrefslogtreecommitdiffstats
path: root/svtools
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant 'inline' keywordStephan Bergmann2017-03-0310-44/+44
| | | | | | | | | | ...from function definitions occurring within class definitions. Done with a rewriting Clang plugin (to be pushed later). Change-Id: I9c6f2818a57ccdb361548895a7743107cbacdff8 Reviewed-on: https://gerrit.libreoffice.org/34874 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* Fix typosAndrea Gelmini2017-03-035-9/+9
| | | | | | | Change-Id: Ib25dadb25d8c2df1361de194f74cf3ddd459650d Reviewed-on: https://gerrit.libreoffice.org/34783 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* don't need this STL hack anymoreNoel Grandin2017-03-021-1/+1
| | | | Change-Id: Id0883060acf2ca73af5cce56e1cf9021c2fb121a
* no need to use smart pointers for DataFlavorExVectorJochen Nitschke2017-03-023-50/+40
| | | | | | | | | | | DataFlavorExVector is a std::vector<..> typedef. remove odd void pointer in BrowseBox. return const references to keep getter const qualified. Change-Id: Iafd529a46b7511941c1dffc86d2066fdc4f07e28 Reviewed-on: https://gerrit.libreoffice.org/34767 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* new loplugin unoanyNoel Grandin2017-02-282-2/+2
| | | | | | | Change-Id: I5d6c4a67cb2a09e7cd5bd620c6b262d188701b89 Reviewed-on: https://gerrit.libreoffice.org/34714 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* tdf#105299 Dialogs must not be resizableheiko tietze2017-02-272-0/+2
| | | | | | | | | Patch doesnt solve the issue but makes the wizard dialog HIG compliant Change-Id: Ib45b49671bc247ad2bce072e4cc4260ed551ef7c Reviewed-on: https://gerrit.libreoffice.org/34652 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
* loplugin:unusedmethodsNoel Grandin2017-02-233-64/+0
| | | | | | | Change-Id: I5a72ee666e71b4c5c8f43d327aa7e8eb62d1e51b Reviewed-on: https://gerrit.libreoffice.org/34537 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:unusedmethodsNoel Grandin2017-02-212-20/+0
| | | | | | | Change-Id: I52a9f16f3ed543a3c83ca111df70e3f7ae1ef33c Reviewed-on: https://gerrit.libreoffice.org/34508 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:subtlezeroinit: svtoolsStephan Bergmann2017-02-215-7/+7
| | | | Change-Id: I10383c62060022838b1e63383b2fce9de9bbfd0e
* remove unused enumerators from WindowTypeNoel Grandin2017-02-211-2/+1
| | | | | | | Change-Id: I1e100302dd60ebbcdf187cf30befe0c767c6d6b8 Reviewed-on: https://gerrit.libreoffice.org/34474 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Resolves: tdf#97731 allow status bar to adapt to its own preferred sizeCaolán McNamara2017-02-202-10/+14
| | | | Change-Id: I4390f61a21eef21371ce7399bf746e60234b8db8
* tdf#100726 Improved readability of OUString concatenationsFakabbir Amin2017-02-164-56/+46
| | | | | | | | | Cleanup in filter, framework and svtools directory. Change-Id: Icf4f04cff1207e58ce55ea3dc8c21b0635c3b6ec Reviewed-on: https://gerrit.libreoffice.org/34298 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* remove unused AccessibilityChanged from SfxHintId enumNoel Grandin2017-02-151-3/+1
| | | | Change-Id: Ic2d413002466e92d38a7a918b3f7e04d3c9eebf2
* convert SvxIconChoiceCtrlTextMode to scoped enumNoel Grandin2017-02-153-19/+6
| | | | | | and drop unused DontKnow enumerator Change-Id: Ida06ae702e45d489765f970bbbdab6d762293c6c
* convert SvxIconChoiceCtrlPositionMode to scoped enumNoel Grandin2017-02-153-9/+5
| | | | | | and drop unused AutoAdjust enumerator Change-Id: Ie900f89241947cb93a16f0223071846fecfef09c
* vcl pdf import: change test documents to test bitmap fallbackMiklos Vajna2017-02-141-0/+0
| | | | | | | I.e. the test documents now reflect what is created by LO if you insert a PDF image into a document manually on master. Change-Id: Ibacce15220a21b159b5e987678c381a98a29fd1a
* remove unused Border from RulerIndentStyle enumNoel Grandin2017-02-141-18/+9
| | | | Change-Id: If8d5acdf48278adeb4974c46c8e777e8792ba743
* convert SvParserState to scoped enumNoel Grandin2017-02-143-44/+40
| | | | | | and drop unused WAITFORDATA enumerator Change-Id: I658802d88a19dcc2d378456375810454e7426447
* convert svt::table::TableArea to scoped enumNoel Grandin2017-02-144-17/+12
| | | | | | and drop unused TableAreaDataArea enumerator Change-Id: I00da558ab899dccbeaa9786c65f7a2831f323b25
* convert to EnumerationResult to scoped enumNoel Grandin2017-02-144-16/+12
| | | | | | and drop unused RUNNING constant Change-Id: I498b8b47e172336775b38c953f867f2adc57603e
* Convert WindowType to scoped enumNoel Grandin2017-02-145-13/+13
| | | | | | | Change-Id: I85cfe02f28729e13f2c0dd3d91cd89e6f3e3b6a9 Reviewed-on: https://gerrit.libreoffice.org/34219 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* vcl pdf import: use pdfium instead of draw_pdf_importMiklos Vajna2017-02-132-5/+5
| | | | | | | | | | | | | | Replace creating a full Draw component with direct pdfium library calls. This also means that the result is now a bitmap, not a metafile for now. Also decouple HAVE_FEATURE_PDFIMPORT and HAVE_FEATURE_PDFIUM, the first is the "import PDF into Draw" feature, the second is the "insert PDF as image" feature. Change-Id: I72c25642ec84cc831df362e02b1520c6e6d9adcf Reviewed-on: https://gerrit.libreoffice.org/34217 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* convert ConfigNameFormat to scoped enumNoel Grandin2017-02-101-1/+1
| | | | | | | | and drop unused constants CONFIG_NAME_PLAINTEXT_NAME CONFIG_NAME_FULL_PATH Change-Id: Ibf7e88da0ae54516cb863b8efa995201f2a95268
* convert EItem to scoped enumNoel Grandin2017-02-107-22/+14
| | | | | | | | | | | and drop read-only enumerators: enum EItem E_APEARCFG enum EItem E_FLTRCFG enum EItem E_FONTSUBSTCONFIG enum EItem E_LANGUAGEOPTIONS enum EItem E_SEARCHOPT Change-Id: Ie3baaecec3d1c30404b4fb0d948e25d4bb2f3f93
* tdf#105672 framework managed menu buttonMaxim Monastirsky2017-02-092-0/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds a menu button that can use a popup menu controller to manage its menu. It supports 2 cases: - Use any controller that is registered in Controller.xcu, by specifing its .uno command. - Manage an arbitrary popup menu with MenuBarManager (assuming its items have proper .uno commands in their MenuItemData::aCommandStr). It means that a menu that was defined in a .ui file, can be used inside that .ui file without any additional code. This commit uses the new control to fix some currently non-working buttons in Calc's Notebookbar (but there are more that can be fixed the same way). It's not clear how long we will continue to use buttons (instead of toolboxes) for the Notebookbar, but hopefully this control will be useful in other places too. Change-Id: Ie00cde7cd7e39948948960ca2eff76e9db837109 Reviewed-on: https://gerrit.libreoffice.org/34103 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
* convert BmpConversion to scoped enumNoel Grandin2017-02-091-4/+4
| | | | | | | | | | | | and drop unused 4BIT_TRANS and 1BIT_MATRIX enumerators Also fix a bug in x11::convertBitmapDepth where we were incorrectly passing BmpConversion enumeratirs to ReduceColors Change-Id: I903c6866750e46ee752e10a17c05fcaaf6b11242 Reviewed-on: https://gerrit.libreoffice.org/34062 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Reapply "create ErrorHandlerFlags scoped enum for error handling flags""Noel Grandin2017-02-091-24/+25
| | | | | | | | | This effectively reverts commit 32cae6a2eaa41568888df9c8fc5605debd8d704a. Change-Id: I15bb0a5c4acaeee6d47dd93a71601d9687d701bc Reviewed-on: https://gerrit.libreoffice.org/34028 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* This is only used within vclKhaled Hosny2017-02-081-1/+0
| | | | Change-Id: I64d7e39506495e9fcc78bb670b897338a01a9ae1
* loplugin:unreffunStephan Bergmann2017-02-081-24/+0
| | | | Change-Id: I7cd699632b05ac8de6c5e3a6dbc66b8de7d88054
* replace localresource of strings and keys with StringArrayCaolán McNamara2017-02-082-181/+94
| | | | Change-Id: I402f5485af0c1e60677b8291c879bc7ca14633d3
* drop unused error stringsCaolán McNamara2017-02-081-22/+6
| | | | | | | | | includes ERRCODE_SFXMSG_STYLEREPLACE which has the knock on effect that the flags argument can be removed from a bunch of methods Change-Id: I72b58bc2a19376bb4609e61aa44e71f734efb333
* move the extra data of ERRCODE_SFXMSG_STYLEREPLACE out of the .srcCaolán McNamara2017-02-081-5/+3
| | | | Change-Id: I5c39d785d1f2a78e1fcfcd763deac60f047a5e4b
* tdf#105814 enable localization of "host" and "port" in sample addressesAndras Timar2017-02-082-1/+9
| | | | | | | Change-Id: I2e58f4757bd86393410cdc6fd77205a8ebb9b917 Reviewed-on: https://gerrit.libreoffice.org/34021 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
* Blind fix for apparently buggy GCC 4.8Stephan Bergmann2017-02-081-46/+46
| | | | | | cf. <http://ci.libreoffice.org/job/lo_tb_master_linux_dbg/10952/console> Change-Id: If947e338be0ab17f41f74f8e70e6281f46a7f57c
* Clean up curious by-4/by-2 loop indicesStephan Bergmann2017-02-081-12/+11
| | | | | | | | ...that had been like that ever since ff09f8d6ef2c613037f039dbcafcad6b76243a48, "MWS_SRX644: migrate branch mws_srx644 -> HEAD" at least, for no apparent reason. Change-Id: I6f8bd44179b232b7b39e493d443a443a60522a5c
* Use OUStringLiteralStephan Bergmann2017-02-081-51/+48
| | | | Change-Id: I905fe6553f0ad7f0d2dd1ac1bc771b2d42f35fe2
* Revert "create ErrorHandlerFlags scoped enum for error handling flags"Michael Stahl2017-02-071-33/+32
| | | | | | This reverts commit 05e78bde26d8b8b257ed22a0ce20c5b386a629d1. Depends on the other commit that needs reverting
* create ErrorHandlerFlags scoped enum for error handling flagsNoel Grandin2017-02-071-32/+33
| | | | | | | Change-Id: I30c80979c87bad7bc98f36a158c31c88d80d1caf Reviewed-on: https://gerrit.libreoffice.org/33991 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* convert IcnViewFieldType to scoped enumNoel Grandin2017-02-072-11/+10
| | | | | | | | | and drop unused IcnViewFieldTypeDontknow constant Change-Id: I583c05d8b312b0e4fb291fa4ce8d0989318f79df Reviewed-on: https://gerrit.libreoffice.org/33966 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Add missing #includesStephan Bergmann2017-02-0612-0/+13
| | | | | | | | | ...and remove some unncessary using directives/declarations, in preparation of removing now-unnecessary #includes from cppumaker-generated files, post e57ca02849c3d87142ff5ff9099a212e72b8139c "Remove dynamic exception specifications". Change-Id: Iaf1f268871e2ee1d1c76cf90f03557527ebc9067
* TyposJulien Nabet2017-02-031-1/+1
| | | | | | | Change-Id: Ic54695e86b4b462419fa7d5ded7b1ddb19ee8ed5 Reviewed-on: https://gerrit.libreoffice.org/33904 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
* Fix some typosSamuel Mehrbrodt2017-02-024-10/+10
| | | | | | | Change-Id: Ide3786aad5589e2d430a4e3890d51117b145e51d Reviewed-on: https://gerrit.libreoffice.org/33842 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* convert method names in tools::SvRef to be more like our other..Noel Grandin2017-02-022-3/+3
| | | | | | | | | | | reference classes, uno::Reference and rtl::Reference. Specifically rename Is()->is() and Clear()->clear(). Change-Id: Icb7e05e2d09cb9977121508b837ba0961dabb4ae Reviewed-on: https://gerrit.libreoffice.org/33576 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* unnecessary use of OUStringBuffer in throwing exceptionsNoel Grandin2017-02-021-5/+2
| | | | | | | Change-Id: Iec1473264426f19c31e72260dfce9494389e474f Reviewed-on: https://gerrit.libreoffice.org/33788 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* convert BmpCombine to scoped enum and drop unusedNoel Grandin2017-02-021-1/+1
| | | | | | | Change-Id: Ic67474683a25a25e5753777f4bbbeded6ceba414 Reviewed-on: https://gerrit.libreoffice.org/33793 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:useuniqueptr extend to check local varsNoel Grandin2017-02-011-3/+2
| | | | | | | | | | | just the simple and obvious case for now, of a local var being allocated and deleted inside a single local block, and the delete happening at the end of the block Change-Id: I3a7a094da543debdcd2374737c2ecff91d644625 Reviewed-on: https://gerrit.libreoffice.org/33749 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* teach lolugin:stringconstant about calling constructorsNoel Grandin2017-01-3112-16/+16
| | | | | | | | | | | so we can remove unnecessary calls to the OUString(literal) constructor when calling constructors like this: Foo(OUString("xxx"), 1) Change-Id: I1de60ef561437c86b27dc9cb095a5deb2e103b36 Reviewed-on: https://gerrit.libreoffice.org/33698 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* tdf#105448 add Sibe [nco-PG] to language listEike Rathke2017-01-301-0/+1
| | | | Change-Id: If7dfeaa0dd4cf4d164147b8b866f7c493a5af669
* tdf#105448 add Manchu [mnc-CN] to language list (CTL)Eike Rathke2017-01-301-0/+1
| | | | Change-Id: Ia19da31a3df0a7d196997eedef07d8a28aa2e72c
* loplugin:stringconstant check for unnecessary OUString constructor..Noel Grandin2017-01-282-3/+3
| | | | | | | | | ..calls when creating exceptions Change-Id: I3bc58a5aa4dc6f0508ecb88b3a843b96b8c7ebfe Reviewed-on: https://gerrit.libreoffice.org/33617 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>