summaryrefslogtreecommitdiff
path: root/dw/types.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2012-10-08 11:35:59 +0200
committerSebastian Geerken <devnull@localhost>2012-10-08 11:35:59 +0200
commit7fee878b09701ac3d0f8cb8e8fabc8afff7bcf98 (patch)
tree7727765e63a78e05c2abc94dfd81f3d793e25462 /dw/types.cc
parentd3c0fe575e06cfce5b595ba615e885fd189cd75a (diff)
Now, also selection works (in a temporal way).
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