20#include <ooo/vba/word/WdWindowState.hpp>
37 const uno::Reference< XHelperInterface >& xParent,
38 const uno::Reference< uno::XComponentContext >& xContext,
39 const uno::Reference< frame::XModel >& xModel,
40 const uno::Reference< frame::XController >& xController ) :
59 document->Close(SaveChanges, FileName, RouteDocument );
74 view->setType(
nType );
81 sal_Int32 nwindowState = word::WdWindowState::wdWindowStateNormal;
88 nwindowState = word::WdWindowState::wdWindowStateMaximize;
90 nwindowState = word::WdWindowState::wdWindowStateMinimize;
98 sal_Int32 nwindowState = word::WdWindowState::wdWindowStateMaximize;
99 _windowstate >>= nwindowState;
105 if ( nwindowState == word::WdWindowState::wdWindowStateMaximize )
107 else if (nwindowState == word::WdWindowState::wdWindowStateMinimize)
109 else if (nwindowState == word::WdWindowState::wdWindowStateNormal)
112 SAL_WARN(
"sw.vba",
"Unhandled window state " << nwindowState);
124 if( !xFrameProps.is() )
128 xFrameProps->getPropertyValue(
"Title" ) >>= sTitle;
141 if( !xFrameProps.is() )
144 xFrameProps->setPropertyValue(
"Title",
uno::Any( _caption ) );
151 if(
aIndex.getValueTypeClass() == uno::TypeClass_VOID )
166 return "SwVbaWindow";
169uno::Sequence< OUString >
174 "ooo.vba.word.Window"
const css::uno::Reference< css::frame::XFrame > & GetFrameInterface() const
SystemWindow * GetSystemWindow() const
SfxFrame & GetFrame() const
SfxViewFrame & GetViewFrame() const
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual css::uno::Any SAL_CALL getView() override
SwVbaWindow(const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::frame::XModel > &xModel, const css::uno::Reference< css::frame::XController > &xController)
virtual void SAL_CALL setCaption(const OUString &_caption) override
virtual css::uno::Any SAL_CALL ActivePane() override
virtual css::uno::Any SAL_CALL Panes(const css::uno::Any &aIndex) override
virtual OUString SAL_CALL getCaption() override
virtual css::uno::Any SAL_CALL getWindowState() override
virtual void SAL_CALL Close(const css::uno::Any &SaveChanges, const css::uno::Any &RouteDocument) override
virtual void SAL_CALL setWindowState(const css::uno::Any &_windowstate) override
virtual void SAL_CALL setView(const css::uno::Any &_view) override
virtual void SAL_CALL Activate() override
virtual OUString getServiceImplName() override
Reference< frame::XModel > m_xModel
std::deque< AttacherIndex_Impl > aIndex
Sequence< OUString > aServiceNames
#define SAL_WARN(area, stream)
SwView * getView(const uno::Reference< frame::XModel > &xModel)
Reference< XController > xController
Reference< XModel > xModel
cppu::ImplInheritanceHelper< VbaWindowBase, ov::excel::XWindow > WindowImpl_BASE
BOOL IsMinimized(HWND hWnd)
BOOL IsMaximized(HWND hWnd)