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
7371e3db
Kaydet (Commit)
7371e3db
authored
Eyl 17, 2012
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Attempt at adapting Windows-only code to ucbhelper::Content changes
Change-Id: Ib17e2153746da9e097cccef1bd70bbbd349c7920
üst
00ec76a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
ODMAFilePicker.cxx
fpicker/source/odma/ODMAFilePicker.cxx
+6
-6
ODMAFilePicker.hxx
fpicker/source/odma/ODMAFilePicker.hxx
+3
-1
No files found.
fpicker/source/odma/ODMAFilePicker.cxx
Dosyayı görüntüle @
7371e3db
...
...
@@ -62,7 +62,7 @@ using namespace ::utl;
//------------------------------------------------------------------------------------
// class ODMAFilePicker
//------------------------------------------------------------------------------------
ODMAFilePicker
::
ODMAFilePicker
(
const
Reference
<
X
MultiServiceFactory
>&
xFactory
)
:
ODMAFilePicker
::
ODMAFilePicker
(
const
Reference
<
X
ComponentContext
>&
rxContext
)
:
cppu
::
WeakComponentImplHelper9
<
XFilterManager
,
XFilterGroupManager
,
...
...
@@ -73,14 +73,15 @@ ODMAFilePicker::ODMAFilePicker( const Reference < XMultiServiceFactory >& xFacto
XCancellable
,
XEventListener
,
XServiceInfo
>
(
m_rbHelperMtx
),
m_xContext
(
rxContext
),
m_bMultiSelectionMode
(
sal_False
),
m_aDefaultName
(
),
m_aFiles
(
),
m_nDialogKind
(
OPEN
)
{
m_bUseDMS
=
::
odma
::
DMSsAvailable
();
m_xSystemFilePicker
=
xFactory
->
createInstance
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.ui.dialogs.Win32FilePicker"
)
)
);
m_xSystemFilePicker
=
rxContext
->
getServiceManager
()
->
createInstanceWithContext
(
"com.sun.star.ui.dialogs.Win32FilePicker"
,
rxContext
);
}
// XExecutableDialog functions
...
...
@@ -198,7 +199,7 @@ sal_Int16 SAL_CALL ODMAFilePicker::execute( )
// Create a Content for the odma URL so that
// odma::ContentProvider will learn about the DOCID we
// just created.
ucbhelper
::
Content
content
(
s
,
Reference
<
XCommandEnvironment
>
()
);
ucbhelper
::
Content
content
(
s
,
Reference
<
XCommandEnvironment
>
()
,
m_xContext
);
m_aFiles
=
Sequence
<
rtl
::
OUString
>
(
&
s
,
1
);
return
ExecutableDialogResults
::
OK
;
}
...
...
@@ -538,8 +539,7 @@ Reference< XInterface > SAL_CALL ODMAFilePicker::impl_createInstance(
const
Reference
<
XComponentContext
>&
rxContext
)
throw
(
Exception
)
{
Reference
<
XMultiServiceFactory
>
xServiceManager
(
rxContext
->
getServiceManager
(),
UNO_QUERY_THROW
);
return
Reference
<
XInterface
>
(
*
new
ODMAFilePicker
(
xServiceManager
)
);
return
Reference
<
XInterface
>
(
*
new
ODMAFilePicker
(
rxContext
)
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
fpicker/source/odma/ODMAFilePicker.hxx
Dosyayı görüntüle @
7371e3db
...
...
@@ -58,6 +58,8 @@ class ODMAFilePicker :
::
com
::
sun
::
star
::
lang
::
XServiceInfo
>
{
private
:
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>
m_xContext
sal_Bool
m_bUseDMS
;
sal_Bool
m_bMultiSelectionMode
;
rtl
::
OUString
m_aDefaultName
;
...
...
@@ -72,7 +74,7 @@ protected:
public
:
ODMAFilePicker
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XMultiServiceFactory
>&
xFactory
);
ODMAFilePicker
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
XComponentContext
>&
rxContext
);
// XFilterManager functions
...
...
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