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

#include <tablink.hxx>

Collaboration diagram for ScDocumentLoader:

Public Member Functions

 ScDocumentLoader (const OUString &rFileName, OUString &rFilterName, OUString &rOptions, sal_uInt32 nRekCnt=0, weld::Window *pInteractionParent=nullptr, css::uno::Reference< css::io::XInputStream > xInputStream=css::uno::Reference< css::io::XInputStream >())
 ~ScDocumentLoader ()
ScDocumentGetDocument ()
ScDocShellGetDocShell ()
bool IsError () const
OUString GetTitle () const
void ReleaseDocRef ()

Static Public Member Functions

static SfxMediumCreateMedium (const OUString &rFileName, std::shared_ptr< const SfxFilter > const &pFilter, const OUString &rOptions, weld::Window *pInteractionParent=nullptr)
 Create SfxMedium for stream read with SfxFilter and filter options set at the medium's SfxItemSet. More...
static OUString GetOptions (const SfxMedium &rMedium)
static bool GetFilterName (const OUString &rFileName, OUString &rFilter, OUString &rOptions, bool bWithContent, bool bWithInteraction)
 Returns the filter name and options from a file name. More...
static void RemoveAppPrefix (OUString &rFilterName)

Private Attributes

SfxObjectShellRef aRef

Detailed Description

Definition at line 76 of file tablink.hxx.

Constructor & Destructor Documentation

◆ ScDocumentLoader()

ScDocumentLoader::ScDocumentLoader ( const OUString &  rFileName,
OUString &  rFilterName,
OUString &  rOptions,
sal_uInt32  nRekCnt = 0,
weld::Window pInteractionParent = nullptr,
css::uno::Reference< css::io::XInputStream >  xInputStream = css::uno::Reference<css::io::XInputStream>() 

◆ ~ScDocumentLoader()

ScDocumentLoader::~ScDocumentLoader ( )

Definition at line 551 of file tablink.cxx.

References aRef, tools::SvRef< typename T >::is(), and pMedium.

Member Function Documentation

◆ CreateMedium()

SfxMedium * ScDocumentLoader::CreateMedium ( const OUString &  rFileName,
std::shared_ptr< const SfxFilter > const &  pFilter,
const OUString &  rOptions,
weld::Window pInteractionParent = nullptr 

Create SfxMedium for stream read with SfxFilter and filter options set at the medium's SfxItemSet.

Definition at line 492 of file tablink.cxx.

References comphelper::getProcessComponentContext(), weld::Window::GetXWindow(), SfxGetpApp(), and SfxMedium::UseInteractionHandler().

Referenced by ScAreaLink::Refresh(), and ScDocumentLoader().

◆ GetDocShell()

ScDocShell * ScDocumentLoader::GetDocShell ( )

◆ GetDocument()

ScDocument * ScDocumentLoader::GetDocument ( )

Definition at line 572 of file tablink.cxx.

References ScDocShell::GetDocument(), and pDocShell.

Referenced by ScDocument::LinkExternalTab(), and ScContentTree::LoadFile().

◆ GetFilterName()

bool ScDocumentLoader::GetFilterName ( const OUString &  rFileName,
OUString &  rFilter,
OUString &  rOptions,
bool  bWithContent,
bool  bWithInteraction 

◆ GetOptions()

OUString ScDocumentLoader::GetOptions ( const SfxMedium rMedium)

◆ GetTitle()

OUString ScDocumentLoader::GetTitle ( ) const

Definition at line 585 of file tablink.cxx.

References SfxObjectShell::GetTitle(), and pDocShell.

Referenced by ScContentTree::LoadFile().

◆ IsError()

bool ScDocumentLoader::IsError ( ) const

◆ ReleaseDocRef()

void ScDocumentLoader::ReleaseDocRef ( )

◆ RemoveAppPrefix()

void ScDocumentLoader::RemoveAppPrefix ( OUString &  rFilterName)

Member Data Documentation

◆ aRef

SfxObjectShellRef ScDocumentLoader::aRef

Definition at line 80 of file tablink.hxx.

Referenced by ReleaseDocRef(), ScDocumentLoader(), and ~ScDocumentLoader().

◆ pDocShell

ScDocShell* ScDocumentLoader::pDocShell

Definition at line 79 of file tablink.hxx.

Referenced by GetDocument(), GetTitle(), IsError(), ReleaseDocRef(), and ScDocumentLoader().

◆ pMedium

SfxMedium* ScDocumentLoader::pMedium

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