diff options
Diffstat (limited to 'sc/source/ui/view/viewdata.cxx')
-rw-r--r-- | sc/source/ui/view/viewdata.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx index a87dc2dd3ed8..56865508373a 100644 --- a/sc/source/ui/view/viewdata.cxx +++ b/sc/source/ui/view/viewdata.cxx @@ -60,6 +60,9 @@ #include <comphelper/processfactory.hxx> #include <comphelper/string.hxx> +#include <vcl/uitest/logger.hxx> +#include <vcl/uitest/eventdescription.hxx> + #include <com/sun/star/container/XNameContainer.hpp> #include <com/sun/star/document/NamedPropertyValues.hpp> @@ -86,6 +89,21 @@ void lcl_LOKRemoveWindow(ScTabViewShell* pTabViewShell, ScSplitPos eWhich) } // anonymous namespace +namespace { + +void collectUIInformation(const std::map<OUString, OUString>& aParameters,const OUString action) +{ + EventDescription aDescription; + aDescription.aID = "grid_window"; + aDescription.aAction = action; + aDescription.aParameters = aParameters; + aDescription.aParent = "MainWindow"; + aDescription.aKeyWord = "ScGridWinUIObject"; + + UITestLogger::getInstance().logEvent(aDescription); +} +} + const ScPositionHelper::index_type ScPositionHelper::null; // definition bool ScPositionHelper::Comp::operator() (const value_type& rValue1, const value_type& rValue2) const @@ -839,6 +857,7 @@ void ScViewData::InsertTab( SCTAB nTab ) UpdateCurrentTab(); mpMarkData->InsertTab( nTab ); + collectUIInformation({{}},"InsertTab"); } void ScViewData::InsertTabs( SCTAB nTab, SCTAB nNewSheets ) |