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
5e9a7f19
Kaydet (Commit)
5e9a7f19
authored
Eki 23, 2012
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related fdo#46808: Improve previous commit slightly
Change-Id: Ib4f44f745f7e3e2e1403d905cc16bee4c487b0b4
üst
432c0f49
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
10 deletions
+6
-10
autorecovery.cxx
framework/source/services/autorecovery.cxx
+1
-2
modulemanager.cxx
framework/source/services/modulemanager.cxx
+1
-1
newmenucontroller.cxx
framework/source/uielement/newmenucontroller.cxx
+2
-4
uicommanddescription.cxx
framework/source/uielement/uicommanddescription.cxx
+2
-3
No files found.
framework/source/services/autorecovery.cxx
Dosyayı görüntüle @
5e9a7f19
...
@@ -1183,12 +1183,11 @@ void AutoRecovery::implts_specifyAppModuleAndFactory(AutoRecovery::TDocumentInfo
...
@@ -1183,12 +1183,11 @@ void AutoRecovery::implts_specifyAppModuleAndFactory(AutoRecovery::TDocumentInfo
// <- SAFE ----------------------------------
// <- SAFE ----------------------------------
css
::
uno
::
Reference
<
css
::
frame
::
XModuleManager2
>
xManager
=
ModuleManager
::
create
(
comphelper
::
getComponentContext
(
xSMGR
)
);
css
::
uno
::
Reference
<
css
::
frame
::
XModuleManager2
>
xManager
=
ModuleManager
::
create
(
comphelper
::
getComponentContext
(
xSMGR
)
);
css
::
uno
::
Reference
<
css
::
container
::
XNameAccess
>
xModuleConfig
(
xManager
,
css
::
uno
::
UNO_QUERY_THROW
);
if
(
rInfo
.
AppModule
.
isEmpty
())
if
(
rInfo
.
AppModule
.
isEmpty
())
rInfo
.
AppModule
=
xManager
->
identify
(
rInfo
.
Document
);
rInfo
.
AppModule
=
xManager
->
identify
(
rInfo
.
Document
);
::
comphelper
::
SequenceAsHashMap
lModuleDescription
(
xM
oduleConfig
->
getByName
(
rInfo
.
AppModule
));
::
comphelper
::
SequenceAsHashMap
lModuleDescription
(
xM
anager
->
getByName
(
rInfo
.
AppModule
));
lModuleDescription
[
rtl
::
OUString
(
CFG_ENTRY_PROP_EMPTYDOCUMENTURL
)]
>>=
rInfo
.
FactoryURL
;
lModuleDescription
[
rtl
::
OUString
(
CFG_ENTRY_PROP_EMPTYDOCUMENTURL
)]
>>=
rInfo
.
FactoryURL
;
lModuleDescription
[
rtl
::
OUString
(
CFG_ENTRY_PROP_FACTORYSERVICE
)]
>>=
rInfo
.
FactoryService
;
lModuleDescription
[
rtl
::
OUString
(
CFG_ENTRY_PROP_FACTORYSERVICE
)]
>>=
rInfo
.
FactoryService
;
}
}
...
...
framework/source/services/modulemanager.cxx
Dosyayı görüntüle @
5e9a7f19
...
@@ -67,7 +67,7 @@ ModuleManager::impl_createFactory(
...
@@ -67,7 +67,7 @@ ModuleManager::impl_createFactory(
css
::
uno
::
Sequence
<
rtl
::
OUString
>
css
::
uno
::
Sequence
<
rtl
::
OUString
>
ModuleManager
::
impl_getSupportedServiceNames
()
{
ModuleManager
::
impl_getSupportedServiceNames
()
{
css
::
uno
::
Sequence
<
rtl
::
OUString
>
s
(
1
);
css
::
uno
::
Sequence
<
rtl
::
OUString
>
s
(
1
);
s
[
0
]
=
DECLARE_ASCII
(
"com.sun.star.frame.ModuleManager"
)
;
s
[
0
]
=
"com.sun.star.frame.ModuleManager"
;
return
s
;
return
s
;
}
}
...
...
framework/source/uielement/newmenucontroller.cxx
Dosyayı görüntüle @
5e9a7f19
...
@@ -42,7 +42,6 @@
...
@@ -42,7 +42,6 @@
#include <com/sun/star/ui/XModuleUIConfigurationManagerSupplier.hpp>
#include <com/sun/star/ui/XModuleUIConfigurationManagerSupplier.hpp>
#include <com/sun/star/ui/XUIConfigurationManagerSupplier.hpp>
#include <com/sun/star/ui/XUIConfigurationManagerSupplier.hpp>
#include <com/sun/star/frame/ModuleManager.hpp>
#include <com/sun/star/frame/ModuleManager.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <vcl/svapp.hxx>
#include <vcl/svapp.hxx>
#include <vcl/i18nhelp.hxx>
#include <vcl/i18nhelp.hxx>
...
@@ -493,12 +492,11 @@ void NewMenuController::impl_setPopupMenu()
...
@@ -493,12 +492,11 @@ void NewMenuController::impl_setPopupMenu()
m_aModuleIdentifier
=
xModuleManager
->
identify
(
m_xFrame
);
m_aModuleIdentifier
=
xModuleManager
->
identify
(
m_xFrame
);
m_bModuleIdentified
=
sal_True
;
m_bModuleIdentified
=
sal_True
;
Reference
<
XNameAccess
>
xNameAccess
(
xModuleManager
,
UNO_QUERY
);
if
(
!
m_aModuleIdentifier
.
isEmpty
()
)
if
(
!
m_aModuleIdentifier
.
isEmpty
()
&&
xNameAccess
.
is
()
)
{
{
Sequence
<
PropertyValue
>
aSeq
;
Sequence
<
PropertyValue
>
aSeq
;
if
(
x
NameAccess
->
getByName
(
m_aModuleIdentifier
)
>>=
aSeq
)
if
(
x
ModuleManager
->
getByName
(
m_aModuleIdentifier
)
>>=
aSeq
)
{
{
for
(
sal_Int32
y
=
0
;
y
<
aSeq
.
getLength
();
y
++
)
for
(
sal_Int32
y
=
0
;
y
<
aSeq
.
getLength
();
y
++
)
{
{
...
...
framework/source/uielement/uicommanddescription.cxx
Dosyayı görüntüle @
5e9a7f19
...
@@ -664,15 +664,14 @@ UICommandDescription::~UICommandDescription()
...
@@ -664,15 +664,14 @@ UICommandDescription::~UICommandDescription()
void
UICommandDescription
::
impl_fillElements
(
const
sal_Char
*
_pName
)
void
UICommandDescription
::
impl_fillElements
(
const
sal_Char
*
_pName
)
{
{
m_xModuleManager
.
set
(
ModuleManager
::
create
(
comphelper
::
getComponentContext
(
m_xServiceManager
)
)
);
m_xModuleManager
.
set
(
ModuleManager
::
create
(
comphelper
::
getComponentContext
(
m_xServiceManager
)
)
);
Reference
<
XNameAccess
>
xNameAccess
(
m_xModuleManager
,
UNO_QUERY_THROW
);
Sequence
<
rtl
::
OUString
>
aElementNames
=
m_xModuleManager
->
getElementNames
();
Sequence
<
rtl
::
OUString
>
aElementNames
=
xNameAccess
->
getElementNames
();
Sequence
<
PropertyValue
>
aSeq
;
Sequence
<
PropertyValue
>
aSeq
;
::
rtl
::
OUString
aModuleIdentifier
;
::
rtl
::
OUString
aModuleIdentifier
;
for
(
sal_Int32
i
=
0
;
i
<
aElementNames
.
getLength
();
i
++
)
for
(
sal_Int32
i
=
0
;
i
<
aElementNames
.
getLength
();
i
++
)
{
{
aModuleIdentifier
=
aElementNames
[
i
];
aModuleIdentifier
=
aElementNames
[
i
];
if
(
xNameAccess
->
getByName
(
aModuleIdentifier
)
>>=
aSeq
)
if
(
m_xModuleManager
->
getByName
(
aModuleIdentifier
)
>>=
aSeq
)
{
{
::
rtl
::
OUString
aCommandStr
;
::
rtl
::
OUString
aCommandStr
;
for
(
sal_Int32
y
=
0
;
y
<
aSeq
.
getLength
();
y
++
)
for
(
sal_Int32
y
=
0
;
y
<
aSeq
.
getLength
();
y
++
)
...
...
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