20#include <com/sun/star/beans/XPropertySet.hpp>
21#include <com/sun/star/frame/Frame.hpp>
22#include <com/sun/star/frame/XController.hpp>
23#include <com/sun/star/uno/Reference.h>
25#include <osl/diagnose.h>
30#include <sfx2/sfxsids.hrc>
100 css::uno::Reference < css::frame::XFrame2 >
xFrame = css::frame::Frame::create(
101 ::comphelper::getProcessComponentContext() );
106 css::uno::Reference< css::beans::XPropertySet > xLMPropSet(
xFrame->getLayoutManager(), css::uno::UNO_QUERY_THROW );
108 xLMPropSet->setPropertyValue(
"AutomaticToolbars", css::uno::Any(
false ));
110 catch( css::uno::RuntimeException& )
114 catch( css::uno::Exception& )
118 pChildWin->
SetFrame( css::uno::Reference<css::frame::XFrame>(
xFrame,css::uno::UNO_QUERY_THROW) );
121 css::uno::Reference < css::frame::XFramesSupplier >
124 xSupp->getFrames()->append( css::uno::Reference<css::frame::XFrame>(
xFrame, css::uno::UNO_QUERY_THROW) );
127 OSL_FAIL(
"Bindings without Dispatcher!");
138 css::uno::Reference< css::frame::XFrame >
xFrame = pChild->
GetFrame();
141 css::uno::Reference< css::frame::XController > xCtrl =
xFrame->getController();
143 bClose = xCtrl->suspend(
true );
153 if( rEvt.
GetType() == NotifyEventType::GETFOCUS )
158 css::uno::Reference< css::frame::XFrame >
xFrame = pChild->
GetFrame();
NotifyEventType GetType() const
SfxDispatcher * GetDispatcher() const
css::uno::Reference< css::frame::XFrame > GetActiveFrame() const
void SetActiveFrame(const css::uno::Reference< css::frame::XFrame > &rFrame)
const css::uno::Reference< css::frame::XFrame > & GetFrame() const
void SetFrame(const css::uno::Reference< css::frame::XFrame > &)
void SetAlignment(SfxChildAlignment eAlign)
vcl::Window * GetWindow() const
void SetWindow(const VclPtr< vcl::Window > &p)
void SetHideNotDelete(bool bOn)
SfxViewFrame * GetFrame() const
Returns a pointer to the <SfxViewFrame> instance, which belongs to this SfxDispatcher.
virtual void FillInfo(SfxChildWinInfo &) const
Fills a SfxChildWinInfo with specific data from SfxDockingWindow, so that it can be written in the IN...
SfxBindings & GetBindings() const
virtual bool EventNotify(NotifyEvent &rNEvt) override
SAL_DLLPRIVATE SfxChildWindow * GetChildWindow_Impl()
const css::uno::Reference< css::frame::XFrame > & GetFrameInterface() const
virtual ~SfxPartChildWnd_Impl() override
SfxPartChildWnd_Impl(vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings, SfxChildWinInfo *pInfo)
virtual bool QueryClose() override
virtual bool EventNotify(NotifyEvent &rNEvt) override
virtual void FillInfo(SfxChildWinInfo &) const override
Fills a SfxChildWinInfo with specific data from SfxDockingWindow, so that it can be written in the IN...
SfxPartDockWnd_Impl(SfxBindings *pBindings, SfxChildWindow *pChildWin, vcl::Window *pParent, WinBits nBits)
SfxFrame & GetFrame() const
static css::uno::Reference< css::awt::XWindow > GetInterface(vcl::Window *pWindow)
virtual void SetSizePixel(const Size &rNewSize)
SFX_IMPL_DOCKINGWINDOW(SfxPartChildWnd_Impl, SID_BROWSER)
SfxChildWindowFlags nFlags
Reference< XFrame > xFrame
WinBits const WB_SIZEABLE
WinBits const WB_STDDOCKWIN
WinBits const WB_CLIPCHILDREN