summaryrefslogtreecommitdiff
path: root/dw/types.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/types.cc')
-rw-r--r--dw/types.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/dw/types.cc b/dw/types.cc
index 074cb352..dc243ad7 100644
--- a/dw/types.cc
+++ b/dw/types.cc
@@ -268,5 +268,13 @@ void Region::addRectangle (Rectangle *rPointer)
rectangleList->append (r);
}
+Content::Type Content::maskForSelection (bool followReferences)
+{
+ Content::Type widgetMask = (Content::Type)
+ (Content::WIDGET_IN_FLOW |
+ (followReferences ? Content::WIDGET_OOF_REF : Content::WIDGET_OOF_CONT));
+ return (Content::Type)(Content::SELECTION_CONTENT | widgetMask);
+}
+
} // namespace dw
} // namespace core