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
5835d8d2
Kaydet (Commit)
5835d8d2
authored
May 27, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#46808, Convert some XMultiServiceFactory to XComponentContext
Change-Id: Ia55bb7af6e5d1c76f3cf8001ea53892e1e1bdac0
üst
052de9c1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
persistentwindowstate.hxx
framework/inc/helper/persistentwindowstate.hxx
+2
-2
persistentwindowstate.cxx
framework/source/helper/persistentwindowstate.cxx
+3
-3
taskcreatorsrv.cxx
framework/source/services/taskcreatorsrv.cxx
+1
-1
No files found.
framework/inc/helper/persistentwindowstate.hxx
Dosyayı görüntüle @
5835d8d2
...
...
@@ -70,7 +70,7 @@ class PersistentWindowState : // interfaces
private
:
/// may we need an uno service manager to create own services
css
::
uno
::
Reference
<
css
::
lang
::
XMultiServiceFactory
>
m_xSMGR
;
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
m_xContext
;
/// reference to the frame which was created by the office himself
css
::
uno
::
WeakReference
<
css
::
frame
::
XFrame
>
m_xFrame
;
...
...
@@ -85,7 +85,7 @@ class PersistentWindowState : // interfaces
//____________________________
// ctor/dtor
PersistentWindowState
(
const
css
::
uno
::
Reference
<
css
::
lang
::
XMultiServiceFactory
>&
xSMGR
);
PersistentWindowState
(
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>&
xContext
);
virtual
~
PersistentWindowState
(
);
//____________________________
...
...
framework/source/helper/persistentwindowstate.cxx
Dosyayı görüntüle @
5835d8d2
...
...
@@ -61,9 +61,9 @@ DEFINE_XTYPEPROVIDER_4(PersistentWindowState ,
css
::
lang
::
XEventListener
)
//*****************************************************************************************************************
PersistentWindowState
::
PersistentWindowState
(
const
css
::
uno
::
Reference
<
css
::
lang
::
XMultiServiceFactory
>&
xSMGR
)
PersistentWindowState
::
PersistentWindowState
(
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>&
xContext
)
:
ThreadHelpBase
(
&
Application
::
GetSolarMutex
())
,
m_x
SMGR
(
xSMGR
)
,
m_x
Context
(
xContext
)
,
m_bWindowStateAlreadySet
(
sal_False
)
{
}
...
...
@@ -110,7 +110,7 @@ void SAL_CALL PersistentWindowState::frameAction(const css::frame::FrameActionEv
{
// SAFE -> ----------------------------------
ReadGuard
aReadLock
(
m_aLock
);
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
xContext
=
comphelper
::
getComponentContext
(
m_xSMGR
)
;
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>
xContext
=
m_xContext
;
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>
xFrame
(
m_xFrame
.
get
(),
css
::
uno
::
UNO_QUERY
);
sal_Bool
bRestoreWindowState
=
!
m_bWindowStateAlreadySet
;
aReadLock
.
unlock
();
...
...
framework/source/services/taskcreatorsrv.cxx
Dosyayı görüntüle @
5835d8d2
...
...
@@ -311,7 +311,7 @@ void TaskCreatorService::implts_establishWindowStateListener( const css::uno::Re
// We must create a special listener service and couple it with the new created task frame.
// He will restore or save the window state of it ...
// See used classes for further information too.
PersistentWindowState
*
pPersistentStateHandler
=
new
PersistentWindowState
(
xSMGR
);
PersistentWindowState
*
pPersistentStateHandler
=
new
PersistentWindowState
(
comphelper
::
getComponentContext
(
xSMGR
)
);
css
::
uno
::
Reference
<
css
::
lang
::
XInitialization
>
xInit
(
static_cast
<
::
cppu
::
OWeakObject
*
>
(
pPersistentStateHandler
),
css
::
uno
::
UNO_QUERY_THROW
);
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
lInitData
(
1
);
...
...
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