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
59269d02
Kaydet (Commit)
59269d02
authored
Ock 05, 2016
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
xmlsecurity: show signature description in DigitalSignaturesDialog
Change-Id: Ic98c731eb381ee3b6ff198381b63e48b786e3fe6
üst
ee2b08ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
digitalsignaturesdialog.cxx
xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
+7
-2
digitalsignaturesdialog.ui
xmlsecurity/uiconfig/ui/digitalsignaturesdialog.ui
+13
-0
No files found.
xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
Dosyayı görüntüle @
59269d02
...
@@ -201,11 +201,13 @@ DigitalSignaturesDialog::DigitalSignaturesDialog(
...
@@ -201,11 +201,13 @@ DigitalSignaturesDialog::DigitalSignaturesDialog(
m_pSignaturesLB
=
VclPtr
<
SvSimpleTable
>::
Create
(
*
pSignatures
);
m_pSignaturesLB
=
VclPtr
<
SvSimpleTable
>::
Create
(
*
pSignatures
);
// #i48253# the tablistbox needs its own unique id
// #i48253# the tablistbox needs its own unique id
m_pSignaturesLB
->
Window
::
SetUniqueId
(
HID_XMLSEC_TREE_SIGNATURESDLG
);
m_pSignaturesLB
->
Window
::
SetUniqueId
(
HID_XMLSEC_TREE_SIGNATURESDLG
);
static
long
aTabs
[]
=
{
4
,
0
,
6
*
nControlWidth
/
100
,
36
*
nControlWidth
/
100
,
74
*
nControlWidth
/
100
};
// Give the first column 6 percent, try to distribute the rest equally.
static
long
aTabs
[]
=
{
5
,
0
,
6
*
nControlWidth
/
100
,
30
*
nControlWidth
/
100
,
54
*
nControlWidth
/
100
,
78
*
nControlWidth
/
100
};
m_pSignaturesLB
->
SetTabs
(
aTabs
);
m_pSignaturesLB
->
SetTabs
(
aTabs
);
m_pSignaturesLB
->
InsertHeaderEntry
(
"
\t
"
+
get
<
FixedText
>
(
"signed"
)
->
GetText
()
+
"
\t
"
m_pSignaturesLB
->
InsertHeaderEntry
(
"
\t
"
+
get
<
FixedText
>
(
"signed"
)
->
GetText
()
+
"
\t
"
+
get
<
FixedText
>
(
"issued"
)
->
GetText
()
+
"
\t
"
+
get
<
FixedText
>
(
"date"
)
->
GetText
());
+
get
<
FixedText
>
(
"issued"
)
->
GetText
()
+
"
\t
"
+
get
<
FixedText
>
(
"date"
)
->
GetText
()
+
"
\t
"
+
get
<
FixedText
>
(
"description"
)
->
GetText
());
mbVerifySignatures
=
true
;
mbVerifySignatures
=
true
;
mbSignaturesChanged
=
false
;
mbSignaturesChanged
=
false
;
...
@@ -618,6 +620,7 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox()
...
@@ -618,6 +620,7 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox()
OUString
aSubject
;
OUString
aSubject
;
OUString
aIssuer
;
OUString
aIssuer
;
OUString
aDateTimeStr
;
OUString
aDateTimeStr
;
OUString
aDescription
;
bool
bSigValid
=
false
;
bool
bSigValid
=
false
;
bool
bCertValid
=
false
;
bool
bCertValid
=
false
;
...
@@ -641,6 +644,7 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox()
...
@@ -641,6 +644,7 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox()
aIssuer
=
XmlSec
::
GetContentPart
(
xCert
->
getIssuerName
()
);
aIssuer
=
XmlSec
::
GetContentPart
(
xCert
->
getIssuerName
()
);
// String with date and time information (#i20172#)
// String with date and time information (#i20172#)
aDateTimeStr
=
XmlSec
::
GetDateTimeString
(
rInfo
.
stDateTime
);
aDateTimeStr
=
XmlSec
::
GetDateTimeString
(
rInfo
.
stDateTime
);
aDescription
=
rInfo
.
ouDescription
;
}
}
bSigValid
=
(
rInfo
.
nStatus
==
::
com
::
sun
::
star
::
xml
::
crypto
::
SecurityOperationStatus_OPERATION_SUCCEEDED
);
bSigValid
=
(
rInfo
.
nStatus
==
::
com
::
sun
::
star
::
xml
::
crypto
::
SecurityOperationStatus_OPERATION_SUCCEEDED
);
...
@@ -687,6 +691,7 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox()
...
@@ -687,6 +691,7 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox()
m_pSignaturesLB
->
SetEntryText
(
aSubject
,
pEntry
,
1
);
m_pSignaturesLB
->
SetEntryText
(
aSubject
,
pEntry
,
1
);
m_pSignaturesLB
->
SetEntryText
(
aIssuer
,
pEntry
,
2
);
m_pSignaturesLB
->
SetEntryText
(
aIssuer
,
pEntry
,
2
);
m_pSignaturesLB
->
SetEntryText
(
aDateTimeStr
,
pEntry
,
3
);
m_pSignaturesLB
->
SetEntryText
(
aDateTimeStr
,
pEntry
,
3
);
m_pSignaturesLB
->
SetEntryText
(
aDescription
,
pEntry
,
4
);
pEntry
->
SetUserData
(
reinterpret_cast
<
void
*>
(
n
)
);
// missuse user data as index
pEntry
->
SetUserData
(
reinterpret_cast
<
void
*>
(
n
)
);
// missuse user data as index
}
}
}
}
...
...
xmlsecurity/uiconfig/ui/digitalsignaturesdialog.ui
Dosyayı görüntüle @
59269d02
...
@@ -192,6 +192,19 @@
...
@@ -192,6 +192,19 @@
<property
name=
"height"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</packing>
</child>
</child>
<child>
<object
class=
"GtkLabel"
id=
"description"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Description
</property>
</object>
<packing>
<property
name=
"left_attach"
>
3
</property>
<property
name=
"top_attach"
>
0
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
</object>
</object>
<packing>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"left_attach"
>
0
</property>
...
...
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