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
0ab1f6a0
Kaydet (Commit)
0ab1f6a0
authored
Agu 10, 2015
tarafından
Szymon Kłos
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
added change password entry in the split button menu
Change-Id: I68e76e346ec6d704c27fe6f4031453dd44dbc983
üst
2b0e0ffc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
0 deletions
+65
-0
RemoteFilesDialog.cxx
fpicker/source/office/RemoteFilesDialog.cxx
+52
-0
RemoteFilesDialog.hxx
fpicker/source/office/RemoteFilesDialog.hxx
+5
-0
remotefilesdialog.ui
fpicker/uiconfig/ui/remotefilesdialog.ui
+8
-0
No files found.
fpicker/source/office/RemoteFilesDialog.cxx
Dosyayı görüntüle @
0ab1f6a0
...
@@ -738,6 +738,58 @@ IMPL_LINK_TYPED ( RemoteFilesDialog, EditServiceMenuHdl, MenuButton *, pButton,
...
@@ -738,6 +738,58 @@ IMPL_LINK_TYPED ( RemoteFilesDialog, EditServiceMenuHdl, MenuButton *, pButton,
}
}
}
}
}
}
else
if
(
sIdent
==
"change_password"
)
{
try
{
Reference
<
XPasswordContainer2
>
xMasterPasswd
(
PasswordContainer
::
create
(
comphelper
::
getProcessComponentContext
()
)
);
if
(
xMasterPasswd
->
isPersistentStoringAllowed
()
)
{
int
nPos
=
GetSelectedServicePos
();
if
(
nPos
>=
0
)
{
OUString
sUrl
(
m_aServices
[
nPos
]
->
GetUrl
()
);
Reference
<
XInteractionHandler
>
xInteractionHandler
(
InteractionHandler
::
createWithParent
(
comphelper
::
getProcessComponentContext
(),
0
),
UNO_QUERY
);
UrlRecord
aURLEntries
=
xMasterPasswd
->
find
(
sUrl
,
xInteractionHandler
);
if
(
aURLEntries
.
Url
==
sUrl
)
{
if
(
aURLEntries
.
UserList
.
getLength
()
)
{
OUString
sUserName
=
aURLEntries
.
UserList
[
0
].
UserName
;
::
comphelper
::
SimplePasswordRequest
*
pPasswordRequest
=
new
::
comphelper
::
SimplePasswordRequest
(
PasswordRequestMode_PASSWORD_CREATE
);
Reference
<
XInteractionRequest
>
rRequest
(
pPasswordRequest
);
xInteractionHandler
->
handle
(
rRequest
);
if
(
pPasswordRequest
->
isPassword
()
)
{
OUString
aNewPass
=
pPasswordRequest
->
getPassword
();
Sequence
<
OUString
>
aPasswd
(
1
);
aPasswd
[
0
]
=
aNewPass
;
Reference
<
XPasswordContainer2
>
xPasswdContainer
(
PasswordContainer
::
create
(
comphelper
::
getProcessComponentContext
()));
xPasswdContainer
->
addPersistent
(
sUrl
,
sUserName
,
aPasswd
,
xInteractionHandler
);
}
}
}
}
}
}
catch
(
const
Exception
&
)
{}
}
EnableControls
();
EnableControls
();
}
}
...
...
fpicker/source/office/RemoteFilesDialog.hxx
Dosyayı görüntüle @
0ab1f6a0
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
#ifndef INCLUDED_SVTOOLS_REMOTEFILESDIALOG_HXX
#ifndef INCLUDED_SVTOOLS_REMOTEFILESDIALOG_HXX
#define INCLUDED_SVTOOLS_REMOTEFILESDIALOG_HXX
#define INCLUDED_SVTOOLS_REMOTEFILESDIALOG_HXX
#include <comphelper/docpasswordrequest.hxx>
#include <svtools/foldertree.hxx>
#include <svtools/foldertree.hxx>
#include <svtools/place.hxx>
#include <svtools/place.hxx>
#include <svtools/PlaceEditDialog.hxx>
#include <svtools/PlaceEditDialog.hxx>
...
@@ -32,6 +34,8 @@
...
@@ -32,6 +34,8 @@
#include <officecfg/Office/Common.hxx>
#include <officecfg/Office/Common.hxx>
#include <com/sun/star/beans/StringPair.hpp>
#include <com/sun/star/beans/StringPair.hpp>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/task/PasswordContainer.hpp>
#include <com/sun/star/task/XPasswordContainer2.hpp>
#include <vector>
#include <vector>
...
@@ -42,6 +46,7 @@
...
@@ -42,6 +46,7 @@
#include "iodlg.hrc"
#include "iodlg.hrc"
using
namespace
::
com
::
sun
::
star
::
beans
;
using
namespace
::
com
::
sun
::
star
::
beans
;
using
namespace
::
com
::
sun
::
star
::
task
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
ui
::
dialogs
;
using
namespace
::
com
::
sun
::
star
::
ui
::
dialogs
;
...
...
fpicker/uiconfig/ui/remotefilesdialog.ui
Dosyayı görüntüle @
0ab1f6a0
...
@@ -285,5 +285,13 @@
...
@@ -285,5 +285,13 @@
<property
name=
"use_underline"
>
True
</property>
<property
name=
"use_underline"
>
True
</property>
</object>
</object>
</child>
</child>
<child>
<object
class=
"GtkMenuItem"
id=
"change_password"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
_Change password
</property>
<property
name=
"use_underline"
>
True
</property>
</object>
</child>
</object>
</object>
</interface>
</interface>
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