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
7278462e
Kaydet (Commit)
7278462e
authored
Agu 03, 2015
tarafından
Szymon Kłos
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remember user settings
Change-Id: I69c4672646365ca4cbeb04d6956741ffe365ad35
üst
2ee42eec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
RemoteFilesDialog.cxx
fpicker/source/office/RemoteFilesDialog.cxx
+33
-0
RemoteFilesDialog.hxx
fpicker/source/office/RemoteFilesDialog.hxx
+6
-0
No files found.
fpicker/source/office/RemoteFilesDialog.cxx
Dosyayı görüntüle @
7278462e
...
...
@@ -249,6 +249,9 @@ RemoteFilesDialog::RemoteFilesDialog( vcl::Window* pParent, WinBits nBits )
m_pContainer
->
Show
();
m_pContainer
->
Enable
(
false
);
m_sIniKey
=
"RemoteFilesDialog"
;
InitSize
();
m_pName_ed
->
SetGetFocusHdl
(
LINK
(
this
,
RemoteFilesDialog
,
FileNameGetFocusHdl
)
);
m_pName_ed
->
SetModifyHdl
(
LINK
(
this
,
RemoteFilesDialog
,
FileNameModifyHdl
)
);
...
...
@@ -273,6 +276,17 @@ void RemoteFilesDialog::dispose()
{
m_pFileView
->
SetSelectHdl
(
Link
<>
()
);
// save window state
if
(
!
m_sIniKey
.
isEmpty
()
)
{
SvtViewOptions
aDlgOpt
(
E_DIALOG
,
m_sIniKey
);
aDlgOpt
.
SetWindowState
(
OStringToOUString
(
GetWindowState
(),
osl_getThreadTextEncoding
()
)
);
OUString
sUserData
=
m_pFileView
->
GetConfigString
();
aDlgOpt
.
SetUserItem
(
OUString
(
"UserData"
),
makeAny
(
sUserData
)
);
}
// save services
std
::
shared_ptr
<
comphelper
::
ConfigurationChanges
>
batch
(
comphelper
::
ConfigurationChanges
::
create
(
m_context
)
);
officecfg
::
Office
::
Common
::
Misc
::
FilePickerLastService
::
set
(
m_sLastServiceUrl
,
batch
);
...
...
@@ -381,6 +395,25 @@ OUString lcl_GetServiceType( ServicePtr pService )
}
}
void
RemoteFilesDialog
::
InitSize
()
{
if
(
m_sIniKey
.
isEmpty
()
)
return
;
// initialize from config
SvtViewOptions
aDlgOpt
(
E_DIALOG
,
m_sIniKey
);
if
(
aDlgOpt
.
Exists
()
)
{
SetWindowState
(
OUStringToOString
(
aDlgOpt
.
GetWindowState
(),
osl_getThreadTextEncoding
()
)
);
Any
aUserData
=
aDlgOpt
.
GetUserItem
(
OUString
(
"UserData"
)
);
OUString
sCfgStr
;
if
(
aUserData
>>=
sCfgStr
)
m_pFileView
->
SetConfigString
(
sCfgStr
);
}
}
void
RemoteFilesDialog
::
FillServicesListbox
()
{
m_pServices_lb
->
Clear
();
...
...
fpicker/source/office/RemoteFilesDialog.hxx
Dosyayı görüntüle @
7278462e
...
...
@@ -19,6 +19,8 @@
#include <tools/errinf.hxx>
#include <tools/resid.hxx>
#include <unotools/viewoptions.hxx>
#include <vcl/button.hxx>
#include <vcl/fpicker.hrc>
#include <vcl/menubtn.hxx>
...
...
@@ -121,6 +123,8 @@ private:
bool
m_bIsConnected
;
bool
m_bServiceChanged
;
OUString
m_sIniKey
;
OUString
m_sPath
;
OUString
m_sStdDir
;
OUString
m_sLastServiceUrl
;
...
...
@@ -147,6 +151,8 @@ private:
std
::
vector
<
ServicePtr
>
m_aServices
;
std
::
vector
<
std
::
pair
<
OUString
,
OUString
>
>
m_aFilters
;
void
InitSize
();
void
FillServicesListbox
();
/* If failure returns < 0 */
...
...
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