summaryrefslogtreecommitdiffstats
path: root/include/svl
Commit message (Collapse)AuthorAgeFilesLines
* sfx items: Get rid of the TypeId check, nobody uses that any more.Jan Holesovsky2015-10-191-5/+15
| | | | | | And introduce the appropriate assert() in the templatized version instead. Change-Id: I3e5b01e5e5ee49049fa6f35e3d05ef65a1890dc1
* sfx items: Kill the SFX_ITEMSET_GET macro.Jan Holesovsky2015-10-191-4/+0
| | | | Change-Id: I110a4f25646eb3f0fa93673c84dc67cf64a3b7a0
* sfx items: Kill the unreadable & misplaced SFX_ITEMSET_ARG too.Jan Holesovsky2015-10-161-2/+11
| | | | Change-Id: I1e0f96dce2b9cf9da32f4f577cf76e1d8824d37a
* sfx items: Introduce a templatized version of SfxItemSet::GetItem().Jan Holesovsky2015-10-161-1/+7
| | | | Change-Id: I821622fc1f8415f2ddd14744f33b46fa76f00039
* Replace "SAL_FINAL" with "final" in LIBO_INTERNAL_ONLY codeStephan Bergmann2015-10-121-1/+1
| | | | Change-Id: Ifa5ba21308e32df44571fa2941370f2f11179580
* Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann2015-10-1234-268/+268
| | | | Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
* Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann2015-10-1214-28/+28
| | | | Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
* loplugin:unusedmethodsNoel Grandin2015-10-061-5/+0
| | | | Change-Id: I150baadc442e57ee604563bc52965daa9d2e41af
* Fix typosAndrea Gelmini2015-09-301-2/+2
| | | | | | | Change-Id: Id66432ef80fc2963fd2cbc6fad5d8e135e8975b0 Reviewed-on: https://gerrit.libreoffice.org/18956 Reviewed-by: Oliver Specht <oliver.specht@cib.de> Tested-by: Oliver Specht <oliver.specht@cib.de>
* Renamed wrongly prefixed boolean variablesStefan Heinemann2015-09-291-4/+4
| | | | | | | | | Fixed tdf#94269 Change-Id: I63109cc4e095bad680d7637a065080ea368860ae Reviewed-on: https://gerrit.libreoffice.org/18851 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* loplugin:removeunusedmethods, remove unused stuffNoel Grandin2015-09-291-13/+0
| | | | Change-Id: I35456b2a3ad2a84a1d045f09cdfb29e4c19b8350
* convert Link<> to typedNoel Grandin2015-09-101-1/+1
| | | | Change-Id: Iaeaa33b0b066723d561df0c58f3faedead259d8f
* tdf#91383: sw: prevent style preview from actually creating stylesMichael Stahl2015-09-071-0/+5
| | | | | | | | | | | | | | | | | | | | The dialog/sidebar should not actually create styles that don't exist yet, because it messes up Undo and the (unused) styles are then unnecessarily exported to documents. Due to Writer's ... unusual SwDocStyleSheet class this is a bit tricky. Add a new function GetItemSetForPreview() and use it from the style preview code. The implementation does not use FillPhysical so will temporarily create and then delete any non-existing styles. Skip page and numbering styles for now since they don't have a useful preview. (regression from ca95307638207db5d662059aa61594151a13e927) Change-Id: Id6ee30ea467fc24c991547a4c23a9ce14fdd86c7
* rename _Disconnect to DisconnectCaolán McNamara2015-08-311-1/+1
| | | | Change-Id: Ia7b5dce6dbdfd3cfd066003762f449b8bf1ff41a
* Disconnect and Connect don't do anything nowCaolán McNamara2015-08-311-2/+0
| | | | Change-Id: If18f530f613e7cb9d0c8f0989752f31178c97dcd
* aDisconnectLink is never called, so remove itNoel Grandin2015-08-311-1/+0
| | | | Change-Id: I9eba6d3f5335060f697ad53e7e2360ef2142609f
* aConnectLink is never set, so remove itNoel Grandin2015-08-311-1/+0
| | | | Change-Id: Idd4ecc2f9f566b2d1fa0127dae12fefe1e4479e8
* make Link<> typedNoel Grandin2015-08-171-2/+2
| | | | Change-Id: If16adfa3310df94c79d1a4fe9a9bb4f4f56365f0
* fix windows build, partial revert of my commitNoel Grandin2015-08-141-0/+4
| | | | | | | adbc556c91ea4afaf3e952aa0a8329e004add63e "make Link<> instances typed" Change-Id: Ia8dd0d755e1c1ccf15938fc9f29bc83759d724a5
* remove default value from SfxPoolItem::PutValueNoel Grandin2015-08-1420-24/+23
| | | | | | | | | | | more useful to make it explicit. Specifically, otherwise my defaultvalue clang plugin would want to remove lots of places that contains #define constants which, while technically the same as the default value, convey semantic information which is quite useful. Change-Id: I918ad5b0e73ba279fa1b1489b62d900339ff71eb
* make Link<> instances typedNoel Grandin2015-08-141-31/+13
| | | | | | | | | and remove some unused code Change-Id: I934824401b5c528b07ad76f753f78440c4492885 Reviewed-on: https://gerrit.libreoffice.org/17703 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* move date/time guess work to SvNumberFormatter::GuessDateTimeFormat()Eike Rathke2015-08-121-0/+9
| | | | Change-Id: I26f7c47f5b3cf4a3c4274832448d9c8076981af0
* include: inline some use-once typedefsNoel Grandin2015-08-042-9/+4
| | | | Change-Id: I064e95c72e5f67178cf2875f457adac241cee529
* loplugin:unusedmethods svlNoel Grandin2015-07-2010-34/+0
| | | | | | | Change-Id: If86cc43fda4d138cf7f678d81fa2b35f68f3c03b Reviewed-on: https://gerrit.libreoffice.org/17162 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* svl: try to prevent MSVC from generating copy assignmentMichael Stahl2015-07-171-0/+5
| | | | Change-Id: I6d03a45b8c86adb96f29ec0f0bc1dd9d2e93bcdf
* svl: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl2015-07-171-3/+5
| | | | Change-Id: Ie1174d57b696f49c05010ece1b721185b0904fd6
* Resolves: tdf#92457 handle trailing text subformat if others omittedEike Rathke2015-07-101-0/+6
| | | | Change-Id: I597a5019540cef4700355df4d170c103e973797e
* Fix typosAndrea Gelmini2015-07-081-1/+1
| | | | | | | Change-Id: I70b03c152f63e48341dc5629a99b0eeab7b497c0 Reviewed-on: https://gerrit.libreoffice.org/16834 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
* loplugin:unusedmethods svlNoel Grandin2015-07-0624-267/+3
| | | | | | | | Change-Id: Ic136cce6abef44291b7236a6d709f0eee391f311 Reviewed-on: https://gerrit.libreoffice.org/16784 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* Fix typosAndrea Gelmini2015-07-033-5/+5
| | | | | | | Change-Id: Ie2bbe020fc6e3a4a4f913208c245f395849bb9ee Reviewed-on: https://gerrit.libreoffice.org/16708 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* SfxSimpleHint only needs a sal_uInt32 for the hintNoel Grandin2015-06-291-3/+3
| | | | | | | Change-Id: I7f7f99ba93d4f06575228e62f96703fd2c54c469 Reviewed-on: https://gerrit.libreoffice.org/16271 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* remove SFX_NOTIFY macroNoel Grandin2015-06-241-6/+3
| | | | | | | it has not served any purpose since we switched to using normal C++ RTTI for the SfxHint objects Change-Id: Ic81353bcb7863ce892eb75296248ca14d8fd6c86
* missing includeStephan Bergmann2015-06-111-0/+2
| | | | Change-Id: I7ac5607f911d3ffc469fe01fcf708899f3e23e57
* minor clean upStephan Bergmann2015-06-111-36/+9
| | | | Change-Id: Ib4fb12e187eb4bad7da04425328d1f5cdf851654
* Remove unnecessary Bool2AnyStephan Bergmann2015-06-101-5/+0
| | | | | | | | (It feels better to use explicitly bool-typed css::uno::makeAny<bool>(x) rather than implicitly typed css::uno::makeAny(x) or css::uno::Any(x), in case x is not already of type bool.) Change-Id: I282b3764bb207aeae9f13cc981e68e8ef2b8ab93
* svl: document SfxItemPropertyMapEntryMichael Stahl2015-06-101-3/+7
| | | | Change-Id: I7caa540d069addb610310830c26ecd647afc6538
* loplugin:unnecessaryvirtualsNoel Grandin2015-06-091-19/+18
| | | | | | | | Improve the plugin a little. Create a python script to process the output. Run it again. Change-Id: I05c21d8a21c8f4243af739c412fda0a521f9b5f0
* tdf#90804 remove SfxFieldUnit enumAndras Timar2015-06-081-6/+0
| | | | | | | | | | | b78d881520f2eb658180e2c90ffee3d30a80f0ae removed unused values from SfxFieldUnit enum. This broke the mapping between SfxFieldUnit and FieldUnit. In fact SfxFieldUnit was redundant. Change-Id: I13c7e7d708c6eeab0de192f4cd110b0a23989a31 Reviewed-on: https://gerrit.libreoffice.org/16150 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
* svl: prefix remaining members of SvxSearchItemMiklos Vajna2015-06-041-57/+57
| | | | Change-Id: Id538ee368de6cd63f08618e6284bca97e20bf7a3
* SvxSearchItem: add m_nStartPoint{X,Y}Miklos Vajna2015-05-282-0/+11
| | | | | | | | | | | | | | The idea is that if you have your cursor at the begining of a Writer document, and you scroll down a lot, then search, then it's annoying that search jumps back to the start of the document for the first hit. Add an optional way to provide what is the starting point of such a search, so we can have "when nothing is selected, then search from the top left corner of the visible area". No UI yet to enable this, but available via the UNO API. Change-Id: Ibcf3a5f2eeba1372b1dfe8474081e6591a6e0134
* bin/rename-sw-abbreviations.shlibreoffice-5-0-branch-pointChristian Lohmaier2015-05-201-2/+2
| | | | | | | renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I9a62759138126c1537cc5c985ba05cf54d6132d9
* tdf#90258 Toggle Thousand Separator with Engineering NotationLaurent Balland-Poirier2015-05-062-0/+9
| | | | | | | | | | | | | If scientific format is selected, "Thousands separator" option is almost useless. It could be replaced by "Engineering Notation". Rebase of https://gerrit.libreoffice.org/15152 Update with more robust tests. Change-Id: Ie2b88b1f149fce26c32a43ace623cf1f45f38e6e Reviewed-on: https://gerrit.libreoffice.org/15606 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* Use typed MaybeFile LinkStephan Bergmann2015-04-301-3/+3
| | | | Change-Id: Ic9eebca9d8fe3e9173b1873bdc7800e5161f9999
* Gradually typed LinkStephan Bergmann2015-04-303-29/+29
| | | | | | | | | | | | | | | | | Turn the Link class into a template abstracting over the link's argument and return types, but provide default template arguments that keep the generic, unsafe "void* in, sal_IntPtr out" behvior. That way, individual uses of the Link class can be updated over time. All the related macros are duplicated with ..._TYPED counterparts, that additionally take the RetType (except for LINK_TYPED, which manages to infer the relevant types from the supplied Member). (It would have been attractive to change the "untyped" LinkStubs from taking a void* to a properly typed ArgType parameter, too, but that would cause -fsanitize=function to flag uses of "untyped" Link::Call.) Change-Id: I3b0140378bad99abbf240140ebb4a46a05d2d2f8
* expand and remove DECL_PTRHINT macroNoel Grandin2015-04-283-20/+16
| | | | | | | | | since there are only 2 uses of it Change-Id: I49543168d5d9aeaae66d99663707657d67002fdc Reviewed-on: https://gerrit.libreoffice.org/15531 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* SfxItemSet::PutDirect return value is unusedStephan Bergmann2015-04-281-1/+1
| | | | Change-Id: Icf3e09318677655897f4a5308f066829982b9520
* operator == return type wants to be boolStephan Bergmann2015-04-281-1/+1
| | | | Change-Id: I7ef0a09b718ca701ed2b6f4a50593f8ef1421dd3
* convert SVX_SEARCHIN_ flags to scoped enumNoel Grandin2015-04-221-6/+9
| | | | Change-Id: Iac7216c66afef6cbd355f7047655baaadc0f74db
* convert SFX_STYLESHEET_ constants to scoped enumNoel Grandin2015-04-221-21/+19
| | | | Change-Id: Iceba35cb058afa55374cf3cac70ed2207b7bc8b4
* Various #include <sal/log.hxx> fixupsStephan Bergmann2015-04-221-0/+3
| | | | | | | | | | | | | | rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx> (and don't make use of it themselves), but many other files happen to depend on it. Cleaned up some, but something like grep -FwL sal/log.hxx $(git grep -Elw \ 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF') -- \*.cxx) shows lots more files that potentially need fixing before the include can be removed from rtl/string.hxx and rtl/ustring.hxx. Change-Id: Ibf033363e83d37851776f392dc0b077381cd8b90