summaryrefslogtreecommitdiffstats
path: root/sc/inc/tabprotection.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-04-08 14:41:10 +0200
committerEike Rathke <erack@redhat.com>2014-04-08 14:44:27 +0200
commitf1ca1384707cb6c4fa240fdc4903bfb3ceaff889 (patch)
tree5ae3d43b52c35a3129cdc70045405cae54df4fe7 /sc/inc/tabprotection.hxx
parentread the defined password attributes (diff)
downloadcore-f1ca1384707cb6c4fa240fdc4903bfb3ceaff889.tar.gz
core-f1ca1384707cb6c4fa240fdc4903bfb3ceaff889.zip
also check if a newly read password protection applies to a range
Change-Id: Ibbf4fee2b87c82cdbd565681690a231fb06da66f
Diffstat (limited to 'sc/inc/tabprotection.hxx')
-rw-r--r--sc/inc/tabprotection.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/inc/tabprotection.hxx b/sc/inc/tabprotection.hxx
index b057ad08fb0f..9a4fef125739 100644
--- a/sc/inc/tabprotection.hxx
+++ b/sc/inc/tabprotection.hxx
@@ -133,6 +133,11 @@ struct ScEnhancedProtection
{
return !maSecurityDescriptor.empty() || !maSecurityDescriptorXML.isEmpty();
}
+
+ bool hasPassword() const
+ {
+ return mnPasswordVerifier != 0 || !maHashValue.isEmpty();
+ }
};
/** sheet protection state container