10141 Commits

Author SHA1 Message Date
Stephan Bergmann
307684b2c7 Clean-up svt::ToolboxController inheritance
...and fix its XTypeProvider::getTypes

Change-Id: Ic36b17b14da21a29ca5530dd5e2ad03ee3da0782
2014-02-12 12:03:29 +01:00
Stephan Bergmann
435a5e7071 Remove pointless "shizhoubo" comments
Change-Id: I50521b0dab7325313ed5a3303f09a0692d76d19d
2014-02-12 12:03:29 +01:00
Noel Grandin
124e69df7b cid#705248 missing break in switch
Change-Id: I325b95900e7a5ec927e8c38a687a7fe8058bbdfa
2014-02-12 08:59:06 +02:00
Michael Stahl
06d5616f65 svtools: add some missing locks in new code
Change-Id: I6f000fb0f205b437e4ff5238c8ede5735c403077
2014-02-11 12:52:22 +01:00
Caolán McNamara
c748d6115e coverity#440991 Dereference after null check
Change-Id: I3b911e4bc1e6c2eccf4b9655f12162936fc5a946
2014-02-10 20:51:29 +00:00
Caolán McNamara
2b12a5b87b the return of callcatcher
Change-Id: I447ebcc61ff061bce15678c6fcfd3d0a4669908f
2014-02-10 11:21:03 +00:00
Stephan Bergmann
85cdb06fd5 sal_Bool -> bool
Change-Id: Ifc80202e0865b59931af6e50d3d60f5021f8b52e
2014-02-07 18:43:32 +01:00
Andras Timar
ac6e8ac7e4 typo fixes in comments
Change-Id: Idd49478d59cd062118fbf8e99d1c8bc5250013fc
2014-02-06 23:22:30 +01:00
Alexandre Vicenzi
f139c10fd3 fdo#54938 Convert oox, sc, vcl, svtools... to cppu::supportsService
Change-Id: I6268bc57417d53b9810c81071fbcd604e2a19507
Reviewed-on: https://gerrit.libreoffice.org/7886
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com>
2014-02-06 15:47:54 +00:00
Chris Sherlock
51a68b4992 Doxygen warnings corrected
* Doxygen spits out a lot of warnings about not being able to find
  match function signatures, etc. This is because in some headers we
  have a using namespace statement, in others it gets confused between
  ::Window and Window (!).

* Wrong use of tags:
  + Lots of @seealso - should be @see
  + Wrong usage of @overload - corrected with the right function
    signature
  + HTML tags that doxygen doesn't recognize removed

Change-Id: I1c2eed941619b8764dbfcfc5ab38027518cdf261
2014-02-05 09:14:53 +00:00
Noel Grandin
186b4ebc99 convert specialised SvStream::operator>> methods to ReadXXX methods
as preparation for converting the SvStream::operator>> methods on
primitive types

Change-Id: I62f134bced15c687d6e0d46924f56e8d1c3d95b9
Reviewed-on: https://gerrit.libreoffice.org/7798
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-02-04 22:50:39 +00:00
Kohei Yoshida
95a7e95255 fdo#73263: Change the default color for reference border to non-red.
See the referenced bug report for the reason behind it.

Change-Id: I4284807adaf82ae9581208a13ebd5071d36be5c7
2014-02-04 17:19:28 -05:00
Caolán McNamara
fd59ec2c21 C2872: ´Pair´ : ambiguous symbol
Change-Id: Ia9c86914319cd8342d04e9a9efb23aa18d1e94df
2014-02-04 15:40:33 +00:00
Chris Sherlock
a1e4bd413e Change Application::SystemSettingsChanging to OverrideSystemSettings
The name Application::SystemSettingsChanging implies that the app is
being notified that system settings are being changed. This is not
what the function does - in fact, SystemSettingsChanging overrides
a settings object with user defined settings

Change-Id: Ibbf821ff3c7ec5b38e2e79751058494c749b6428
Reviewed-on: https://gerrit.libreoffice.org/7629
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2014-02-04 10:46:23 +00:00
Stephan Bergmann
849cc7893d -Werror,-Wunused-private-field
Change-Id: Ib7d8fd7ff8a4f44dc699bc0b72a8c438acebc0ec
2014-02-04 11:35:59 +01:00
Caolán McNamara
632c0e14ae convert link database dialog .ui
Change-Id: Ide66c2f088616b1677d03bad9095fa5829c4ffb7
2014-02-04 09:20:58 +00:00
Matteo Casalin
c25ebf75e0 MultiSelection::GetRangeCount() returns size_t
Change-Id: Ief072cef486556c9b43364e108a021510781f7c6
2014-02-03 22:56:54 +01:00
Michael Meeks
6f50837b5e ensure selected calc sheet tab is always visible, and we use space sensibly.
Change-Id: I0f935f324ba31784185959a4a4d2c306d4b592d8
2014-02-03 22:16:26 +01:00
Michael Stahl
6ef04640ab remove GraphicObject::SetSwapStreamHdl() timeout parameter
Every call to SetSwapStreamHdl uses the same timeout now so move the
function that determines that to svtools.

Change-Id: Ib7395d43dd132a9e14e7a7862ff2c2279f319536
2014-02-03 12:34:07 +01:00
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
Matúš Kukan
19e16083c6 Introduce com.sun.star.ui.theModuleUIConfigurationManagerSupplier singleton.
Change-Id: I7b503e5d49865c9ff287bf72eaff1995ce871790
2014-01-30 10:48:25 +01:00
Armin Le Grand
90d39a8a22 Resolves: #i124085# disabled CF_DIBV5...
(no advantages but some problems), increased png support

(cherry picked from commit c991f7cae8dcb306cb0d1f32bc5fcd8ea0a1ea81)

Change-Id: I52bef1295b32eb3692a0428c96edd0c55287f34a
2014-01-30 09:21:30 +00:00
Stephan Bergmann
612dac063a bool improvements
Change-Id: I0dc09b7a6ee2849bd0c2ffc31be45f81cd2c15ee
2014-01-29 11:08:32 +01:00
Stephan Bergmann
bd9581d46d bool improvements
Change-Id: I23e29995bc7af791067de4996923b6279f7f8892
2014-01-28 20:24:40 +01:00
Matúš Kukan
ba8413d262 Introduce com.sun.star.frame.theUICommandDescription singleton.
Change-Id: Ic88cca3722d555ba48d7da8c176556fa1ff90650
2014-01-28 18:52:22 +01:00
Caolán McNamara
426d096383 coverity#440831 Dereference before null check
Change-Id: If19c17088bfbc43e5079d88a3110491e56805749
2014-01-28 11:29:19 +00:00
Norbert Thiebaud
e0696359a0 coverity#1079289 : Uninitialized scalar field
Change-Id: I4663e3d0c5f0fe4288fba1ba4203e2de5ba4e986
2014-01-27 01:07:00 -06:00
Caolán McNamara
604ce7566d coverity#708304 Uninitialized scalar field
Change-Id: If82964036862e309dc1c90036df59942a24fd7d6
2014-01-24 14:02:00 +00:00
Caolán McNamara
e9ab0dbfec coverity#1158253 Dereference before null check
Change-Id: If653cc6dc0b53f66728500d779460ee352924947
2014-01-24 14:01:58 +00:00
Caolán McNamara
77e25e13ba coverity#1158464 Uninitialized scalar field
Change-Id: I73fc73421ab1abcc801bb4372e9584fcbf381bcf
2014-01-23 16:02:13 +00:00
Kohei Yoshida
3d95457572 Only allow approved border styles in cell borders.
Line styles such as inset, outset, embossed etc are not supportable in Calc.
So, don't show them in the UI.

Change-Id: Ie7be74193d01e13a79132a979e2d9a2e4d06de3f
2014-01-22 19:58:32 -05: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
Jan Holesovsky
c2c530da69 Introduce static inline cppu::acquire(), and make use of that.
This is much better approach compared to the callback function, as it allows
passing arguments to the c++ constructor directly, while still allowing some
additional initialization after having acquired the instance.

Change-Id: I5a0f981915dd58f1522ee6054e53a3550b29d624
2014-01-22 15:09:28 +01:00
Stephan Bergmann
bbd9668d5f bool improvements (related to mixing bool/sal_Bool in &=, |=, ^=)
Change-Id: I9869d9709f28b68ef7b518527175589d80644668
2014-01-22 15:00:54 +01:00
Jan Holesovsky
f278397787 Change _get_implementation()'s not to do initialization directly.
Many of the initalizations (in eg. framework) have to be done on an
acquire()'d object, so instead of doing the initialization directly, return
the initialization member function back to the createInstance() /
createInstanceWithContext() / ... and perform the initialization there.

As a sideeffect, I belive the calling initialize() from servicemanager is not
that much a hack any more - whoever converts the implementation to be
constructor-base has the choice to provide the callback, or still initialize
through XInitialization, where the callback is preferred by servicemanager
when it exists.

Change-Id: I8a87b75c54c1441ca0f184967d31ff4902fc4081
2014-01-21 21:25:22 +01:00
Stephan Bergmann
1246f374e6 bool improvements
Change-Id: Id1a0df17a28372f9d7c3a88424cf7656fed46f9a
2014-01-21 18:24:06 +01:00
Stephan Bergmann
101e5cc49c bool improvements
Change-Id: I85faf4e3fcab6763af11eb6a4082820e88bea1ca
2014-01-21 18:24:03 +01:00
Caolán McNamara
2e10f314d0 boradcast->broadcast
Change-Id: I96720843f815bf6d499eb424c3e4ff579c2bbe23
2014-01-21 15:15:57 +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
Alexandre Vicenzi
c137d3c939 Removed unused solar.h reference in svtools
Change-Id: Ic1dc7c32bb749888bc8751d4d488ba76e46b155f
Reviewed-on: https://gerrit.libreoffice.org/7517
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2014-01-20 21:32:38 +00:00
Kohei Yoshida
ec1a3157c1 Better pixelization of dashed lines for screen rendering.
Now the dashed lines are evenly placed on screen.  For now, horizontal lines
only.  I'll work on vertical lines later.

Change-Id: I474e9c8214e5f079ea2cfca12b35381d8fcf2ae1
2014-01-20 14:37:02 -05:00
Jan Holesovsky
9bc2ab30e3 Revert "svt: Use constructor feature for FilePicker and FolderPicker..."
It does not make a real sense to use constructor for implementations that act
as a trampoline; instead, we should do a constructor for the real
implementations that hide behind it.

This reverts commit 2fbb47156773b2e300fc987efc2da85c66e567d1.
This reverts (part of) commit 58ea27124af27bfac21a796b0d13d72354bd0dd3.
This reverts (part of) commit 194bdbde25dd70988c94ff5e1af43b530d47d94b.
This reverts (part of) commit df002e39f7518036ae1c1d2afec7a525ef902327.
This reverts (part of) commit eb89c6f7dcd613cda6a9eee6f7897225e0334a25.
This reverts (part of) commit bdeb57c23973f3ef79020847b2fe39f312cf3c0b.
This reverts (part of) commit 4337a0664f4fb73f9e1be74f2a632847871da402.

Change-Id: Ibd9b1066f3b6ea215d8da9f491d5f026cd75b029
2014-01-20 17:37:41 +01:00
Jan Holesovsky
306efefe22 Minimize the constructor functions to a bare minimum.
Most of the constructors are supposed to be only a call of

  new TheInstance(arguments)

or an equivalent; so let's just change the constructor caller accordingly, to
accept unacquired new instance.

If there are exceptions that need to do more heavy lifting, they do not have
to use the constructor feature, or there can be a wrapper for the real
implementation, doing the additional work in their (C++) constructor.

Change-Id: I035c378778aeda60d15af4e56ca3761c586d5ded
2014-01-20 17:37:40 +01:00
Chris Sherlock
b799cb7528 Remove unused Window parameter from SystemSettingsChanging
This took a bit of code archaelogy for me to track down. It turns out that
as part of an effort to optimize startup, the line of code in this function
was commented out, presumably to be rewritten later. This happened in
commit ee3351d78c in July 2001 (!).

About three years later, in February 2004, the function was rewritten in
commit 189c2388d80. As it turns out, the only two functions that used
the Window parameter were vcl/source/window/window.cxx (which passed
itself in, but of course this did nothing) and
vcl/source/window/winproc.cxx. Furthermore, winproc only ever passed in
the first frame, so it didn't really do anything either.

Consequently, the function as it stands *now* only notifies the
application that system settings have been changed. It doesn't care
which window it tells.

Therefore, I have excised this parameter from the function. I don't
think it made sense when it was implemented anyway, so there is no net
loss.

After removing the unneeded parameter, I was also able to remove the
Window parameter from winproc.cxx's ImplHandleSalSettings function as
it was only ever used to set the top level window, which is now
irrelevant.

Change-Id: I84f2c5c5ff8969387da3af81e4a9c7f9ac6237e1
Reviewed-on: https://gerrit.libreoffice.org/7541
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2014-01-20 15:27:56 +00:00
Tsutomu Uchino
66ff6924d5 Related: #i56998# use FUNIT_PERCENT on fields that allow relative value
(cherry picked from commit fc6fc5b576b972a8ea0551091cc57aa1cfe1334d)

Conflicts:
	svtools/source/control/ctrlbox.cxx
	svx/source/dialog/relfld.cxx

Change-Id: Ic8f0f550dbbcab0678fbeb9bf45a478b0cea642d
2014-01-20 10:14:29 +00:00
Matúš Kukan
73eca35b0a Unify ctor functions for component implementations.
There is no need to use different styles for writing the same thing.
It also makes it easier in future to use search & replace.
But of course, there are also some more complicated functions.

Change-Id: I773da20378af0e0d5a27689d3903df7063fb8ac0
2014-01-18 17:02:40 +01:00
Stephan Bergmann
602c87b425 Window::PreNotify should return bool
Change-Id: Ic9903fd887f2c3fab2630ebeb20df39392177c8d
2014-01-18 00:37:49 +01:00
Kohei Yoshida
009b7be7c8 Revise the line patterns further. Now they look satisfactory to my eye.
Change-Id: I27f4e11bceac25c10de28a866bdcec9576027582
2014-01-17 11:33:16 -05:00
Kohei Yoshida
0a8ddb61b1 Apply dashing without consulting current map unit.
Using scaling is sufficient.

Change-Id: If976bec3940772432d814a77681170d7c99306d2
2014-01-17 11:33:15 -05:00