23#include <com/sun/star/lang/XEventListener.hpp>
24#include <com/sun/star/frame/Frame.hpp>
25#include <com/sun/star/frame/FrameSearchFlag.hpp>
36 :
public cppu::WeakImplHelper<lang::XEventListener>
39 css::uno::Reference<css::frame::XFrame2>
m_xFrame;
41 virtual void SAL_CALL
disposing(
const lang::EventObject& )
override
56 m_xFrame->setComponent(
nullptr,
nullptr);
64 :
SfxDialogController(pParent,
"modules/swriter/ui/tablepreviewdialog.ui",
"TablePreviewDialog")
65 , m_xDescriptionFI(m_xBuilder->weld_label(
"description"))
66 , m_xBeamerWIN(m_xBuilder->weld_container(
"beamer"))
72 auto pValue = std::find_if(rValues.begin(), rValues.end(),
73 [](
const beans::PropertyValue& rValue) { return rValue.Name ==
"Command"; });
74 if (pValue != rValues.end())
78 pValue->Value >>= sTemp;
82 css::uno::Reference<css::frame::XFrame2>
xFrame;
89 catch (uno::Exception
const &)
100 aURL.Complete =
".component:DB/DataSourceBrowser";
101 uno::Reference<frame::XDispatch> xD =
xFrame->queryDispatch(
aURL,
"",
102 css::frame::FrameSearchFlag::CHILDREN | css::frame::FrameSearchFlag::CREATE);
105 xD->dispatch(
aURL, rValues);
css::uno::Reference< css::frame::XFrame2 > m_xFrame
DBTablePreviewFrame(css::uno::Reference< css::frame::XFrame2 > xFrame)
virtual void SAL_CALL disposing(const lang::EventObject &) override
constexpr tools::Long Height() const
constexpr tools::Long Width() const
SwDBTablePreviewDialog(weld::Window *pParent, css::uno::Sequence< css::beans::PropertyValue > const &rValues)
std::unique_ptr< weld::Container > m_xBeamerWIN
std::unique_ptr< weld::Label > m_xDescriptionFI
virtual ~SwDBTablePreviewDialog() override
rtl::Reference< DBTablePreviewFrame > m_xFrameListener
Reference< XComponentContext > getProcessComponentContext()
Reference< XFrame > xFrame