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
0d9ce24f
Kaydet (Commit)
0d9ce24f
authored
Haz 25, 2015
tarafından
Szymon Kłos
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
open only if RET_OK
Change-Id: Ib9a62d2540ed2d6fad6efedd1fba59bfa4eb635b
üst
6f88c893
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
appopen.cxx
sfx2/source/appl/appopen.cxx
+11
-8
No files found.
sfx2/source/appl/appopen.cxx
Dosyayı görüntüle @
0d9ce24f
...
...
@@ -1127,23 +1127,26 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq )
void
SfxApplication
::
OpenRemoteExec_Impl
(
SfxRequest
&
rReq
)
{
ScopedVclPtrInstance
<
RemoteFilesDialog
>
aDlg
(
(
vcl
::
Window
*
)
NULL
,
WB_OPEN
);
ScopedVclPtrInstance
<
RemoteFilesDialog
>
aDlg
(
(
vcl
::
Window
*
)
NULL
,
WB_OPEN
);
// Filters for test purposes
aDlg
->
AddFilter
(
"All files"
,
FILTER_ALL
);
aDlg
->
AddFilter
(
"ODT files"
,
"*.odt"
);
aDlg
->
AddFilter
(
"ODS files"
,
"*.ods"
);
aDlg
->
Execute
();
short
nResult
=
aDlg
->
Execute
();
OUString
sFileName
=
aDlg
->
GetPath
();
if
(
nResult
==
RET_OK
)
{
OUString
sFileName
=
aDlg
->
GetPath
();
rReq
.
AppendItem
(
SfxStringItem
(
SID_TARGETNAME
,
OUString
(
"_default"
)
)
);
rReq
.
AppendItem
(
SfxStringItem
(
SID_REFERER
,
"private:user"
)
);
rReq
.
RemoveItem
(
SID_FILE_NAME
);
rReq
.
AppendItem
(
SfxStringItem
(
SID_FILE_NAME
,
sFileName
)
);
rReq
.
AppendItem
(
SfxStringItem
(
SID_TARGETNAME
,
OUString
(
"_default"
)
)
);
rReq
.
AppendItem
(
SfxStringItem
(
SID_REFERER
,
"private:user"
)
);
rReq
.
RemoveItem
(
SID_FILE_NAME
);
rReq
.
AppendItem
(
SfxStringItem
(
SID_FILE_NAME
,
sFileName
)
);
GetDispatcher_Impl
()
->
Execute
(
SID_OPENDOC
,
SfxCallMode
::
SYNCHRON
,
*
rReq
.
GetArgs
()
);
GetDispatcher_Impl
()
->
Execute
(
SID_OPENDOC
,
SfxCallMode
::
SYNCHRON
,
*
rReq
.
GetArgs
()
);
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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