LibreOffice Module sfx2 (master) 1
Functions
lokhelper.cxx File Reference
#include <sal/config.h>
#include <string_view>
#include <sfx2/lokcomponenthelpers.hxx>
#include <sfx2/lokhelper.hxx>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/ui/ContextChangeEventObject.hpp>
#include <comphelper/processfactory.hxx>
#include <o3tl/string_view.hxx>
#include <rtl/strbuf.hxx>
#include <vcl/lok.hxx>
#include <vcl/svapp.hxx>
#include <vcl/commandevent.hxx>
#include <vcl/window.hxx>
#include <sal/log.hxx>
#include <sfx2/msg.hxx>
#include <sfx2/viewsh.hxx>
#include <sfx2/request.hxx>
#include <sfx2/sfxsids.hrc>
#include <sfx2/viewfrm.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <comphelper/lok.hxx>
#include <sfx2/msgpool.hxx>
#include <boost/property_tree/json_parser.hpp>
Include dependency graph for lokhelper.cxx:

Go to the source code of this file.

Functions

static OString lcl_sanitizeJSONAsValue (const OString &rStr)
 
static OString lcl_generateJSON (const SfxViewShell *pView, const boost::property_tree::ptree &rTree)
 
static OString lcl_generateJSON (const SfxViewShell *pView, int nViewId, std::string_view rKey, const OString &rPayload)
 
static OString lcl_generateJSON (const SfxViewShell *pView, std::string_view rKey, const OString &rPayload)
 

Function Documentation

◆ lcl_generateJSON() [1/3]

static OString lcl_generateJSON ( const SfxViewShell pView,
const boost::property_tree::ptree &  rTree 
)
static

◆ lcl_generateJSON() [2/3]

static OString lcl_generateJSON ( const SfxViewShell pView,
int  nViewId,
std::string_view  rKey,
const OString &  rPayload 
)
inlinestatic

◆ lcl_generateJSON() [3/3]

static OString lcl_generateJSON ( const SfxViewShell pView,
std::string_view  rKey,
const OString &  rPayload 
)
inlinestatic

Definition at line 444 of file lokhelper.cxx.

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

◆ lcl_sanitizeJSONAsValue()

static OString lcl_sanitizeJSONAsValue ( const OString &  rStr)
static

Definition at line 405 of file lokhelper.cxx.

References aBuf, and i.

Referenced by lcl_generateJSON().