summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorGulsah Kose <gulsah.1004@gmail.com>2017-05-06 04:47:46 +0300
committerEike Rathke <erack@redhat.com>2017-06-12 13:11:14 +0200
commited715a460254e4d72c78ff6eb244a9fc6692e2a6 (patch)
tree0bbfea1dd708eb5a8a13daeeee089eda8a02db62 /sc/inc
parent7260bb7160fe58ac63b6b5dd9a322805b1eacab4 (diff)
tdf#95883 Select Unprotected Cells in Calc
Change-Id: I20a71f66154675de9c2c47ff32e859c899fe9103 Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/37424 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/column.hxx1
-rw-r--r--sc/inc/document.hxx1
-rw-r--r--sc/inc/sc.hrc3
-rw-r--r--sc/inc/table.hxx1
4 files changed, 5 insertions, 1 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx
index 16a2733495b7..e4700e9e6e48 100644
--- a/sc/inc/column.hxx
+++ b/sc/inc/column.hxx
@@ -250,6 +250,7 @@ public:
bool TestInsertCol( SCROW nStartRow, SCROW nEndRow) const;
bool TestInsertRow( SCROW nStartRow, SCSIZE nSize ) const;
void InsertRow( SCROW nStartRow, SCSIZE nSize );
+ void GetUnprotectedCells(SCROW nStartRow, SCROW nEndRow, ScRangeList& rRangeList ) const;
/**
* @param nStartRow top row position
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 806a2338f289..57f06cb89fad 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -1813,6 +1813,7 @@ public:
SC_DLLPUBLIC ScPatternAttr* GetDefPattern() const;
SC_DLLPUBLIC ScDocumentPool* GetPool();
SC_DLLPUBLIC ScStyleSheetPool* GetStyleSheetPool() const;
+ void GetUnprotectedCells( ScRangeList& rRange, SCTAB nTab ) const;
// PageStyle:
SC_DLLPUBLIC const OUString GetPageStyle( SCTAB nTab ) const;
diff --git a/sc/inc/sc.hrc b/sc/inc/sc.hrc
index 2d72a4a09a76..a90facc28466 100644
--- a/sc/inc/sc.hrc
+++ b/sc/inc/sc.hrc
@@ -628,7 +628,8 @@
#define FID_SHOW_ALL_NOTES (SID_NEW_SLOTS+102)
#define FID_HIDE_ALL_NOTES (SID_NEW_SLOTS+103)
#define FID_DELETE_ALL_NOTES (SID_NEW_SLOTS+104)
-#define SID_SCATTR_CELLPROTECTION (SID_NEW_SLOTS+105)
+#define SID_SCATTR_CELLPROTECTION (SID_NEW_SLOTS+105)
+#define SID_SELECT_UNPROTECTED_CELLS (SID_NEW_SLOTS+106)
// idl parameter
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx
index 8b096b1fadba..c936a38db0f4 100644
--- a/sc/inc/table.hxx
+++ b/sc/inc/table.hxx
@@ -350,6 +350,7 @@ public:
bool IsProtected() const;
void SetProtection(const ScTableProtection* pProtect);
ScTableProtection* GetProtection();
+ void GetUnprotectedCells( ScRangeList& rRangeList ) const;
bool IsEditActionAllowed( sc::ColRowEditAction eAction, SCCOLROW nStart, SCCOLROW nEnd ) const;