LibreOffice Module filter (master) 1
|
Namespaces | |
namespace | excel |
namespace | msforms |
namespace | word |
Classes | |
class | AbstractGeometryAttributes |
class | ConcreteXShapeGeometryAttributes |
class | ContainerUtilities |
class | DebugHelper |
class | DefaultReturnHelper |
struct | MacroResolvedInfo |
class | Millimeter |
class | ReturnInteger |
class | ShapeHelper |
class | UserFormGeometryHelper |
class | VBAMacroResolver |
Typedefs | |
typedef DefaultReturnHelper< sal_Int32, ov::msforms::XReturnInteger > | ReturnInteger_BASE |
typedef ::cppu::WeakImplHelper< css::lang::XServiceInfo, css::lang::XInitialization, css::script::vba::XVBAMacroResolver > | VBAMacroResolverBase |
Functions | |
static bool | isInPrintPreview (SfxViewFrame *pView) |
uno::Reference< beans::XIntrospectionAccess > | getIntrospectionAccess (const uno::Any &aObject) |
uno::Reference< script::XTypeConverter > const & | getTypeConverter (const uno::Reference< uno::XComponentContext > &xContext) |
const uno::Any & | aNULL () |
void | dispatchExecute (SfxViewShell const *pViewShell, sal_uInt16 nSlot) |
void | dispatchRequests (const uno::Reference< frame::XModel > &xModel, const OUString &aUrl, const uno::Sequence< beans::PropertyValue > &sProps) |
void | dispatchRequests (const uno::Reference< frame::XModel > &xModel, const OUString &aUrl) |
uno::Reference< frame::XModel > | getCurrentDoc (const OUString &sKey) |
static uno::Reference< frame::XModel > | getCurrentDocCtx (const OUString &ctxName, const uno::Reference< uno::XComponentContext > &xContext) |
uno::Reference< frame::XModel > | getThisExcelDoc (const uno::Reference< uno::XComponentContext > &xContext) |
uno::Reference< frame::XModel > | getThisWordDoc (const uno::Reference< uno::XComponentContext > &xContext) |
uno::Reference< frame::XModel > | getCurrentExcelDoc (const uno::Reference< uno::XComponentContext > &xContext) |
uno::Reference< frame::XModel > | getCurrentWordDoc (const uno::Reference< uno::XComponentContext > &xContext) |
sal_Int32 | OORGBToXLRGB (sal_Int32 nCol) |
sal_Int32 | XLRGBToOORGB (sal_Int32 nCol) |
uno::Any | OORGBToXLRGB (const uno::Any &aCol) |
uno::Any | XLRGBToOORGB (const uno::Any &aCol) |
void | 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 | PrintPreviewHelper (const css::uno::Any &, SfxViewShell const *pViewShell) |
void | WaitUntilPreviewIsClosed (SfxViewFrame *pViewFrame) |
bool | extractBoolFromAny (const uno::Any &rAny) |
OUString | extractStringFromAny (const uno::Any &rAny, bool bUppercaseBool) |
OUString | extractStringFromAny (const uno::Any &rAny, const OUString &rDefault, bool bUppercaseBool) |
OUString | getAnyAsString (const uno::Any &pvargItem) |
static bool | NeedEsc (sal_Unicode cCode) |
OUString | VBAToRegexp (const OUString &rIn) |
static double | getPixelToMeterConversionFactor (const css::uno::Reference< css::awt::XDevice > &xDevice, bool bVertical) |
double | PointsToPixels (const css::uno::Reference< css::awt::XDevice > &xDevice, double fPoints, bool bVertical) |
double | PixelsToPoints (const css::uno::Reference< css::awt::XDevice > &xDevice, double fPixels, bool bVertical) |
PointerStyle | getPointerStyle (const uno::Reference< frame::XModel > &xModel) |
void | setCursorHelper (const uno::Reference< frame::XModel > &xModel, PointerStyle nPointer, bool bOverWrite) |
void | setDefaultPropByIntrospection (const uno::Any &aObj, const uno::Any &aValue) |
uno::Any | getPropertyValue (const uno::Sequence< beans::PropertyValue > &aProp, const OUString &aName) |
bool | setPropertyValue (uno::Sequence< beans::PropertyValue > &aProp, const OUString &aName, const uno::Any &aValue) |
void | setOrAppendPropertyValue (uno::Sequence< beans::PropertyValue > &aProp, const OUString &aName, const uno::Any &aValue) |
bool | executeRunTimeLibrary (const std::u16string_view &rSbRtl_command, SbxArray *pParameters) |
uno::Reference< XHelperInterface > | getVBADocument (const uno::Reference< frame::XModel > &xModel) |
uno::Reference< XHelperInterface > | getUnoDocModule (std::u16string_view aModName, SfxObjectShell const *pShell) |
SfxObjectShell * | getSfxObjShell (const uno::Reference< frame::XModel > &xModel) |
css::uno::Reference< css::lang::XMultiServiceFactory > | getVBAServiceFactory (SfxObjectShell const *pShell) |
css::uno::Reference< css::uno::XInterface > | createVBAUnoAPIServiceWithArgs (SfxObjectShell const *pShell, const char *_pAsciiName, const css::uno::Sequence< css::uno::Any > &aArgs) |
bool | isAlienDoc (SfxObjectShell const &rDocShell, const char *pMimeType) |
bool | isAlienExcelDoc (SfxObjectShell const &rDocShell) |
bool | isAlienWordDoc (SfxObjectShell const &rDocShell) |
css::uno::Reference< T > | getXSomethingFromArgs (css::uno::Sequence< css::uno::Any > const &args, sal_Int32 nPos, bool bCanBeNull=true) |
VBAHELPER_DLLPUBLIC css::uno::Reference< XHelperInterface > | getVBADocument (const css::uno::Reference< css::frame::XModel > &xModel) |
VBAHELPER_DLLPUBLIC SfxObjectShell * | getSfxObjShell (const css::uno::Reference< css::frame::XModel > &xModel) |
VBAHELPER_DLLPUBLIC css::uno::Reference< css::frame::XModel > | getThisExcelDoc (const css::uno::Reference< css::uno::XComponentContext > &xContext) |
VBAHELPER_DLLPUBLIC css::uno::Reference< css::frame::XModel > | getThisWordDoc (const css::uno::Reference< css::uno::XComponentContext > &xContext) |
VBAHELPER_DLLPUBLIC css::uno::Reference< css::frame::XModel > | getCurrentExcelDoc (const css::uno::Reference< css::uno::XComponentContext > &xContext) |
VBAHELPER_DLLPUBLIC css::uno::Reference< css::frame::XModel > | getCurrentWordDoc (const css::uno::Reference< css::uno::XComponentContext > &xContext) |
VBAHELPER_DLLPUBLIC css::uno::Reference< css::beans::XIntrospectionAccess > | getIntrospectionAccess (const css::uno::Any &aObject) |
VBAHELPER_DLLPUBLIC css::uno::Reference< css::script::XTypeConverter > const & | getTypeConverter (const css::uno::Reference< css::uno::XComponentContext > &xContext) |
VBAHELPER_DLLPUBLIC void | dispatchRequests (const css::uno::Reference< css::frame::XModel > &xModel, const OUString &aUrl) |
VBAHELPER_DLLPUBLIC void | dispatchRequests (const css::uno::Reference< css::frame::XModel > &xModel, const OUString &aUrl, const css::uno::Sequence< css::beans::PropertyValue > &sProps) |
sal_Int32 | OORGBToXLRGB (::Color n) |
VBAHELPER_DLLPUBLIC css::uno::Any | OORGBToXLRGB (const css::uno::Any &) |
VBAHELPER_DLLPUBLIC css::uno::Any | XLRGBToOORGB (const css::uno::Any &) |
VBAHELPER_DLLPUBLIC void | PrintOutHelper (SfxViewShell const *pViewShell, const css::uno::Any &From, const css::uno::Any &To, const css::uno::Any &Copies, const css::uno::Any &Preview, const css::uno::Any &ActivePrinter, const css::uno::Any &PrintToFile, const css::uno::Any &Collate, const css::uno::Any &PrToFileName, bool bSelection) |
VBAHELPER_DLLPUBLIC bool | extractBoolFromAny (const css::uno::Any &rAny) |
VBAHELPER_DLLPUBLIC OUString | extractStringFromAny (const css::uno::Any &rAny, bool bUppercaseBool=false) |
VBAHELPER_DLLPUBLIC OUString | extractStringFromAny (const css::uno::Any &rAny, const OUString &rDefault, bool bUppercaseBool) |
VBAHELPER_DLLPUBLIC OUString | getAnyAsString (const css::uno::Any &pvargItem) |
VBAHELPER_DLLPUBLIC PointerStyle | getPointerStyle (const css::uno::Reference< css::frame::XModel > &) |
VBAHELPER_DLLPUBLIC void | setCursorHelper (const css::uno::Reference< css::frame::XModel > &xModel, PointerStyle nPointer, bool bOverWrite) |
VBAHELPER_DLLPUBLIC void | setDefaultPropByIntrospection (const css::uno::Any &aObj, const css::uno::Any &aValue) |
VBAHELPER_DLLPUBLIC css::uno::Any | getPropertyValue (const css::uno::Sequence< css::beans::PropertyValue > &aProp, const OUString &aName) |
VBAHELPER_DLLPUBLIC bool | setPropertyValue (css::uno::Sequence< css::beans::PropertyValue > &aProp, const OUString &aName, const css::uno::Any &aValue) |
VBAHELPER_DLLPUBLIC void | setOrAppendPropertyValue (css::uno::Sequence< css::beans::PropertyValue > &aProp, const OUString &aName, const css::uno::Any &aValue) |
constexpr OUStringLiteral | sUrlPart0 (u"vnd.sun.star.script:") |
constexpr OUStringLiteral | sUrlPart1 (u"?language=Basic&location=document") |
OUString | makeMacroURL (std::u16string_view sMacroName) |
OUString | extractMacroName (std::u16string_view rMacroUrl) |
static std::u16string_view | trimMacroName (std::u16string_view rMacroName) |
OUString | resolveVBAMacro (SfxObjectShell const *pShell, const OUString &rLibName, const OUString &rModuleName, const OUString &rMacroName, bool bOnlyPublic, const OUString &sSkipModule) |
MacroResolvedInfo | resolveVBAMacro (SfxObjectShell *pShell, const OUString &MacroName, bool bSearchGlobalTemplates) |
bool | executeMacro (SfxObjectShell *pShell, const OUString &sMacroName, uno::Sequence< uno::Any > &aArgs, uno::Any &aRet, const uno::Any &) |
static bool | getModifier (sal_Unicode c, sal_uInt16 &mod) |
static sal_uInt16 | parseChar (sal_Unicode c) |
awt::KeyEvent | parseKeyEvent (std::u16string_view Key) |
void | applyShortCutKeyBinding (const uno::Reference< frame::XModel > &rxModel, const awt::KeyEvent &rKeyEvent, const OUString &rMacroName) |
MSFILTER_DLLPUBLIC OUString | getDefaultProjectName (SfxObjectShell const *pShell) |
MSFILTER_DLLPUBLIC bool | executeMacro (SfxObjectShell *pShell, const OUString &sMacroName, css::uno::Sequence< css::uno::Any > &aArgs, css::uno::Any &aRet, const css::uno::Any &aCaller) |
MSFILTER_DLLPUBLIC void | applyShortCutKeyBinding (const css::uno::Reference< css::frame::XModel > &rxDoc, const css::awt::KeyEvent &rKeyEvent, const OUString &sMacro) |
Variables | |
constexpr OUStringLiteral | saPosXName |
constexpr OUStringLiteral | saPosYName |
constexpr OUStringLiteral | saWidthName |
constexpr OUStringLiteral | saHeightName |
typedef ::cppu::WeakImplHelper< css::lang::XServiceInfo, css::lang::XInitialization, css::script::vba::XVBAMacroResolver > ooo::vba::VBAMacroResolverBase |
Definition at line 76 of file msvbahelper.hxx.
MSFILTER_DLLPUBLIC void ooo::vba::applyShortCutKeyBinding | ( | const css::uno::Reference< css::frame::XModel > & | rxDoc, |
const css::awt::KeyEvent & | rKeyEvent, | ||
const OUString & | sMacro | ||
) |
css::uno::RuntimeException |
void ooo::vba::applyShortCutKeyBinding | ( | const uno::Reference< frame::XModel > & | rxModel, |
const awt::KeyEvent & | rKeyEvent, | ||
const OUString & | rMacroName | ||
) |
Definition at line 734 of file msvbahelper.cxx.
References makeMacroURL(), ooo::vba::MacroResolvedInfo::mbFound, ooo::vba::MacroResolvedInfo::msResolvedMacro, resolveVBAMacro(), and o3tl::trim().
MSFILTER_DLLPUBLIC bool ooo::vba::executeMacro | ( | SfxObjectShell * | pShell, |
const OUString & | sMacroName, | ||
css::uno::Sequence< css::uno::Any > & | aArgs, | ||
css::uno::Any & | aRet, | ||
const css::uno::Any & | aCaller | ||
) |
bool ooo::vba::executeMacro | ( | SfxObjectShell * | pShell, |
const OUString & | sMacroName, | ||
uno::Sequence< uno::Any > & | aArgs, | ||
uno::Any & | aRet, | ||
const uno::Any & | |||
) |
Definition at line 483 of file msvbahelper.cxx.
References SfxObjectShell::CallXScript(), ERRCODE_NONE, js2hxx::index, makeMacroURL(), and sMacroName.
MSFILTER_DLLPUBLIC OUString ooo::vba::extractMacroName | ( | std::u16string_view | rMacroUrl | ) |
Definition at line 61 of file msvbahelper.cxx.
References o3tl::ends_with(), o3tl::starts_with(), sUrlPart0(), and sUrlPart1().
MSFILTER_DLLPUBLIC OUString ooo::vba::getDefaultProjectName | ( | SfxObjectShell const * | pShell | ) |
Referenced by resolveVBAMacro().
|
static |
Definition at line 611 of file msvbahelper.cxx.
References KEY_MOD1, KEY_MOD2, and KEY_SHIFT.
Referenced by parseKeyEvent().
MSFILTER_DLLPUBLIC OUString ooo::vba::makeMacroURL | ( | std::u16string_view | sMacroName | ) |
Definition at line 56 of file msvbahelper.cxx.
References sMacroName, sUrlPart0(), and sUrlPart1().
Referenced by applyShortCutKeyBinding(), executeMacro(), and ooo::vba::VBAMacroResolver::resolveVBAMacroToScriptURL().
|
static |
uno::RuntimeException |
Definition at line 627 of file msvbahelper.cxx.
References KEY_0, KEY_A, KEY_RETURN, KEY_SHIFT, and KEY_SPACE.
Referenced by parseKeyEvent().
MSFILTER_DLLPUBLIC css::awt::KeyEvent ooo::vba::parseKeyEvent | ( | std::u16string_view | sKey | ) |
css::uno::RuntimeException |
Definition at line 691 of file msvbahelper.cxx.
References getModifier(), gentoken::i, parseChar(), and svt::AcceleratorExecute::st_VCLKey2AWTKey().
MSFILTER_DLLPUBLIC MacroResolvedInfo ooo::vba::resolveVBAMacro | ( | SfxObjectShell * | pShell, |
const OUString & | MacroName, | ||
bool | bSearchGlobalTemplates | ||
) |
Definition at line 304 of file msvbahelper.cxx.
References aURL, SvtPathOptions::GetAddinPath(), INetURLObject::GetLastName(), SfxObjectShell::GetModel(), INetURLObject::GetProtocol(), js2hxx::index, ooo::vba::MacroResolvedInfo::mbFound, ooo::vba::MacroResolvedInfo::msResolvedMacro, nIndex, resolveVBAMacro(), SAL_INFO, INetURLObject::SetURL(), o3tl::starts_with(), and trimMacroName().
MSFILTER_DLLPUBLIC OUString ooo::vba::resolveVBAMacro | ( | SfxObjectShell const * | pShell, |
const OUString & | rLibName, | ||
const OUString & | rModuleName, | ||
const OUString & | rMacroName, | ||
bool | bOnlyPublic, | ||
const OUString & | sSkipModule | ||
) |
Definition at line 281 of file msvbahelper.cxx.
References getDefaultProjectName().
Referenced by applyShortCutKeyBinding(), TBCGeneralInfo::ImportToolBarControlData(), resolveVBAMacro(), and ooo::vba::VBAMacroResolver::resolveVBAMacroToScriptURL().
|
constexpr |
Referenced by extractMacroName(), and makeMacroURL().
|
constexpr |
Referenced by extractMacroName(), and makeMacroURL().
|
static |
Definition at line 71 of file msvbahelper.cxx.
References o3tl::trim().
Referenced by resolveVBAMacro(), and ooo::vba::VBAMacroResolver::resolveVBAMacroToScriptURL().