summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/docfunc.hxx
diff options
context:
space:
mode:
authorAnshu <anshukhare50@gmail.com>2020-12-31 23:13:07 +0530
committerMike Kaganski <mike.kaganski@collabora.com>2021-01-05 17:12:09 +0100
commit5c97d7f490f82152ff42bf61f5a4b270f0141ba2 (patch)
treee9c6cdb8ed5f698b224f86ed663269fc9163319b /sc/source/ui/inc/docfunc.hxx
parent007a57b663dca527f3e94bb53c2886e9bb43ccb6 (diff)
tdf#139339 : Unify protect/unprotect cases for document protection
Change-Id: I4bd3851d50a6215fef1f3ab722102adf6f44f10b Restored accidently missed lines for document protection in https: //gerrit.libreoffice.org/c/core/+/107041 Change-Id: I4bd3851d50a6215fef1f3ab722102adf6f44f10b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108541 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/source/ui/inc/docfunc.hxx')
-rw-r--r--sc/source/ui/inc/docfunc.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/inc/docfunc.hxx b/sc/source/ui/inc/docfunc.hxx
index f7b518ef7f35..411abc10496e 100644
--- a/sc/source/ui/inc/docfunc.hxx
+++ b/sc/source/ui/inc/docfunc.hxx
@@ -41,6 +41,7 @@ class ScFormulaCell;
class ScTokenArray;
struct ScTabOpParam;
class ScTableProtection;
+class ScDocProtection;
struct ScCellMergeOption;
class ScConditionalFormat;
class ScConditionalFormatList;
@@ -232,6 +233,9 @@ public:
void SetConditionalFormatList( ScConditionalFormatList* pList, SCTAB nTab );
void ConvertFormulaToValue( const ScRange& rRange, bool bInteraction );
+
+private:
+ void ProtectDocument(const ScDocProtection& rProtect);
};
class ScDocFuncDirect : public ScDocFunc