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
1dec1f2f
Kaydet (Commit)
1dec1f2f
authored
Mar 26, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#46808, convert framework::AddonsToolBarWrapper to XComponentContext
üst
dbb4d4dd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
18 deletions
+17
-18
addonstoolbarwrapper.hxx
framework/inc/uielement/addonstoolbarwrapper.hxx
+3
-3
addonstoolboxfactory.hxx
framework/inc/uifactory/addonstoolboxfactory.hxx
+2
-3
addonstoolbarwrapper.cxx
framework/source/uielement/addonstoolbarwrapper.cxx
+3
-3
addonstoolboxfactory.cxx
framework/source/uifactory/addonstoolboxfactory.cxx
+9
-9
No files found.
framework/inc/uielement/addonstoolbarwrapper.hxx
Dosyayı görüntüle @
1dec1f2f
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/
lang/XMultiServiceFactory
.hpp>
#include <com/sun/star/
uno/XComponentContext
.hpp>
namespace
framework
namespace
framework
{
{
...
@@ -33,7 +33,7 @@ class AddonsToolBarManager;
...
@@ -33,7 +33,7 @@ class AddonsToolBarManager;
class
AddonsToolBarWrapper
:
public
UIElementWrapperBase
class
AddonsToolBarWrapper
:
public
UIElementWrapperBase
{
{
public
:
public
:
AddonsToolBarWrapper
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
xServiceManager
);
AddonsToolBarWrapper
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>&
xContext
);
virtual
~
AddonsToolBarWrapper
();
virtual
~
AddonsToolBarWrapper
();
// XComponent
// XComponent
...
@@ -49,7 +49,7 @@ class AddonsToolBarWrapper : public UIElementWrapperBase
...
@@ -49,7 +49,7 @@ class AddonsToolBarWrapper : public UIElementWrapperBase
// protected methods
// protected methods
//-------------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------
private
:
private
:
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
m_xServiceManager
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>
m_xContext
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XComponent
>
m_xToolBarManager
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
lang
::
XComponent
>
m_xToolBarManager
;
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>
>
m_aConfigData
;
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>
>
m_aConfigData
;
};
};
...
...
framework/inc/uifactory/addonstoolboxfactory.hxx
Dosyayı görüntüle @
1dec1f2f
...
@@ -30,7 +30,6 @@
...
@@ -30,7 +30,6 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XTypeProvider.hpp>
#include <com/sun/star/lang/XTypeProvider.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/ui/XUIElementFactory.hpp>
#include <com/sun/star/ui/XUIElementFactory.hpp>
#include <com/sun/star/frame/XModuleManager2.hpp>
#include <com/sun/star/frame/XModuleManager2.hpp>
...
@@ -48,7 +47,7 @@ class AddonsToolBoxFactory : protected ThreadHelpBase
...
@@ -48,7 +47,7 @@ class AddonsToolBoxFactory : protected ThreadHelpBase
com
::
sun
::
star
::
ui
::
XUIElementFactory
>
com
::
sun
::
star
::
ui
::
XUIElementFactory
>
{
{
public
:
public
:
AddonsToolBoxFactory
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
xServiceManager
);
AddonsToolBoxFactory
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>&
xContext
);
virtual
~
AddonsToolBoxFactory
();
virtual
~
AddonsToolBoxFactory
();
// XInterface, XTypeProvider, XServiceInfo
// XInterface, XTypeProvider, XServiceInfo
...
@@ -61,7 +60,7 @@ class AddonsToolBoxFactory : protected ThreadHelpBase
...
@@ -61,7 +60,7 @@ class AddonsToolBoxFactory : protected ThreadHelpBase
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XFrame
>&
rFrame
);
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XFrame
>&
rFrame
);
private
:
private
:
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>
m_xServiceManager
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>
m_xContext
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XModuleManager2
>
m_xModuleManager
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XModuleManager2
>
m_xModuleManager
;
};
};
...
...
framework/source/uielement/addonstoolbarwrapper.cxx
Dosyayı görüntüle @
1dec1f2f
...
@@ -53,9 +53,9 @@ using namespace ::com::sun::star::ui;
...
@@ -53,9 +53,9 @@ using namespace ::com::sun::star::ui;
namespace
framework
namespace
framework
{
{
AddonsToolBarWrapper
::
AddonsToolBarWrapper
(
const
Reference
<
X
MultiServiceFactory
>&
xServiceManager
)
:
AddonsToolBarWrapper
::
AddonsToolBarWrapper
(
const
Reference
<
X
ComponentContext
>&
xContext
)
:
UIElementWrapperBase
(
UIElementType
::
TOOLBAR
),
UIElementWrapperBase
(
UIElementType
::
TOOLBAR
),
m_x
ServiceManager
(
xServiceManager
)
m_x
Context
(
xContext
)
{
{
}
}
...
@@ -116,7 +116,7 @@ void SAL_CALL AddonsToolBarWrapper::initialize( const Sequence< Any >& aArgument
...
@@ -116,7 +116,7 @@ void SAL_CALL AddonsToolBarWrapper::initialize( const Sequence< Any >& aArgument
sal_uLong
nStyles
=
WB_LINESPACING
|
WB_BORDER
|
WB_SCROLL
|
WB_MOVEABLE
|
WB_3DLOOK
|
WB_DOCKABLE
|
WB_SIZEABLE
|
WB_CLOSEABLE
;
sal_uLong
nStyles
=
WB_LINESPACING
|
WB_BORDER
|
WB_SCROLL
|
WB_MOVEABLE
|
WB_3DLOOK
|
WB_DOCKABLE
|
WB_SIZEABLE
|
WB_CLOSEABLE
;
pToolBar
=
new
ToolBox
(
pWindow
,
nStyles
);
pToolBar
=
new
ToolBox
(
pWindow
,
nStyles
);
pToolBarManager
=
new
AddonsToolBarManager
(
comphelper
::
getComponentContext
(
m_xServiceManager
)
,
xFrame
,
m_aResourceURL
,
pToolBar
);
pToolBarManager
=
new
AddonsToolBarManager
(
m_xContext
,
xFrame
,
m_aResourceURL
,
pToolBar
);
m_xToolBarManager
=
Reference
<
XComponent
>
(
static_cast
<
OWeakObject
*>
(
pToolBarManager
),
UNO_QUERY
);
m_xToolBarManager
=
Reference
<
XComponent
>
(
static_cast
<
OWeakObject
*>
(
pToolBarManager
),
UNO_QUERY
);
}
}
}
}
...
...
framework/source/uifactory/addonstoolboxfactory.cxx
Dosyayı görüntüle @
1dec1f2f
...
@@ -51,19 +51,19 @@ namespace framework
...
@@ -51,19 +51,19 @@ namespace framework
//*****************************************************************************************************************
//*****************************************************************************************************************
// XInterface, XTypeProvider, XServiceInfo
// XInterface, XTypeProvider, XServiceInfo
//*****************************************************************************************************************
//*****************************************************************************************************************
DEFINE_XSERVICEINFO_ONEINSTANCESERVICE
(
AddonsToolBoxFactory
,
PRIVATE_DEFINE_XSERVICEINFO_NEWSTYLE
(
AddonsToolBoxFactory
,
::
cppu
::
OWeakObject
,
::
cppu
::
OWeakObject
,
SERVICENAME_TOOLBARFACTORY
,
SERVICENAME_TOOLBARFACTORY
,
IMPLEMENTATIONNAME_ADDONSTOOLBARFACTORY
IMPLEMENTATIONNAME_ADDONSTOOLBARFACTORY
)
)
PRIVATE_DEFINE_ONEINSTANCEFACTORY
(
AddonsToolBoxFactory
)
DEFINE_INIT_SERVICE
(
AddonsToolBoxFactory
,
{}
)
DEFINE_INIT_SERVICE
(
AddonsToolBoxFactory
,
{}
)
AddonsToolBoxFactory
::
AddonsToolBoxFactory
(
AddonsToolBoxFactory
::
AddonsToolBoxFactory
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
xServiceManager
)
:
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>&
xContext
)
:
ThreadHelpBase
(
&
Application
::
GetSolarMutex
()
)
ThreadHelpBase
(
&
Application
::
GetSolarMutex
()
)
,
m_x
ServiceManager
(
xServiceManager
)
,
m_x
Context
(
xContext
)
,
m_xModuleManager
(
ModuleManager
::
create
(
comphelper
::
getComponentContext
(
xServiceManager
)
)
)
,
m_xModuleManager
(
ModuleManager
::
create
(
xContext
)
)
{
{
}
}
...
@@ -186,7 +186,7 @@ throw ( ::com::sun::star::container::NoSuchElementException,
...
@@ -186,7 +186,7 @@ throw ( ::com::sun::star::container::NoSuchElementException,
aPropSeq
[
2
]
<<=
aPropValue
;
aPropSeq
[
2
]
<<=
aPropValue
;
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
AddonsToolBarWrapper
*
pToolBarWrapper
=
new
AddonsToolBarWrapper
(
m_x
ServiceManager
);
AddonsToolBarWrapper
*
pToolBarWrapper
=
new
AddonsToolBarWrapper
(
m_x
Context
);
xToolBar
=
Reference
<
::
com
::
sun
::
star
::
ui
::
XUIElement
>
(
(
OWeakObject
*
)
pToolBarWrapper
,
UNO_QUERY
);
xToolBar
=
Reference
<
::
com
::
sun
::
star
::
ui
::
XUIElement
>
(
(
OWeakObject
*
)
pToolBarWrapper
,
UNO_QUERY
);
Reference
<
XInitialization
>
xInit
(
xToolBar
,
UNO_QUERY
);
Reference
<
XInitialization
>
xInit
(
xToolBar
,
UNO_QUERY
);
xInit
->
initialize
(
aPropSeq
);
xInit
->
initialize
(
aPropSeq
);
...
...
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