Commit Graph

343199 Commits

Author SHA1 Message Date
Matúš Kukan
945c08e35e using cppu::WeakComponentImplHelperBase::rBHelper; does not work here
Change-Id: I07422d10f7a3e84fdbe62e93b6c5a59323d8a7a8
2014-01-28 20:10:39 +01:00
Matúš Kukan
fb92c8d6a4 copy&paste typo
Change-Id: I528a6a747e88fe2a4b4abfd9372daddf4e8aa502
2014-01-28 19:47:27 +01:00
Matúš Kukan
d3dce837fa fwk: Constructor feature for one instance UICommandDescription.
Change-Id: I3b772ce36492e89451597b3c7dadc5e5b5b22de7
2014-01-28 18:52:23 +01:00
Matúš Kukan
ba8413d262 Introduce com.sun.star.frame.theUICommandDescription singleton.
Change-Id: Ic88cca3722d555ba48d7da8c176556fa1ff90650
2014-01-28 18:52:22 +01:00
Matúš Kukan
b2c89e7236 fwk: Constructor feature for one instance UICategoryDescription.
Change-Id: I56c906c9eeafb625dee65eec9fe39ea3aee66251
2014-01-28 18:52:22 +01:00
Matúš Kukan
54f606c666 Introduce com.sun.star.ui.theUICategoryDescription singleton.
Change-Id: I79a78f208b2aa5eaacbd2e349b2b5066afa1ad23
2014-01-28 18:52:22 +01:00
Matúš Kukan
dd1c991bd9 Introduce com.sun.star.frame.theAutoRecovery singleton.
To replace com.sun.star.frame.AutoRecovery single-instance service,
incorrectly converted in 279859fdbc

Unfortunately needs a lot of changes in autorecovery.cxx.

Change-Id: Iba5188dffea3e03803236f23e0b3f343746ace90
2014-01-28 18:52:21 +01:00
Matúš Kukan
3774a6fd94 Support direct ctor calls for singletons too.
Change-Id: I6db797c950b8222b3ad95faff86adf5e7b41ff4b
2014-01-28 18:52:21 +01:00
Stephan Bergmann
478ec0126b This has always only converted the condition of ?: to long
...not the resulting value, and seems unnecessary anyway.

Change-Id: I8c58b180af2bd36f2c3dbcad888c3dd0b9e4c87d
2014-01-28 18:31:05 +01:00
Kohei Yoshida
67cab85483 fdo#74014: Better fix, to re-use existing method.
Change-Id: Ib62270f695d90190be03aed694a4d2cf395b35b5
2014-01-28 12:13:52 -05:00
Caolán McNamara
d7a10b9c99 coverity#707723 Uninitialized scalar field
Change-Id: I137d29a05efaa4b709a362a02ca0c78bd7a3e048
2014-01-28 17:06:24 +00:00
Caolán McNamara
be3df1df76 coverity#707747 Uninitialized scalar field
Change-Id: I6bc4dbdd46a945d77b85ef8ec9c6333784cd0039
2014-01-28 17:06:24 +00:00
Jan Holesovsky
ba9b0e9c1a hidpi: Set the mnDPIScale during initialization too, of course.
Change-Id: I71b4607d08c7f764670903c5c8e66f451fe2eb57
2014-01-28 17:12:40 +01:00
Caolán McNamara
780eb9f704 Related: fdo#73051 make font size drop down of optimal width
presumably keithcu felt the font size was too wide, so lets
try and implement the desired effect of an optimal width.

Change-Id: Idc1741de04b3559fa415ebcf2289f96ba240ca8f
2014-01-28 16:55:18 +00:00
Caolán McNamara
677a42301e coverity#705167 Missing break in switch
Change-Id: Ia87d4dce6780ce1f69b031599c1a211436f4f819
2014-01-28 16:55:18 +00:00
Stephan Bergmann
424717f44c MSVC apparently does not pack bitfields of different type
...so c963d7e642 "bool improvements" changed the
size of some structs in sw/source/filter/ww8/ww8struc.hxx that are used for raw
IO and thus have fixed layout requirements.  Reverted that part of the commit
and instead use explicit conversion between bool and sal_uInt16 where necessary.

Also added static asserts for those structs that were easily identifiable as
being used for raw IO.  (Also reverted the bools in some other structs that were
not (easily) identified as being used for raw IO even if that might thus not be
necessary, but better safe than sorry.)

Change-Id: I60e17a2821d67961f50691625999f2aa72c5ebce
2014-01-28 17:14:22 +01:00
Caolán McNamara
8138c07b98 Resolves: fdo#73051 font size menubar widget too narrow
regression since 7347482cc3

Change-Id: I44e1709f5f391c4ce8b5eaddf02da6fd9652d030
2014-01-28 16:10:34 +00:00
Jacobo Aragunde Pérez
2c9c3d3ef5 ooxml: Small code refactor
* Use PUT_PROPS macro in all cases.
* Added putPropertyToGrabBag( OUString, Any ) to avoid the explicit
  creation of a PropertyValue object every time.

Change-Id: If098dd3a94d1843c4c5dbc3a507b05754d9d59c7
2014-01-28 17:07:26 +01:00
Jacobo Aragunde Pérez
0d6cb9c123 ooxml: Preserve shape style effect attributes
Preserve <a:effectRef> tag and its contents from inside shape style
properties tag <wps:style>.

Added some lines to existing unit tests to check for the preservation
of these attributes.

Change-Id: I6e47b228dcc9788a4a2dfe87bd1186d2f04dbeea
2014-01-28 17:07:26 +01:00
Eike Rathke
0b3c6203f8 give MSVC a hint to not break the build, fdo#74042 related
... and be explicit about std::min() types.

Change-Id: I6a0dd499d1a29d389ee9da31b71639e3c7c1a6ae
2014-01-28 17:02:13 +01:00
Miklos Vajna
f71dc0ec83 swpagerelsize: take care of Sz.GetWidthPercentRelation() in SwFlyFrm::CalcRel
This allows two type of relative sizes: relative to margin (default,
what we had before) and relative to the entire page.

Change-Id: I1625f072365e418352f3d507764e03484bb812be
2014-01-28 17:01:42 +01:00
Miklos Vajna
b7b57bbce3 swpagerelsize: implement RelativeWidthRelation UNO property for SwXFrame
Which exposes SwFmtFrmSize::eWidthPercentRelation. Do not document yet,
will be done if layout/filters/UI confirms that the data structure is
suitable.

Change-Id: Ic4eac3356452f4bedf9809ff5678e299b7339053
2014-01-28 17:01:42 +01:00
Miklos Vajna
493bee473a swpagerelsize: add an eWidthPercentRelation member to SwFmtFrmSize
Relative width so far was always relative to margin. This new member can
describe if the relative width should be relative to e.g. page.

Change-Id: Idaed3c1ade8cd49021ed3406abd6f79cf8e742be
2014-01-28 17:01:42 +01:00
Maxim Monastirsky
05f87e422b fdo#74042 Don't attempt to copy more than a string has to offer
Change-Id: I5898efeaecce2cf2ee7d4ac581a21761533138bd
Reviewed-on: https://gerrit.libreoffice.org/7698
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
2014-01-28 15:29:11 +00:00
Herbert Dürr
3e99ab21d3 Resolves: #i124121# prevent italic emulation with ITALIC_DONTKNOW fonts
(cherry picked from commit a8cd1fab9a17df6179c31e1a73816f1bcd627a9b)

Conflicts:
	vcl/aqua/source/gdi/ctfonts.cxx

Change-Id: Ib2893a0ce119ac56ac7091fd18a652fe990e82ec
2014-01-28 15:19:34 +00:00
Caolán McNamara
f244845c89 coverity#705144 Missing break in switch
Change-Id: Ie3c28d7172ec17ed7de6033c6eada6fb66d1cdf2
2014-01-28 15:19:33 +00:00
Caolán McNamara
d786af6820 coverity#705141 Missing break in switch
Change-Id: I9b94f1056fa62b2c0c609f6d448e1750bb0e9ce5
2014-01-28 15:19:33 +00:00
Stephan Bergmann
fcf996f893 uno: Let C++ inline functions return bool instead of sal_Bool
...to improve diagnosing misuses of boolean expressions in client code (cf.
compilerplugins/clang/implicitboolconversion.cxx).  This change should be
transparent to client code.

Change-Id: Id4f3c7159c5cfac56dd9edf4d1a43e36eed39fec
2014-01-28 15:54:49 +01:00
Stephan Bergmann
8f408fd559 salhelper: Let C++ inline functions return bool instead of sal_Bool
...to improve diagnosing misuses of boolean expressions in client code (cf.
compilerplugins/clang/implicitboolconversion.cxx).  This change should be
transparent to client code.

Change-Id: I2c7779ad07daa77ae06709c1f6512f2fa25fcd36
2014-01-28 15:54:49 +01:00
Stephan Bergmann
e2e5b74993 Explicit null check
Seen this cause JunitTest_sc_unoapi once with a NullPointerException, though I
do not know whether ac can legitimately be null here.

Change-Id: I1ca40dfca2d1a597842fba011a813be8154d8dd8
2014-01-28 15:54:49 +01:00
Stephan Bergmann
fef7cbd5d5 cppu: Let C++ inline functions return bool instead of sal_Bool
...to improve diagnosing misuses of boolean expressions in client code (cf.
compilerplugins/clang/implicitboolconversion.cxx).  This change should be
transparent to client code.

Change-Id: I4c9a55f8c7d0f05fda617f9b33d93ce78bb8fbeb
2014-01-28 15:54:48 +01:00
Stephan Bergmann
fd910cfbda typelib: Let C++ inline functions return bool instead of sal_Bool
...to improve diagnosing misuses of boolean expressions in client code (cf.
compilerplugins/clang/implicitboolconversion.cxx).  This change should be
transparent to client code.

Change-Id: Ie011e52f6cb022fd1d24f6a872037f3023060247
2014-01-28 15:54:48 +01:00
Armin Le Grand
fff58c3379 Resolves: #i123950# Corrected/extended interactive crop feature...
to work in all situations

(cherry picked from commit a440c753532e9ae1747ef3b3ed990d8b713913da)

Conflicts:
	include/svx/sdr/overlay/overlaybitmapex.hxx
	svx/source/svdraw/svddrgm1.hxx
	svx/source/svdraw/svddrgmt.cxx
	svx/source/svdraw/svdmrkv.cxx
	svx/source/svdraw/svdograf.cxx

Change-Id: I33601a429657965fcc9b18da85aa5ffabad65983
2014-01-28 14:30:45 +00:00
Caolán McNamara
655397f53d drop RID_SCDLG_INSCONT, etc. now
Change-Id: Iee2eaf89f662b61fc4ec32b353b13417ee6b2610
2014-01-28 14:30:44 +00:00
Caolán McNamara
eab105e943 coverity#705140 Missing break in switch
Change-Id: I1b08e9afda2eeb3c4c79154376f34cad3e1f0a4c
2014-01-28 14:30:44 +00:00
Caolán McNamara
9add737f88 coverity#705139 Missing break in switch
Change-Id: Ie4fc12e93a51bc117ec82058c579593f7677cd9b
2014-01-28 14:30:44 +00:00
Caolán McNamara
ba75754c44 coverity#705138 Missing break in switch
Change-Id: Ia7f2211bb4a8c006259c9db6a2eac64593f8e91e
2014-01-28 14:30:44 +00:00
Caolán McNamara
1b8179c5f4 coverity#705513 Dereference null return value
Change-Id: I7fd1569fe5d5c4383f028915af95fec55b8f8121
2014-01-28 14:30:43 +00:00
Caolán McNamara
22c0cdc014 coverity#705602 Big parameter passed by value
Change-Id: I4f96325d6387bf7e8859d09f1d5b41c605e8227d
2014-01-28 14:30:43 +00:00
Caolán McNamara
b78b5b1da5 coverity#705810 Dereference before null check
Change-Id: I2fab51f08c461faaf4b88b4b7c0b887ba877226c
2014-01-28 14:30:43 +00:00
Caolán McNamara
40a8fecb58 coverity#705811 Dereference before null check
Change-Id: I275739819715f1537e80d621b19a88a6fdbab95b
2014-01-28 14:30:42 +00:00
Caolán McNamara
d31a216b1f coverity#705814 Dereference before null check
Change-Id: Ib5eb5a7058098f7222b1597e60ddc84786403805
2014-01-28 14:30:42 +00:00
Caolán McNamara
40c78e7265 coverity#705872 Dereference before null check
Change-Id: Ia964362f757372862b3f2e5a0a9581171616251b
2014-01-28 14:30:42 +00:00
Caolán McNamara
50d5bd90e0 coverity#705892 Dereference before null check
Change-Id: I8dddc52e5b9af2f97bb41aec6e666d0ae0fcbbb5
2014-01-28 14:30:42 +00:00
Caolán McNamara
b7180fa62c coverity#705894 Dereference before null check
Change-Id: Ica2a7b9b53af2b3e17fa51f9b49762c01a1bfa90
2014-01-28 14:30:41 +00:00
Caolán McNamara
ab615e29eb coverity#705895 Dereference before null check
Change-Id: I94e7507654e95b15338e1c467de59bf45b3077b0
2014-01-28 14:30:41 +00:00
Caolán McNamara
d6546c5da8 coverity#705897 Dereference before null check
Change-Id: I947abe661c0e85a65d915422f9d800256167d639
2014-01-28 14:30:41 +00:00
Caolán McNamara
0ae60c3c35 coverity#705898 Dereference before null check
Change-Id: I16029411bd758914e87c7dc020ff8779218fefaa
2014-01-28 14:30:41 +00:00
Caolán McNamara
3acf5f61b0 coverity#705899 Dereference before null check
Change-Id: I6938bc2bbedbf830f8f35b875b5b071447b8d7d1
2014-01-28 14:30:40 +00:00
Caolán McNamara
baa57e5e50 coverity#705900 Dereference before null check
Change-Id: I523aa738d4a15395f708aafa9edd266e5717421e
2014-01-28 14:30:40 +00:00