diff options
Diffstat (limited to 'sw/source/uibase/dochdl/swdtflvr.cxx')
-rw-r--r-- | sw/source/uibase/dochdl/swdtflvr.cxx | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx index f4b8bf904532..8a192441b769 100644 --- a/sw/source/uibase/dochdl/swdtflvr.cxx +++ b/sw/source/uibase/dochdl/swdtflvr.cxx @@ -138,6 +138,8 @@ #include <iodetect.hxx> #include <unotextrange.hxx> #include <unoframe.hxx> +#include <vcl/uitest/logger.hxx> +#include <vcl/uitest/eventdescription.hxx> #include <vcl/GraphicNativeTransform.hxx> #include <vcl/GraphicNativeMetadata.hxx> @@ -161,6 +163,20 @@ using namespace ::svx; using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::datatransfer; +namespace { + +void collectUIInformation(const OUString action,const OUString aParameters) +{ + EventDescription aDescription; + aDescription.aAction = action; + aDescription.aParameters = {{"parameters",aParameters}}; + aDescription.aID = "writer_edit"; + aDescription.aKeyWord = "SwEditWinUIObject"; + aDescription.aParent = "MainWindow"; + UITestLogger::getInstance().logEvent(aDescription); +} + +} #define DDE_TXT_ENCODING osl_getThreadTextEncoding() @@ -830,6 +846,7 @@ int SwTransferable::Cut() int nRet = Copy( true ); if( nRet ) DeleteSelection(); + collectUIInformation("CUT","parameter"); return nRet; } @@ -1094,6 +1111,11 @@ int SwTransferable::Copy( bool bIsCut ) { CopyToClipboard( &m_pWrtShell->GetView().GetEditWin() ); } + + if( !bIsCut ){ + collectUIInformation("COPY","parameter"); + } + return nRet; } @@ -1411,6 +1433,8 @@ bool SwTransferable::Paste(SwWrtShell& rSh, TransferableDataHelper& rData, RndSt } } + collectUIInformation("PASTE","parameter"); + return EXCHG_INOUT_ACTION_NONE != nAction && SwTransferable::PasteData( rData, rSh, nAction, nActionFlags, nFormat, nDestination, false, false, nullptr, 0, false, nAnchorType, bIgnoreComments, &aPasteContext ); |