summaryrefslogtreecommitdiff
path: root/sw/source/ui/inc/stmenu.hxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-06-27 12:24:53 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-06-27 12:24:53 +0000
commitb7d0b57274545a49aeddc18f11a1d311c8fe79b2 (patch)
treeb7f391dfd7eb24610d1d7828bfcad8746206d136 /sw/source/ui/inc/stmenu.hxx
parentea273dc62d87cf1905b1212d3a87d14fbce8a724 (diff)
INTEGRATION: CWS smarttags3 (1.2.70); FILE MERGED
2007/05/12 06:37:18 fme 1.2.70.3: #i75130# New smart tag API 2007/04/16 12:13:12 fme 1.2.70.2: #i75130# New Smart Tag API 2007/03/05 13:55:26 fme 1.2.70.1: #i75130# New API and implementation of smart tags
Diffstat (limited to 'sw/source/ui/inc/stmenu.hxx')
-rw-r--r--sw/source/ui/inc/stmenu.hxx56
1 files changed, 28 insertions, 28 deletions
diff --git a/sw/source/ui/inc/stmenu.hxx b/sw/source/ui/inc/stmenu.hxx
index 14adc0ce04..bc353175aa 100644
--- a/sw/source/ui/inc/stmenu.hxx
+++ b/sw/source/ui/inc/stmenu.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: stmenu.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: hr $ $Date: 2007-01-02 16:53:20 $
+ * last change: $Author: hr $ $Date: 2007-06-27 13:24:53 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -45,35 +45,20 @@
#endif
#include <vector>
-#include <map>
-#ifndef _STRING_HXX //autogen
-#include <tools/string.hxx>
+#ifndef _COM_SUN_STAR_SMARTTAGS_XSMARTTAGACTION_HPP_
+#include <com/sun/star/smarttags/XSmartTagAction.hpp>
#endif
-#ifndef _RTL_USTRING_HXX_
-#include <rtl/ustring.hxx>
-#endif
-
-#ifndef _SMARTTAGMGR_HXX
-#include "SmartTagMgr.hxx"
+#ifndef _COM_SUN_STAR_SMARTTAGS_XSTRINGKEYMAP_HPP_
+#include <com/sun/star/container/XStringKeyMap.hpp>
#endif
#ifndef _COM_SUN_STAR_TEXT_XTEXTRANGE_HPP_
#include <com/sun/star/text/XTextRange.hpp>
#endif
-#ifndef _VIEW_HXX
-#include <view.hxx>
-#endif
-
-using rtl::OUString;
-using rtl::OString;
-using com::sun::star::uno::Reference;
-using com::sun::star::text::XTextRange;
-
-class SwWrtShell;
-class SvStringsDtor;
+class SwView;
/** Class: SwSmartTagPopup
@@ -83,16 +68,31 @@ class SvStringsDtor;
The menu is built in the constructor and the actions for each
menu entry are invoked in the excute-method.
*/
+
class SwSmartTagPopup : public PopupMenu
{
- SwView* pSwView;
- sal_Int32 nMaxVerbCount;
- std::vector <ActionReference> aActionRefs;
- Reference<XTextRange> xTextRange;
+ SwView* mpSwView;
+ com::sun::star::uno::Reference< com::sun::star::text::XTextRange > mxTextRange;
+
+ struct InvokeAction
+ {
+ com::sun::star::uno::Reference< com::sun::star::smarttags::XSmartTagAction > mxAction;
+ com::sun::star::uno::Reference< com::sun::star::container::XStringKeyMap > mxSmartTagProperties;
+ sal_uInt32 mnActionID;
+ InvokeAction( com::sun::star::uno::Reference< com::sun::star::smarttags::XSmartTagAction > xAction,
+ com::sun::star::uno::Reference< com::sun::star::container::XStringKeyMap > xSmartTagProperties,
+ sal_uInt32 nActionID ) : mxAction( xAction ), mxSmartTagProperties( xSmartTagProperties ), mnActionID( nActionID ) {}
+ };
+
+ std::vector< InvokeAction > maInvokeActions;
public:
- SwSmartTagPopup( SwView* _pSwView, std::vector <ActionReference> _aActionRefs, Reference<XTextRange> _xTextRange );
- sal_uInt16 Execute( Window* pWin, const Rectangle& rPopupPos );
+ SwSmartTagPopup( SwView* _pSwView,
+ ::com::sun::star::uno::Sequence< rtl::OUString >& rSmartTagTypes,
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::container::XStringKeyMap > >& rStringKeyMaps,
+ ::com::sun::star::uno::Reference< com::sun::star::text::XTextRange > xTextRange );
+
+ sal_uInt16 Execute( Window* pWin, const Rectangle& rPopupPos );
};
#endif