Commit Graph

827 Commits

Author SHA1 Message Date
838b77f5f3 Resolves: rhbz#1065807 use xdg ~/Templates for default Template location
(if it exists)

Change-Id: I98fc9fd54d1f56c8bed24ce4d2ebf53756ded2cc
2014-02-25 10:45:27 +00:00
0ce0c369aa Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23 03:38:49 +00:00
4712767c19 coverity#983681 Uncaught exception
Change-Id: I13b97703f6f9c3411e6da8ec3c71f6e51c8bfc13
2014-02-21 15:30:24 +00:00
a18a1a4545 Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxx
Added vcl/settings.hxx to all cxx files which require it.
This helps to speed up compilation after changes to the settings.

Conflicts:
	sc/source/ui/dbgui/pvlaydlg.cxx

Change-Id: I211a0735c47f72d6879f6f15339355abfe0e3cf4
Reviewed-on: https://gerrit.libreoffice.org/7933
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-20 16:22:17 +00:00
973b47a336 unotools: sal_Bool -> bool
Change-Id: I8051c0756e0474a5b4f748e0aa15a9922e82ea97
2014-02-19 12:47:07 +01:00
2d46ef6da5 fwk: Constructor feature for single-instance framework::Desktop.
Change-Id: Id582e672c0b41a35d25361f7dfe970a767880b2a
2014-02-13 11:27:15 +01:00
924a415e68 cosmetics
Change-Id: Ice4f20db3a590568a7ae4ae59fa0c4ff13e59051
2014-02-13 11:26:31 +01:00
d8db7f0f44 ModuleManager should be static; and simplify.
This saves some cycles used to open configuration many times.

Change-Id: I12cc7ac87df897a518368094b12d8dcb5be4e3b5
2014-02-13 11:26:22 +01:00
c864bd3105 fwk: Constructor feature for one instance ContextChangeEventMultiplexer.
Change-Id: Ibb89e4dd46fc5d1f8a85f96b7e4677fa764bb112
2014-02-11 11:28:55 +01:00
72139db6b4 fwk: Constructor feature for one instance SessionListener.
Converted as usual service implementation.

Change-Id: I37c2f25e8a463abb236753c1299cc0aeb3007cd9
2014-02-11 11:28:55 +01:00
70d8b26810 Typo: acess -> access
Change-Id: I8fb5efa49ccd886fa0172fdc59ede0821ecce486
2014-02-10 16:48:31 +01:00
5bf2b49ef7 coverity#1169812 condition appears the wrong way around
Change-Id: I97960a1491a247ef9db9536f904e4203e0903abd
2014-02-10 12:31:22 +00:00
5e40fcc0cf coverity#1169847 Uncaught exception
Change-Id: I8adf5d175798c4b820cd7cac2a927aa0f7de718d
2014-02-10 12:00:17 +00:00
b0a7722ebf coverity#1169848 Uncaught exception
Change-Id: I27903e8b6bbf28a33601d793719ac5bcd3309db0
2014-02-09 21:07:39 +00:00
53c84ea21e coverity#1169804 Unchecked return value
Change-Id: I32fb858ab78a741a194ae11a3147645d786c9afe
2014-02-09 17:13:43 +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
6f0e7c36e4 Typo: seam(s) -> seem(s)
Change-Id: I840d120644760b61a39ad88b4095056f0f753bb7
2014-02-06 21:22:42 +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
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
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
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
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
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
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
9e18f7e3cf disambiguate URLTransformer
Change-Id: I27a80a7593889105c7a75c04de08eebe28e5c541
2014-01-17 12:59:01 +01:00
f36fba3b85 fwk: Use constructor feature for Frame.
Change-Id: I5f7ee46671b22d17c5cb060f96342727d566fa21
2014-01-17 12:25:07 +01:00
db69bd9187 fwk: Use constructor feature for ModuleManager.
Change-Id: Ic0bcec6fffc52ed1ce535f87da933bdf01c6db01
2014-01-17 12:25:01 +01:00
86b12c3448 fwk: Use constructor feature for URLTransformer.
Change-Id: I6559cb4c97e7c20930fffba3ce3d565840c89033
2014-01-17 12:24:53 +01:00
10074976b7 fwk: Use constructor feature for StatusIndicatorFactory.
Change-Id: I0595ec98df7bf4114dfb4c21aedd2d2744fda11e
2014-01-17 12:24:51 +01:00
e076f677d9 fwk: Use constructor feature for TabWindowService.
Change-Id: I37c6cb578ed4085d721b993496173822e0a554d9
2014-01-17 12:24:46 +01:00