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
6bf5bc98
Kaydet (Commit)
6bf5bc98
authored
Agu 24, 2015
tarafından
Szymon Kłos
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remember window size
Change-Id: I4e9bd5e2516b66f47b560a388237b75059a7f142
üst
470d6ab5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
3 deletions
+38
-3
RemoteFilesDialog.cxx
fpicker/source/office/RemoteFilesDialog.cxx
+35
-3
RemoteFilesDialog.hxx
fpicker/source/office/RemoteFilesDialog.hxx
+3
-0
No files found.
fpicker/source/office/RemoteFilesDialog.cxx
Dosyayı görüntüle @
6bf5bc98
...
...
@@ -6,7 +6,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "RemoteFilesDialog.hxx"
class
FileViewContainer
:
public
vcl
::
Window
...
...
@@ -172,6 +171,8 @@ RemoteFilesDialog::RemoteFilesDialog( vcl::Window* pParent, WinBits nBits )
:
SvtFileDialog_Base
(
pParent
,
"RemoteFilesDialog"
,
"fps/ui/remotefilesdialog.ui"
)
,
m_xContext
(
comphelper
::
getProcessComponentContext
()
)
,
m_xMasterPasswd
(
PasswordContainer
::
create
(
m_xContext
)
)
,
m_nWidth
(
0
)
,
m_nHeight
(
0
)
,
m_pCurrentAsyncAction
(
NULL
)
,
m_pFileNotifier
(
NULL
)
,
m_pSplitter
(
NULL
)
...
...
@@ -297,9 +298,15 @@ void RemoteFilesDialog::dispose()
{
SvtViewOptions
aDlgOpt
(
E_DIALOG
,
m_sIniKey
);
aDlgOpt
.
SetWindowState
(
OStringToOUString
(
GetWindowState
(),
osl_getThreadTextEncoding
()
)
);
Size
aSize
(
GetSizePixel
()
);
OUString
sSize
=
OUString
::
number
(
aSize
.
Width
()
)
+
"|"
;
sSize
=
sSize
+
OUString
::
number
(
aSize
.
Height
()
)
+
"|"
;
OUString
sUserData
=
m_pFileView
->
GetConfigString
();
aDlgOpt
.
SetUserItem
(
OUString
(
"UserData"
),
makeAny
(
sUserData
)
);
makeAny
(
s
Size
+
s
UserData
)
);
}
// save services
...
...
@@ -373,6 +380,17 @@ short RemoteFilesDialog::Execute()
return
nRet
;
}
void
RemoteFilesDialog
::
Show
()
{
SvtFileDialog_Base
::
Show
();
if
(
m_nWidth
>
0
&&
m_nHeight
>
0
)
{
Size
aSize
(
m_nWidth
,
m_nHeight
);
SetSizePixel
(
aSize
);
}
}
OUString
lcl_GetServiceType
(
ServicePtr
pService
)
{
INetProtocol
aProtocol
=
pService
->
GetUrlObject
().
GetProtocol
();
...
...
@@ -423,7 +441,21 @@ void RemoteFilesDialog::InitSize()
Any
aUserData
=
aDlgOpt
.
GetUserItem
(
OUString
(
"UserData"
)
);
OUString
sCfgStr
;
if
(
aUserData
>>=
sCfgStr
)
m_pFileView
->
SetConfigString
(
sCfgStr
);
{
int
nPos
=
sCfgStr
.
indexOf
(
"|"
);
if
(
nPos
!=
-
1
)
{
nPos
=
sCfgStr
.
indexOf
(
"|"
,
nPos
+
1
);
if
(
nPos
!=
-
1
)
{
sal_Int32
nIdx
=
0
;
m_nWidth
=
sCfgStr
.
getToken
(
0
,
'|'
,
nIdx
).
toInt32
();
m_nHeight
=
sCfgStr
.
getToken
(
0
,
'|'
,
nIdx
).
toInt32
();
m_pFileView
->
SetConfigString
(
sCfgStr
.
copy
(
nPos
+
1
)
);
}
}
}
}
}
...
...
fpicker/source/office/RemoteFilesDialog.hxx
Dosyayı görüntüle @
6bf5bc98
...
...
@@ -77,6 +77,7 @@ public:
virtual
void
dispose
()
SAL_OVERRIDE
;
virtual
void
Resize
()
SAL_OVERRIDE
;
virtual
short
Execute
()
SAL_OVERRIDE
;
virtual
void
Show
();
// SvtFileDialog_Base
...
...
@@ -134,6 +135,8 @@ private:
bool
m_bServiceChanged
;
OUString
m_sIniKey
;
int
m_nWidth
;
int
m_nHeight
;
OUString
m_sPath
;
OUString
m_sStdDir
;
...
...
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