1642 Commits

Author SHA1 Message Date
Norbert Thiebaud
3cbfcee36d xub_StrLen and tools/string.hxx final straw
Thre is still some 0xffff limit left and possibly some
less than gracefully handled overflow/error cases

Change-Id: I00957ee3a30b02f73918ea49d7353056263dc638
Reviewed-on: https://gerrit.libreoffice.org/7787
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-02-03 07:44:28 +00:00
Alexandre Vicenzi
93ef9a43a5 fdo#54938 Convert bridges, editeng and others to cppu::supportsService
Change-Id: I7ff5189473c3e0831c2f1e95264d1a04f3b716a9
Reviewed-on: https://gerrit.libreoffice.org/7761
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com>
Tested-by: Marcos Souza <marcos.souza.org@gmail.com>
2014-02-02 17:38:09 +00:00
Caolán McNamara
bb5328e587 coverity#1158124 Dereference after null check
Change-Id: Ifc2d668b4dda3bc6f8a1aec97a2b9031d3cbd2e9
2014-01-29 13:23:55 +00:00
Stephan Bergmann
790966d5d7 This has only converted the condition of ?: to long
...not the resulting value, since 9ad0aa90fa5cf8c3b3e6a42bd9a0172b4cf75a47
"#80304# More improvements for vertial writing," but seems unnecessary anyway.

Change-Id: Ifb86e51970cd32a1933541c75fe5d1d8f8b9f05b
2014-01-29 10:29:46 +01:00
Herbert Dürr
f46a685b27 Resolves: #i123228# ParagraphData symbols shouldn't be required...
for outlobj.hxx users

Avoid the ParagraphDataVector default constructor in the editeng/outlobj.hxx
header. ParagraphData symbols are not DLLPUBLIC so they are not available
outside of editeng. When inlining is disabled (e.g. for debugging) this may
break the build as observed when building svx in debug mode on Solaris.

(cherry picked from commit 2738b2ea2df22759f32b687d08fd6868b425760e)

Change-Id: I0a8250fe3d61819217c913949dfa20a902b3e397
2014-01-29 09:11:57 +00:00
Norbert Thiebaud
097e67c758 coverity#1019409 : Uninitialized scalar field
Change-Id: I54c360fbdb2d7eed786ff7e7566d6ebe12ed833c
2014-01-28 23:00:32 -06:00
Julien Nabet
9dbcb79782 Following cp#1000025
Change-Id: I7d005fdd67e479852e9869332d3976b4a7095c29
2014-01-28 22:05:50 +01:00
Stephan Bergmann
6bdd60462f bool improvements
Change-Id: If99daef91a41036a5b8dac1e53ab68e928b0b710
2014-01-28 20:24:39 +01:00
Stephan Bergmann
98bb12e112 Apparently missing "nPos <"
Change-Id: Id334f044d475de7ef14503e1a45190a0021d58be
2014-01-28 20:24:36 +01:00
Muthu Subramanian
887bc4dd3e cp#1000025: Import casemaps from pptx.
Note: This only imports it and it may not be
even possible to export (even to othe formats).

Change-Id: I8e104f1bc3a95c42ac932b6ab58365dc113fb2e0
2014-01-27 16:23:44 +05:30
Matteo Casalin
b7ad399162 long to sal_Int32
Change-Id: I03c3d93c03239ae39bb3078ffabe71276ec37d25
Reviewed-on: https://gerrit.libreoffice.org/7658
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-01-26 17:57:29 +00:00
Noel Grandin
16a2e90335 remove SvStream::operator<< methods
.. and convert the last few places still using those methods.

Change-Id: Id2cd8f9c0dd281df43af439d4fef65881f34a6fd
Reviewed-on: https://gerrit.libreoffice.org/7495
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-01-22 22:00:47 +00:00
Noel Grandin
d803483f6a convert more SvStream::operator<< calls
.. to more explicit SvStream::Write* calls
This was done using another run of the clang rewriter, and then
a lot of hand tweaking to fix all the places where the rewriter
did not play nice with various macros.

Change-Id: I7bcab93851c8dfb59cde6bc76290c6484d88fb18
Reviewed-on: https://gerrit.libreoffice.org/7494
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2014-01-22 22:00:39 +00:00
Stephan Bergmann
747ba6295d bool improvements
Change-Id: I2a0980a603822ffdf74a38ba0b41ba27a6830861
2014-01-22 11:39:21 +01:00
Stephan Bergmann
3257e9a47a bool improvements
Change-Id: Ia212b8f80da70de7796f0d8ba817c8d3da693080
2014-01-22 08:22:32 +01:00
Arnaud Versini
5e10e6937a EDITENG : Remove usage of DBG_CTOR and DBG_DTOR.
Valgrind is capable of detecting such bugs. No need for extra macros.

Change-Id: Ifc04e2ec9d27c706868569a3bcb8fbfae0e84c69
Reviewed-on: https://gerrit.libreoffice.org/7524
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-21 16:07:00 +00:00
Stephan Bergmann
a3f32769fc Fix bogus mass-conversion equalsAsciiL -> startsWith
3af99e4d59d89c343965a928681a30f36b1007d2 "convert equalsAsciiL calls to
startsWith calls" should rather have converted to oprator ==.

Change-Id: Id4a8836c5d6d570e54661c40be7214632e202b21
2014-01-21 15:54:52 +01:00
Caolán McNamara
d33b4c311e Related: #i56998# use locale rules to format percentage
Change-Id: I4b744cf10165383153d2a71c05df0c0ed327c641
2014-01-20 14:46:21 +00:00
Tsutomu Uchino
ab50bc9d4a Resolves: #i56998# add a space separater between value and unit...
and remove separator between value and percent to match with ISO 31-0

(cherry picked from commit 0cea884e3f417e4b58d2fdcfc7b0111f3bfc6f30)

Conflicts:
	chart2/source/controller/dialogs/tp_SeriesToAxis.src
	cui/source/dialogs/colorpicker.cxx
	cui/source/dialogs/colorpicker.src
	cui/source/dialogs/grfflt.src
	cui/source/dialogs/zoom.src
	cui/source/tabpages/tabline.src
	editeng/source/items/frmitems.cxx
	editeng/source/items/textitem.cxx
	sd/source/ui/animations/CustomAnimationDialog.src
	sd/source/ui/animations/SlideTransitionPane.src
	svx/source/dialog/bmpmask.src
	svx/source/engine3d/float3d.src
	svx/source/items/algitem.cxx
	svx/source/sidebar/text/TextCharacterSpacingControl.cxx
	svx/source/xoutdev/xattr.cxx
	sw/source/ui/utlui/attrdesc.cxx
	sw/source/ui/utlui/uiitems.cxx

Change-Id: I554309cb72dd8956077c5ca6866a982cdd6529aa
2014-01-20 12:08:54 +00:00
Noel Grandin
c648d08720 convert SvStream::operator<< overloads to more explicit methods
This is in preparation for more conversion of SvStream::operator<< calls
to use more explicit method names.
This converts the subclasses that have their own convenience overloads
of operator<< to use normal methods.

Change-Id: I5efd5d9a24c264cb86d2471303dd5849bf91ba80
2014-01-16 16:08:34 +01:00
Caolán McNamara
d762c15417 low hanging xub_StrLen->sal_Int32 in editeng
Change-Id: I8d9a504a1e7d320b487ee499b5bc0c04b52632e7
2014-01-16 10:53:05 +00:00
Caolán McNamara
2e5ec4f5b6 Related: #i17171# big xub_Strlen -> sal_Int32 changes
Change-Id: I31bce794c95062abfa1171c13cf565498688b5f3
2014-01-15 13:26:08 +00:00
Stephan Bergmann
5ea58f534b bool improvements
Change-Id: Ic6488ac278cac2d1d7e240abff545f9ea0b8eafe
2014-01-14 21:28:08 +01:00
Stephan Bergmann
d24134b6a2 This shall likely comp. m_eCurrentConversionDirection to HHC::eHangulToHanja
Change-Id: Ib4eba9f6386214d010c880ad15bcacce7665a3af
2014-01-14 21:28:08 +01:00
Caolán McNamara
ec3085d625 comment is wrong now with conversion to OUString
Change-Id: Iff26cd2c966fc747895fbde7229a457a99c62f7a
2014-01-14 10:53:29 +00:00
Caolán McNamara
92ba7bd75b xub_StrLen->sal_Int32
Change-Id: I9c4d9b8d18b36dda6609b1976cae13a481943563
2014-01-14 09:33:09 +00:00
Caolán McNamara
563ba069b5 longparas: nPartLen always is USHRT_MAX/STRING_LEN to take full string
Change-Id: I55bb0baa8e83948c470ade2fc6fabccb69dea91d
2014-01-14 09:33:09 +00:00
Caolán McNamara
d4dd5c34db longparas: convert ValidateKashidas to sal_Int32
we can use -1 as the failure return code as return value is always checked and
isolated from the rest of the code.

Change-Id: I87a743de82d681a7e4eabc61a576c4e50f1279a8
2014-01-13 20:35:21 +00:00
Stephan Bergmann
d1043892df SfxPoolItem::operator ==, != should return bool
...and SfxEnumItemInterface::HasBoolValue, too.

Change-Id: Ia032e3d35a4c3b4c1efdc515ca36e466be03fc0a
2014-01-10 17:11:51 +01:00
Noel Grandin
b69864f3f8 re-write SvStream operator<< to non-overloaded methods
This is the actual re-write.

Use a clang rewriter to rewrite SvStream::operator<< to methods
like WriteuInt32.
Note that the rewriter is not perfect, and I hand-tweaked the output.
In particular, I had to adjust places doing things like
  (*this) << 1;

Change-Id: I5923eda3f4ebaa8b452b6ef109e726e116235a2a
Reviewed-on: https://gerrit.libreoffice.org/7342
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-01-10 13:26:24 +00:00
Stephan Bergmann
6e12fb3be3 Consolidate XServiceInfo for classes derived from SvXMLImport
Change-Id: I5a269d8b7e95049c67ae14b06a79b417bc91a474
2014-01-09 10:12:19 +01:00
Stephan Bergmann
31911b3cdc Consolidate XServiceInfo for classes derived from SvXMLExport
Change-Id: Ia3e2b5e682a64844bb6c713912c50c7681393d52
2014-01-08 14:11:58 +01:00
Matteo Casalin
2bd5998111 Remove unread variable
Change-Id: I6271e8f977d5c112223d14744830c8101099613d
2013-12-28 22:40:43 +01:00
Matteo Casalin
5d00bab62b Use OUString constructor for constant ASCII
Change-Id: Ifc80743c748c2542055cfe825ad322b83958d976
2013-12-28 22:40:43 +01:00
Matteo Casalin
b78146b4db Use member initialization list in some constructors
Change-Id: Ie0c9720966ca42373bec7a1697b72c5a17f49644
2013-12-28 22:40:42 +01:00
Matteo Casalin
7da8245f26 Do not use Getters as Setters
Change-Id: Ie465e768f07f6e0ebf10042ca389b4941ba84a2a
2013-12-28 22:40:42 +01:00
Matteo Casalin
73f0b3bd55 xub_StrLen to sal_Int32 + some const
Change-Id: Ieae0940d3d072c3214b4fa2280dd0e01dc328cb7
2013-12-28 22:40:42 +01:00
Andras Timar
b55259eeb5 typo fixes
Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
2013-12-20 15:55:00 +01:00
Noel Grandin
1114d92759 fix OUString simplify
In my commit fb847101519ad74c02183672c04ebf1d700aae83
"simplify - use OUString::startsWith where possible"

I incorrectly converted
 if ( !aURL.isEmpty() && ( aURL[ 0 ] != '#' ) )
to
 if ( aURL.startsWith("#") )

Change-Id: I7fa3a814e13724dc65821e09c03db898b92626ec
2013-12-12 13:32:04 +02:00
Noel Grandin
fb84710151 simplify - use OUString::startsWith where possible
Convert code like
   if( !aStr.isEmpty() && aStr[0] == 'x' )
to
   if( aStr.startsWith("x") )

Change-Id: Iabc3a44ed3be2d29eed876e0eeef212ccd271edf
2013-12-12 13:15:24 +02:00
Stephan Bergmann
a62c2a5fa5 Don't hold css::uno::Type instances by pointer
...in comphelper::PropertyMapEntry and SfxItemPropertyMapEntry.  And as the
arrays of such need to be initialized dynamically anyway, also change their name
members to proper OUStrings while at it.  Plus some const clean-up.

Change-Id: I67d4d7b5773fb020605f369daf39528bec930606
2013-12-12 08:26:40 +01:00
Stephan Bergmann
123e2c3e93 Revert "Don't hold css::uno::Type instances by pointer"
This reverts commit 90f91088d238469b4a2262c91de3117ba40f5bde for now:
Ach, old GCC doesn't like plain string literals to initialize members
of OUString type...

Change-Id: I50563a00406259bb5d41831e2a2796762450d097
2013-12-11 15:38:30 +01:00
Stephan Bergmann
90f91088d2 Don't hold css::uno::Type instances by pointer
...in comphelper::PropertyMapEntry and SfxItemPropertyMapEntry.  And as the
arrays of such need to be initialized dynamically anyway, also change their name
members to proper OUStrings while at it.  Plus some const clean-up.

Change-Id: I67d4d7b5773fb020605f369daf39528bec930606
2013-12-11 15:16:51 +01:00
Michael Stahl
1235e694c2 fdo#70278: editeng: fix Time fields in Impress
Apparenty an uninitialized SvxTimeField is created instead of the
SvxExtTimeField that is needed to preserve the value and format.

(regression from ee5fc5d25fe102c30daf7d181b8181d40b85a4f3)

Change-Id: I36b16af0c143e8b5451a1925806756492dc2334e
2013-12-10 15:28:53 +01:00
Michael Stahl
7b9c61c7f2 editeng: fix more 32-bit Time breakage
SfxDateTimeItem and SvxExtTimeField need to use 64-bit integer to store
Time as well.  These classes also have binary serialization
Load()/Save() methods but they are unlikely to be used in a persistent
way, just for the clipboard.

The problem is easy to reproduce in Impress: Insert->Field->Time(fixed)

(regression from 9830fd36dbdb72c79703b0c61efc027fba793c5a)

Change-Id: I5946c5b94dd5a509805b6dc40461bbd910caffc4
2013-12-10 15:28:53 +01:00
Steve Yin
e446b4a598 Resolves: #i123620# IAccessibleHypertext::hyperlinkIndex returns 0...
when editing a cell/object where there is no link

(cherry picked from commit 552e71c2482b5911ac485c9331a4f354ba7150b5)

Change-Id: I9be20b045d3472f15c98352928d45a1349cec5c4
2013-12-10 09:16:25 +00:00
Takeshi Abe
dae9b7060d Drop duplicate #include
Change-Id: Ib8969d5cd4898b81a5dcd90dc313abd28adfe052
2013-12-10 15:52:49 +09:00
Stephan Bergmann
4f94f16ba1 IAccessible2: revert some bounds-checking changes again
...that were introduced with c23ab5eaed57cc3fb5860e26c591c73c5b22687b "Integrate
branch of IAccessible2" but broke JunitTest_sc_unoapi, which expects calls to
getCharacterAttributes and getIndexAtPoint to actually fail for out-of-bounds
arguments.  The above commit does not make it obvious why those changes were
actually made.

Change-Id: I3492c3e6a49d68885df1206e9368f4483c0dc4f9
2013-11-27 11:33:08 +01:00
Tor Lillqvist
f89712a131 WaE: unreachable code
Change-Id: Iee5fa84eb2335efa7d7f7cb28b8efdecf9366592
2013-11-26 19:53:38 +02:00
Caolán McNamara
1f1fa03f4f rewrite new SvxEditSourceHelper::GetAttributeRun replacement in new style
Change-Id: I906e99afb58dcee3e47a545f575aab71b7edc0e9
2013-11-26 15:27:17 +00:00