summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant 'inline' keywordStephan Bergmann2017-03-03194-884/+880
| | | | | | | | | | ...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>
* Typo: requirments -> requirementsSamuel Mehrbrodt2017-03-031-1/+1
| | | | | | | Change-Id: I02c5846eb51071e1a958c3d65e150fb7cbc7d58a Reviewed-on: https://gerrit.libreoffice.org/34873 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* [API CHANGE] Remove SAL_CONSTEXPR againStephan Bergmann2017-03-031-10/+0
| | | | | | | | | | | | ...now that LIBO_INTERNAL_ONLY always has constexpr support. It had been added for LO 5.0 (effectively always expanding to nothing for !LIBO_INTERNAL_ONLY), not wrapped in '#if LIBO_INTERNAL_ONLY' presumably because it was assumed to be used freely in URE include files, but turned out to be only used in LIBO_INTERNAL_ONLY code. It is unlikely that any 3rd party code made use of it. Change-Id: I68970c5a2e2d7ef68ac5b79efc8dc1de54c43198
* drop SvxNumType and rename SvxExtNumType->SvxNumTypeNoel Grandin2017-03-034-10/+9
| | | | | | | | | | | | | | Both of them are abstractions over the css::style::NumberingType constants. SvxNumType serves no useful purpose, since it's just a typedef to sal_Int16. At least SvxExtNumType wraps up the css::style::NumberingType constants in a nice enum. Change-Id: I7b3f97cd42b0aa23aff7a4db4930da86149d4f4e Reviewed-on: https://gerrit.libreoffice.org/34816 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* remove unused CreateDefault methodsNoel Grandin2017-03-0341-72/+0
| | | | | | | 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>
* Fix typosAndrea Gelmini2017-03-032-2/+2
| | | | | | | Change-Id: I95fc63af11c336cde9f5bef908e1389c2fb56f02 Reviewed-on: https://gerrit.libreoffice.org/34823 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Fix typosAndrea Gelmini2017-03-0324-31/+31
| | | | | | | Change-Id: I5e3c9683741ddc66283008c20794be5c2b2bc53f Reviewed-on: https://gerrit.libreoffice.org/34804 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Remove uses of SAL_CONSTEXPR in LIBO_INTERNAL_ONLYStephan Bergmann2017-03-036-48/+35
| | | | | | | Change-Id: I9a7dc7c83302b3361f056fcf6636bbba7672f15f Reviewed-on: https://gerrit.libreoffice.org/34840 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* use SvxExtNumType in SvxNumberTypeNoel Grandin2017-03-033-22/+26
| | | | | | | | | and follow the rabbit trail, fixing various other types in the process Change-Id: I8fc7df3b585df21578ffb28fdd7e5e427b3bfd9d Reviewed-on: https://gerrit.libreoffice.org/34814 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* convert SfxEnumItem to type-safe template classNoel Grandin2017-03-0332-159/+139
| | | | | | | | | 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>
* Remove HAVE_CXX11_CONSTEXPR, always true nowStephan Bergmann2017-03-023-16/+14
| | | | | | | | | | | | ...after 84b36c704d73362d4d86dc9e9c0efa0625958347 "Drop support for MSVC 2013". Make this a fatal configuration error for now. The check should be removed completely after LO 5.4 branch-off. Change-Id: I990fd8fcb4ec1327282df4efe21640c938d3cf06 Reviewed-on: https://gerrit.libreoffice.org/34821 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
* tdf#60874 Set custom HID for Protect Document windowGabor Kelemen2017-03-021-0/+7
| | | | | | | | | | | | | | | | | The window has its own help page but the SfxPasswordDialog has a default help page as well. We need to use custom help IDs here. The Password entry already has a custom HID however it is used on the default help page of SfxPasswordDialog. We need to set a custom help ID for the Confirm entry and use it in the scalc/01/06060200.xhp file like the one belonging to the Password entry. Change-Id: I9344c85cf362a1829202664315f8c8be0a265b59 Reviewed-on: https://gerrit.libreoffice.org/34501 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
* COMPRESS_OWN define is not used standalone anywhereCaolán McNamara2017-03-021-2/+1
| | | | Change-Id: Iaca54d62a48711a7763cac98c6f303b952b2da29
* don't need this STL hack anymoreNoel Grandin2017-03-021-12/+1
| | | | Change-Id: Id0883060acf2ca73af5cce56e1cf9021c2fb121a
* no need to use smart pointers for DataFlavorExVectorJochen Nitschke2017-03-022-9/+7
| | | | | | | | | | | 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>
* ofz: timeout loading emf with move clip recordCaolán McNamara2017-03-012-0/+6
| | | | | | | | Change-Id: Id5d60f0037873598e1447b063e66e9c29840587c Reviewed-on: https://gerrit.libreoffice.org/34740 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Blind fix for 64-bit Windows buildsNoel Grandin2017-03-011-2/+2
| | | | Change-Id: Ica9e99fc363d8c7bfbc40dceb66ad350e5a02ce5
* typesafe wrappers for css::i18nutil::TransliterationModulesNoel Grandin2017-03-0118-65/+358
| | | | | | | | | | | | | | | | | and related css::util::SearchOptions2 The TransliterationModules enum has it's constants spread over multiple UNO enum/constant-collections - TransliterationModules and TransliterationModulesExtra, which means that most code simply uses sal_Int32. Wrap them up into a better bundle so that only the lowest layer needs to deal directly with the UNO constants. Change-Id: I1edeab79fcc7817a4a97c933ef84ab7015bb849b Reviewed-on: https://gerrit.libreoffice.org/34582 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
* loplugin:sallogareasStephan Bergmann2017-02-281-0/+1
| | | | Change-Id: I9af09bc52775501c8dbf0e883f4ec3b53c397de4
* Run macro:// via LOKitKatarina Behrens2017-02-282-0/+15
| | | | | | | Change-Id: I54d3c734d86d4b44e1dfe1ad7728e2f51cd26d53 Reviewed-on: https://gerrit.libreoffice.org/34538 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
* uitest: add scheduler method that runs until a signal is receivedMarkus Mohrhard2017-02-271-1/+5
| | | | | | | | | The other method only runs 1000 events. Change-Id: I43076988e9e25b35e3fdfd8dff19270d9e066d9a Reviewed-on: https://gerrit.libreoffice.org/34690 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* tdf#105829 Infobar design, tdf#102785 Font issueheiko tietze2017-02-273-32/+19
| | | | | | | | | | | Only one constructor to append an infobar Colors defined at one place in infobar.cxx based on InfoBarType Icons as an additional attribute of the notification Change-Id: I4dc85c2b4ef0b7eafc139290b3b4ee21636da6ec Reviewed-on: https://gerrit.libreoffice.org/34426 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com>
* tdf#105093 vcl PDF export: add embedded video testcaseMiklos Vajna2017-02-271-0/+33
| | | | | | | | | | Fails with commit 4ad249af88d15f2c8a09f0721a59d82718fcc201 (tdf#105093 sd PDF export: handle embedded videos, 2017-01-04) reverted. Change-Id: I413ec9a5da3c0783541dcd28fb9a62dd896f955b Reviewed-on: https://gerrit.libreoffice.org/34681 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* Clean up use of integer typesStephan Bergmann2017-02-271-1/+1
| | | | Change-Id: Idf47d1511aff3cdb7c139671173a97e405b6078e
* uitest: add a specific method for executing dialogsMarkus Mohrhard2017-02-271-0/+2
| | | | | | | | | | | This allows us to split the parts that need to run async and the ones that can run synchronous. This will reduce the number of signals that we need. Change-Id: I9c9f3df3422cc66d28d66e0638e212b39c743e33 Reviewed-on: https://gerrit.libreoffice.org/34669 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
* tdf#105461 vcl: add text highlight textcaseMiklos Vajna2017-02-271-0/+17
| | | | | | | | | | Fails with commit ee32c7d8083ae1449d6b379034be92995c142da9 (tdf#105461 PDF export: handle text fill color, 2017-02-01) reverted. Change-Id: I3628a16d0810e3be3fb352340d06cdba472dcd3f Reviewed-on: https://gerrit.libreoffice.org/34621 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* Restore the GetPreferredContextMenuShortcuts methodMaxim Monastirsky2017-02-261-0/+1
| | | | | | | | | Because of a typo in GetContextMenuShortcuts it was actually unused and removed later in 7419057e3ec4365748fa6456e207f40fd9e09c62 ("loplugin:unusedmethods in chart2..svx"). Change-Id: Iab3d8e39ef19e7c6dd7df63db5d2dcfc57007a5f
* Unwind trivial DbGridControl_Base typedefStephan Bergmann2017-02-261-2/+1
| | | | Change-Id: Ie58d1e119af6d98b44f67d65ec2586928c1d3360
* Clean up use of integer typesStephan Bergmann2017-02-261-1/+1
| | | | Change-Id: Ief9b377b4352796e19797c397e677e9f8397cc53
* Added Test for EditEngine - Copy/Paste using Legacy FormatVarun Dhall2017-02-241-5/+5
| | | | | | | Change-Id: I3153010f4e327abd2ef48bdefa50ade1c0ba2f81 Reviewed-on: https://gerrit.libreoffice.org/34552 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* vcl: add initial CppunitTest_vcl_pdfexportMiklos Vajna2017-02-242-0/+301
| | | | | | | | | | | | | Invoke the PDF export filter and then use the PDF tokenizer from xmlsecurity to assert the contents of created PDF file. The testcase fails with commit 6db0f1feb1d9931d2726dd11a889c58815710ce0 (tdf#106059 PDF export: create a reference XObject for PDF images, 2017-02-22) reverted. Change-Id: I90526fef41d9560ae447f586df766bc50a491c43 Reviewed-on: https://gerrit.libreoffice.org/34609 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* vector::data seems more natural than &vector::frontCaolán McNamara2017-02-242-2/+2
| | | | Change-Id: I0ce48075ad186cf1f9bd3e13fa76269fa9819af1
* Notebookbar: Better resize supportSzymon Kłos2017-02-241-0/+1
| | | | | | | Change-Id: I0bb5a5600be60a68e53132f2c3c42f79c958b2b3 Reviewed-on: https://gerrit.libreoffice.org/34491 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
* tdf#106059 PDF export: create a reference XObject for JPG images with PDF dataMiklos Vajna2017-02-231-1/+1
| | | | | | | | | | | | | | In case the bitmap is large enough, the bitmap for the PDF image is a JPG one, not a PNG one. Handle this case as well. Also stop compressing the PDF data: Adobe Acrobat gets confused when the second bugdoc is compressed and it doesn't provide much as most of a PDF is already compressed anyway. The rest is just refactoring to decouple the reference XObject code from PNG, to be able to use it for JPG as well. Change-Id: I5314a39b0f6d8c6493ecb36a0c588c895f5a70ee
* loplugin:unusedmethodsNoel Grandin2017-02-232-19/+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>
* Revert "Fix typos"jan iversen2017-02-222-3/+3
| | | | | | | | | | | This reverts commit ffd7f8fcfc2b551509e9cb31c0920e0f64292ea7. Caused some problems, need to be broken down. Change-Id: Iee816a266c32e7cebe623d36300c13d079e77c52 Reviewed-on: https://gerrit.libreoffice.org/34534 Reviewed-by: jan iversen <jani@libreoffice.org> Tested-by: jan iversen <jani@libreoffice.org>
* Fix typosAndrea Gelmini2017-02-222-3/+3
| | | | | | | Change-Id: I61764094dd6f8e13f29ca554373d30d1d5def447 Reviewed-on: https://gerrit.libreoffice.org/34476 Reviewed-by: jan iversen <jani@libreoffice.org> Tested-by: jan iversen <jani@libreoffice.org>
* loplugin:unusedfieldsNoel Grandin2017-02-221-2/+0
| | | | | | | Change-Id: I8a114bcda99f123d230d61b0d0595bfe657cc3c0 Reviewed-on: https://gerrit.libreoffice.org/34513 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Remove unused function. Following tdf#105657Laurent Balland-Poirier2017-02-211-3/+0
| | | | | | | Change-Id: I7890d76b35bcf5eb9a965fb90ae1a106913548e8 Reviewed-on: https://gerrit.libreoffice.org/34506 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
* make every menu id uniqueCaolán McNamara2017-02-211-0/+2
| | | | | | | instead of every id within each menu so submenu ids are not shared by an id in the parent Change-Id: Ic94794b5c461307b79969472e9fb24d11c96ca53
* improve loading submenus from .uiCaolán McNamara2017-02-211-0/+1
| | | | Change-Id: Ida5382bffa3cee55ffa64fd50d3733a178afa639
* Move INetMIME::getHexDigit(int to its only place of useStephan Bergmann2017-02-211-9/+0
| | | | Change-Id: I8d02a51a0da5aad4cd95e15fe6bb329b43e32067
* tdf#106052 Treat SubFormat for "Precision as shown"Laurent Balland-Poirier2017-02-212-1/+5
| | | | | | | | | Get precision from the correct subformat Change-Id: I458e5b3d1fb515864f19499ac9ac529e1d68a267 Reviewed-on: https://gerrit.libreoffice.org/34505 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
* fix KDE buildNoel Grandin2017-02-211-0/+1
| | | | | | | after commit 0649622956431e0a1955cb80d1175025401ab5e5 "loplugin:unusedmethods" Change-Id: Ia9ef3f8c1e64397a350656a3addc1b2a67f0b118
* Translate German variable namesJohnny_M2017-02-211-2/+2
| | | | | | | | | | | This is to follow up on the commit 9bbc168c29d3f48839d40173f5467228ce9a7268 by: - Changing "Comma" to "DecimalMark" - Changing "VorComma" (literally "before comma") to "BeforeDecimalMark" Change-Id: I3eff7024df56c701ac721a1e74645c8be764bff4 Reviewed-on: https://gerrit.libreoffice.org/34429 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
* loplugin:unusedmethodsNoel Grandin2017-02-2117-102/+6
| | | | | | | 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>
* Kill bitrot Emscripten experimentKhaled Hosny2017-02-213-14/+1
| | | | | | | Change-Id: I1cd5331157e684afb01e6555168ce646194c6ff2 Reviewed-on: https://gerrit.libreoffice.org/34493 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
* Remove wrong and broken encoding from INetMIMEMessage::SetHeaderField_ImplStephan Bergmann2017-02-211-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | INetMIMEEncodedWordOutputSink had been intended to encode (non-ASCII) content of a "free-form text" header field as per RFC 2047. It used a heuristic trying to detect already encoded words (=?...?...?...?=) in the input, to pass them through unmodified. (Arguably, it could just as well have encoded them, assuming they were meant to be genuine input.) However, that heuristic had a bug ever since 8ab086b6cc054501bfbf7ef6fa509c393691e860 "initial import", going from STATE_FIRST_EQUALS to STATE_FIRST_EQUALS instead of STATE_FIRST_QUESTION, rendering the heuristical detection logic effectively unused. Instead of fixing the bug, 6e12729f715f142140d220dc7d3b28a4a0657016 "remove unused enumerator from EncodedWordState" and b8d8fb3f0cf4a961bbff54523eaca1a4f8179c7a "convert EncodedWordState to scoped enum" crippled the code further by removing any reputedly unused cases. But the only remaining use of INetMIMEEncodedWordOutputSink is in INetMIMEMessage::SetHeaderField_Impl, encoding MIME-Version, Content-Transfer- Encoding, Content-Type, and Content-Disposition header fields. And none of those headers have any "free-form text" content that should be encoded as per RFC 2047. The first two have fixed ASCII-only content ("1.0" and "7bit", "8bit", etc., respectively), while the latter two have structured content that may contain parameters of arbitrary content, which must be encoded according to RFC 2231 (but currently isn't). And the only place where such arbitrary-content parameters are generated is in the two calls to SetContentTransferEncoding in forms/source/component/DatabaseForm.cxx. (The calls to SetContentType there and in tools/source/inet/ itself are all known to have unproblematic ASCII-only content.) So mark those two places with TODOs about the missing encoding (which had been missing since forever) and, in INetMIMEMessage::SetHeaderField_Impl, liberally convert the content to 8-bit via OUString::toUtf8 for now. Change-Id: I4b2a219b396953b219ca66441a5227157a35951f
* loplugin:subtlezeroinit: comphelperStephan Bergmann2017-02-211-1/+1
| | | | Change-Id: I6b97583d9bdc0d0f8c059d0fbc9e3f41f822bf3b
* remove unused enumerators from WindowTypeNoel Grandin2017-02-211-9/+0
| | | | | | | 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>