LibreOffice Module editeng (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
EditDLL Class Reference

#include <eerdll.hxx>

Public Member Functions

 EditDLL ()
 
 ~EditDLL ()
 
GlobalEditDataGetGlobalData () const
 
std::shared_ptr< editeng::SharedVclResourcesGetSharedVclResources ()
 

Static Public Member Functions

static EditDLLGet ()
 

Private Attributes

std::unique_ptr< GlobalEditDatapGlobalData
 
std::weak_ptr< editeng::SharedVclResourcespSharedVcl
 

Detailed Description

Definition at line 37 of file eerdll.hxx.

Constructor & Destructor Documentation

◆ EditDLL()

EditDLL::EditDLL ( )

Definition at line 197 of file eerdll.cxx.

◆ ~EditDLL()

EditDLL::~EditDLL ( )

Definition at line 202 of file eerdll.cxx.

Member Function Documentation

◆ Get()

EditDLL & EditDLL::Get ( )
static

Prevent use-after-free errors during application shutdown. Previously this data was function-static, but then data in i18npool would be torn down before the destructor here ran, causing a crash.

Definition at line 71 of file eerdll.cxx.

References vcl::DeleteOnDeinit< typename T >::get().

Referenced by EditEngineItemPool::EditEngineItemPool(), and EditView::ExecuteSpellPopup().

◆ GetGlobalData()

GlobalEditData * EditDLL::GetGlobalData ( ) const
inline

Definition at line 46 of file eerdll.hxx.

References pGlobalData.

Referenced by EditEngineItemPool::EditEngineItemPool().

◆ GetSharedVclResources()

std::shared_ptr< editeng::SharedVclResources > EditDLL::GetSharedVclResources ( )

Definition at line 218 of file eerdll.cxx.

Member Data Documentation

◆ pGlobalData

std::unique_ptr<GlobalEditData> EditDLL::pGlobalData
private

Definition at line 39 of file eerdll.hxx.

Referenced by GetGlobalData().

◆ pSharedVcl

std::weak_ptr<editeng::SharedVclResources> EditDLL::pSharedVcl
private

Definition at line 40 of file eerdll.hxx.


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