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
3974d6a2
Kaydet (Commit)
3974d6a2
authored
Nis 08, 2014
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
read the defined password attributes
Change-Id: I67be85bdcfb5c03349daeff69fbb09291ce4a8e3
üst
1c772b16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
tabprotection.hxx
sc/inc/tabprotection.hxx
+6
-1
worksheetsettings.cxx
sc/source/filter/oox/worksheetsettings.cxx
+8
-2
No files found.
sc/inc/tabprotection.hxx
Dosyayı görüntüle @
3974d6a2
...
...
@@ -121,8 +121,13 @@ struct ScEnhancedProtection
OUString
maTitle
;
::
std
::
vector
<
sal_uInt8
>
maSecurityDescriptor
;
// imported as raw BIFF data
OUString
maSecurityDescriptorXML
;
// imported from OOXML
// OOXML password definitions
OUString
maAlgorithmName
;
OUString
maHashValue
;
OUString
maSaltValue
;
sal_uInt32
mnSpinCount
;
ScEnhancedProtection
()
:
mnAreserved
(
0
),
mnPasswordVerifier
(
0
)
{}
ScEnhancedProtection
()
:
mnAreserved
(
0
),
mnPasswordVerifier
(
0
)
,
mnSpinCount
(
0
)
{}
bool
hasSecurityDescriptor
()
const
{
...
...
sc/source/filter/oox/worksheetsettings.cxx
Dosyayı görüntüle @
3974d6a2
...
...
@@ -143,9 +143,15 @@ void WorksheetSettings::importProtectedRange( const AttributeList& rAttribs )
aProt
.
maSecurityDescriptorXML
=
rAttribs
.
getString
(
XML_securityDescriptor
,
OUString
());
/* XXX ECMA-376/OOXML or ISO/IEC 29500 do not even mention a 'password'
* attribute here (or anywhere else), but this is what Excel2013 writes,
* similar to BIFF. OOXML XMLschema and ISO/IEC 29500 instead define
* 'algorithmName', 'hashValue', 'saltValue' and 'spinCount'. */
* similar to BIFF, if the original file was a BIFF file. OOXML XMLschema
* and ISO/IEC 29500 instead define 'algorithmName', 'hashValue',
* 'saltValue' and 'spinCount' that are written if the protection was newly
* created. */
aProt
.
mnPasswordVerifier
=
rAttribs
.
getIntegerHex
(
XML_password
,
0
);
aProt
.
maAlgorithmName
=
rAttribs
.
getString
(
XML_algorithmName
,
OUString
());
aProt
.
maHashValue
=
rAttribs
.
getString
(
XML_hashValue
,
OUString
());
aProt
.
maSaltValue
=
rAttribs
.
getString
(
XML_saltValue
,
OUString
());
aProt
.
mnSpinCount
=
rAttribs
.
getUnsigned
(
XML_spinCount
,
0
);
OUString
aRefs
(
rAttribs
.
getString
(
XML_sqref
,
OUString
()));
if
(
!
aRefs
.
isEmpty
())
{
...
...
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