Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
61474243
Kaydet (Commit)
61474243
authored
Mar 20, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Access safe members directly
Change-Id: Ie76f2219c5bce609a23a0bc70d6da43f527ce12d
üst
d8910d12
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
16 deletions
+7
-16
taskcreator.hxx
framework/inc/classes/taskcreator.hxx
+1
-2
taskcreator.cxx
framework/source/classes/taskcreator.cxx
+5
-14
desktop.cxx
framework/source/services/desktop.cxx
+1
-0
No files found.
framework/inc/classes/taskcreator.hxx
Dosyayı görüntüle @
61474243
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
#ifndef INCLUDED_FRAMEWORK_INC_CLASSES_TASKCREATOR_HXX
#ifndef INCLUDED_FRAMEWORK_INC_CLASSES_TASKCREATOR_HXX
#define INCLUDED_FRAMEWORK_INC_CLASSES_TASKCREATOR_HXX
#define INCLUDED_FRAMEWORK_INC_CLASSES_TASKCREATOR_HXX
#include <threadhelp/threadhelpbase.hxx>
#include <macros/generic.hxx>
#include <macros/generic.hxx>
#include <general.h>
#include <general.h>
...
@@ -41,7 +40,7 @@ namespace framework{
...
@@ -41,7 +40,7 @@ namespace framework{
@devstatus ready to use
@devstatus ready to use
@threadsafe yes
@threadsafe yes
*//*-*************************************************************************************************************/
*//*-*************************************************************************************************************/
class
TaskCreator
:
private
ThreadHelpBase
class
TaskCreator
{
{
// member
// member
...
...
framework/source/classes/taskcreator.cxx
Dosyayı görüntüle @
61474243
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
*/
*/
#include <classes/taskcreator.hxx>
#include <classes/taskcreator.hxx>
#include <threadhelp/guard.hxx>
#include <loadenv/targethelper.hxx>
#include <loadenv/targethelper.hxx>
#include <services.h>
#include <services.h>
#include <taskcreatordefs.hxx>
#include <taskcreatordefs.hxx>
...
@@ -43,8 +42,7 @@ namespace framework{
...
@@ -43,8 +42,7 @@ namespace framework{
points to the valid uno service manager
points to the valid uno service manager
*//*-*****************************************************************************************************/
*//*-*****************************************************************************************************/
TaskCreator
::
TaskCreator
(
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>&
xContext
)
TaskCreator
::
TaskCreator
(
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>&
xContext
)
:
ThreadHelpBase
(
)
:
m_xContext
(
xContext
)
,
m_xContext
(
xContext
)
{
{
}
}
...
@@ -54,7 +52,6 @@ TaskCreator::TaskCreator( const css::uno::Reference< css::uno::XComponentContext
...
@@ -54,7 +52,6 @@ TaskCreator::TaskCreator( const css::uno::Reference< css::uno::XComponentContext
*//*-*****************************************************************************************************/
*//*-*****************************************************************************************************/
TaskCreator
::~
TaskCreator
()
TaskCreator
::~
TaskCreator
()
{
{
m_xContext
.
clear
();
}
}
/*-****************************************************************************************************
/*-****************************************************************************************************
...
@@ -63,12 +60,6 @@ TaskCreator::~TaskCreator()
...
@@ -63,12 +60,6 @@ TaskCreator::~TaskCreator()
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>
TaskCreator
::
createTask
(
const
OUString
&
sName
,
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>
TaskCreator
::
createTask
(
const
OUString
&
sName
,
sal_Bool
bVisible
)
sal_Bool
bVisible
)
{
{
/* SAFE { */
Guard
aReadLock
(
m_aLock
);
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
xContext
=
m_xContext
;
aReadLock
.
unlock
();
/* } SAFE */
css
::
uno
::
Reference
<
css
::
lang
::
XSingleServiceFactory
>
xCreator
;
css
::
uno
::
Reference
<
css
::
lang
::
XSingleServiceFactory
>
xCreator
;
OUString
sCreator
=
IMPLEMENTATIONNAME_FWK_TASKCREATOR
;
OUString
sCreator
=
IMPLEMENTATIONNAME_FWK_TASKCREATOR
;
...
@@ -80,12 +71,12 @@ css::uno::Reference< css::frame::XFrame > TaskCreator::createTask( const OUStrin
...
@@ -80,12 +71,12 @@ css::uno::Reference< css::frame::XFrame > TaskCreator::createTask( const OUStrin
)
)
{
{
boost
::
optional
<
OUString
>
x
(
officecfg
::
Office
::
TabBrowse
::
TaskCreatorService
::
ImplementationName
::
get
(
xContext
));
boost
::
optional
<
OUString
>
x
(
officecfg
::
Office
::
TabBrowse
::
TaskCreatorService
::
ImplementationName
::
get
(
m_
xContext
));
if
(
x
)
sCreator
=
x
.
get
();
if
(
x
)
sCreator
=
x
.
get
();
}
}
xCreator
=
css
::
uno
::
Reference
<
css
::
lang
::
XSingleServiceFactory
>
(
xCreator
=
css
::
uno
::
Reference
<
css
::
lang
::
XSingleServiceFactory
>
(
xContext
->
getServiceManager
()
->
createInstanceWithContext
(
sCreator
,
xContext
),
css
::
uno
::
UNO_QUERY_THROW
);
m_xContext
->
getServiceManager
()
->
createInstanceWithContext
(
sCreator
,
m_
xContext
),
css
::
uno
::
UNO_QUERY_THROW
);
}
}
catch
(
const
css
::
uno
::
Exception
&
)
catch
(
const
css
::
uno
::
Exception
&
)
{}
{}
...
@@ -95,13 +86,13 @@ css::uno::Reference< css::frame::XFrame > TaskCreator::createTask( const OUStrin
...
@@ -95,13 +86,13 @@ css::uno::Reference< css::frame::XFrame > TaskCreator::createTask( const OUStrin
// BTW: The used fallback creator service (IMPLEMENTATIONNAME_FWK_TASKCREATOR) is implemented in the same
// BTW: The used fallback creator service (IMPLEMENTATIONNAME_FWK_TASKCREATOR) is implemented in the same
// library then these class here ... Why we should not be able to create it ?
// library then these class here ... Why we should not be able to create it ?
if
(
!
xCreator
.
is
())
if
(
!
xCreator
.
is
())
xCreator
=
css
::
frame
::
TaskCreator
::
create
(
xContext
);
xCreator
=
css
::
frame
::
TaskCreator
::
create
(
m_
xContext
);
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
lArgs
(
5
);
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
lArgs
(
5
);
css
::
beans
::
NamedValue
aArg
;
css
::
beans
::
NamedValue
aArg
;
aArg
.
Name
=
OUString
(
ARGUMENT_PARENTFRAME
);
aArg
.
Name
=
OUString
(
ARGUMENT_PARENTFRAME
);
aArg
.
Value
<<=
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>
(
css
::
frame
::
Desktop
::
create
(
xContext
),
css
::
uno
::
UNO_QUERY_THROW
);
aArg
.
Value
<<=
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>
(
css
::
frame
::
Desktop
::
create
(
m_
xContext
),
css
::
uno
::
UNO_QUERY_THROW
);
lArgs
[
0
]
<<=
aArg
;
lArgs
[
0
]
<<=
aArg
;
aArg
.
Name
=
OUString
(
ARGUMENT_CREATETOPWINDOW
);
aArg
.
Name
=
OUString
(
ARGUMENT_CREATETOPWINDOW
);
...
...
framework/source/services/desktop.cxx
Dosyayı görüntüle @
61474243
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
#include <dispatch/interceptionhelper.hxx>
#include <dispatch/interceptionhelper.hxx>
#include <classes/taskcreator.hxx>
#include <classes/taskcreator.hxx>
#include <threadhelp/lockhelper.hxx>
#include <threadhelp/transactionguard.hxx>
#include <threadhelp/transactionguard.hxx>
#include <general.h>
#include <general.h>
#include <properties.h>
#include <properties.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment