LibreOffice Module sw (master) 1
Public Member Functions | Private Attributes | List of all members
SwVbaApplication Class Reference

#include <vbaapplication.hxx>

Inheritance diagram for SwVbaApplication:
[legend]
Collaboration diagram for SwVbaApplication:
[legend]

Public Member Functions

 SwVbaApplication (css::uno::Reference< css::uno::XComponentContext > &xContext)
 
virtual ~SwVbaApplication () override
 
sal_uInt32 AddSink (const css::uno::Reference< ooo::vba::XSink > &xSink)
 
void RemoveSink (sal_uInt32 nNumber)
 
rtl::Reference< SwVbaWindowgetActiveSwVbaWindow ()
 
css::uno::Reference< css::uno::XComponentContext > const & getContext () const
 
virtual OUString SAL_CALL getName () override
 
virtual css::uno::Reference< ooo::vba::word::XSystem > SAL_CALL getSystem () override
 
virtual css::uno::Reference< ov::word::XDocument > SAL_CALL getActiveDocument () override
 
virtual css::uno::Reference< ov::word::XWindow > SAL_CALL getActiveWindow () override
 
virtual css::uno::Reference< ooo::vba::word::XOptions > SAL_CALL getOptions () override
 
virtual css::uno::Reference< ooo::vba::word::XSelection > SAL_CALL getSelection () override
 
virtual css::uno::Reference< ooo::vba::word::XWordBasic > SAL_CALL getWordBasic () override
 
virtual css::uno::Any SAL_CALL CommandBars (const css::uno::Any &aIndex) override
 
virtual css::uno::Any SAL_CALL Documents (const css::uno::Any &aIndex) override
 
virtual css::uno::Any SAL_CALL Addins (const css::uno::Any &aIndex) override
 
virtual css::uno::Any SAL_CALL Dialogs (const css::uno::Any &aIndex) override
 
virtual css::uno::Any SAL_CALL ListGalleries (const css::uno::Any &aIndex) override
 
virtual sal_Bool SAL_CALL getDisplayAutoCompleteTips () override
 
virtual void SAL_CALL setDisplayAutoCompleteTips (sal_Bool _displayAutoCompleteTips) override
 
virtual sal_Int32 SAL_CALL getEnableCancelKey () override
 
virtual void SAL_CALL setEnableCancelKey (sal_Int32 _enableCancelKey) override
 
virtual sal_Int32 SAL_CALL getWindowState () override
 
virtual void SAL_CALL setWindowState (sal_Int32 _windowstate) override
 
virtual sal_Int32 SAL_CALL getWidth () override
 
virtual void SAL_CALL setWidth (sal_Int32 _width) override
 
virtual sal_Int32 SAL_CALL getHeight () override
 
virtual void SAL_CALL setHeight (sal_Int32 _height) override
 
virtual sal_Int32 SAL_CALL getLeft () override
 
virtual void SAL_CALL setLeft (sal_Int32 _left) override
 
virtual sal_Int32 SAL_CALL getTop () override
 
virtual void SAL_CALL setTop (sal_Int32 _top) override
 
virtual OUString SAL_CALL getStatusBar () override
 
virtual void SAL_CALL setStatusBar (const OUString &_statusbar) override
 
virtual css::uno::Any SAL_CALL getCustomizationContext () override
 
virtual void SAL_CALL setCustomizationContext (const css::uno::Any &_customizationcontext) override
 
virtual float SAL_CALL CentimetersToPoints (float Centimeters) override
 
virtual float SAL_CALL PointsToCentimeters (float Points) override
 
virtual float SAL_CALL PixelsToPoints (float Pixels, ::sal_Bool fVertical) override
 
virtual float SAL_CALL PointsToPixels (float Pixels, ::sal_Bool fVertical) override
 
virtual float SAL_CALL InchesToPoints (float Inches) override
 
virtual float SAL_CALL PointsToInches (float Points) override
 
virtual float SAL_CALL MillimetersToPoints (float Millimeters) override
 
virtual float SAL_CALL PointsToMillimeters (float Points) override
 
virtual float SAL_CALL PicasToPoints (float Picas) override
 
virtual float SAL_CALL PointsToPicas (float Points) override
 
virtual void SAL_CALL ShowMe () override
 
virtual void SAL_CALL Resize (sal_Int32 Width, sal_Int32 Height) override
 
virtual void SAL_CALL Move (sal_Int32 Left, sal_Int32 Top) override
 
virtual OUString SAL_CALL getIID () override
 
virtual OUString SAL_CALL GetIIDForClassItselfNotCoclass () override
 
virtual ov::TypeAndIID SAL_CALL GetConnectionPoint () override
 
virtual css::uno::Reference< ov::XConnectionPoint > SAL_CALL FindConnectionPoint () override
 
virtual OUString getServiceImplName () override
 
virtual css::uno::Sequence< OUString > getServiceNames () override
 
virtual void SAL_CALL CallSinks (const OUString &Method, css::uno::Sequence< css::uno::Any > &Arguments) override
 
virtual css::uno::Reference< css::frame::XModel > getCurrentDocument () override
 

Private Attributes

std::vector< css::uno::Reference< ooo::vba::XSink > > mvSinks
 

Detailed Description

Definition at line 48 of file vbaapplication.hxx.

Constructor & Destructor Documentation

◆ SwVbaApplication()

SwVbaApplication::SwVbaApplication ( css::uno::Reference< css::uno::XComponentContext > &  xContext)
explicit

Definition at line 76 of file vbaapplication.cxx.

◆ ~SwVbaApplication()

SwVbaApplication::~SwVbaApplication ( )
overridevirtual

Definition at line 81 of file vbaapplication.cxx.

Member Function Documentation

◆ Addins()

uno::Any SAL_CALL SwVbaApplication::Addins ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 188 of file vbaapplication.cxx.

References index, and mxContext.

◆ AddSink()

sal_uInt32 SwVbaApplication::AddSink ( const css::uno::Reference< ooo::vba::XSink > &  xSink)

Definition at line 86 of file vbaapplication.cxx.

References SwGlobals::ensure(), mvSinks, SW_MOD, and xSink.

◆ CallSinks()

void SAL_CALL SwVbaApplication::CallSinks ( const OUString &  Method,
css::uno::Sequence< css::uno::Any > &  Arguments 
)
overridevirtual

Definition at line 500 of file vbaapplication.cxx.

References i, Method, and mvSinks.

◆ CentimetersToPoints()

float SAL_CALL SwVbaApplication::CentimetersToPoints ( float  Centimeters)
overridevirtual

Definition at line 355 of file vbaapplication.cxx.

References o3tl::cm, o3tl::convert(), and o3tl::pt.

◆ CommandBars()

uno::Any SAL_CALL SwVbaApplication::CommandBars ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 153 of file vbaapplication.cxx.

References aIndex, and VbaApplicationBase::CommandBars().

◆ Dialogs()

uno::Any SAL_CALL SwVbaApplication::Dialogs ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 197 of file vbaapplication.cxx.

References getCurrentDocument(), index, and mxContext.

◆ Documents()

uno::Any SAL_CALL SwVbaApplication::Documents ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 179 of file vbaapplication.cxx.

References index, and mxContext.

Referenced by SwWordBasic::FileOpen().

◆ FindConnectionPoint()

uno::Reference< XConnectionPoint > SAL_CALL SwVbaApplication::FindConnectionPoint ( )
overridevirtual

Definition at line 469 of file vbaapplication.cxx.

◆ getActiveDocument()

uno::Reference< word::XDocument > SAL_CALL SwVbaApplication::getActiveDocument ( )
overridevirtual

◆ getActiveSwVbaWindow()

rtl::Reference< SwVbaWindow > SwVbaApplication::getActiveSwVbaWindow ( )

◆ getActiveWindow()

uno::Reference< word::XWindow > SAL_CALL SwVbaApplication::getActiveWindow ( )
overridevirtual

Definition at line 135 of file vbaapplication.cxx.

References getActiveSwVbaWindow().

Referenced by getWindowState(), and setWindowState().

◆ GetConnectionPoint()

TypeAndIID SAL_CALL SwVbaApplication::GetConnectionPoint ( )
overridevirtual

Definition at line 458 of file vbaapplication.cxx.

References cppu::UnoType< typename T >::get().

◆ getContext()

uno::Reference< css::uno::XComponentContext > const & SwVbaApplication::getContext ( ) const

◆ getCurrentDocument()

uno::Reference< frame::XModel > SwVbaApplication::getCurrentDocument ( )
overridevirtual

◆ getCustomizationContext()

uno::Any SAL_CALL SwVbaApplication::getCustomizationContext ( )
overridevirtual

Definition at line 320 of file vbaapplication.cxx.

◆ getDisplayAutoCompleteTips()

sal_Bool SAL_CALL SwVbaApplication::getDisplayAutoCompleteTips ( )
overridevirtual

Definition at line 215 of file vbaapplication.cxx.

References SvxAutoCorrCfg::Get(), and SvxAutoCorrCfg::IsAutoTextTip().

◆ getEnableCancelKey()

sal_Int32 SAL_CALL SwVbaApplication::getEnableCancelKey ( )
overridevirtual

Definition at line 225 of file vbaapplication.cxx.

◆ getHeight()

sal_Int32 SAL_CALL SwVbaApplication::getHeight ( )
overridevirtual

Definition at line 279 of file vbaapplication.cxx.

References getActiveSwVbaWindow().

◆ getIID()

OUString SAL_CALL SwVbaApplication::getIID ( )
overridevirtual

Definition at line 444 of file vbaapplication.cxx.

◆ GetIIDForClassItselfNotCoclass()

OUString SAL_CALL SwVbaApplication::GetIIDForClassItselfNotCoclass ( )
overridevirtual

Definition at line 452 of file vbaapplication.cxx.

◆ getLeft()

sal_Int32 SAL_CALL SwVbaApplication::getLeft ( )
overridevirtual

Definition at line 291 of file vbaapplication.cxx.

References getActiveSwVbaWindow().

◆ getName()

OUString SAL_CALL SwVbaApplication::getName ( )
overridevirtual

Definition at line 108 of file vbaapplication.cxx.

◆ getOptions()

uno::Reference< word::XOptions > SAL_CALL SwVbaApplication::getOptions ( )
overridevirtual

Definition at line 147 of file vbaapplication.cxx.

References mxContext.

◆ getSelection()

uno::Reference< word::XSelection > SAL_CALL SwVbaApplication::getSelection ( )
overridevirtual

Definition at line 166 of file vbaapplication.cxx.

References getCurrentDocument(), and mxContext.

◆ getServiceImplName()

OUString SwVbaApplication::getServiceImplName ( )
overridevirtual

Definition at line 476 of file vbaapplication.cxx.

◆ getServiceNames()

uno::Sequence< OUString > SwVbaApplication::getServiceNames ( )
overridevirtual

Definition at line 482 of file vbaapplication.cxx.

References aServiceNames.

◆ getStatusBar()

OUString SAL_CALL SwVbaApplication::getStatusBar ( )
overridevirtual

Definition at line 315 of file vbaapplication.cxx.

◆ getSystem()

uno::Reference< word::XSystem > SAL_CALL SwVbaApplication::getSystem ( )
overridevirtual

Definition at line 141 of file vbaapplication.cxx.

References mxContext.

◆ getTop()

sal_Int32 SAL_CALL SwVbaApplication::getTop ( )
overridevirtual

Definition at line 303 of file vbaapplication.cxx.

References getActiveSwVbaWindow().

◆ getWidth()

sal_Int32 SAL_CALL SwVbaApplication::getWidth ( )
overridevirtual

Definition at line 267 of file vbaapplication.cxx.

References getActiveSwVbaWindow().

◆ getWindowState()

sal_Int32 SAL_CALL SwVbaApplication::getWindowState ( )
overridevirtual

Definition at line 236 of file vbaapplication.cxx.

References getActiveWindow(), and nState.

◆ getWordBasic()

uno::Reference< word::XWordBasic > SAL_CALL SwVbaApplication::getWordBasic ( )
overridevirtual

Definition at line 172 of file vbaapplication.cxx.

◆ InchesToPoints()

float SAL_CALL SwVbaApplication::InchesToPoints ( float  Inches)
overridevirtual

Definition at line 388 of file vbaapplication.cxx.

References o3tl::convert(), o3tl::in, and o3tl::pt.

◆ ListGalleries()

uno::Any SAL_CALL SwVbaApplication::ListGalleries ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 206 of file vbaapplication.cxx.

References getCurrentDocument(), index, and mxContext.

◆ MillimetersToPoints()

float SAL_CALL SwVbaApplication::MillimetersToPoints ( float  Millimeters)
overridevirtual

Definition at line 398 of file vbaapplication.cxx.

References o3tl::convert(), o3tl::mm, and o3tl::pt.

◆ Move()

void SAL_CALL SwVbaApplication::Move ( sal_Int32  Left,
sal_Int32  Top 
)
overridevirtual

Definition at line 433 of file vbaapplication.cxx.

References getActiveSwVbaWindow(), Left, and Top.

◆ PicasToPoints()

float SAL_CALL SwVbaApplication::PicasToPoints ( float  Picas)
overridevirtual

Definition at line 408 of file vbaapplication.cxx.

References o3tl::convert(), o3tl::pc, and o3tl::pt.

◆ PixelsToPoints()

float SAL_CALL SwVbaApplication::PixelsToPoints ( float  Pixels,
::sal_Bool  fVertical 
)
overridevirtual

◆ PointsToCentimeters()

float SAL_CALL SwVbaApplication::PointsToCentimeters ( float  Points)
overridevirtual

Definition at line 360 of file vbaapplication.cxx.

References o3tl::cm, o3tl::convert(), and o3tl::pt.

◆ PointsToInches()

float SAL_CALL SwVbaApplication::PointsToInches ( float  Points)
overridevirtual

Definition at line 393 of file vbaapplication.cxx.

References o3tl::convert(), o3tl::in, and o3tl::pt.

◆ PointsToMillimeters()

float SAL_CALL SwVbaApplication::PointsToMillimeters ( float  Points)
overridevirtual

Definition at line 403 of file vbaapplication.cxx.

References o3tl::convert(), o3tl::mm, and o3tl::pt.

◆ PointsToPicas()

float SAL_CALL SwVbaApplication::PointsToPicas ( float  Points)
overridevirtual

Definition at line 413 of file vbaapplication.cxx.

References o3tl::convert(), o3tl::pc, and o3tl::pt.

◆ PointsToPixels()

float SAL_CALL SwVbaApplication::PointsToPixels ( float  Pixels,
::sal_Bool  fVertical 
)
overridevirtual

◆ RemoveSink()

void SwVbaApplication::RemoveSink ( sal_uInt32  nNumber)

Definition at line 99 of file vbaapplication.cxx.

References mvSinks.

◆ Resize()

void SAL_CALL SwVbaApplication::Resize ( sal_Int32  Width,
sal_Int32  Height 
)
overridevirtual

Definition at line 423 of file vbaapplication.cxx.

References getActiveSwVbaWindow(), Height, and Width.

◆ setCustomizationContext()

void SAL_CALL SwVbaApplication::setCustomizationContext ( const css::uno::Any &  _customizationcontext)
overridevirtual

Definition at line 325 of file vbaapplication.cxx.

◆ setDisplayAutoCompleteTips()

void SAL_CALL SwVbaApplication::setDisplayAutoCompleteTips ( sal_Bool  _displayAutoCompleteTips)
overridevirtual

Definition at line 220 of file vbaapplication.cxx.

References SvxAutoCorrCfg::Get(), and SvxAutoCorrCfg::SetAutoTextTip().

◆ setEnableCancelKey()

void SAL_CALL SwVbaApplication::setEnableCancelKey ( sal_Int32  _enableCancelKey)
overridevirtual

Definition at line 231 of file vbaapplication.cxx.

◆ setHeight()

void SAL_CALL SwVbaApplication::setHeight ( sal_Int32  _height)
overridevirtual

Definition at line 285 of file vbaapplication.cxx.

References getActiveSwVbaWindow().

◆ setLeft()

void SAL_CALL SwVbaApplication::setLeft ( sal_Int32  _left)
overridevirtual

Definition at line 297 of file vbaapplication.cxx.

References getActiveSwVbaWindow().

◆ setStatusBar()

void SAL_CALL SwVbaApplication::setStatusBar ( const OUString &  _statusbar)
overridevirtual

Definition at line 330 of file vbaapplication.cxx.

References getCurrentDocument(), SAL_INFO, and xModel.

◆ setTop()

void SAL_CALL SwVbaApplication::setTop ( sal_Int32  _top)
overridevirtual

Definition at line 309 of file vbaapplication.cxx.

References getActiveSwVbaWindow().

◆ setWidth()

void SAL_CALL SwVbaApplication::setWidth ( sal_Int32  _width)
overridevirtual

Definition at line 273 of file vbaapplication.cxx.

References getActiveSwVbaWindow().

◆ setWindowState()

void SAL_CALL SwVbaApplication::setWindowState ( sal_Int32  _windowstate)
overridevirtual

Definition at line 250 of file vbaapplication.cxx.

References getActiveWindow().

◆ ShowMe()

void SAL_CALL SwVbaApplication::ShowMe ( )
overridevirtual

Definition at line 418 of file vbaapplication.cxx.

Member Data Documentation

◆ mvSinks

std::vector<css::uno::Reference< ooo::vba::XSink > > SwVbaApplication::mvSinks
private

Definition at line 50 of file vbaapplication.hxx.

Referenced by AddSink(), CallSinks(), and RemoveSink().


The documentation for this class was generated from the following files: