summaryrefslogtreecommitdiff
path: root/sw/source/uibase/wrtsh/wrtsh1.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/wrtsh/wrtsh1.cxx')
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx
index cd5572e44d6a..80d263fb4e69 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -1834,6 +1834,21 @@ SelectionType SwWrtShell::GetSelectionType() const
return nCnt;
}
+bool SwWrtShell::IsSectionEditableInReadonly() const
+{
+ bool bIsEditableSect = false;
+ SwTextNode* pTextNode = GetCursor()->GetPointNode().GetTextNode();
+ if (pTextNode)
+ {
+ if (SwSectionNode* pSectNode = pTextNode->FindSectionNode())
+ {
+ bIsEditableSect = pSectNode->GetSection().IsEditInReadonly();
+ }
+ }
+
+ return bIsEditableSect;
+}
+
// Find the text collection with the name rCollname
// Returns: Pointer at the collection or 0, if no
// text collection with this name exists, or