summaryrefslogtreecommitdiffstats
path: root/sc/inc/tabprotection.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-03-20 10:16:50 +0100
committerEike Rathke <erack@redhat.com>2014-03-20 13:03:33 +0100
commit9cee6a45632623d3d7e5a574128940f96d8c926b (patch)
tree8a661ad692aa0c0cfc178233e73b196e6bf28932 /sc/inc/tabprotection.hxx
parentDocxAttributeOutput::EndStyles: avoid hardwired 4091 (diff)
downloadcore-9cee6a45632623d3d7e5a574128940f96d8c926b.tar.gz
core-9cee6a45632623d3d7e5a574128940f96d8c926b.zip
added ScEnhancedProtection to ScTableProtection
Change-Id: Id6a444bd01873e30ea1522aaf3b951f4d5adc261
Diffstat (limited to 'sc/inc/tabprotection.hxx')
-rw-r--r--sc/inc/tabprotection.hxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/sc/inc/tabprotection.hxx b/sc/inc/tabprotection.hxx
index 7703ffb5676e..a32f50f4828f 100644
--- a/sc/inc/tabprotection.hxx
+++ b/sc/inc/tabprotection.hxx
@@ -24,6 +24,7 @@
#include <com/sun/star/uno/Sequence.hxx>
#include "global.hxx"
+#include "rangelst.hxx"
#include <boost/shared_ptr.hpp>
class ScDocument;
@@ -110,6 +111,19 @@ private:
::boost::shared_ptr<ScTableProtectionImpl> mpImpl;
};
+/** Container for the Excel EnhancedProtection feature.
+ */
+struct ScEnhancedProtection
+{
+ ScRangeListRef maRangeList;
+ sal_uInt32 mnAreserved;
+ sal_uInt32 mnPasswordVerifier;
+ OUString maTitle;
+ ::std::vector< sal_uInt8 > maSecurityDescriptor; // raw data
+
+ ScEnhancedProtection() : mnAreserved(0), mnPasswordVerifier(0) {}
+};
+
/** sheet protection state container
*
* This class stores sheet's protection state: 1) whether the protection
@@ -163,6 +177,11 @@ public:
bool isOptionEnabled(Option eOption) const;
void setOption(Option eOption, bool bEnabled);
+ void setEnhancedProtection( const ::std::vector< ScEnhancedProtection > & rProt );
+ const ::std::vector< ScEnhancedProtection > & getEnhancedProtection() const;
+ bool updateReference( UpdateRefMode, ScDocument*, const ScRange& rWhere, SCsCOL nDx, SCsROW nDy, SCsTAB nDz );
+
+
private:
::boost::shared_ptr<ScTableProtectionImpl> mpImpl;
};