summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-05-19 20:46:26 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-18 17:02:23 +0200
commit20f74cf32bef511fd99f6d4689a5425a9145ebf1 (patch)
treed2ec638b53a0b4a4ee0280b9173129099e9bb90c
parent2d92504b2d8ff04b2fd8cea4fe4897cfbf82621f (diff)
uitest: add way to deselect OLE object
Change-Id: I34515de0b149147e40c23df6fef1339d0b69d469
-rw-r--r--sc/source/ui/uitest/uiobject.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/sc/source/ui/uitest/uiobject.cxx b/sc/source/ui/uitest/uiobject.cxx
index 4405fd9afc00..f46ce5b85c89 100644
--- a/sc/source/ui/uitest/uiobject.cxx
+++ b/sc/source/ui/uitest/uiobject.cxx
@@ -133,6 +133,17 @@ void ScGridWinUIObject::execute(const OUString& rAction,
SAL_WARN("sc.uitest", "unknown selection method");
}
}
+ else if (rAction == "DESELECT")
+ {
+ if (rParameters.find("OBJECT") != rParameters.end())
+ {
+ ScDrawView* pDrawView = getDrawView();
+ pDrawView->UnmarkAll();
+
+ ScTabViewShell* pViewShell = getViewShell();
+ pViewShell->SetDrawShell(false);
+ }
+ }
else if (rAction == "ACTIVATE")
{
ScDrawView* pDrawView = getDrawView();