Commit Graph

3724 Commits

Author SHA1 Message Date
53c84ea21e coverity#1169804 Unchecked return value
Change-Id: I32fb858ab78a741a194ae11a3147645d786c9afe
2014-02-09 17:13:43 +00:00
57e0062f20 coverity#1169826 Dereference after null check
Change-Id: Ie431672b5a6ba1d613ae1cb9e48fa6d1db6a6b4a
2014-02-09 15:50:10 +00:00
22e59ea977 coverity#1169839 Unintentional integer overflow
Change-Id: I21d7962043e26e8a7973dd2f9305dd6a48f3db4a
2014-02-09 15:17:17 +00:00
5b066bc3ef Typo: (a)synchronoues -> a(synchronous)
Change-Id: Ia3871d711308eb38ed6e0df81615966cc142030d
2014-02-09 10:14:25 +01:00
94bc29cb71 Typo: I/internaly -> I/internally
Change-Id: Ic9056baf58698743492ab57a882341c730ef2f7a
2014-02-09 10:12:07 +01:00
06410bdf1f coverity#1169879 Uninitialized scalar field
Change-Id: I9638bbda4d87e6d86ed1baa2f29331321f11d862
2014-02-08 14:15:55 +00:00
85cdb06fd5 sal_Bool -> bool
Change-Id: Ifc80202e0865b59931af6e50d3d60f5021f8b52e
2014-02-07 18:43:32 +01:00
6f0e7c36e4 Typo: seam(s) -> seem(s)
Change-Id: I840d120644760b61a39ad88b4095056f0f753bb7
2014-02-06 21:22:42 +01:00
53052e5bfa fwk: Constructor feature for single-instance WindowStateConfiguration.
Change-Id: I0537d7a30b6c6807bf746a52dbd2c7fc66607ae2
2014-02-06 12:03:30 +01:00
4ff873bda2 Introduce com.sun.star.ui.theWindowStateConfiguration singleton.
Change-Id: I50861ac8952d54cb1a45846ea72a2ecac4f83409
2014-02-06 12:03:28 +01:00
813b0f60e8 fwk: Constructor feature for single-instance FooBarFactories.
Converted them as usual service implementations.
Otherwise - if static singletons are used -
it does not show menu for some reason.

Change-Id: I0673d0bfbba268728a3fa676f2af95aa6c74bbb2
2014-02-06 12:03:27 +01:00
094f92bb78 Introduce com.sun.star.util.thePathSettings singleton.
To replace single-instance com.sun.star.util.PathSettings service,
incorrectly converted in 89b0017b22889af6a8afe28b94c06e7095dc8c6f

Keeping util::PathSettings::create in
sc/source/ui/vba/vbaapplication.cxx because for some reason
util::thePathSettings::get does not work in sc_macros_test
while testing sc/qa/extras/testdocuments/Ranges.xls.

Change-Id: I75b68ae56ac5b58f72416070dba100ab3ab70fe8
2014-02-06 12:03:25 +01:00
d3a19d8eb7 remove lang path substitution
it's unused internally as far as I can see and has very incomplete (and surely
some wrong values) from some sort of mid 90s Euro-centric worldview

Change-Id: Ibce9e8b76545791ab59b9e11c6ff6e1f33afcb3c
2014-02-04 19:54:31 +00:00
e1b606e071 nPrio is always 0
Change-Id: Idc5bd213562de95c83752dc089ff6a928e9085d3
2014-02-04 14:57:37 +00:00
570e5d70f3 fdo#74425 Remove deprecated static function ResMgr::GetLang()
ResMgr::GetLang() has been deprecated for a long time now. It is used
by only one function,
SubstitutePathVariables::SetPredefinedPathVariables() in the framework
module. I have therefore removed it from ResMgr and placed it as a
function in framework/source/services/substitutepathvars.cxx where it
is actually used.

Change-Id: I5f0d8f701aa45f8653020affeff6339f8fc9bc0e
Reviewed-on: https://gerrit.libreoffice.org/7791
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-04 14:43:57 +00:00
eeb840d6ba fdo#70376: Put only document (file) name in window title on OS X
Change-Id: I0b975a1a0e73c546beec96599fd4e5f87caa51db
2014-02-03 17:48:25 +01:00
ea8aec196b Remove unnecessary #include
Change-Id: I34e6c5514aa40fe7c5e0215e4d5885bb345242d8
2014-02-03 16:05:10 +01:00
a91de8efc9 fdo#54938 Convert framework to cppu::supportsService
Change-Id: Id0c7c845d128920ba278de4208f5c32dcf83ecb1
Reviewed-on: https://gerrit.libreoffice.org/7754
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 14:59:51 +00:00
92c8a8fc82 fwk: Ctor feature for single-instance ModuleUIConfigurationManagerSupplier.
Change-Id: I4674ed6852807e08ff8319515b0ab4e9535b668a
2014-01-30 10:48:25 +01:00
19e16083c6 Introduce com.sun.star.ui.theModuleUIConfigurationManagerSupplier singleton.
Change-Id: I7b503e5d49865c9ff287bf72eaff1995ce871790
2014-01-30 10:48:25 +01:00
a8f9feb9c1 fwk: Constructor feature for single-instance TaskCreatorService.
Change-Id: I9e994ebb4822458039709690aa5dd0a7f75735ac
2014-01-30 10:48:25 +01:00
6c15ca4d9d fwk: Constructor feature for single-instance SubstitutePathVariables.
Change-Id: Ibd626f00bb844ae8ec1cab773093b8c94bf8d936
2014-01-30 10:48:25 +01:00
2257efcdde unused headers
Change-Id: I908259219c94d88dfe2dafee84bbf93cc49d63dc
2014-01-30 10:48:24 +01:00
eb4a4ebc9d fwk: Constructor feature for single-instance WindowContentFactoryManager.
Change-Id: I6786bc1d76fd57edc8dfacb667b53deab792bd20
2014-01-30 10:48:24 +01:00
a64c6c448d fwk: Constructor feature for single-instance UIElementFactoryManager.
Change-Id: Iaa6b6bf8f132e2f8efb9ae71e9302e6be19347c9
2014-01-29 11:46:11 +01:00
e9a23fd78c Introduce com.sun.star.ui.theUIElementFactoryManager singleton.
To replace single-instance com.sun.star.ui.UIElementFactoryManager
service.

Change-Id: I4262909c4396e3907d271a56696a06903168a58d
2014-01-29 11:46:10 +01:00
43b84c9662 fwk: Constructor feature for single-instance UIControllerFactories.
Change-Id: I0867404f7e4aa7b9caafe4f0568bd2c20190867f
2014-01-29 11:46:10 +01:00
af1c0ef8d3 Introduce com.sun.star.frame.ControllerFactory singletons:
com.sun.star.frame.thePopupMenuControllerFactory
com.sun.star.frame.theStatusbarControllerFactory
com.sun.star.frame.theToolbarControllerFactory

To replace their single-instance service variants.

Change-Id: I00586d0d61e63f9482cb659071e88aa9cf02d5b5
2014-01-29 11:46:10 +01:00
612dac063a bool improvements
Change-Id: I0dc09b7a6ee2849bd0c2ffc31be45f81cd2c15ee
2014-01-29 11:08:32 +01:00
2462159d7b bool improvements
Change-Id: I754b47013d8f1aa3ecf6204fbe926a438887639d
2014-01-28 20:26:27 +01:00
945c08e35e using cppu::WeakComponentImplHelperBase::rBHelper; does not work here
Change-Id: I07422d10f7a3e84fdbe62e93b6c5a59323d8a7a8
2014-01-28 20:10:39 +01:00
d3dce837fa fwk: Constructor feature for one instance UICommandDescription.
Change-Id: I3b772ce36492e89451597b3c7dadc5e5b5b22de7
2014-01-28 18:52:23 +01:00
ba8413d262 Introduce com.sun.star.frame.theUICommandDescription singleton.
Change-Id: Ic88cca3722d555ba48d7da8c176556fa1ff90650
2014-01-28 18:52:22 +01:00
b2c89e7236 fwk: Constructor feature for one instance UICategoryDescription.
Change-Id: I56c906c9eeafb625dee65eec9fe39ea3aee66251
2014-01-28 18:52:22 +01:00
dd1c991bd9 Introduce com.sun.star.frame.theAutoRecovery singleton.
To replace com.sun.star.frame.AutoRecovery single-instance service,
incorrectly converted in 279859fdbc40f68d8f1649fa5b928d9de49e8d9e

Unfortunately needs a lot of changes in autorecovery.cxx.

Change-Id: Iba5188dffea3e03803236f23e0b3f343746ace90
2014-01-28 18:52:21 +01:00
ef597d80dc Introduce com.sun.star.task.theJobExecutor singleton.
To replace com.sun.star.task.JobExecutor single-instance service,
incorrectly converted in 748aa84e9808ad31c6ff6b71459525c82de10e58

[including changes by Stephan Bergmann <sbergman@redhat.com>]

Change-Id: I4cea2c63a20b5b22f6e1f822fb35fcc4d0397687
Reviewed-on: https://gerrit.libreoffice.org/7609
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2014-01-24 14:24:34 +00:00
89b0017b22 fwk: Use constructor feature for one instance PathSettings.
Change-Id: Iaa01abc9f604d8f9e6f762e3340f9468e19f4848
2014-01-23 11:41:29 +01:00
747ef9b682 framework: Bin unused source files.
Change-Id: Ifd9d9b7237d148c4bc0d3abd787983f27e2104f8
2014-01-23 11:41:28 +01:00
22bb2660eb -Werror,-Wreorder
Change-Id: Iff7837eb1390ddcf9e281912d7d91f76e8daf221
2014-01-22 16:17:18 +01:00
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
17cfcceb4e WaE: -Wreorder
Change-Id: I8b6e3aafa6208223a65b777c232de88cfb2e5a8c
2014-01-22 11:55:35 +02:00
0ff31c26f3 Make the casting work on Windows too.
Fixes CppunitTest_starmath_qa_cppunit on Windows.

Change-Id: I3fd73db1ebb70ac19f99bc3e337b1a8107486ae7
2014-01-22 09:48:37 +01:00
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
1115adbb5d bool improvements
Change-Id: I1588e6dcbc095d8c5fcde3601eea9111fbae15fb
2014-01-21 18:24:07 +01:00
4abe5e61dd bool improvements
Change-Id: Id91399027008ffbda26f3212bd3ddbba22044f2b
2014-01-21 18:24:03 +01:00
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
111fe03e36 Rest of the incomplete conversion.
What I am doing today?! - sorry for the incomplete push.

Change-Id: Idca25b390820527481b1c672a0ad62f2d83a0e13
2014-01-20 19:58:06 +01:00
f979a12741 Forgotten git add, doh!
Change-Id: I6dccc887b400352cc47678d912b5e4d391c96a3b
2014-01-20 19:53:34 +01:00
279859fdbc fwk: Use constructor feature for AutoRecovery.
Change-Id: I87a6c1c1c6dc92670dccee3f56302e7f234b281d
2014-01-20 19:48:46 +01:00
748aa84e98 fwk: Use constructor feature for JobExecutor.
Change-Id: I5087320137dc17f27a382d564a59cec68f1a4f95
2014-01-20 19:43:59 +01:00