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
df002e39
Kaydet (Commit)
df002e39
authored
Ock 08, 2014
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
These implementations could inherit from XInitialization too.
Change-Id: I70493afcec837411b0f3c6d5165564d2cc0996db
üst
194bdbde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
fpicker.cxx
svtools/source/uno/fpicker.cxx
+20
-3
No files found.
svtools/source/uno/fpicker.cxx
Dosyayı görüntüle @
df002e39
...
...
@@ -20,7 +20,8 @@
#include "sal/types.h"
#include "rtl/ustring.hxx"
#include "com/sun/star/lang/XMultiComponentFactory.hpp"
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/lang/XMultiComponentFactory.hpp>
#include "svtools/miscopt.hxx"
#include "svl/pickerhistoryaccess.hxx"
...
...
@@ -57,7 +58,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
com_sun_star_comp_svt_FilePicker_get_implementation
(
css
::
uno
::
XComponentContext
*
context
,
uno_Sequence
*
arguments
)
{
assert
(
arguments
!=
0
&&
arguments
->
nElements
==
0
);
(
void
)
arguments
;
assert
(
arguments
!=
0
)
;
Reference
<
css
::
uno
::
XInterface
>
xResult
;
Reference
<
css
::
lang
::
XMultiComponentFactory
>
xFactory
(
context
->
getServiceManager
());
if
(
xFactory
.
is
()
&&
SvtMiscOptions
().
UseSystemFileDialog
())
...
...
@@ -92,6 +93,14 @@ com_sun_star_comp_svt_FilePicker_get_implementation(
// Add to FilePicker history.
svt
::
addFilePicker
(
xResult
);
}
css
::
uno
::
Reference
<
css
::
lang
::
XInitialization
>
xx
(
xResult
,
css
::
uno
::
UNO_QUERY
);
if
(
xx
.
is
())
{
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
aArgs
(
reinterpret_cast
<
css
::
uno
::
Any
*>
(
arguments
->
elements
),
arguments
->
nElements
);
xx
->
initialize
(
aArgs
);
}
xResult
->
acquire
();
return
xResult
.
get
();
}
...
...
@@ -117,7 +126,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
com_sun_star_comp_svt_FolderPicker_get_implementation
(
css
::
uno
::
XComponentContext
*
context
,
uno_Sequence
*
arguments
)
{
assert
(
arguments
!=
0
&&
arguments
->
nElements
==
0
);
(
void
)
arguments
;
assert
(
arguments
!=
0
)
;
Reference
<
css
::
uno
::
XInterface
>
xResult
;
Reference
<
css
::
lang
::
XMultiComponentFactory
>
xFactory
(
context
->
getServiceManager
());
if
(
xFactory
.
is
()
&&
SvtMiscOptions
().
UseSystemFileDialog
())
...
...
@@ -149,6 +158,14 @@ com_sun_star_comp_svt_FolderPicker_get_implementation(
// Add to FolderPicker history.
svt
::
addFolderPicker
(
xResult
);
}
css
::
uno
::
Reference
<
css
::
lang
::
XInitialization
>
xx
(
xResult
,
css
::
uno
::
UNO_QUERY
);
if
(
xx
.
is
())
{
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
aArgs
(
reinterpret_cast
<
css
::
uno
::
Any
*>
(
arguments
->
elements
),
arguments
->
nElements
);
xx
->
initialize
(
aArgs
);
}
xResult
->
acquire
();
return
xResult
.
get
();
}
...
...
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