summaryrefslogtreecommitdiff
path: root/svtools
AgeCommit message (Collapse)Author
2014-03-19coverity#708279 Uninitialized pointer fieldCaolán McNamara
Change-Id: I65b245c3f262f2ad2665e7d0c3c246104e36eacd
2014-03-19coverity#708277 Uninitialized pointer fieldCaolán McNamara
Change-Id: I9877ef518b68afada1abaf47ebb167fcaf7bda16
2014-03-19convert OUString::match to OUString::endsWithNoel Grandin
Convert code like: rTxt.match( "---", rTxt.getLength()-3 ) to: rTxt.endsWith( "---" ) Change-Id: Iada74c5e714f7234f25b326526843a36255d5599
2014-03-19Add dash-dot and dash-dot-dot line styles.Kohei Yoshida
We need these for Excel interop. Change-Id: I91450c1d205f28636edfb4392aa6ae5091b1d7b7
2014-03-16SwapIn/SwapOut can return bool + sal_Bool to boolMatteo Casalin
Change-Id: Ia5477d6bb83af38435b9ac44359fe2f46b00807c
2014-03-15coverity#982471 Dereference after null checkCaolán McNamara
Change-Id: I00c47ffa1f03e1c6e921efbc41ef01252c1c64b7
2014-03-14ToolbarMenu does not implement XStatusListenerStephan Bergmann
Change-Id: Ia0195e794ac5e23905035738f0ab7e658c3bb92b
2014-03-14No need for a virtual OPropertyContainer::getTypesStephan Bergmann
(and rename to getBaseTypes for clarity) Change-Id: Icfe6202eea9b1f4ec2e46ade3fc8e001ca6b649f
2014-03-13-Werror=reorderCaolán McNamara
Change-Id: I763b2c21f0ba62cf9343582a5a41e0dc0b744b50
2014-03-13coverity#708296 Uninitialized pointer fieldCaolán McNamara
Change-Id: I05b10b0b9812a79ea8c55e5af3bcde83f24e12cf
2014-03-13coverity#708287 Uninitialized pointer fieldCaolán McNamara
Change-Id: Ie1e605caaaa6a2fc7756a285298c1f49962ad2b6
2014-03-13coverity#708280 Uninitialized pointer fieldCaolán McNamara
Change-Id: I92b3e6ec80a951bd8a0133a348de7240ec15a89e
2014-03-13svtools,svx: prefer passing OUString and OString by referenceNoel Grandin
Change-Id: Iceb2cbcda9d8ddb4ee00db9365c751e0e5d8b3a6
2014-03-10svtools: simplify deprecated XTypeProvider.getImplementationIdStephan Bergmann
Change-Id: I2534ad4a720dd5d13324ac6fb19b8676ae50ff4e
2014-03-10callcatcher: update unused codeCaolán McNamara
Change-Id: I0d7f204473bd5fcddf2342850a16194fdb385c13
2014-03-09coverity#708299 Uninitialized scalar fieldCaolán McNamara
Change-Id: I15b3c6d8a2af7be1fd8cada39c58ed706271f307
2014-03-08switch: ungroup two case which perform different operationsMatteo Casalin
Change-Id: I099501a596ebeb2820192d08de80eae342191bb7
2014-03-07x->getSomething(x->getImplementationId()) doesn't make any senseStephan Bergmann
...the point of the aIdentifier parameter to css.lang.XUnoTunnel.getSomething is so that caller and callee can verify they know each other and the value passed back (pointer in local address space, in this case) will actually make sense for the caller. Change-Id: Id79c419307992b30ea6ef7997b74a015631ad21c
2014-03-07coverity#704317 Logically dead codeCaolán McNamara
Change-Id: I680efdff5be6a9f699b8954c11eddc027f972a76
2014-03-06coverity#708336 Uninitialized scalar fieldCaolán McNamara
Change-Id: I9ccd8e1cf6fd06d7a6b7af57803f1e96e26b9963
2014-03-06coverity#982472 Dereference after null checkCaolán McNamara
Change-Id: Ie797775184260fe5b5024d85be4244a56aee274a
2014-03-06callcatcher: update unused codeCaolán McNamara
Change-Id: Ibecd2458fb50ea6e9aff4e0c8ed76f9bfa25b8f4
2014-03-05crash indexing -1Caolán McNamara
Change-Id: Ia339bed9bad3b43ec1e4ea813646cab81cf3a619
2014-03-05cast to the higher capacity type insteadEike Rathke
Change-Id: I515f315c93dd19016dfdabdf9524606214f84891
2014-03-05WaE: comparison of integers of different signsTor Lillqvist
Change-Id: I936e7bdaf3a4236775add4982005b465f229eb78
2014-03-05made ListBox handle more than 64k elements, fdo#61520 relatedEike Rathke
ListBox and related now handle up to sal_Int32 elements correctly. sal_Int32 instead of sal_Size or size_t because of UNO and a11y API. Also disentangled some of the mess of SvTreeList and other containers regarding sal_uInt16, sal_uLong, long, size_t, ... type mixtures. Change-Id: Idb6e0ae689dc5bc2cf980721972b57b0261e688a Reviewed-on: https://gerrit.libreoffice.org/8460 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2014-03-05Add window title and frame into placeedit.uiOlivier Hallot
Change-Id: Ibc45598b719c0898af19e6266799f84cc66d2db1 Reviewed-on: https://gerrit.libreoffice.org/8453 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-05remove unused code in svtools/SvtAccessibilityOptionsNoel Grandin
SvtAccessibilityOptions::GetColorValueSetColumnCount() const SvtAccessibilityOptions::GetEdgeBlending() const SvtAccessibilityOptions::GetListBoxMaximumLineCount() const SvtAccessibilityOptions::GetPreviewUsesCheckeredBackground() const SvtAccessibilityOptions::SetColorValueSetColumnCount(short) SvtAccessibilityOptions::SetEdgeBlending(short) SvtAccessibilityOptions::SetListBoxMaximumLineCount(short) SvtAccessibilityOptions::SetPreviewUsesCheckeredBackground(unsigned char) Change-Id: I1efe1da923a7c26030655ca8baa299325f416478
2014-03-05debug only code SvtIconChoiceCtrl::SetEntryTextModeNoel Grandin
Change-Id: I840294fd8ae03ecfef614fea7c6f3a552596446e
2014-03-04OLE preview: Limit the GDI metafile size to 100000 actions.Jan Holesovsky
Excel can copy huge metafiles to the clipboard, with over 3 million of actions, which are 1) unusable, and 2) crash LibreOffice because of their size. So let's just limit the size of metafiles to be under 100000 actions, otherwise use the 'OLE' bitmap. Change-Id: I6a50471e6fe6ab9417592c011bf78cad6247236b
2014-03-03Use cstdlib std::abs instead of stdlib.h absStephan Bergmann
...because the latter lacks the abs(long) overload in some popular environments, cf. <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401> "stdlib.h does not provide abs(long) overload." Similarly, stdlib.h lacks the abs(float), abs(double), abs(long double) overloads compared to cmath there, whose use was apparently intended in sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx. Rewrote that to use CPPUNIT_ASSERT_DOUBLES_EQUAL instead, which revealed that the comparisons need rather large deltas of .1 resp. .2 (which the original code hid with an implicit conversion to integral type, thus using an effective delta of 1). Discovered with -Wabsolute-value ("absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value") recently introduced on Clang trunk towards 3.5. Change-Id: I4c41575ffdccb2944498b662bd3a53fd510cb0c0
2014-03-03SVTOOLS : Remove usage of DBG_CTOR and DBG_DTOR.Arnaud Versini
Valgrind is capable of detecting such bugs. No need for extra macros. Change-Id: I83e39d69deaf2aa1c5ca455c92d070a2d33def3f Reviewed-on: https://gerrit.libreoffice.org/8421 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-02coverity#984421 Unused pointer valueCaolán McNamara
Change-Id: Id44c9c3da6624db63e1f0f95dcaeddcc8b5402d5 Reviewed-on: https://gerrit.libreoffice.org/8426 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-28loplugin:literaltoboolconversionStephan Bergmann
Change-Id: If5949c6123e2816d0e7d9fd93d3e24dfecba1a56
2014-02-28sal_Bool -> bool in mostly vcl moduleChris Sherlock
Conflicts: include/vcl/settings.hxx svtools/source/table/tablecontrol_impl.cxx sw/source/core/frmedt/fecopy.cxx vcl/inc/canvasbitmap.hxx vcl/inc/headless/svpframe.hxx vcl/inc/unx/salframe.h vcl/inc/win/salframe.h vcl/inc/win/salprn.h vcl/inc/win/salvd.h vcl/osx/DragSource.cxx vcl/osx/DragSource.hxx vcl/osx/DropTarget.cxx vcl/osx/DropTarget.hxx vcl/osx/OSXTransferable.cxx vcl/osx/OSXTransferable.hxx vcl/osx/clipboard.cxx vcl/osx/clipboard.hxx vcl/osx/salprn.cxx vcl/qa/cppunit/canvasbitmaptest.cxx vcl/source/components/fontident.cxx vcl/source/control/edit.cxx vcl/source/control/spinfld.cxx vcl/source/gdi/gdimtf.cxx vcl/source/gdi/virdev.cxx vcl/source/helper/canvasbitmap.cxx vcl/source/window/dockwin.cxx vcl/unx/generic/dtrans/X11_selection.hxx vcl/unx/kde/UnxFilePicker.cxx vcl/unx/kde/UnxFilePicker.hxx vcl/unx/kde4/KDE4FilePicker.cxx vcl/unx/kde4/KDE4FilePicker.hxx vcl/unx/kde4/KDESalFrame.hxx Change-Id: I9866d985da86dea2a56feff23f91c1467a1636b0 Reviewed-on: https://gerrit.libreoffice.org/8219 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-28remove unused code FontSizeBox::GetValue(unsigned short, FieldUnit)Noel Grandin
Change-Id: I63df5364d69bf60e7a5ee2b5854b41ce27f10894
2014-02-27Resolves: #i15508# Added support for BMP file typeArmin Le Grand
(cherry picked from commit 9956ed1303545cd61901e33b110698c4e5e224c4) Conflicts: filter/source/msfilter/escherex.cxx include/vcl/gfxlink.hxx svx/source/xml/xmlgrhlp.cxx sw/source/ui/docvw/romenu.cxx vcl/source/filter/graphicfilter.cxx Change-Id: Ibcbb69b9c57cd8a438788e9a9c95744e99b6fcdd
2014-02-27normalize values of CROSS_COMPILINGMichael Stahl
Change-Id: I0cc43cef91e3fcd82a3558a16ab0afbd4d56b141
2014-02-27remove unused code Ruler::GetPageWidth()Noel Grandin
Change-Id: I7a061b869a699771b321d7143559c5b9f48937c5
2014-02-27remove unused code SvViewDataEntry::SetObjectSelected(bool)Noel Grandin
Change-Id: I3b41be19f4094affd1d000c8780cf6eb54352696
2014-02-26added Lengo [lgr-SB], fdo#72512Eike Rathke
Change-Id: I8614619224d65118d6057eab6c3f6f7ee8efc617
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26added Cree, Plains, Latin [crk-Latn-CN] and Syllabics [crk-Cans-CN], fdo#73973Eike Rathke
Change-Id: I66b2923a59e06c5798d8debb14eb2282c9a4fb1d
2014-02-25added Avar [av-RU], fdo#75161Eike Rathke
Change-Id: Id8e32dab357d0eda90d36ab4e53f3eb2da769029
2014-02-25added Maninkakan, Eastern, Latin [emk-Latn-GN], fdo#74672Eike Rathke
Change-Id: Ib75136c6f0604cb6e3125e39a1514bbcc9ade079
2014-02-25fix commentsCaolán McNamara
Change-Id: I79f827b361d0afe2e9c436d3fb29847b9aaa981d
2014-02-25Remove visual noise from svtoolsAlexander Wilms
Change-Id: I7c2b74a449fb20aae5bc643e24a22cf6f732136d Reviewed-on: https://gerrit.libreoffice.org/8320 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-25Typo: alowed -> allowedJulien Nabet
Change-Id: I3b02f092e294016a5b50900e94dc1917b6896a6f
2014-02-25Clean up confusing name clashes of non-virtual SvListView member functionsStephan Bergmann
...Expand/Collapse/Select with virtual functions of the same names in derived classes. Change-Id: Id2c7e434cc972ac8a789c60ceaf54dc76246be12
2014-02-25remove unused code SvTreeListBox::SearchEntryText(SvTreeListEntry*)Noel Grandin
Change-Id: I18d76de5e3280e7efb4dd75bcd5bf819064176e3