summaryrefslogtreecommitdiff
path: root/sw/source/ui/misc
AgeCommit message (Collapse)Author
2015-04-09vclwidgets: wrap all vcl::Window subclasses allocated on stack in VclPtrNoel Grandin
Change-Id: Ia8b0d84bbf69f9d8f85505d019acdded14e25133 Conflicts: sw/qa/tiledrendering/tiledrendering.cxx
2015-04-09vcl: VclPtr conversion in swNoel Grandin
Change-Id: Ie084a4b14f8371ff81fe6a95e73660e38cd376f2
2015-04-07tdf#90441: sw: *another* crash on shutdown after changing SvxAutoCorrCfgMichael Stahl
The AutoText dialog instantly applies changes to SvxAutoCorrCfg and never calls Commit(). Change-Id: I8e5f8b42fff117bd4c4a07a3a31b9943ada43f34
2015-04-01convert BOX_LINE and BOXINFO_LINE to enum classNoel Grandin
since their usage is intertwined. Also introduce new o3tl utilities enumrange and enumarray to make working with scoped enums a little simpler. Change-Id: I2e1cc65dd7c638e59f17d96dfae504747cad6533
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann
Change-Id: I83594c8b6cb1f317b55fe048111edd23f622e1ed
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
Change-Id: I2ec58d0bfe13fae4fc2141f9b017b5a72e0ba2c2
2015-03-23loplugin:constantfunction: swNoel Grandin
Change-Id: Ife8ccbe4625d87d1e3314c75604cb3d947011680
2015-03-11convert MarkType to enum classNoel Grandin
Change-Id: I73c23d327104b377834013a0a6bd2de18de2900b
2015-03-11convert SetAttrMode to enum classNoel Grandin
Change-Id: If7dd0c49480756afb7d4eaaba597ecc305c35f64
2015-02-16add GetSelectEntryData to ListBox and ComboBoxNoel Grandin
to reduce code clutter like pLbSelect->GetEntryData(pLbSelect->GetSelectEntryPos()) since this is a fairly frequent operation. Change-Id: I41daf30fdeda2442ad1ac829e12f553233bae184 Reviewed-on: https://gerrit.libreoffice.org/14472 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-28fdo#86984: UI Line numbering works only for EN_USMuthu Subramanian
Change-Id: I0fadb6f5f96cccd4056a164a6b0f3b2fdd68a40b Reviewed-on: https://gerrit.libreoffice.org/14168 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2015-01-22Some more loplugin:cstylecast: swStephan Bergmann
note the two TODOs about suspicious casts Change-Id: I324fa05b30a5c8aa1d9e9a6d488a1e295226e788
2015-01-19fdo#39440 sw: reduce scope of local variablesMichael Weghorn
This addresses some cppcheck warnings. Change-Id: I0de4e6278fb564c299722a9e23eb67d0999c4e31 Reviewed-on: https://gerrit.libreoffice.org/13966 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-23coverity#1260296 Unchecked dynamic_castCaolán McNamara
Change-Id: Ib19609c3f4c83ae8baef83bcdadee79e69743df5
2014-12-19changes sidebar: Manage Changes (Redlining) panel instead of the dialog box.Jan Holesovsky
Change-Id: I4fd415845e2732ee8ef0567b8c58b878bb52fac8
2014-12-18sw: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I9c3e03324c69beb5af4c43da208086600876f875
2014-12-17Introduce rtl::OUStringLiteral1Stephan Bergmann
...to use single ASCII character literals "more directly" in the OUString API (instead of having to go via an intermediary OUString ctor call). Especially useful for character literals that are defined as const variables or via macros ("direct" uses of character literals in the OUString API can often simply be replaced with single-character string literals, for improved readability). (The functions overloaded for OUStringLiteral1 are those that are actually used by the existing LO code; more could potentially be added. The asymmetry in the operator ==/!= parameter types is by design, though---writing code like 'x' == s is an abomination that shall not be abetted.) Change-Id: Ic5264714be7439eed56b5dfca6ccaee277306f1f
2014-12-04sw: loplugin:cstylecastStephan Bergmann
Change-Id: I0b9f72b24b797bee244f95083b8f0ab10b1c6a02
2014-12-04loplugin: cstylecastNoel Grandin
Change-Id: Id61218433add142e109bfc858549b8d2d8d1c28f
2014-12-03loplugin: cstylecastNoel Grandin
Change-Id: Ic48a59c209e77382a0e431a5502c24a62407334b
2014-12-02Revert "loplugin: cstylecast"Kohei Yoshida
This reverts commit 8dba4716d2e7fcaf00cc347d4989c24539ea0fe6. <:: is not a legal syntax at least with gcc 4.7.
2014-12-02loplugin: cstylecastNoel Grandin
Change-Id: I922fe2b4177687863d9749c2f46aab9ddd86621a
2014-12-01fdo#84938: replace EVENT_ constants with enumTobias Madl
Change-Id: I8275832d8dae43b374bddd48520d11592e9a6a1f Reviewed-on: https://gerrit.libreoffice.org/13134 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-26loplugin: cstylecastNoel Grandin
Change-Id: Idce7220056f7bc339a5060fd0bd6fbbbdde4f6ff
2014-11-25loplugin: cstylecastNoel Grandin
Change-Id: I74d655f24396c35305e90e26c91e45c6fc44df75
2014-11-21dead init (clang)Bjoern Michaelsen
Change-Id: Idc482b3b801bc755042f2a25676fa90c3066f14c
2014-11-16fdo#56116 : Names of bookmarks should allow all characters whichBrij Mohan Lal Srivastava
are valid in HTML anchor names (missing: ':' and '.') Change-Id: I44f1d1135067103fdcc7482793371c5b95c14cec Reviewed-on: https://gerrit.libreoffice.org/12466 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2014-11-16EndDialog(sal_True) ==> EndDialog(RET_OK)Matteo Casalin
Change-Id: I07a822a7c03a4746fd609ca6ea743b92253cf6de
2014-11-16sal_True/sal_False to true/false in sw comments (also delete obsolete ones)Matteo Casalin
Change-Id: Ifb29bd3e9c5dc7671c189fd9daa010305f7a85a4
2014-11-14fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava
Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-11-08sw: remove pointless inheritance of SwChapterNumRules from SwBaseNumRulesMichael Stahl
Change-Id: I5426977d4ed5539d79335df0aa4bcccd71dd8966
2014-10-23Fraction: Revert "fdo#81356: convert Fraction to boost::rational<long> - wip"Jan Holesovsky
This reverts commit 47a2d7642d249d70b5da0c330a73f3a0032e4bba. Conflicts: cui/source/tabpages/transfrm.cxx svx/source/svdraw/svdedtv1.cxx svx/source/svdraw/svdibrow.cxx sw/source/filter/ww1/w1filter.cxx tools/source/generic/rational.cxx Change-Id: I4849916f5f277a4afef0e279b0135c76b36b9d15
2014-10-23Fraction: Revert "fdo#84854 it seems long is not enough on 32 bit"Jan Holesovsky
This reverts commit 582ef22d3e8e30ffd58f092d37ffda30bd07bd9e. Conflicts: svx/source/svdraw/svdedtv1.cxx svx/source/svdraw/svdibrow.cxx sw/source/filter/ww1/w1filter.cxx Change-Id: I80abc7abdeddc267eaabc9f8ab49611bb3f8ae83
2014-10-16fdo#84854 it seems long is not enough on 32 bitDavid Tardon
Fraction used BigInt internally for computations, rational does nothing like that. Change-Id: I3e9b25074f979bc291208f7c6362c3c40eb77ff5
2014-10-09fdo#81356: convert Fraction to boost::rational<long> - wipJuan Picca
* Added rational util functions used by Fraction class not available in the boost::rational class. * Replaced usage of Fraction by boost::rational<long> * Removed code that relies on: 1. fraction.IsValid() -- rational only allow valid values, ie denominator() != 0 2. rational.denominator() == 0 -- always false 3. rational.denominator() < 0 -- always false but implementation detail: http://www.boost.org/doc/libs/release/libs/rational/rational.html#Internal%20representation * Simplified code that relies on: 1. rational.denominator() != 0 -- always true * BUGS EXIST because Fraction allows the creation of invalid values but boost::rational throws the exception boost::bad_rational Change-Id: I84970a4956afb3f91ac0c8f726547466319420f9 Reviewed-on: https://gerrit.libreoffice.org/11551 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-10-08pass const OUString&, Clang loplugin:passstuffbyrefEike Rathke
Change-Id: I7fdd4541ac61729878149bd47080e9ffbd43bc98
2014-10-08pass const OUString&, Clang loplugin:passstuffbyrefEike Rathke
Change-Id: Ia3bf8a59c38b32a9ed24d21432f95e7141d72072
2014-10-08fdo#84504: UI- LineNumbering for header/footerCharu Tyagi
Change-Id: I5b432273ce24d8575ac36f5336717669db733c35 Reviewed-on: https://gerrit.libreoffice.org/11730 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-09-23fdo#82577: Handle WindowNoel Grandin
Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-18fdo#82577: Handle FontNoel Grandin
Put the VCL Font class in the vcl namespace. Avoids clash with the X11 Font typedef. Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
2014-09-12Turn SfxItemState into a C++11 scoped enumerationStephan Bergmann
...to gain further confidence in the claim "that none of the existing code tries to uses combinations of these enum values" (d92602c5b13d0a60439d86c5a033d124178726ca "more fixes for SfxItemState") Change-Id: I987922d945e8738e38adfde83b869adf3ff35b13 Reviewed-on: https://gerrit.libreoffice.org/11384 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2014-09-10Replace uses of old SFX_ITEM_AVAILABLE alias with SFX_ITEM_DEFAULTStephan Bergmann
Change-Id: I88eeac06413fc3935cbbdb357ff8bf9acaa383a8
2014-08-23fdo#82577: Handle KeyCodeTor Lillqvist
Put the VCL KeyCode class in the vcl namespace. Avoids clash with the X11 KeyCode typedef. Change-Id: I624c9d937f7c5f5986d313b6c5f060bd8bb7e028
2014-08-22QueryBox STR_QUERY_DELETE -> MessageDialog + stringCaolán McNamara
Change-Id: I570fe82f3207e8b40a0e4727c6641fdf59113978
2014-08-18drop unnecessary shl.hxx includesCaolán McNamara
Change-Id: Ieb984987c4a4f888a563377e0500444b12f43506
2014-08-18Test compiling before committing is overratedTor Lillqvist
Change-Id: I65e4a6ad59aee21b62454b4fcdd6d6ca056cb249
2014-08-18move strings to global fileThomas Arnhold
Change-Id: I6e1b54a66d0b669ecbba4eb305c1dd8925747edd
2014-08-18InfoBox STR_SRTERR to StringThomas Arnhold
Change-Id: Ic3b7de3d26e91b260d775e629602758f63a40b85
2014-08-18InfoBox MSG_DOUBLE_SHORTNAME and MSG_NO_GLOSSARIES to StringThomas Arnhold
Change-Id: Ie3934ebc3209b8ba0358cca5fad9883e3b8cd262
2014-07-26Massive 'Dialogdiet fail' and similar to 'Dialog creation failed'Matteo Casalin
Change-Id: I6ca6914e80c186699df42253de46a3690c5130f2