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

#include <ownview.hxx>

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

Public Member Functions

 OwnView_Impl (const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::io::XInputStream > &xStream)
 
virtual ~OwnView_Impl () override
 
bool Open ()
 
void Close ()
 
virtual void SAL_CALL notifyEvent (const css::document::EventObject &Event) override
 
virtual void SAL_CALL queryClosing (const css::lang::EventObject &Source, sal_Bool GetsOwnership) override
 
virtual void SAL_CALL notifyClosing (const css::lang::EventObject &Source) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 

Static Public Member Functions

static OUString GetFilterNameFromExtentionAndInStream (const css::uno::Reference< css::uno::XComponentContext > &xContext, std::u16string_view aNameWithExtention, const css::uno::Reference< css::io::XInputStream > &xInputStream)
 

Private Member Functions

bool CreateModelFromURL (const OUString &aFileURL)
 
bool CreateModel (bool bUseNative)
 
bool ReadContentsAndGenerateTempFile (const css::uno::Reference< css::io::XInputStream > &xStream, bool bParseHeader)
 
void CreateNative ()
 

Private Attributes

::osl::Mutex m_aMutex
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::frame::XModel > m_xModel
 
OUString m_aTempFileURL
 
OUString m_aNativeTempURL
 
OUString m_aFilterName
 
bool m_bBusy
 
bool m_bUseNative
 

Detailed Description

Definition at line 35 of file ownview.hxx.

Constructor & Destructor Documentation

◆ OwnView_Impl()

OwnView_Impl::OwnView_Impl ( const css::uno::Reference< css::uno::XComponentContext > &  xContext,
const css::uno::Reference< css::io::XInputStream > &  xStream 
)

Definition at line 70 of file ownview.cxx.

References GetNewFilledTempFile_Impl(), m_aTempFileURL, m_xContext, and m_xContext.

◆ ~OwnView_Impl()

OwnView_Impl::~OwnView_Impl ( )
overridevirtual

Definition at line 83 of file ownview.cxx.

References KillFile_Impl(), m_aNativeTempURL, m_aTempFileURL, and m_xContext.

Member Function Documentation

◆ Close()

void OwnView_Impl::Close ( )

Definition at line 521 of file ownview.cxx.

References m_aMutex, m_bBusy, m_xModel, and xModel.

◆ CreateModel()

bool OwnView_Impl::CreateModel ( bool  bUseNative)
private

Definition at line 160 of file ownview.cxx.

References CreateModelFromURL(), m_aNativeTempURL, and m_aTempFileURL.

Referenced by Open().

◆ CreateModelFromURL()

bool OwnView_Impl::CreateModelFromURL ( const OUString &  aFileURL)
private

Definition at line 96 of file ownview.cxx.

References m_aFilterName, m_aMutex, m_xContext, m_xModel, TOOLS_WARN_EXCEPTION, and xModel.

Referenced by CreateModel().

◆ CreateNative()

void OwnView_Impl::CreateNative ( )
private

◆ disposing()

void SAL_CALL OwnView_Impl::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 602 of file ownview.cxx.

References m_aMutex, m_xModel, and Source.

◆ GetFilterNameFromExtentionAndInStream()

OUString OwnView_Impl::GetFilterNameFromExtentionAndInStream ( const css::uno::Reference< css::uno::XComponentContext > &  xContext,
std::u16string_view  aNameWithExtention,
const css::uno::Reference< css::io::XInputStream > &  xInputStream 
)
static

Definition at line 175 of file ownview.cxx.

References aTypes.

Referenced by ReadContentsAndGenerateTempFile(), and OleEmbeddedObject::TryToConvertToOOo().

◆ notifyClosing()

void SAL_CALL OwnView_Impl::notifyClosing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 594 of file ownview.cxx.

References m_aMutex, m_xModel, and Source.

◆ notifyEvent()

void SAL_CALL OwnView_Impl::notifyEvent ( const css::document::EventObject &  Event)
overridevirtual

Definition at line 557 of file ownview.cxx.

References aEvent, m_aMutex, m_xModel, and xModel.

◆ Open()

bool OwnView_Impl::Open ( )

◆ queryClosing()

void SAL_CALL OwnView_Impl::queryClosing ( const css::lang::EventObject &  Source,
sal_Bool  GetsOwnership 
)
overridevirtual

Definition at line 589 of file ownview.cxx.

◆ ReadContentsAndGenerateTempFile()

bool OwnView_Impl::ReadContentsAndGenerateTempFile ( const css::uno::Reference< css::io::XInputStream > &  xStream,
bool  bParseHeader 
)
private

Member Data Documentation

◆ m_aFilterName

OUString OwnView_Impl::m_aFilterName
private

Definition at line 46 of file ownview.hxx.

Referenced by CreateModelFromURL(), and ReadContentsAndGenerateTempFile().

◆ m_aMutex

::osl::Mutex OwnView_Impl::m_aMutex
private

Definition at line 38 of file ownview.hxx.

Referenced by Close(), CreateModelFromURL(), disposing(), notifyClosing(), notifyEvent(), and Open().

◆ m_aNativeTempURL

OUString OwnView_Impl::m_aNativeTempURL
private

◆ m_aTempFileURL

OUString OwnView_Impl::m_aTempFileURL
private

Definition at line 43 of file ownview.hxx.

Referenced by CreateModel(), CreateNative(), OwnView_Impl(), and ~OwnView_Impl().

◆ m_bBusy

bool OwnView_Impl::m_bBusy
private

Definition at line 48 of file ownview.hxx.

Referenced by Close(), and Open().

◆ m_bUseNative

bool OwnView_Impl::m_bUseNative
private

Definition at line 50 of file ownview.hxx.

Referenced by Open().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > OwnView_Impl::m_xContext
private

◆ m_xModel

css::uno::Reference< css::frame::XModel > OwnView_Impl::m_xModel
private

Definition at line 41 of file ownview.hxx.

Referenced by Close(), CreateModelFromURL(), disposing(), notifyClosing(), notifyEvent(), and Open().


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