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
b4c8346a
Kaydet (Commit)
b4c8346a
authored
Eyl 24, 2012
tarafından
Ivan Timofeev
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
String -> OUString
Change-Id: I896ce861e55d98a45bd4e6b4a65607f25489557e
üst
003bb87f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
21 deletions
+19
-21
macrosecurity.hxx
xmlsecurity/inc/xmlsecurity/macrosecurity.hxx
+1
-1
certificatechooser.cxx
xmlsecurity/source/dialogs/certificatechooser.cxx
+7
-7
digitalsignaturesdialog.cxx
xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
+6
-8
macrosecurity.cxx
xmlsecurity/source/dialogs/macrosecurity.cxx
+5
-5
No files found.
xmlsecurity/inc/xmlsecurity/macrosecurity.hxx
Dosyayı görüntüle @
b4c8346a
...
@@ -50,7 +50,7 @@ public:
...
@@ -50,7 +50,7 @@ public:
~
ReadOnlyImage
();
~
ReadOnlyImage
();
virtual
void
RequestHelp
(
const
HelpEvent
&
rHEvt
);
virtual
void
RequestHelp
(
const
HelpEvent
&
rHEvt
);
static
const
String
&
GetHelpTip
();
static
const
OU
String
&
GetHelpTip
();
};
};
class
MacroSecurity
:
public
TabDialog
class
MacroSecurity
:
public
TabDialog
...
...
xmlsecurity/source/dialogs/certificatechooser.cxx
Dosyayı görüntüle @
b4c8346a
...
@@ -67,7 +67,7 @@ CertificateChooser::CertificateChooser( Window* _pParent, uno::Reference< uno::X
...
@@ -67,7 +67,7 @@ CertificateChooser::CertificateChooser( Window* _pParent, uno::Reference< uno::X
{
{
static
long
nTabs
[]
=
{
3
,
0
,
30
*
CS_LB_WIDTH
/
100
,
60
*
CS_LB_WIDTH
/
100
};
static
long
nTabs
[]
=
{
3
,
0
,
30
*
CS_LB_WIDTH
/
100
,
60
*
CS_LB_WIDTH
/
100
};
maCertLB
.
SetTabs
(
&
nTabs
[
0
]
);
maCertLB
.
SetTabs
(
&
nTabs
[
0
]
);
maCertLB
.
InsertHeaderEntry
(
String
(
XMLSEC_RES
(
STR_HEADERBAR
)
)
);
maCertLB
.
InsertHeaderEntry
(
XMLSEC_RES
(
STR_HEADERBAR
)
);
maCertLB
.
SetSelectHdl
(
LINK
(
this
,
CertificateChooser
,
CertificateHighlightHdl
)
);
maCertLB
.
SetSelectHdl
(
LINK
(
this
,
CertificateChooser
,
CertificateHighlightHdl
)
);
maCertLB
.
SetDoubleClickHdl
(
LINK
(
this
,
CertificateChooser
,
CertificateSelectHdl
)
);
maCertLB
.
SetDoubleClickHdl
(
LINK
(
this
,
CertificateChooser
,
CertificateSelectHdl
)
);
maViewBtn
.
SetClickHdl
(
LINK
(
this
,
CertificateChooser
,
ViewButtonHdl
)
);
maViewBtn
.
SetClickHdl
(
LINK
(
this
,
CertificateChooser
,
ViewButtonHdl
)
);
...
@@ -172,12 +172,12 @@ void CertificateChooser::ImplInitialize()
...
@@ -172,12 +172,12 @@ void CertificateChooser::ImplInitialize()
// fill list of certificates; the first entry will be selected
// fill list of certificates; the first entry will be selected
for
(
sal_Int32
nC
=
0
;
nC
<
nCertificates
;
++
nC
)
for
(
sal_Int32
nC
=
0
;
nC
<
nCertificates
;
++
nC
)
{
{
String
sEntry
(
XmlSec
::
GetContentPart
(
maCerts
[
nC
]
->
getSubjectName
()
)
);
OUStringBuffer
sEntry
(
XmlSec
::
GetContentPart
(
maCerts
[
nC
]
->
getSubjectName
()
)
);
sEntry
+=
'\t'
;
sEntry
.
append
(
'\t'
)
;
sEntry
+=
XmlSec
::
GetContentPart
(
maCerts
[
nC
]
->
getIssuerName
(
)
);
sEntry
.
append
(
XmlSec
::
GetContentPart
(
maCerts
[
nC
]
->
getIssuerName
()
)
);
sEntry
+=
'\t'
;
sEntry
.
append
(
'\t'
)
;
sEntry
+=
XmlSec
::
GetDateString
(
maCerts
[
nC
]
->
getNotValidAfter
(
)
);
sEntry
.
append
(
XmlSec
::
GetDateString
(
maCerts
[
nC
]
->
getNotValidAfter
()
)
);
SvLBoxEntry
*
pEntry
=
maCertLB
.
InsertEntry
(
sEntry
);
SvLBoxEntry
*
pEntry
=
maCertLB
.
InsertEntry
(
sEntry
.
makeStringAndClear
()
);
pEntry
->
SetUserData
(
(
void
*
)(
sal_IntPtr
)
nC
);
// missuse user data as index
pEntry
->
SetUserData
(
(
void
*
)(
sal_IntPtr
)
nC
);
// missuse user data as index
}
}
...
...
xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
Dosyayı görüntüle @
b4c8346a
...
@@ -69,7 +69,6 @@ using namespace ::com::sun::star::security;
...
@@ -69,7 +69,6 @@ using namespace ::com::sun::star::security;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
;
namespace
css
=
::
com
::
sun
::
star
;
namespace
css
=
::
com
::
sun
::
star
;
using
::
rtl
::
OUString
;
namespace
namespace
{
{
...
@@ -208,9 +207,9 @@ DigitalSignaturesDialog::DigitalSignaturesDialog(
...
@@ -208,9 +207,9 @@ DigitalSignaturesDialog::DigitalSignaturesDialog(
const
long
nControlWidth
=
aControlSize
.
Width
();
const
long
nControlWidth
=
aControlSize
.
Width
();
static
long
nTabs
[]
=
{
4
,
0
,
6
*
nControlWidth
/
100
,
36
*
nControlWidth
/
100
,
74
*
nControlWidth
/
100
};
static
long
nTabs
[]
=
{
4
,
0
,
6
*
nControlWidth
/
100
,
36
*
nControlWidth
/
100
,
74
*
nControlWidth
/
100
};
maSignaturesLB
.
SetTabs
(
&
nTabs
[
0
]
);
maSignaturesLB
.
SetTabs
(
&
nTabs
[
0
]
);
maSignaturesLB
.
InsertHeaderEntry
(
String
(
XMLSEC_RES
(
STR_HEADERBAR
)
)
);
maSignaturesLB
.
InsertHeaderEntry
(
XMLSEC_RES
(
STR_HEADERBAR
)
);
maSigsNotvalidatedFI
.
SetText
(
String
(
XMLSEC_RES
(
STR_NO_INFO_TO_VERIFY
)
)
);
maSigsNotvalidatedFI
.
SetText
(
XMLSEC_RES
(
STR_NO_INFO_TO_VERIFY
)
);
FreeResource
();
FreeResource
();
...
@@ -577,7 +576,6 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox()
...
@@ -577,7 +576,6 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox()
uno
::
Reference
<
::
com
::
sun
::
star
::
security
::
XCertificate
>
xCert
;
uno
::
Reference
<
::
com
::
sun
::
star
::
security
::
XCertificate
>
xCert
;
String
aNullStr
;
size_t
nInfos
=
maCurrentSignatureInformations
.
size
();
size_t
nInfos
=
maCurrentSignatureInformations
.
size
();
size_t
nValidSigs
=
0
,
nValidCerts
=
0
;
size_t
nValidSigs
=
0
,
nValidCerts
=
0
;
bool
bAllNewSignatures
=
true
;
bool
bAllNewSignatures
=
true
;
...
@@ -613,9 +611,9 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox()
...
@@ -613,9 +611,9 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox()
DBG_ASSERT
(
xCert
.
is
(),
"Certificate not found and can't be created!"
);
DBG_ASSERT
(
xCert
.
is
(),
"Certificate not found and can't be created!"
);
String
aSubject
;
OUString
aSubject
;
String
aIssuer
;
OUString
aIssuer
;
String
aDateTimeStr
;
OUString
aDateTimeStr
;
bool
bSigValid
=
false
;
bool
bSigValid
=
false
;
bool
bCertValid
=
false
;
bool
bCertValid
=
false
;
...
@@ -681,7 +679,7 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox()
...
@@ -681,7 +679,7 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox()
aImage
=
maSigsValidImg
.
GetImage
();
aImage
=
maSigsValidImg
.
GetImage
();
}
}
SvLBoxEntry
*
pEntry
=
maSignaturesLB
.
InsertEntry
(
aNullStr
,
aImage
,
aImage
);
SvLBoxEntry
*
pEntry
=
maSignaturesLB
.
InsertEntry
(
OUString
()
,
aImage
,
aImage
);
maSignaturesLB
.
SetEntryText
(
aSubject
,
pEntry
,
1
);
maSignaturesLB
.
SetEntryText
(
aSubject
,
pEntry
,
1
);
maSignaturesLB
.
SetEntryText
(
aIssuer
,
pEntry
,
2
);
maSignaturesLB
.
SetEntryText
(
aIssuer
,
pEntry
,
2
);
maSignaturesLB
.
SetEntryText
(
aDateTimeStr
,
pEntry
,
3
);
maSignaturesLB
.
SetEntryText
(
aDateTimeStr
,
pEntry
,
3
);
...
...
xmlsecurity/source/dialogs/macrosecurity.cxx
Dosyayı görüntüle @
b4c8346a
...
@@ -245,7 +245,7 @@ IMPL_LINK_NOARG(MacroSecurityTrustedSourcesTP, AddLocPBHdl)
...
@@ -245,7 +245,7 @@ IMPL_LINK_NOARG(MacroSecurityTrustedSourcesTP, AddLocPBHdl)
::
rtl
::
OUString
aSystemFileURL
=
(
aNewObj
.
GetProtocol
()
!=
INET_PROT_NOT_VALID
)
?
::
rtl
::
OUString
aSystemFileURL
=
(
aNewObj
.
GetProtocol
()
!=
INET_PROT_NOT_VALID
)
?
aPathStr
:
aNewObj
.
getFSysPath
(
INetURLObject
::
FSYS_DETECT
);
aPathStr
:
aNewObj
.
getFSysPath
(
INetURLObject
::
FSYS_DETECT
);
String
aNewPathStr
(
aSystemFileURL
);
OU
String
aNewPathStr
(
aSystemFileURL
);
if
(
osl
::
FileBase
::
getSystemPathFromFileURL
(
aSystemFileURL
,
aSystemFileURL
)
==
osl
::
FileBase
::
E_None
)
if
(
osl
::
FileBase
::
getSystemPathFromFileURL
(
aSystemFileURL
,
aSystemFileURL
)
==
osl
::
FileBase
::
E_None
)
aNewPathStr
=
aSystemFileURL
;
aNewPathStr
=
aSystemFileURL
;
...
@@ -340,7 +340,7 @@ MacroSecurityTrustedSourcesTP::MacroSecurityTrustedSourcesTP( Window* _pParent,
...
@@ -340,7 +340,7 @@ MacroSecurityTrustedSourcesTP::MacroSecurityTrustedSourcesTP( Window* _pParent,
{
{
static
long
nTabs
[]
=
{
3
,
0
,
35
*
CS_LB_WIDTH
/
100
,
70
*
CS_LB_WIDTH
/
100
};
static
long
nTabs
[]
=
{
3
,
0
,
35
*
CS_LB_WIDTH
/
100
,
70
*
CS_LB_WIDTH
/
100
};
maTrustCertLB
.
SetTabs
(
&
nTabs
[
0
]
);
maTrustCertLB
.
SetTabs
(
&
nTabs
[
0
]
);
maTrustCertLB
.
InsertHeaderEntry
(
String
(
XMLSEC_RES
(
STR_HEADERBAR
)
)
);
maTrustCertLB
.
InsertHeaderEntry
(
XMLSEC_RES
(
STR_HEADERBAR
)
);
FreeResource
();
FreeResource
();
...
@@ -425,7 +425,7 @@ void ReadOnlyImage::RequestHelp( const HelpEvent& rHEvt )
...
@@ -425,7 +425,7 @@ void ReadOnlyImage::RequestHelp( const HelpEvent& rHEvt )
Rectangle
aScreenRect
(
OutputToScreenPixel
(
aLogicPix
.
TopLeft
()
),
Rectangle
aScreenRect
(
OutputToScreenPixel
(
aLogicPix
.
TopLeft
()
),
OutputToScreenPixel
(
aLogicPix
.
BottomRight
()
)
);
OutputToScreenPixel
(
aLogicPix
.
BottomRight
()
)
);
String
aStr
(
ReadOnlyImage
::
GetHelpTip
());
OU
String
aStr
(
ReadOnlyImage
::
GetHelpTip
());
if
(
Help
::
IsBalloonHelpEnabled
()
)
if
(
Help
::
IsBalloonHelpEnabled
()
)
Help
::
ShowBalloon
(
this
,
rHEvt
.
GetMousePosPixel
(),
aScreenRect
,
Help
::
ShowBalloon
(
this
,
rHEvt
.
GetMousePosPixel
(),
aScreenRect
,
aStr
);
aStr
);
...
@@ -436,9 +436,9 @@ void ReadOnlyImage::RequestHelp( const HelpEvent& rHEvt )
...
@@ -436,9 +436,9 @@ void ReadOnlyImage::RequestHelp( const HelpEvent& rHEvt )
Window
::
RequestHelp
(
rHEvt
);
Window
::
RequestHelp
(
rHEvt
);
}
}
const
String
&
ReadOnlyImage
::
GetHelpTip
()
const
OU
String
&
ReadOnlyImage
::
GetHelpTip
()
{
{
static
String
aStr
(
XMLSEC_RES
(
RID_XMLSECTP_READONLY_CONFIG_TIP
));
static
OUString
aStr
(
XMLSEC_RES
(
RID_XMLSECTP_READONLY_CONFIG_TIP
));
return
aStr
;
return
aStr
;
}
}
...
...
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