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

Theoretically to hook into the (horrible) vcl dtranscomp.cxx code. More...

#include <lokclipboard.hxx>

Inheritance diagram for LOKClipboardFactory:
[legend]
Collaboration diagram for LOKClipboardFactory:
[legend]

Public Member Functions

 LOKClipboardFactory ()
 
css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance () override
 
css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments (const css::uno::Sequence< css::uno::Any > &) override
 

Static Public Member Functions

static rtl::Reference< LOKClipboardgetClipboardForCurView ()
 Fetch clipboard from the global pool. More...
 
static void releaseClipboardForView (int nViewId)
 Release a clipboard before its document dies, nViewId of -1 clears all. More...
 

Static Private Attributes

static osl::Mutex gMutex
 

Detailed Description

Theoretically to hook into the (horrible) vcl dtranscomp.cxx code.

Definition at line 90 of file lokclipboard.hxx.

Constructor & Destructor Documentation

◆ LOKClipboardFactory()

LOKClipboardFactory::LOKClipboardFactory ( )
inline

Definition at line 95 of file lokclipboard.hxx.

Member Function Documentation

◆ createInstance()

css::uno::Reference< css::uno::XInterface > SAL_CALL LOKClipboardFactory::createInstance ( )
inlineoverride

Definition at line 100 of file lokclipboard.hxx.

References createInstanceWithArguments().

◆ createInstanceWithArguments()

uno::Reference< uno::XInterface > SAL_CALL LOKClipboardFactory::createInstanceWithArguments ( const css::uno::Sequence< css::uno::Any > &  )
override

Definition at line 64 of file lokclipboard.cxx.

References getClipboardForCurView().

Referenced by createInstance().

◆ getClipboardForCurView()

rtl::Reference< LOKClipboard > LOKClipboardFactory::getClipboardForCurView ( )
static

Fetch clipboard from the global pool.

Definition at line 25 of file lokclipboard.cxx.

References gClipboards, SfxLokHelper::getView(), gMutex, and SAL_INFO.

Referenced by createInstanceWithArguments(), desktop_LOKClipboard_get_implementation(), and doc_getClipboard().

◆ releaseClipboardForView()

void LOKClipboardFactory::releaseClipboardForView ( int  nViewId)
static

Release a clipboard before its document dies, nViewId of -1 clears all.

Definition at line 43 of file lokclipboard.cxx.

References gClipboards, gMutex, and SAL_INFO.

Referenced by doc_destroy(), and doc_destroyView().

Member Data Documentation

◆ gMutex

osl::Mutex LOKClipboardFactory::gMutex
staticprivate

Definition at line 92 of file lokclipboard.hxx.

Referenced by getClipboardForCurView(), and releaseClipboardForView().


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