LibreOffice Module desktop (master) 1
Namespaces | Functions | Variables
init.cxx File Reference
#include <sfx2/lokhelper.hxx>
#include <config_buildconfig.h>
#include <config_cairo_rgba.h>
#include <config_features.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <algorithm>
#include <memory>
#include <iostream>
#include <string_view>
#include <boost/property_tree/json_parser.hpp>
#include <boost/algorithm/string.hpp>
#include <LibreOfficeKit/LibreOfficeKit.h>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <sal/log.hxx>
#include <utility>
#include <vcl/errinf.hxx>
#include <vcl/lok.hxx>
#include <o3tl/any.hxx>
#include <o3tl/unit_conversion.hxx>
#include <o3tl/string_view.hxx>
#include <osl/file.hxx>
#include <osl/process.h>
#include <osl/thread.h>
#include <rtl/bootstrap.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/uri.hxx>
#include <svl/zforlist.hxx>
#include <linguistic/misc.hxx>
#include <cppuhelper/bootstrap.hxx>
#include <comphelper/base64.hxx>
#include <comphelper/dispatchcommand.hxx>
#include <comphelper/lok.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
#include <comphelper/profilezone.hxx>
#include <comphelper/propertysequence.hxx>
#include <comphelper/propertyvalue.hxx>
#include <comphelper/scopeguard.hxx>
#include <comphelper/threadpool.hxx>
#include <comphelper/servicehelper.hxx>
#include <comphelper/sequenceashashmap.hxx>
#include <com/sun/star/document/MacroExecMode.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/document/XDocumentLanguages.hpp>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/DispatchResultEvent.hpp>
#include <com/sun/star/frame/DispatchResultState.hpp>
#include <com/sun/star/frame/XDispatchProvider.hpp>
#include <com/sun/star/frame/XDispatchResultListener.hpp>
#include <com/sun/star/frame/XSynchronousDispatch.hpp>
#include <com/sun/star/frame/XStorable.hpp>
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
#include <com/sun/star/util/URLTransformer.hpp>
#include <com/sun/star/datatransfer/clipboard/XClipboard.hpp>
#include <com/sun/star/datatransfer/UnsupportedFlavorException.hpp>
#include <com/sun/star/datatransfer/XTransferable2.hpp>
#include <com/sun/star/text/TextContentAnchorType.hpp>
#include <com/sun/star/document/XRedlinesSupplier.hpp>
#include <com/sun/star/ui/GlobalAcceleratorConfiguration.hpp>
#include <com/sun/star/xml/crypto/SEInitializer.hpp>
#include <com/sun/star/xml/crypto/XSEInitializer.hpp>
#include <com/sun/star/xml/crypto/XSecurityEnvironment.hpp>
#include <com/sun/star/xml/crypto/XCertificateCreator.hpp>
#include <com/sun/star/security/XCertificate.hpp>
#include <com/sun/star/linguistic2/LanguageGuessing.hpp>
#include <com/sun/star/linguistic2/LinguServiceManager.hpp>
#include <com/sun/star/linguistic2/XSpellChecker.hpp>
#include <com/sun/star/i18n/LocaleCalendar2.hpp>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
#include <editeng/flstitem.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/docfilt.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/viewsh.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/msgpool.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/lokcomponenthelpers.hxx>
#include <sfx2/DocumentSigner.hxx>
#include <sfx2/sidebar/SidebarDockingWindow.hxx>
#include <sfx2/sidebar/SidebarController.hxx>
#include <svl/numformat.hxx>
#include <svx/dialmgr.hxx>
#include <svx/strings.hrc>
#include <svx/svdview.hxx>
#include <svx/svxids.hrc>
#include <svx/ucsubset.hxx>
#include <vcl/vclevent.hxx>
#include <vcl/GestureEventPan.hxx>
#include <vcl/svapp.hxx>
#include <unotools/resmgr.hxx>
#include <tools/fract.hxx>
#include <tools/json_writer.hxx>
#include <svtools/ctrltool.hxx>
#include <svtools/langtab.hxx>
#include <vcl/fontcharmap.hxx>
#include <vcl/virdev.hxx>
#include <vcl/ImageTree.hxx>
#include <vcl/ITiledRenderable.hxx>
#include <vcl/dialoghelper.hxx>
#include <unicode/uchar.h>
#include <unotools/securityoptions.hxx>
#include <unotools/confignode.hxx>
#include <unotools/syslocaleoptions.hxx>
#include <unotools/mediadescriptor.hxx>
#include <unotools/pathoptions.hxx>
#include <unotools/tempfile.hxx>
#include <unotools/streamwrap.hxx>
#include <osl/module.hxx>
#include <comphelper/sequence.hxx>
#include <sfx2/sfxbasemodel.hxx>
#include <svl/undo.hxx>
#include <unotools/datetime.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <vcl/abstdlg.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <vcl/uitest/uiobject.hxx>
#include <vcl/jsdialog/executor.hxx>
#include <com/sun/star/document/XUndoManager.hpp>
#include <com/sun/star/document/XUndoManagerSupplier.hpp>
#include <com/sun/star/document/XLinkTargetSupplier.hpp>
#include <editeng/sizeitem.hxx>
#include <svx/rulritem.hxx>
#include <svx/pageitem.hxx>
#include <app.hxx>
#include "../app/cmdlineargs.hxx"
#include "../app/sofficemain.h"
#include "../app/officeipcthread.hxx"
#include <lib/init.hxx>
#include "lokinteractionhandler.hxx"
#include "lokclipboard.hxx"
#include <officecfg/Office/Common.hxx>
#include <officecfg/Office/Impress.hxx>
#include <officecfg/Office/Linguistic.hxx>
#include <unotools/optionsdlg.hxx>
#include <svl/ctloptions.hxx>
#include <svtools/accessibilityoptions.hxx>
#include <svtools/colorcfg.hxx>
#include <svtools/miscopt.hxx>
#include <svtools/slidesorterbaropt.hxx>
#include <unotools/cmdoptions.hxx>
#include <unotools/compatibility.hxx>
#include <unotools/fltrcfg.hxx>
#include <unotools/lingucfg.hxx>
#include <unotools/moduleoptions.hxx>
#include <unotools/searchopt.hxx>
#include <unotools/useroptions.hxx>
#include <unotools/viewoptions.hxx>
#include <vcl/settings.hxx>
#include <officecfg/Setup.hxx>
#include <com/sun/star/ui/XAcceleratorConfiguration.hpp>
#include <svtools/acceleratorexecute.hxx>
Include dependency graph for init.cxx:

Go to the source code of this file.

Namespaces

namespace  desktop
 

Functions

static void SetLastExceptionMsg (const OUString &s=OUString())
 
static OUString getUString (const char *pString)
 
static char * convertOString (const OString &rStr)
 
static char * convertOUString (std::u16string_view aStr)
 
static OUString getAbsoluteURL (const char *pURL)
 Try to convert a relative URL to an absolute one, unless it already looks like a URL. More...
 
static void extractLinks (const uno::Reference< container::XNameAccess > &xLinks, bool subcontent, tools::JsonWriter &aJson)
 
static void unoAnyToJson (tools::JsonWriter &rJson, std::string_view pNodeName, const uno::Any &anyItem)
 
static int lcl_getViewId (std::string_view payload)
 
static bool lcl_isViewCallbackType (const int type)
 
static bool isUpdatedType (int type)
 
static bool isUpdatedTypePerViewId (int type)
 
static void doc_destroy (LibreOfficeKitDocument *pThis)
 
static int doc_saveAs (LibreOfficeKitDocument *pThis, const char *pUrl, const char *pFormat, const char *pFilterOptions)
 
static int doc_getDocumentType (LibreOfficeKitDocument *pThis)
 
static int doc_getParts (LibreOfficeKitDocument *pThis)
 
static char * doc_getPartPageRectangles (LibreOfficeKitDocument *pThis)
 
static int doc_getPart (LibreOfficeKitDocument *pThis)
 
static void doc_setPart (LibreOfficeKitDocument *pThis, int nPart)
 
static void doc_selectPart (LibreOfficeKitDocument *pThis, int nPart, int nSelect)
 
static void doc_moveSelectedParts (LibreOfficeKitDocument *pThis, int nPosition, bool bDuplicate)
 
static char * doc_getPartName (LibreOfficeKitDocument *pThis, int nPart)
 
static void doc_setPartMode (LibreOfficeKitDocument *pThis, int nPartMode)
 
static int doc_getEditMode (LibreOfficeKitDocument *pThis)
 
static void doc_paintTile (LibreOfficeKitDocument *pThis, unsigned char *pBuffer, const int nCanvasWidth, const int nCanvasHeight, const int nTilePosX, const int nTilePosY, const int nTileWidth, const int nTileHeight)
 
static void doc_paintPartTile (LibreOfficeKitDocument *pThis, unsigned char *pBuffer, const int nPart, const int nMode, const int nCanvasWidth, const int nCanvasHeight, const int nTilePosX, const int nTilePosY, const int nTileWidth, const int nTileHeight)
 
static int doc_getTileMode (LibreOfficeKitDocument *pThis)
 
static void doc_getDocumentSize (LibreOfficeKitDocument *pThis, long *pWidth, long *pHeight)
 
static void doc_getDataArea (LibreOfficeKitDocument *pThis, long nTab, long *pCol, long *pRow)
 
static void doc_initializeForRendering (LibreOfficeKitDocument *pThis, const char *pArguments)
 
static void doc_registerCallback (LibreOfficeKitDocument *pThis, LibreOfficeKitCallback pCallback, void *pData)
 
static void doc_postKeyEvent (LibreOfficeKitDocument *pThis, int nType, int nCharCode, int nKeyCode)
 
static void doc_setBlockedCommandList (LibreOfficeKitDocument *pThis, int nViewId, const char *blockedCommandList)
 
static void doc_postWindowExtTextInputEvent (LibreOfficeKitDocument *pThis, unsigned nWindowId, int nType, const char *pText)
 
static void doc_removeTextContext (LibreOfficeKitDocument *pThis, unsigned nLOKWindowId, int nCharBefore, int nCharAfter)
 
static void doc_sendDialogEvent (LibreOfficeKitDocument *pThis, unsigned long long int nLOKWindowId, const char *pArguments)
 
static void doc_postWindowKeyEvent (LibreOfficeKitDocument *pThis, unsigned nLOKWindowId, int nType, int nCharCode, int nKeyCode)
 
static void doc_postMouseEvent (LibreOfficeKitDocument *pThis, int nType, int nX, int nY, int nCount, int nButtons, int nModifier)
 
static void doc_postWindowMouseEvent (LibreOfficeKitDocument *pThis, unsigned nLOKWindowId, int nType, int nX, int nY, int nCount, int nButtons, int nModifier)
 
static void doc_postWindowGestureEvent (LibreOfficeKitDocument *pThis, unsigned nLOKWindowId, const char *pType, int nX, int nY, int nOffset)
 
static void doc_postUnoCommand (LibreOfficeKitDocument *pThis, const char *pCommand, const char *pArguments, bool bNotifyWhenFinished)
 
static void doc_setWindowTextSelection (LibreOfficeKitDocument *pThis, unsigned nLOKWindowId, bool swap, int nX, int nY)
 
static void doc_setTextSelection (LibreOfficeKitDocument *pThis, int nType, int nX, int nY)
 
static char * doc_getTextSelection (LibreOfficeKitDocument *pThis, const char *pMimeType, char **pUsedMimeType)
 
static int doc_getSelectionType (LibreOfficeKitDocument *pThis)
 
static int doc_getSelectionTypeAndText (LibreOfficeKitDocument *pThis, const char *pMimeType, char **pText, char **pUsedMimeType)
 
static int doc_getClipboard (LibreOfficeKitDocument *pThis, const char **pMimeTypes, size_t *pOutCount, char ***pOutMimeTypes, size_t **pOutSizes, char ***pOutStreams)
 
static int doc_setClipboard (LibreOfficeKitDocument *pThis, const size_t nInCount, const char **pInMimeTypes, const size_t *pInSizes, const char **pInStreams)
 
static bool doc_paste (LibreOfficeKitDocument *pThis, const char *pMimeType, const char *pData, size_t nSize)
 
static void doc_setGraphicSelection (LibreOfficeKitDocument *pThis, int nType, int nX, int nY)
 
static void doc_resetSelection (LibreOfficeKitDocument *pThis)
 
static char * doc_getCommandValues (LibreOfficeKitDocument *pThis, const char *pCommand)
 
static void doc_setClientZoom (LibreOfficeKitDocument *pThis, int nTilePixelWidth, int nTilePixelHeight, int nTileTwipWidth, int nTileTwipHeight)
 
static void doc_setClientVisibleArea (LibreOfficeKitDocument *pThis, int nX, int nY, int nWidth, int nHeight)
 
static void doc_setOutlineState (LibreOfficeKitDocument *pThis, bool bColumn, int nLevel, int nIndex, bool bHidden)
 
static int doc_createView (LibreOfficeKitDocument *pThis)
 
static int doc_createViewWithOptions (LibreOfficeKitDocument *pThis, const char *pOptions)
 
static void doc_destroyView (LibreOfficeKitDocument *pThis, int nId)
 
static void doc_setView (LibreOfficeKitDocument *pThis, int nId)
 
static int doc_getView (LibreOfficeKitDocument *pThis)
 
static int doc_getViewsCount (LibreOfficeKitDocument *pThis)
 
static bool doc_getViewIds (LibreOfficeKitDocument *pThis, int *pArray, size_t nSize)
 
static void doc_setViewLanguage (LibreOfficeKitDocument *pThis, int nId, const char *language)
 
static unsigned char * doc_renderFontOrientation (LibreOfficeKitDocument *pThis, const char *pFontName, const char *pChar, int *pFontWidth, int *pFontHeight, int pOrientation)
 
static unsigned char * doc_renderFont (LibreOfficeKitDocument *pThis, const char *pFontName, const char *pChar, int *pFontWidth, int *pFontHeight)
 
static char * doc_getPartHash (LibreOfficeKitDocument *pThis, int nPart)
 
static void doc_paintWindow (LibreOfficeKitDocument *pThis, unsigned nLOKWindowId, unsigned char *pBuffer, const int nX, const int nY, const int nWidth, const int nHeight)
 
static void doc_paintWindowDPI (LibreOfficeKitDocument *pThis, unsigned nLOKWindowId, unsigned char *pBuffer, const int nX, const int nY, const int nWidth, const int nHeight, const double fDPIScale)
 
static void doc_paintWindowForView (LibreOfficeKitDocument *pThis, unsigned nLOKWindowId, unsigned char *pBuffer, const int nX, const int nY, const int nWidth, const int nHeight, const double fDPIScale, int viewId)
 
static void doc_postWindow (LibreOfficeKitDocument *pThis, unsigned nLOKWindowId, int nAction, const char *pData)
 
static char * doc_getPartInfo (LibreOfficeKitDocument *pThis, int nPart)
 
static bool doc_insertCertificate (LibreOfficeKitDocument *pThis, const unsigned char *pCertificateBinary, const int nCertificateBinarySize, const unsigned char *pPrivateKeyBinary, const int nPrivateKeyBinarySize)
 
static bool doc_addCertificate (LibreOfficeKitDocument *pThis, const unsigned char *pCertificateBinary, const int nCertificateBinarySize)
 
static int doc_getSignatureState (LibreOfficeKitDocument *pThis)
 
static size_t doc_renderShapeSelection (LibreOfficeKitDocument *pThis, char **pOutput)
 
static void doc_resizeWindow (LibreOfficeKitDocument *pThis, unsigned nLOKWindowId, const int nWidth, const int nHeight)
 
static void doc_completeFunction (LibreOfficeKitDocument *pThis, const char *)
 
static void doc_sendFormFieldEvent (LibreOfficeKitDocument *pThis, const char *pArguments)
 
static bool doc_renderSearchResult (LibreOfficeKitDocument *pThis, const char *pSearchResult, unsigned char **pBitmapBuffer, int *pWidth, int *pHeight, size_t *pByteSize)
 
static void doc_sendContentControlEvent (LibreOfficeKitDocument *pThis, const char *pArguments)
 
static void doc_setViewTimezone (LibreOfficeKitDocument *pThis, int nId, const char *timezone)
 
static void doc_setAccessibilityState (LibreOfficeKitDocument *pThis, int nId, bool bEnabled)
 
static char * doc_getA11yFocusedParagraph (LibreOfficeKitDocument *pThis)
 
static int doc_getA11yCaretPosition (LibreOfficeKitDocument *pThis)
 
static OUString getGenerator ()
 
static void lo_destroy (LibreOfficeKit *pThis)
 
static int lo_initialize (LibreOfficeKit *pThis, const char *pInstallPath, const char *pUserProfilePath)
 
static LibreOfficeKitDocument * lo_documentLoad (LibreOfficeKit *pThis, const char *pURL)
 
static char * lo_getError (LibreOfficeKit *pThis)
 
static void lo_freeError (char *pFree)
 
static LibreOfficeKitDocument * lo_documentLoadWithOptions (LibreOfficeKit *pThis, const char *pURL, const char *pOptions)
 
static void lo_registerCallback (LibreOfficeKit *pThis, LibreOfficeKitCallback pCallback, void *pData)
 
static char * lo_getFilterTypes (LibreOfficeKit *pThis)
 
static void lo_setOptionalFeatures (LibreOfficeKit *pThis, unsigned long long features)
 
static void lo_setDocumentPassword (LibreOfficeKit *pThis, const char *pURL, const char *pPassword)
 
static char * lo_getVersionInfo (LibreOfficeKit *pThis)
 
static int lo_runMacro (LibreOfficeKit *pThis, const char *pURL)
 
static bool lo_signDocument (LibreOfficeKit *pThis, const char *pUrl, const unsigned char *pCertificateBinary, const int nCertificateBinarySize, const unsigned char *pPrivateKeyBinary, const int nPrivateKeyBinarySize)
 
static char * lo_extractRequest (LibreOfficeKit *pThis, const char *pFilePath)
 
static void lo_trimMemory (LibreOfficeKit *pThis, int nTarget)
 
static void lo_runLoop (LibreOfficeKit *pThis, LibreOfficeKitPollCallback pPollCallback, LibreOfficeKitWakeCallback pWakeCallback, void *pData)
 
static void lo_sendDialogEvent (LibreOfficeKit *pThis, unsigned long long int nLOKWindowId, const char *pArguments)
 
static void lo_setOption (LibreOfficeKit *pThis, const char *pOption, const char *pValue)
 
static void lo_dumpState (LibreOfficeKit *pThis, const char *pOptions, char **pState)
 
static void doc_iniUnoCommands ()
 Initialize UNO commands, in the sense that from now on, the LOK client gets updates for status changes of these commands. More...
 
static void doc_setPartImpl (LibreOfficeKitDocument *pThis, int nPart, bool bAllowChangeFocus=true)
 
static int doc_getTileMode (SAL_UNUSED_PARAMETER LibreOfficeKitDocument *)
 
static char * getPostIts (LibreOfficeKitDocument *pThis)
 Returns the JSON representation of all the comments in the document. More...
 
static char * getPostItsPos (LibreOfficeKitDocument *pThis)
 Returns the JSON representation of the positions of all the comments in the document. More...
 
static char * getRulerState (LibreOfficeKitDocument *pThis)
 
static void lcl_sendDialogEvent (unsigned long long int nWindowId, const char *pArguments)
 
static bool getFromTransferable (const css::uno::Reference< css::datatransfer::XTransferable > &xTransferable, const OString &aInMimeType, OString &aRet)
 
static bool encodeImageAsHTML (const css::uno::Reference< css::datatransfer::XTransferable > &xTransferable, const OString &aMimeType, OString &aRet)
 
static bool encodeTextAsHTML (const css::uno::Reference< css::datatransfer::XTransferable > &xTransferable, const OString &aMimeType, OString &aRet)
 
static void getDocLanguages (LibreOfficeKitDocument *pThis, uno::Sequence< lang::Locale > &rSeq)
 
static char * getLanguages (LibreOfficeKitDocument *pThis, const char *pCommand)
 
static char * getFonts (const char *pCommand)
 
static char * getFontSubset (std::string_view aFontName)
 
static char * getStyles (LibreOfficeKitDocument *pThis, const char *pCommand)
 
static char * getUndoOrRedo (LibreOfficeKitDocument *pThis, UndoOrRedo eCommand)
 Returns the JSON representation of either an undo or a redo stack. More...
 
static char * getTrackedChanges (LibreOfficeKitDocument *pThis)
 Returns the JSON representation of the redline stack. More...
 
static char * getTrackedChangeAuthors (LibreOfficeKitDocument *pThis)
 Returns the JSON representation of the redline author table. More...
 
static void doc_destroyView (SAL_UNUSED_PARAMETER LibreOfficeKitDocument *pThis, int nId)
 
static void doc_setView (SAL_UNUSED_PARAMETER LibreOfficeKitDocument *, int nId)
 
static int doc_getView (SAL_UNUSED_PARAMETER LibreOfficeKitDocument *)
 
static int doc_getViewsCount (SAL_UNUSED_PARAMETER LibreOfficeKitDocument *pThis)
 
static bool doc_getViewIds (SAL_UNUSED_PARAMETER LibreOfficeKitDocument *pThis, int *pArray, size_t nSize)
 
static void doc_setViewLanguage (SAL_UNUSED_PARAMETER LibreOfficeKitDocument *, int nId, const char *language)
 
unsigned char * doc_renderFontOrientation (SAL_UNUSED_PARAMETER LibreOfficeKitDocument *, const char *pFontName, const char *pChar, int *pFontWidth, int *pFontHeight, int pOrientation)
 
static void doc_setViewTimezone (SAL_UNUSED_PARAMETER LibreOfficeKitDocument *, int nId, const char *pTimezone)
 
static void doc_setAccessibilityState (SAL_UNUSED_PARAMETER LibreOfficeKitDocument *pThis, int nId, bool nEnabled)
 
static char * lo_getVersionInfo (SAL_UNUSED_PARAMETER LibreOfficeKit *)
 
static void aBasicErrorFunc (const OUString &rError, const OUString &rAction)
 
static bool initialize_uno (const OUString &aAppProgramURL)
 
static void lo_startmain (void *)
 
static void lo_status_indicator_callback (void *data, comphelper::LibreOfficeKit::statusIndicatorCallbackType type, int percent, const char *pText)
 
static void preLoadShortCutAccelerators ()
 Used by preloadData (LibreOfficeKit) for providing different shortcuts for different languages. More...
 
static void preloadData ()
 Used only by LibreOfficeKit when used by Online to pre-initialize. More...
 
SAL_JNI_EXPORT LibreOfficeKit * libreofficekit_hook_2 (const char *install_path, const char *user_profile_url)
 
SAL_JNI_EXPORT LibreOfficeKit * libreofficekit_hook (const char *install_path)
 
SAL_JNI_EXPORT int lok_preinit (const char *install_path, const char *user_profile_url)
 
SAL_JNI_EXPORT int lok_preinit_2 (const char *install_path, const char *user_profile_url, LibreOfficeKit **kit)
 

Variables

static LibLibreOffice_ImplgImpl = nullptr
 
static bool lok_preinit_2_called = false
 
static std::weak_ptr< LibreOfficeKitClass > gOfficeClass
 
static std::weak_ptr< LibreOfficeKitDocumentClass > gDocumentClass
 
static TraceEventDumper * traceEventDumper = nullptr
 
const ExtensionMap aWriterExtensionMap []
 
const ExtensionMap aCalcExtensionMap []
 
const ExtensionMap aImpressExtensionMap []
 
const ExtensionMap aDrawExtensionMap []
 
static uno::Reference< css::uno::XComponentContext > xContext
 
static uno::Reference< css::lang::XMultiServiceFactory > xSFactory
 
static uno::Reference< css::lang::XMultiComponentFactory > xFactory
 
static bool bInitialized = false
 

Function Documentation

◆ aBasicErrorFunc()

static void aBasicErrorFunc ( const OUString &  rError,
const OUString &  rAction 
)
static

Definition at line 7125 of file init.cxx.

References aBuffer, and OUStringToOString().

Referenced by lo_initialize().

◆ convertOString()

static char * convertOString ( const OString &  rStr)
static

◆ convertOUString()

static char * convertOUString ( std::u16string_view  aStr)
static

◆ doc_addCertificate()

static bool doc_addCertificate ( LibreOfficeKitDocument *  pThis,
const unsigned char *  pCertificateBinary,
const int  nCertificateBinarySize 
)
static

◆ doc_completeFunction()

static void doc_completeFunction ( LibreOfficeKitDocument *  pThis,
const char *  pFunctionName 
)
static

Definition at line 6878 of file init.cxx.

References SetLastExceptionMsg().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_createView()

static int doc_createView ( LibreOfficeKitDocument *  pThis)
static

Definition at line 6396 of file init.cxx.

References doc_createViewWithOptions().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_createViewWithOptions()

static int doc_createViewWithOptions ( LibreOfficeKitDocument *  pThis,
const char *  pOptions 
)
static

◆ doc_destroy()

static void doc_destroy ( LibreOfficeKitDocument *  pThis)
static

◆ doc_destroyView() [1/2]

static void doc_destroyView ( LibreOfficeKitDocument *  pThis,
int  nId 
)
static

◆ doc_destroyView() [2/2]

static void doc_destroyView ( SAL_UNUSED_PARAMETER LibreOfficeKitDocument *  pThis,
int  nId 
)
static

◆ doc_getA11yCaretPosition()

static int doc_getA11yCaretPosition ( LibreOfficeKitDocument *  pThis)
static

◆ doc_getA11yFocusedParagraph()

static char * doc_getA11yFocusedParagraph ( LibreOfficeKitDocument *  pThis)
static

◆ doc_getClipboard()

static int doc_getClipboard ( LibreOfficeKitDocument *  pThis,
const char **  pMimeTypes,
size_t *  pOutCount,
char ***  pOutMimeTypes,
size_t **  pOutSizes,
char ***  pOutStreams 
)
static

◆ doc_getCommandValues()

static char * doc_getCommandValues ( LibreOfficeKitDocument *  pThis,
const char *  pCommand 
)
static

◆ doc_getDataArea()

static void doc_getDataArea ( LibreOfficeKitDocument *  pThis,
long  nTab,
long *  pCol,
long *  pRow 
)
static

◆ doc_getDocumentSize()

static void doc_getDocumentSize ( LibreOfficeKitDocument *  pThis,
long *  pWidth,
long *  pHeight 
)
static

◆ doc_getDocumentType()

static int doc_getDocumentType ( LibreOfficeKitDocument *  pThis)
static

◆ doc_getEditMode()

static int doc_getEditMode ( LibreOfficeKitDocument *  pThis)
static

Definition at line 3914 of file init.cxx.

References SetLastExceptionMsg().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_getPart()

static int doc_getPart ( LibreOfficeKitDocument *  pThis)
static

◆ doc_getPartHash()

static char * doc_getPartHash ( LibreOfficeKitDocument *  pThis,
int  nPart 
)
static

Definition at line 3858 of file init.cxx.

References convertOUString(), and SetLastExceptionMsg().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_getPartInfo()

static char * doc_getPartInfo ( LibreOfficeKitDocument *  pThis,
int  nPart 
)
static

Definition at line 3737 of file init.cxx.

References convertOUString(), and SetLastExceptionMsg().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_getPartName()

static char * doc_getPartName ( LibreOfficeKitDocument *  pThis,
int  nPart 
)
static

Definition at line 3841 of file init.cxx.

References convertOUString(), and SetLastExceptionMsg().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_getPartPageRectangles()

static char * doc_getPartPageRectangles ( LibreOfficeKitDocument *  pThis)
static

Definition at line 3784 of file init.cxx.

References convertOUString(), and SetLastExceptionMsg().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_getParts()

static int doc_getParts ( LibreOfficeKitDocument *  pThis)
static

Definition at line 3682 of file init.cxx.

References SetLastExceptionMsg().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_getSelectionType()

static int doc_getSelectionType ( LibreOfficeKitDocument *  pThis)
static

◆ doc_getSelectionTypeAndText()

static int doc_getSelectionTypeAndText ( LibreOfficeKitDocument *  pThis,
const char *  pMimeType,
char **  pText,
char **  pUsedMimeType 
)
static

◆ doc_getSignatureState()

static int doc_getSignatureState ( LibreOfficeKitDocument *  pThis)
static

◆ doc_getTextSelection()

static char * doc_getTextSelection ( LibreOfficeKitDocument *  pThis,
const char *  pMimeType,
char **  pUsedMimeType 
)
static

◆ doc_getTileMode() [1/2]

static int doc_getTileMode ( LibreOfficeKitDocument *  pThis)
static

◆ doc_getTileMode() [2/2]

static int doc_getTileMode ( SAL_UNUSED_PARAMETER LibreOfficeKitDocument *  )
static

Definition at line 4234 of file init.cxx.

References SetLastExceptionMsg().

◆ doc_getView() [1/2]

static int doc_getView ( LibreOfficeKitDocument *  pThis)
static

◆ doc_getView() [2/2]

static int doc_getView ( SAL_UNUSED_PARAMETER LibreOfficeKitDocument *  )
static

Definition at line 6428 of file init.cxx.

References SfxLokHelper::getView(), and SetLastExceptionMsg().

◆ doc_getViewIds() [1/2]

static bool doc_getViewIds ( LibreOfficeKitDocument *  pThis,
int pArray,
size_t  nSize 
)
static

◆ doc_getViewIds() [2/2]

static bool doc_getViewIds ( SAL_UNUSED_PARAMETER LibreOfficeKitDocument *  pThis,
int pArray,
size_t  nSize 
)
static

◆ doc_getViewsCount() [1/2]

static int doc_getViewsCount ( LibreOfficeKitDocument *  pThis)
static

◆ doc_getViewsCount() [2/2]

static int doc_getViewsCount ( SAL_UNUSED_PARAMETER LibreOfficeKitDocument *  pThis)
static

◆ doc_initializeForRendering()

static void doc_initializeForRendering ( LibreOfficeKitDocument *  pThis,
const char *  pArguments 
)
static

◆ doc_iniUnoCommands()

static void doc_iniUnoCommands ( )
static

Initialize UNO commands, in the sense that from now on, the LOK client gets updates for status changes of these commands.

This is necessary, because (unlike in the desktop case) there are no toolbars hosting widgets these UNO commands, so no such status updates would be sent to the headless LOK clients out of the box.

Definition at line 3401 of file init.cxx.

References dp_registry::backend::bundle::create(), SfxViewShell::Current(), SfxViewFrame::GetBindings(), SfxBindings::GetDispatch(), comphelper::getProcessComponentContext(), SfxSlotPool::GetSlotPool(), SfxSlotPool::GetUnoSlot(), SfxViewShell::GetViewFrame(), SAL_WARN, SetLastExceptionMsg(), and xContext.

Referenced by doc_initializeForRendering().

◆ doc_insertCertificate()

static bool doc_insertCertificate ( LibreOfficeKitDocument *  pThis,
const unsigned char *  pCertificateBinary,
const int  nCertificateBinarySize,
const unsigned char *  pPrivateKeyBinary,
const int  nPrivateKeyBinarySize 
)
static

◆ doc_moveSelectedParts()

static void doc_moveSelectedParts ( LibreOfficeKitDocument *  pThis,
int  nPosition,
bool  bDuplicate 
)
static

◆ doc_paintPartTile()

static void doc_paintPartTile ( LibreOfficeKitDocument *  pThis,
unsigned char *  pBuffer,
const int  nPart,
const int  nMode,
const int  nCanvasWidth,
const int  nCanvasHeight,
const int  nTilePosX,
const int  nTilePosY,
const int  nTileWidth,
const int  nTileHeight 
)
static

◆ doc_paintTile()

static void doc_paintTile ( LibreOfficeKitDocument *  pThis,
unsigned char *  pBuffer,
const int  nCanvasWidth,
const int  nCanvasHeight,
const int  nTilePosX,
const int  nTilePosY,
const int  nTileWidth,
const int  nTileHeight 
)
static

◆ doc_paintWindow()

static void doc_paintWindow ( LibreOfficeKitDocument *  pThis,
unsigned  nLOKWindowId,
unsigned char *  pBuffer,
const int  nX,
const int  nY,
const int  nWidth,
const int  nHeight 
)
static

Definition at line 6570 of file init.cxx.

References doc_paintWindowDPI().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_paintWindowDPI()

static void doc_paintWindowDPI ( LibreOfficeKitDocument *  pThis,
unsigned  nLOKWindowId,
unsigned char *  pBuffer,
const int  nX,
const int  nY,
const int  nWidth,
const int  nHeight,
const double  fDPIScale 
)
static

◆ doc_paintWindowForView()

static void doc_paintWindowForView ( LibreOfficeKitDocument *  pThis,
unsigned  nLOKWindowId,
unsigned char *  pBuffer,
const int  nX,
const int  nY,
const int  nWidth,
const int  nHeight,
const double  fDPIScale,
int  viewId 
)
static

◆ doc_paste()

static bool doc_paste ( LibreOfficeKitDocument *  pThis,
const char *  pMimeType,
const char *  pData,
size_t  nSize 
)
static

◆ doc_postKeyEvent()

static void doc_postKeyEvent ( LibreOfficeKitDocument *  pThis,
int  nType,
int  nCharCode,
int  nKeyCode 
)
static

Definition at line 4430 of file init.cxx.

References nType, SAL_INFO, and SetLastExceptionMsg().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_postMouseEvent()

static void doc_postMouseEvent ( LibreOfficeKitDocument *  pThis,
int  nType,
int  nX,
int  nY,
int  nCount,
int  nButtons,
int  nModifier 
)
static

Definition at line 5038 of file init.cxx.

References nCount, nType, SAL_INFO, and SetLastExceptionMsg().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_postUnoCommand()

static void doc_postUnoCommand ( LibreOfficeKitDocument *  pThis,
const char *  pCommand,
const char *  pArguments,
bool  bNotifyWhenFinished 
)
static

◆ doc_postWindow()

static void doc_postWindow ( LibreOfficeKitDocument *  pThis,
unsigned  nLOKWindowId,
int  nAction,
const char *  pData 
)
static

◆ doc_postWindowExtTextInputEvent()

static void doc_postWindowExtTextInputEvent ( LibreOfficeKitDocument *  pThis,
unsigned  nWindowId,
int  nType,
const char *  pText 
)
static

◆ doc_postWindowGestureEvent()

static void doc_postWindowGestureEvent ( LibreOfficeKitDocument *  pThis,
unsigned  nLOKWindowId,
const char *  pType,
int  nX,
int  nY,
int  nOffset 
)
static

◆ doc_postWindowKeyEvent()

static void doc_postWindowKeyEvent ( LibreOfficeKitDocument *  pThis,
unsigned  nLOKWindowId,
int  nType,
int  nCharCode,
int  nKeyCode 
)
static

◆ doc_postWindowMouseEvent()

static void doc_postWindowMouseEvent ( LibreOfficeKitDocument *  pThis,
unsigned  nLOKWindowId,
int  nType,
int  nX,
int  nY,
int  nCount,
int  nButtons,
int  nModifier 
)
static

◆ doc_registerCallback()

static void doc_registerCallback ( LibreOfficeKitDocument *  pThis,
LibreOfficeKitCallback  pCallback,
void *  pData 
)
static

◆ doc_removeTextContext()

static void doc_removeTextContext ( LibreOfficeKitDocument *  pThis,
unsigned  nLOKWindowId,
int  nCharBefore,
int  nCharAfter 
)
static

◆ doc_renderFont()

unsigned char * doc_renderFont ( LibreOfficeKitDocument *  pThis,
const char *  pFontName,
const char *  pChar,
int pFontWidth,
int pFontHeight 
)
static

Definition at line 6472 of file init.cxx.

References doc_renderFontOrientation(), and pChar.

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_renderFontOrientation() [1/2]

static unsigned char * doc_renderFontOrientation ( LibreOfficeKitDocument *  pThis,
const char *  pFontName,
const char *  pChar,
int pFontWidth,
int pFontHeight,
int  pOrientation 
)
static

◆ doc_renderFontOrientation() [2/2]

unsigned char * doc_renderFontOrientation ( SAL_UNUSED_PARAMETER LibreOfficeKitDocument *  ,
const char *  pFontName,
const char *  pChar,
int pFontWidth,
int pFontHeight,
int  pOrientation 
)

◆ doc_renderSearchResult()

static bool doc_renderSearchResult ( LibreOfficeKitDocument *  pThis,
const char *  pSearchResult,
unsigned char **  pBitmapBuffer,
int pWidth,
int pHeight,
size_t *  pByteSize 
)
static

◆ doc_renderShapeSelection()

static size_t doc_renderShapeSelection ( LibreOfficeKitDocument *  pThis,
char **  pOutput 
)
static

◆ doc_resetSelection()

static void doc_resetSelection ( LibreOfficeKitDocument *  pThis)
static

Definition at line 5746 of file init.cxx.

References SetLastExceptionMsg().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_resizeWindow()

static void doc_resizeWindow ( LibreOfficeKitDocument *  pThis,
unsigned  nLOKWindowId,
const int  nWidth,
const int  nHeight 
)
static

◆ doc_saveAs()

static int doc_saveAs ( LibreOfficeKitDocument *  pThis,
const char *  pUrl,
const char *  pFormat,
const char *  pFilterOptions 
)
static

◆ doc_selectPart()

static void doc_selectPart ( LibreOfficeKitDocument *  pThis,
int  nPart,
int  nSelect 
)
static

◆ doc_sendContentControlEvent()

static void doc_sendContentControlEvent ( LibreOfficeKitDocument *  pThis,
const char *  pArguments 
)
static

◆ doc_sendDialogEvent()

static void doc_sendDialogEvent ( LibreOfficeKitDocument *  pThis,
unsigned long long int  nLOKWindowId,
const char *  pArguments 
)
static

Definition at line 4734 of file init.cxx.

References lcl_sendDialogEvent().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_sendFormFieldEvent()

static void doc_sendFormFieldEvent ( LibreOfficeKitDocument *  pThis,
const char *  pArguments 
)
static

◆ doc_setAccessibilityState() [1/2]

static void doc_setAccessibilityState ( LibreOfficeKitDocument *  pThis,
int  nId,
bool  bEnabled 
)
static

◆ doc_setAccessibilityState() [2/2]

static void doc_setAccessibilityState ( SAL_UNUSED_PARAMETER LibreOfficeKitDocument *  pThis,
int  nId,
bool  nEnabled 
)
static

Definition at line 7014 of file init.cxx.

References nId, SfxLokHelper::setAccessibilityState(), and SetLastExceptionMsg().

◆ doc_setBlockedCommandList()

static void doc_setBlockedCommandList ( LibreOfficeKitDocument *  pThis,
int  nViewId,
const char *  blockedCommandList 
)
static

◆ doc_setClientVisibleArea()

static void doc_setClientVisibleArea ( LibreOfficeKitDocument *  pThis,
int  nX,
int  nY,
int  nWidth,
int  nHeight 
)
static

Definition at line 6326 of file init.cxx.

References SetLastExceptionMsg().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_setClientZoom()

static void doc_setClientZoom ( LibreOfficeKitDocument *  pThis,
int  nTilePixelWidth,
int  nTilePixelHeight,
int  nTileTwipWidth,
int  nTileTwipHeight 
)
static

Definition at line 6308 of file init.cxx.

References SetLastExceptionMsg().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_setClipboard()

static int doc_setClipboard ( LibreOfficeKitDocument *  pThis,
const size_t  nInCount,
const char **  pInMimeTypes,
const size_t *  pInSizes,
const char **  pInStreams 
)
static

Definition at line 5532 of file init.cxx.

References SAL_INFO, and SetLastExceptionMsg().

Referenced by doc_paste(), and desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_setGraphicSelection()

static void doc_setGraphicSelection ( LibreOfficeKitDocument *  pThis,
int  nType,
int  nX,
int  nY 
)
static

Definition at line 5603 of file init.cxx.

References nType, and SetLastExceptionMsg().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_setOutlineState()

static void doc_setOutlineState ( LibreOfficeKitDocument *  pThis,
bool  bColumn,
int  nLevel,
int  nIndex,
bool  bHidden 
)
static

Definition at line 6344 of file init.cxx.

References nIndex, and SetLastExceptionMsg().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_setPart()

static void doc_setPart ( LibreOfficeKitDocument *  pThis,
int  nPart 
)
static

Definition at line 3732 of file init.cxx.

References doc_setPartImpl().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_setPartImpl()

static void doc_setPartImpl ( LibreOfficeKitDocument *  pThis,
int  nPart,
bool  bAllowChangeFocus = true 
)
static

Definition at line 3715 of file init.cxx.

References SetLastExceptionMsg().

Referenced by doc_paintPartTile(), and doc_setPart().

◆ doc_setPartMode()

static void doc_setPartMode ( LibreOfficeKitDocument *  pThis,
int  nPartMode 
)
static

Definition at line 3875 of file init.cxx.

References SetLastExceptionMsg().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_setTextSelection()

static void doc_setTextSelection ( LibreOfficeKitDocument *  pThis,
int  nType,
int  nX,
int  nY 
)
static

Definition at line 5134 of file init.cxx.

References nType, and SetLastExceptionMsg().

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ doc_setView() [1/2]

static void doc_setView ( LibreOfficeKitDocument *  pThis,
int  nId 
)
static

◆ doc_setView() [2/2]

static void doc_setView ( SAL_UNUSED_PARAMETER LibreOfficeKitDocument *  ,
int  nId 
)
static

Definition at line 6418 of file init.cxx.

References nId, SetLastExceptionMsg(), and SfxLokHelper::setView().

◆ doc_setViewLanguage() [1/2]

static void doc_setViewLanguage ( LibreOfficeKitDocument *  pThis,
int  nId,
const char *  language 
)
static

◆ doc_setViewLanguage() [2/2]

static void doc_setViewLanguage ( SAL_UNUSED_PARAMETER LibreOfficeKitDocument *  ,
int  nId,
const char *  language 
)
static

◆ doc_setViewTimezone() [1/2]

static void doc_setViewTimezone ( LibreOfficeKitDocument *  pThis,
int  nId,
const char *  timezone 
)
static

◆ doc_setViewTimezone() [2/2]

static void doc_setViewTimezone ( SAL_UNUSED_PARAMETER LibreOfficeKitDocument *  ,
int  nId,
const char *  pTimezone 
)
static

Definition at line 6998 of file init.cxx.

References nId, SetLastExceptionMsg(), and SfxLokHelper::setViewTimezone().

◆ doc_setWindowTextSelection()

static void doc_setWindowTextSelection ( LibreOfficeKitDocument *  pThis,
unsigned  nLOKWindowId,
bool  swap,
int  nX,
int  nY 
)
static

◆ encodeImageAsHTML()

static bool encodeImageAsHTML ( const css::uno::Reference< css::datatransfer::XTransferable > &  xTransferable,
const OString &  aMimeType,
OString &  aRet 
)
static

◆ encodeTextAsHTML()

static bool encodeTextAsHTML ( const css::uno::Reference< css::datatransfer::XTransferable > &  xTransferable,
const OString &  aMimeType,
OString &  aRet 
)
static

Definition at line 5206 of file init.cxx.

References aMimeType, getFromTransferable(), and getGenerator().

Referenced by getFromTransferable().

◆ extractLinks()

static void extractLinks ( const uno::Reference< container::XNameAccess > &  xLinks,
bool  subcontent,
tools::JsonWriter aJson 
)
static

◆ getAbsoluteURL()

static OUString getAbsoluteURL ( const char *  pURL)
static

Try to convert a relative URL to an absolute one, unless it already looks like a URL.

Definition at line 380 of file init.cxx.

References aURL, and getUString().

Referenced by doc_saveAs(), lo_documentLoadWithOptions(), lo_extractRequest(), and lo_signDocument().

◆ getDocLanguages()

static void getDocLanguages ( LibreOfficeKitDocument *  pThis,
uno::Sequence< lang::Locale > &  rSeq 
)
static

◆ getFonts()

static char * getFonts ( const char *  pCommand)
static

◆ getFontSubset()

static char * getFontSubset ( std::string_view  aFontName)
static

Definition at line 5855 of file init.cxx.

References SubsetMap::GetSubsetMap().

Referenced by doc_getCommandValues().

◆ getFromTransferable()

static bool getFromTransferable ( const css::uno::Reference< css::datatransfer::XTransferable > &  xTransferable,
const OString &  aInMimeType,
OString &  aRet 
)
static

◆ getGenerator()

static OUString getGenerator ( )
static

Definition at line 1513 of file init.cxx.

References Translate::ExpandVariables().

Referenced by encodeImageAsHTML(), and encodeTextAsHTML().

◆ getLanguages()

static char * getLanguages ( LibreOfficeKitDocument *  pThis,
const char *  pCommand 
)
static

◆ getPostIts()

static char * getPostIts ( LibreOfficeKitDocument *  pThis)
static

Returns the JSON representation of all the comments in the document.

Definition at line 4387 of file init.cxx.

References tools::JsonWriter::finishAndGetAsOString(), and SetLastExceptionMsg().

Referenced by doc_getCommandValues().

◆ getPostItsPos()

static char * getPostItsPos ( LibreOfficeKitDocument *  pThis)
static

Returns the JSON representation of the positions of all the comments in the document.

Definition at line 4402 of file init.cxx.

References tools::JsonWriter::finishAndGetAsOString(), and SetLastExceptionMsg().

Referenced by doc_getCommandValues().

◆ getRulerState()

static char * getRulerState ( LibreOfficeKitDocument *  pThis)
static

Definition at line 4416 of file init.cxx.

References tools::JsonWriter::finishAndGetAsOString(), and SetLastExceptionMsg().

Referenced by doc_getCommandValues().

◆ getStyles()

static char * getStyles ( LibreOfficeKitDocument *  pThis,
const char *  pCommand 
)
static

◆ getTrackedChangeAuthors()

static char * getTrackedChangeAuthors ( LibreOfficeKitDocument *  pThis)
static

Returns the JSON representation of the redline author table.

Definition at line 6107 of file init.cxx.

References tools::JsonWriter::finishAndGetAsOString(), and SetLastExceptionMsg().

Referenced by doc_getCommandValues().

◆ getTrackedChanges()

static char * getTrackedChanges ( LibreOfficeKitDocument *  pThis)
static

◆ getUndoOrRedo()

static char * getUndoOrRedo ( LibreOfficeKitDocument *  pThis,
UndoOrRedo  eCommand 
)
static

Returns the JSON representation of either an undo or a redo stack.

Definition at line 6024 of file init.cxx.

References SfxBaseModel::GetObjectShell(), SfxUndoManager::GetRedoActionsInfo(), SfxUndoManager::GetUndoActionsInfo(), SfxShell::GetUndoManager(), and desktop::LibLODocument_Impl::mxComponent.

Referenced by doc_getCommandValues().

◆ getUString()

static OUString getUString ( const char *  pString)
static

◆ initialize_uno()

static bool initialize_uno ( const OUString &  aAppProgramURL)
static

◆ isUpdatedType()

static bool isUpdatedType ( int  type)
static

◆ isUpdatedTypePerViewId()

static bool isUpdatedTypePerViewId ( int  type)
static

◆ lcl_getViewId()

static int lcl_getViewId ( std::string_view  payload)
static

◆ lcl_isViewCallbackType()

static bool lcl_isViewCallbackType ( const int  type)
static

Definition at line 717 of file init.cxx.

References type.

Referenced by desktop::CallbackFlushHandler::Invoke().

◆ lcl_sendDialogEvent()

static void lcl_sendDialogEvent ( unsigned long long int  nWindowId,
const char *  pArguments 
)
static

◆ libreofficekit_hook()

SAL_JNI_EXPORT LibreOfficeKit * libreofficekit_hook ( const char *  install_path)

Definition at line 7896 of file init.cxx.

References libreofficekit_hook_2().

◆ libreofficekit_hook_2()

SAL_JNI_EXPORT LibreOfficeKit * libreofficekit_hook_2 ( const char *  install_path,
const char *  user_profile_url 
)

Definition at line 7873 of file init.cxx.

References gImpl, lo_destroy(), lo_initialize(), lok_preinit_2_called, and SAL_INFO.

Referenced by libreofficekit_hook().

◆ lo_destroy()

static void lo_destroy ( LibreOfficeKit *  pThis)
static

◆ lo_documentLoad()

static LibreOfficeKitDocument * lo_documentLoad ( LibreOfficeKit *  pThis,
const char *  pURL 
)
static

◆ lo_documentLoadWithOptions()

static LibreOfficeKitDocument * lo_documentLoadWithOptions ( LibreOfficeKit *  pThis,
const char *  pURL,
const char *  pOptions 
)
static

◆ lo_dumpState()

static void lo_dumpState ( LibreOfficeKit *  pThis,
const char *  pOptions,
char **  pState 
)
static

Definition at line 4797 of file init.cxx.

References aStr, pLib, and SetLastExceptionMsg().

Referenced by desktop::LibLibreOffice_Impl::LibLibreOffice_Impl().

◆ lo_extractRequest()

static char * lo_extractRequest ( LibreOfficeKit *  pThis,
const char *  pFilePath 
)
static

◆ lo_freeError()

static void lo_freeError ( char *  pFree)
static

Definition at line 7036 of file init.cxx.

Referenced by desktop::LibLibreOffice_Impl::LibLibreOffice_Impl().

◆ lo_getError()

static char * lo_getError ( LibreOfficeKit *  pThis)
static

Definition at line 7026 of file init.cxx.

References convertOUString(), and pLib.

Referenced by desktop::LibLibreOffice_Impl::LibLibreOffice_Impl().

◆ lo_getFilterTypes()

static char * lo_getFilterTypes ( LibreOfficeKit *  pThis)
static

◆ lo_getVersionInfo() [1/2]

static char * lo_getVersionInfo ( LibreOfficeKit *  pThis)
static

◆ lo_getVersionInfo() [2/2]

static char * lo_getVersionInfo ( SAL_UNUSED_PARAMETER LibreOfficeKit *  )
static

◆ lo_initialize()

static int lo_initialize ( LibreOfficeKit *  pThis,
const char *  pInstallPath,
const char *  pUserProfilePath 
)
static

◆ lo_registerCallback()

static void lo_registerCallback ( LibreOfficeKit *  pThis,
LibreOfficeKitCallback  pCallback,
void *  pData 
)
static

◆ lo_runLoop()

static void lo_runLoop ( LibreOfficeKit *  pThis,
LibreOfficeKitPollCallback  pPollCallback,
LibreOfficeKitWakeCallback  pWakeCallback,
void *  pData 
)
static

◆ lo_runMacro()

static int lo_runMacro ( LibreOfficeKit *  pThis,
const char *  pURL 
)
static

◆ lo_sendDialogEvent()

static void lo_sendDialogEvent ( LibreOfficeKit *  pThis,
unsigned long long int  nLOKWindowId,
const char *  pArguments 
)
static

Definition at line 4739 of file init.cxx.

References lcl_sendDialogEvent().

Referenced by desktop::LibLibreOffice_Impl::LibLibreOffice_Impl().

◆ lo_setDocumentPassword()

static void lo_setDocumentPassword ( LibreOfficeKit *  pThis,
const char *  pURL,
const char *  pPassword 
)
static

Definition at line 7097 of file init.cxx.

References pLib, and SetLastExceptionMsg().

Referenced by desktop::LibLibreOffice_Impl::LibLibreOffice_Impl().

◆ lo_setOption()

static void lo_setOption ( LibreOfficeKit *  pThis,
const char *  pOption,
const char *  pValue 
)
static

◆ lo_setOptionalFeatures()

static void lo_setOptionalFeatures ( LibreOfficeKit *  pThis,
unsigned long long  features 
)
static

◆ lo_signDocument()

static bool lo_signDocument ( LibreOfficeKit *  pThis,
const char *  pUrl,
const unsigned char *  pCertificateBinary,
const int  nCertificateBinarySize,
const unsigned char *  pPrivateKeyBinary,
const int  nPrivateKeyBinarySize 
)
static

◆ lo_startmain()

static void lo_startmain ( void *  )
static

◆ lo_status_indicator_callback()

static void lo_status_indicator_callback ( void *  data,
comphelper::LibreOfficeKit::statusIndicatorCallbackType  type,
int  percent,
const char *  pText 
)
static

◆ lo_trimMemory()

static void lo_trimMemory ( LibreOfficeKit *  pThis,
int  nTarget 
)
static

Definition at line 3148 of file init.cxx.

References vcl::lok::trimMemory().

Referenced by desktop::LibLibreOffice_Impl::LibLibreOffice_Impl().

◆ lok_preinit()

SAL_JNI_EXPORT int lok_preinit ( const char *  install_path,
const char *  user_profile_url 
)

Definition at line 7902 of file init.cxx.

References lo_initialize().

◆ lok_preinit_2()

SAL_JNI_EXPORT int lok_preinit_2 ( const char *  install_path,
const char *  user_profile_url,
LibreOfficeKit **  kit 
)

Definition at line 7908 of file init.cxx.

References gImpl, lo_initialize(), lok_preinit_2_called, and result.

◆ preloadData()

static void preloadData ( )
static

◆ preLoadShortCutAccelerators()

static void preLoadShortCutAccelerators ( )
static

Used by preloadData (LibreOfficeKit) for providing different shortcuts for different languages.

Definition at line 7240 of file init.cxx.

References comphelper::ConfigurationChanges::create(), SfxLokHelper::getAcceleratorConfs(), LanguageTag::getLocale(), i, comphelper::LibreOfficeKit::isAllowlistedLanguage(), and svt::AcceleratorExecute::lok_createNewAcceleratorConfiguration().

Referenced by preloadData().

◆ SetLastExceptionMsg()

static void SetLastExceptionMsg ( const OUString &  s = OUString())
static

Definition at line 235 of file init.cxx.

References gImpl, desktop::LibLibreOffice_Impl::maLastExceptionMsg, and SAL_WARN_IF.

Referenced by doc_completeFunction(), doc_createViewWithOptions(), doc_destroyView(), doc_getA11yCaretPosition(), doc_getA11yFocusedParagraph(), doc_getClipboard(), doc_getCommandValues(), doc_getDataArea(), doc_getDocumentSize(), doc_getEditMode(), doc_getPart(), doc_getPartHash(), doc_getPartInfo(), doc_getPartName(), doc_getPartPageRectangles(), doc_getParts(), doc_getSelectionType(), doc_getSelectionTypeAndText(), doc_getTextSelection(), doc_getTileMode(), doc_getView(), doc_getViewIds(), doc_getViewsCount(), doc_initializeForRendering(), doc_iniUnoCommands(), doc_paintPartTile(), doc_paintTile(), doc_paintWindowForView(), doc_paste(), doc_postKeyEvent(), doc_postMouseEvent(), doc_postUnoCommand(), doc_postWindow(), doc_postWindowExtTextInputEvent(), doc_postWindowGestureEvent(), doc_postWindowKeyEvent(), doc_postWindowMouseEvent(), doc_registerCallback(), doc_renderFontOrientation(), doc_renderSearchResult(), doc_renderShapeSelection(), doc_resetSelection(), doc_saveAs(), doc_sendContentControlEvent(), doc_sendFormFieldEvent(), doc_setAccessibilityState(), doc_setClientVisibleArea(), doc_setClientZoom(), doc_setClipboard(), doc_setGraphicSelection(), doc_setOutlineState(), doc_setPartImpl(), doc_setPartMode(), doc_setTextSelection(), doc_setView(), doc_setViewLanguage(), doc_setViewTimezone(), doc_setWindowTextSelection(), getFromTransferable(), getPostIts(), getPostItsPos(), getRulerState(), getTrackedChangeAuthors(), getTrackedChanges(), initialize_uno(), lo_dumpState(), lo_getFilterTypes(), lo_getVersionInfo(), lo_setDocumentPassword(), and lo_setOptionalFeatures().

◆ unoAnyToJson()

static void unoAnyToJson ( tools::JsonWriter rJson,
std::string_view  pNodeName,
const uno::Any anyItem 
)
static

Definition at line 485 of file init.cxx.

References aSeq, i, tools::JsonWriter::put(), tools::JsonWriter::startNode(), and unoAnyToJson().

Referenced by unoAnyToJson().

Variable Documentation

◆ aCalcExtensionMap

const ExtensionMap aCalcExtensionMap[]
Initial value:
=
{
{ "csv", "Text - txt - csv (StarCalc)" },
{ "fods", "OpenDocument Spreadsheet Flat XML" },
{ "html", "HTML (StarCalc)" },
{ "ods", "calc8" },
{ "ots", "calc8_template" },
{ "pdf", "calc_pdf_Export" },
{ "xhtml", "XHTML Calc File" },
{ "xls", "MS Excel 97" },
{ "xlsm", "Calc MS Excel 2007 VBA XML" },
{ "xlsx", "Calc MS Excel 2007 XML" },
{ "png", "calc_png_Export" },
{ nullptr, nullptr }
}

Definition at line 308 of file init.cxx.

Referenced by doc_saveAs().

◆ aDrawExtensionMap

const ExtensionMap aDrawExtensionMap[]
Initial value:
=
{
{ "fodg", "draw_ODG_FlatXML" },
{ "html", "draw_html_Export" },
{ "odg", "draw8" },
{ "pdf", "draw_pdf_Export" },
{ "svg", "draw_svg_Export" },
{ "xhtml", "XHTML Draw File" },
{ "png", "draw_png_Export"},
{ nullptr, nullptr }
}

Definition at line 344 of file init.cxx.

Referenced by doc_saveAs().

◆ aImpressExtensionMap

const ExtensionMap aImpressExtensionMap[]
Initial value:
=
{
{ "fodp", "OpenDocument Presentation Flat XML" },
{ "html", "impress_html_Export" },
{ "odg", "impress8_draw" },
{ "odp", "impress8" },
{ "otp", "impress8_template" },
{ "pdf", "impress_pdf_Export" },
{ "potm", "Impress MS PowerPoint 2007 XML Template" },
{ "pot", "MS PowerPoint 97 Vorlage" },
{ "pptm", "Impress MS PowerPoint 2007 XML VBA" },
{ "pptx", "Impress MS PowerPoint 2007 XML" },
{ "pps", "MS PowerPoint 97 Autoplay" },
{ "ppt", "MS PowerPoint 97" },
{ "svg", "impress_svg_Export" },
{ "xhtml", "XHTML Impress File" },
{ "png", "impress_png_Export"},
{ nullptr, nullptr }
}

Definition at line 324 of file init.cxx.

Referenced by doc_saveAs().

◆ aWriterExtensionMap

const ExtensionMap aWriterExtensionMap[]
Initial value:
=
{
{ "doc", "MS Word 97" },
{ "docm", "MS Word 2007 XML VBA" },
{ "docx", "MS Word 2007 XML" },
{ "fodt", "OpenDocument Text Flat XML" },
{ "html", "HTML (StarWriter)" },
{ "odt", "writer8" },
{ "ott", "writer8_template" },
{ "pdf", "writer_pdf_Export" },
{ "epub", "EPUB" },
{ "rtf", "Rich Text Format" },
{ "txt", "Text" },
{ "xhtml", "XHTML Writer File" },
{ "png", "writer_png_Export" },
{ "xml", "writer_indexing_export" },
{ nullptr, nullptr }
}

Definition at line 289 of file init.cxx.

Referenced by doc_saveAs().

◆ bInitialized

bool bInitialized = false
static

Definition at line 7215 of file init.cxx.

Referenced by lo_destroy(), and lo_initialize().

◆ gDocumentClass

std::weak_ptr< LibreOfficeKitDocumentClass > gDocumentClass
static

Definition at line 233 of file init.cxx.

Referenced by desktop::LibLODocument_Impl::LibLODocument_Impl().

◆ gImpl

LibLibreOffice_Impl* gImpl = nullptr
static

◆ gOfficeClass

std::weak_ptr< LibreOfficeKitClass > gOfficeClass
static

Definition at line 232 of file init.cxx.

Referenced by desktop::LibLibreOffice_Impl::LibLibreOffice_Impl().

◆ lok_preinit_2_called

bool lok_preinit_2_called = false
static

Definition at line 231 of file init.cxx.

Referenced by libreofficekit_hook_2(), lo_initialize(), and lok_preinit_2().

◆ traceEventDumper

TraceEventDumper* traceEventDumper = nullptr
static

Definition at line 287 of file init.cxx.

Referenced by lo_initialize(), and lo_setOption().

◆ xContext

uno::Reference<css::uno::XComponentContext> xContext
static

◆ xFactory

uno::Reference<css::lang::XMultiComponentFactory> xFactory
static

Definition at line 2644 of file init.cxx.

Referenced by initialize_uno(), and lo_runMacro().

◆ xSFactory

uno::Reference<css::lang::XMultiServiceFactory> xSFactory
static

Definition at line 2643 of file init.cxx.

Referenced by initialize_uno(), lo_getFilterTypes(), and lo_runMacro().