LibreOffice Module vbahelper (master) 1
Namespaces | Functions | Variables
vbahelper.cxx File Reference
#include <com/sun/star/util/URLTransformer.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/frame/XDispatchProvider.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/frame/XController.hpp>
#include <com/sun/star/frame/XModel2.hpp>
#include <com/sun/star/script/BasicErrorException.hpp>
#include <com/sun/star/script/XDefaultProperty.hpp>
#include <com/sun/star/script/XInvocation.hpp>
#include <com/sun/star/script/Converter.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/theIntrospection.hpp>
#include <com/sun/star/util/MeasureUnit.hpp>
#include <com/sun/star/awt/XControl.hpp>
#include <com/sun/star/awt/XWindow.hpp>
#include <com/sun/star/awt/XDialog.hpp>
#include <com/sun/star/awt/XUnitConversion.hpp>
#include <com/sun/star/drawing/XShape.hpp>
#include <ooo/vba/XHelperInterface.hpp>
#include <comphelper/automationinvokedzone.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/servicehelper.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/app.hxx>
#include <sfx2/sfxsids.hrc>
#include <svl/stritem.hxx>
#include <svl/eitem.hxx>
#include <svl/intitem.hxx>
#include <svl/itemset.hxx>
#include <sfx2/docfac.hxx>
#include <sfx2/viewfac.hxx>
#include <basic/sbstar.hxx>
#include <basic/basmgr.hxx>
#include <basic/sbmod.hxx>
#include <basic/sbuno.hxx>
#include <basic/sberrors.hxx>
#include <o3tl/unit_conversion.hxx>
#include <rtl/ustrbuf.hxx>
#include <sfx2/viewsh.hxx>
#include <sal/log.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <utility>
#include <vcl/svapp.hxx>
#include <vcl/window.hxx>
#include <vcl/syswin.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <tools/UnitConversion.hxx>
#include <vbahelper/vbahelper.hxx>
Include dependency graph for vbahelper.cxx:

Go to the source code of this file.

Namespaces

namespace  ooo
 
namespace  ooo::vba
 

Functions

static bool ooo::vba::isInPrintPreview (SfxViewFrame *pView)
 
uno::Reference< beans::XIntrospectionAccess > ooo::vba::getIntrospectionAccess (const uno::Any &aObject)
 
uno::Reference< script::XTypeConverter > const & ooo::vba::getTypeConverter (const uno::Reference< uno::XComponentContext > &xContext)
 
const uno::Anyooo::vba::aNULL ()
 
void ooo::vba::dispatchExecute (SfxViewShell const *pViewShell, sal_uInt16 nSlot)
 
void ooo::vba::dispatchRequests (const uno::Reference< frame::XModel > &xModel, const OUString &aUrl, const uno::Sequence< beans::PropertyValue > &sProps)
 
void ooo::vba::dispatchRequests (const uno::Reference< frame::XModel > &xModel, const OUString &aUrl)
 
uno::Reference< frame::XModel > ooo::vba::getCurrentDoc (const OUString &sKey)
 
static uno::Reference< frame::XModel > ooo::vba::getCurrentDocCtx (const OUString &ctxName, const uno::Reference< uno::XComponentContext > &xContext)
 
uno::Reference< frame::XModel > ooo::vba::getThisExcelDoc (const uno::Reference< uno::XComponentContext > &xContext)
 
uno::Reference< frame::XModel > ooo::vba::getThisWordDoc (const uno::Reference< uno::XComponentContext > &xContext)
 
uno::Reference< frame::XModel > ooo::vba::getCurrentExcelDoc (const uno::Reference< uno::XComponentContext > &xContext)
 
uno::Reference< frame::XModel > ooo::vba::getCurrentWordDoc (const uno::Reference< uno::XComponentContext > &xContext)
 
sal_Int32 ooo::vba::OORGBToXLRGB (sal_Int32 nCol)
 
sal_Int32 ooo::vba::XLRGBToOORGB (sal_Int32 nCol)
 
uno::Any ooo::vba::OORGBToXLRGB (const uno::Any &aCol)
 
uno::Any ooo::vba::XLRGBToOORGB (const uno::Any &aCol)
 
void ooo::vba::PrintOutHelper (SfxViewShell const *pViewShell, const uno::Any &From, const uno::Any &To, const uno::Any &Copies, const uno::Any &Preview, const uno::Any &, const uno::Any &, const uno::Any &Collate, const uno::Any &PrToFileName, bool bUseSelection)
 
void ooo::vba::PrintPreviewHelper (const css::uno::Any &, SfxViewShell const *pViewShell)
 
void ooo::vba::WaitUntilPreviewIsClosed (SfxViewFrame *pViewFrame)
 
bool ooo::vba::extractBoolFromAny (const uno::Any &rAny)
 
OUString ooo::vba::extractStringFromAny (const uno::Any &rAny, bool bUppercaseBool)
 
OUString ooo::vba::extractStringFromAny (const uno::Any &rAny, const OUString &rDefault, bool bUppercaseBool)
 
OUString ooo::vba::getAnyAsString (const uno::Any &pvargItem)
 
static bool ooo::vba::NeedEsc (sal_Unicode cCode)
 
OUString ooo::vba::VBAToRegexp (const OUString &rIn)
 
static double ooo::vba::getPixelToMeterConversionFactor (const css::uno::Reference< css::awt::XDevice > &xDevice, bool bVertical)
 
double ooo::vba::PointsToPixels (const css::uno::Reference< css::awt::XDevice > &xDevice, double fPoints, bool bVertical)
 
double ooo::vba::PixelsToPoints (const css::uno::Reference< css::awt::XDevice > &xDevice, double fPixels, bool bVertical)
 
PointerStyle ooo::vba::getPointerStyle (const uno::Reference< frame::XModel > &xModel)
 
void ooo::vba::setCursorHelper (const uno::Reference< frame::XModel > &xModel, PointerStyle nPointer, bool bOverWrite)
 
void ooo::vba::setDefaultPropByIntrospection (const uno::Any &aObj, const uno::Any &aValue)
 
uno::Any ooo::vba::getPropertyValue (const uno::Sequence< beans::PropertyValue > &aProp, const OUString &aName)
 
bool ooo::vba::setPropertyValue (uno::Sequence< beans::PropertyValue > &aProp, const OUString &aName, const uno::Any &aValue)
 
void ooo::vba::setOrAppendPropertyValue (uno::Sequence< beans::PropertyValue > &aProp, const OUString &aName, const uno::Any &aValue)
 
bool ooo::vba::executeRunTimeLibrary (const std::u16string_view &rSbRtl_command, SbxArray *pParameters)
 
uno::Reference< XHelperInterface > ooo::vba::getVBADocument (const uno::Reference< frame::XModel > &xModel)
 
uno::Reference< XHelperInterface > ooo::vba::getUnoDocModule (std::u16string_view aModName, SfxObjectShell const *pShell)
 
SfxObjectShellooo::vba::getSfxObjShell (const uno::Reference< frame::XModel > &xModel)
 

Variables

constexpr OUStringLiteral ooo::vba::saPosXName = u"PositionX"
 
constexpr OUStringLiteral ooo::vba::saPosYName = u"PositionY"
 
constexpr OUStringLiteral ooo::vba::saWidthName = u"Width"
 
constexpr OUStringLiteral ooo::vba::saHeightName = u"Height"