summaryrefslogtreecommitdiff
path: root/sw/source/uibase/inc/unotools.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-12-18 15:16:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-05-31 10:31:01 +0200
commit389491aedd659a3c4b24b9902b6cb54075874d3e (patch)
tree1c54ab5215e81e5cf6beedad5e0acdfe0542169d /sw/source/uibase/inc/unotools.hxx
parent6bd751f9f577f25b058fb8a5479c0de7552c3ffc (diff)
weld SwMultiTOXTabDialog
Change-Id: Ic1ae4cfe43bdf31d511e9ac0f65a821c53ab59eb Reviewed-on: https://gerrit.libreoffice.org/65432 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/uibase/inc/unotools.hxx')
-rw-r--r--sw/source/uibase/inc/unotools.hxx46
1 files changed, 46 insertions, 0 deletions
diff --git a/sw/source/uibase/inc/unotools.hxx b/sw/source/uibase/inc/unotools.hxx
index 9ea3edb99490..7f860fbb8f58 100644
--- a/sw/source/uibase/inc/unotools.hxx
+++ b/sw/source/uibase/inc/unotools.hxx
@@ -24,6 +24,8 @@
#include <vcl/fixed.hxx>
#include <vcl/layout.hxx>
#include <vcl/idle.hxx>
+#include <vcl/weld.hxx>
+#include <vcl/customweld.hxx>
#include "actctrl.hxx"
#include <com/sun/star/frame/XController.hpp>
#include <com/sun/star/text/XTextCursor.hpp>
@@ -101,6 +103,50 @@ public:
static void CreateErrorMessage();
};
+class SW_DLLPUBLIC OneExampleFrame : public weld::CustomWidgetController
+{
+ ScopedVclPtr<VirtualDevice> m_xVirDev;
+ css::uno::Reference< css::frame::XModel > m_xModel;
+ css::uno::Reference< css::frame::XController > m_xController;
+ css::uno::Reference< css::text::XTextCursor > m_xCursor;
+
+ Idle m_aLoadedIdle;
+ Link<OneExampleFrame&,void> m_aInitializedLink;
+
+ OUString m_sArgumentURL;
+
+ SwView* const m_pModuleView;
+
+ sal_uInt32 const m_nStyleFlags;
+
+ bool m_bIsInitialized;
+
+ DECL_DLLPRIVATE_LINK( TimeoutHdl, Timer*, void );
+ void PopupHdl(const OString& rId);
+
+ SAL_DLLPRIVATE void CreateControl();
+ SAL_DLLPRIVATE void DisposeControl();
+
+public:
+ OneExampleFrame(sal_uInt32 nStyleFlags,
+ const Link<OneExampleFrame&,void>* pInitalizedLink,
+ const OUString* pURL = nullptr);
+ virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override;
+ virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override;
+ virtual bool ContextMenu(const CommandEvent& rCEvt) override;
+ virtual ~OneExampleFrame() override;
+
+ css::uno::Reference< css::frame::XModel > & GetModel() {return m_xModel;}
+ css::uno::Reference< css::frame::XController > & GetController() {return m_xController;}
+ css::uno::Reference< css::text::XTextCursor > & GetTextCursor() {return m_xCursor;}
+
+ void ClearDocument();
+
+ bool IsInitialized() const {return m_bIsInitialized;}
+
+ bool CreatePopup(const Point& rPt);
+};
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */