diff options
Diffstat (limited to 'sw/source/ui/vba/vbaapplication.cxx')
-rw-r--r-- | sw/source/ui/vba/vbaapplication.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sw/source/ui/vba/vbaapplication.cxx b/sw/source/ui/vba/vbaapplication.cxx index ee743252c698..bf6eb9011276 100644 --- a/sw/source/ui/vba/vbaapplication.cxx +++ b/sw/source/ui/vba/vbaapplication.cxx @@ -1,4 +1,4 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column:100 -*- */ /* * This file is part of the LibreOffice project. * @@ -233,11 +233,22 @@ void SAL_CALL SwVbaApplication::ShowMe() void SAL_CALL SwVbaApplication::Resize( sal_Int32 Width, sal_Int32 Height ) { + // Have to do it like this as the Width and Height are hidden away in the ooo::vba::XWindowBase + // which ooo::vba::word::XApplication does not inherit from. SwVbaWindow, however, does inherit + // from XWindowBase. Ugh. auto pWindow = getActiveSwVbaWindow(); pWindow->setWidth( Width ); pWindow->setHeight( Height ); } +void SAL_CALL SwVbaApplication::Move( sal_Int32 Left, sal_Int32 Top ) +{ + // See comment in Resize(). + auto pWindow = getActiveSwVbaWindow(); + pWindow->setLeft( Left ); + pWindow->setTop( Top ); +} + // XInterfaceWithIID OUString SAL_CALL |