LibreOffice Module shell (master) 1
Classes | Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
COMOpenDocuments Class Reference

#include <COMOpenDocuments.hpp>

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

Classes

class  Error
 

Public Member Functions

 COMOpenDocuments ()
 
virtual ~COMOpenDocuments () override
 
HRESULT STDMETHODCALLTYPE QueryInterface (REFIID riid, void **ppvObject) override
 
HRESULT STDMETHODCALLTYPE GetTypeInfoCount (UINT *pctinfo) override
 
HRESULT STDMETHODCALLTYPE GetTypeInfo (UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo) override
 
HRESULT STDMETHODCALLTYPE GetIDsOfNames (REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId) override
 
HRESULT STDMETHODCALLTYPE Invoke (DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr) override
 
HRESULT STDMETHODCALLTYPE CreateNewDocument (BSTR bstrTemplateLocation, BSTR bstrDefaultSaveLocation, VARIANT_BOOL *pbResult) override
 
HRESULT STDMETHODCALLTYPE EditDocument (BSTR bstrDocumentLocation, VARIANT varProgID, VARIANT_BOOL *pbResult) override
 
HRESULT STDMETHODCALLTYPE ViewDocument (BSTR bstrDocumentLocation, VARIANT varProgID, VARIANT_BOOL *pbResult) override
 
HRESULT STDMETHODCALLTYPE ViewDocument2 (IDispatch *pdisp, BSTR bstrDocumentLocation, VARIANT varProgID, VARIANT_BOOL *pbResult) override
 
HRESULT STDMETHODCALLTYPE EditDocument2 (IDispatch *pdisp, BSTR bstrDocumentLocation, VARIANT varProgID, VARIANT_BOOL *pbResult) override
 
HRESULT STDMETHODCALLTYPE CreateNewDocument2 (IDispatch *pdisp, BSTR bstrTemplateLocation, BSTR bstrDefaultSaveLocation, VARIANT_BOOL *pbResult) override
 
HRESULT STDMETHODCALLTYPE PromptedOnLastOpen (VARIANT_BOOL *pbResult) override
 
HRESULT STDMETHODCALLTYPE ViewDocument3 (IDispatch *pdisp, BSTR bstrDocumentLocation, int OpenType, VARIANT varProgID, VARIANT_BOOL *pbResult) override
 
HRESULT STDMETHODCALLTYPE CheckinDocument (BSTR bstrDocumentLocation, int CheckinType, BSTR CheckinComment, VARIANT_BOOL bKeepCheckout, VARIANT_BOOL *pbResult) override
 
HRESULT STDMETHODCALLTYPE DiscardLocalCheckout (BSTR bstrDocumentLocationRaw, VARIANT_BOOL *pbResult) override
 
HRESULT STDMETHODCALLTYPE ViewInExcel (BSTR SiteUrl, BSTR FileName, BSTR SessionId, BSTR Cmd, BSTR Sheet, int Row, int Column, VARIANT varProgID) override
 
HRESULT STDMETHODCALLTYPE CheckoutDocumentPrompt (BSTR bstrDocumentLocationRaw, VARIANT_BOOL fEditAfterCheckout, VARIANT varProgID, VARIANT_BOOL *pbResult) override
 
HRESULT STDMETHODCALLTYPE EditDocument3 (IDispatch *pdisp, BSTR bstrDocumentLocation, VARIANT_BOOL fUseLocalCopy, VARIANT varProgID, VARIANT_BOOL *pbResult) override
 
HRESULT STDMETHODCALLTYPE NewBlogPost (BSTR bstrProviderId, BSTR bstrBlogUrl, BSTR bstrBlogName) override
 
HRESULT STDMETHODCALLTYPE GetInterfaceSafetyOptions (REFIID riid, DWORD *pdwSupportedOptions, DWORD *pdwEnabledOptions) override
 
HRESULT STDMETHODCALLTYPE SetInterfaceSafetyOptions (REFIID riid, DWORD dwOptionSetMask, DWORD dwEnabledOptions) override
 
- Public Member Functions inherited from COMRefCounted< IOWSNewDocument3, IObjectSafety >
virtual ~COMRefCounted ()
 
ULONG STDMETHODCALLTYPE AddRef () override
 
ULONG STDMETHODCALLTYPE Release () override
 

Static Public Member Functions

static LONG GetObjectCount ()
 

Private Attributes

DWORD m_iEnabledOptions = 0
 

Static Private Attributes

static LONG m_nObjCount = 0
 
static ITypeInfo * m_pTypeInfo = nullptr
 
static constexpr DWORD iSupportedOptionsMask = INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA
 

Detailed Description

Definition at line 18 of file COMOpenDocuments.hpp.

Constructor & Destructor Documentation

◆ COMOpenDocuments()

COMOpenDocuments::COMOpenDocuments ( )

Definition at line 90 of file COMOpenDocuments.cxx.

References GetTypeLib(), hr, m_nObjCount, and m_pTypeInfo.

◆ ~COMOpenDocuments()

COMOpenDocuments::~COMOpenDocuments ( )
overridevirtual

Definition at line 102 of file COMOpenDocuments.cxx.

References m_nObjCount, and m_pTypeInfo.

Member Function Documentation

◆ CheckinDocument()

STDMETHODIMP COMOpenDocuments::CheckinDocument ( BSTR  bstrDocumentLocation,
int  CheckinType,
BSTR  CheckinComment,
VARIANT_BOOL  bKeepCheckout,
VARIANT_BOOL *  pbResult 
)
override

Definition at line 308 of file COMOpenDocuments.cxx.

◆ CheckoutDocumentPrompt()

STDMETHODIMP COMOpenDocuments::CheckoutDocumentPrompt ( BSTR  bstrDocumentLocationRaw,
VARIANT_BOOL  fEditAfterCheckout,
VARIANT  varProgID,
VARIANT_BOOL *  pbResult 
)
override

Definition at line 343 of file COMOpenDocuments.cxx.

◆ CreateNewDocument()

STDMETHODIMP COMOpenDocuments::CreateNewDocument ( BSTR  bstrTemplateLocation,
BSTR  bstrDefaultSaveLocation,
VARIANT_BOOL *  pbResult 
)
override

Definition at line 187 of file COMOpenDocuments.cxx.

References CreateNewDocument2().

◆ CreateNewDocument2()

STDMETHODIMP COMOpenDocuments::CreateNewDocument2 ( IDispatch *  pdisp,
BSTR  bstrTemplateLocation,
BSTR  bstrDefaultSaveLocation,
VARIANT_BOOL *  pbResult 
)
override

Definition at line 245 of file COMOpenDocuments.cxx.

Referenced by CreateNewDocument().

◆ DiscardLocalCheckout()

STDMETHODIMP COMOpenDocuments::DiscardLocalCheckout ( BSTR  bstrDocumentLocationRaw,
VARIANT_BOOL *  pbResult 
)
override

Definition at line 320 of file COMOpenDocuments.cxx.

◆ EditDocument()

STDMETHODIMP COMOpenDocuments::EditDocument ( BSTR  bstrDocumentLocation,
VARIANT  varProgID,
VARIANT_BOOL *  pbResult 
)
override

Definition at line 197 of file COMOpenDocuments.cxx.

References EditDocument3(), and FALSE.

◆ EditDocument2()

STDMETHODIMP COMOpenDocuments::EditDocument2 ( IDispatch *  pdisp,
BSTR  bstrDocumentLocation,
VARIANT  varProgID,
VARIANT_BOOL *  pbResult 
)
override

Definition at line 235 of file COMOpenDocuments.cxx.

References EditDocument3(), and FALSE.

◆ EditDocument3()

STDMETHODIMP COMOpenDocuments::EditDocument3 ( IDispatch *  pdisp,
BSTR  bstrDocumentLocation,
VARIANT_BOOL  fUseLocalCopy,
VARIANT  varProgID,
VARIANT_BOOL *  pbResult 
)
override

Definition at line 356 of file COMOpenDocuments.cxx.

Referenced by EditDocument(), and EditDocument2().

◆ GetIDsOfNames()

STDMETHODIMP COMOpenDocuments::GetIDsOfNames ( REFIID  riid,
LPOLESTR *  rgszNames,
UINT  cNames,
LCID  lcid,
DISPID *  rgDispId 
)
override

Definition at line 161 of file COMOpenDocuments.cxx.

References m_pTypeInfo.

◆ GetInterfaceSafetyOptions()

HRESULT STDMETHODCALLTYPE COMOpenDocuments::GetInterfaceSafetyOptions ( REFIID  riid,
DWORD *  pdwSupportedOptions,
DWORD *  pdwEnabledOptions 
)
override

Definition at line 380 of file COMOpenDocuments.cxx.

References hr, iSupportedOptionsMask, m_iEnabledOptions, and QueryInterface().

◆ GetObjectCount()

LONG COMOpenDocuments::GetObjectCount ( )
static

Definition at line 422 of file COMOpenDocuments.cxx.

References LONG, and m_nObjCount.

Referenced by DllCanUnloadNow().

◆ GetTypeInfo()

STDMETHODIMP COMOpenDocuments::GetTypeInfo ( UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
override

◆ GetTypeInfoCount()

STDMETHODIMP COMOpenDocuments::GetTypeInfoCount ( UINT *  pctinfo)
override

Definition at line 139 of file COMOpenDocuments.cxx.

◆ Invoke()

STDMETHODIMP COMOpenDocuments::Invoke ( DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT *  pVarResult,
EXCEPINFO *  pExcepInfo,
UINT *  puArgErr 
)
override

Definition at line 171 of file COMOpenDocuments.cxx.

References m_pTypeInfo.

◆ NewBlogPost()

STDMETHODIMP COMOpenDocuments::NewBlogPost ( BSTR  bstrProviderId,
BSTR  bstrBlogUrl,
BSTR  bstrBlogName 
)
override

Definition at line 370 of file COMOpenDocuments.cxx.

◆ PromptedOnLastOpen()

STDMETHODIMP COMOpenDocuments::PromptedOnLastOpen ( VARIANT_BOOL *  pbResult)
override

Definition at line 263 of file COMOpenDocuments.cxx.

◆ QueryInterface()

STDMETHODIMP COMOpenDocuments::QueryInterface ( REFIID  riid,
void **  ppvObject 
)
override

◆ SetInterfaceSafetyOptions()

HRESULT STDMETHODCALLTYPE COMOpenDocuments::SetInterfaceSafetyOptions ( REFIID  riid,
DWORD  dwOptionSetMask,
DWORD  dwEnabledOptions 
)
override

Definition at line 399 of file COMOpenDocuments.cxx.

References hr, iSupportedOptionsMask, m_iEnabledOptions, and QueryInterface().

◆ ViewDocument()

STDMETHODIMP COMOpenDocuments::ViewDocument ( BSTR  bstrDocumentLocation,
VARIANT  varProgID,
VARIANT_BOOL *  pbResult 
)
override

Definition at line 211 of file COMOpenDocuments.cxx.

References ViewDocument3().

◆ ViewDocument2()

STDMETHODIMP COMOpenDocuments::ViewDocument2 ( IDispatch *  pdisp,
BSTR  bstrDocumentLocation,
VARIANT  varProgID,
VARIANT_BOOL *  pbResult 
)
override

Definition at line 224 of file COMOpenDocuments.cxx.

References ViewDocument3().

◆ ViewDocument3()

STDMETHODIMP COMOpenDocuments::ViewDocument3 ( IDispatch *  pdisp,
BSTR  bstrDocumentLocation,
int  OpenType,
VARIANT  varProgID,
VARIANT_BOOL *  pbResult 
)
override

Definition at line 295 of file COMOpenDocuments.cxx.

References OpenType.

Referenced by ViewDocument(), and ViewDocument2().

◆ ViewInExcel()

STDMETHODIMP COMOpenDocuments::ViewInExcel ( BSTR  SiteUrl,
BSTR  FileName,
BSTR  SessionId,
BSTR  Cmd,
BSTR  Sheet,
int  Row,
int  Column,
VARIANT  varProgID 
)
override

Definition at line 329 of file COMOpenDocuments.cxx.

Member Data Documentation

◆ iSupportedOptionsMask

constexpr DWORD COMOpenDocuments::iSupportedOptionsMask = INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA
staticconstexprprivate

Definition at line 173 of file COMOpenDocuments.hpp.

Referenced by GetInterfaceSafetyOptions(), and SetInterfaceSafetyOptions().

◆ m_iEnabledOptions

DWORD COMOpenDocuments::m_iEnabledOptions = 0
private

Definition at line 174 of file COMOpenDocuments.hpp.

Referenced by GetInterfaceSafetyOptions(), and SetInterfaceSafetyOptions().

◆ m_nObjCount

LONG COMOpenDocuments::m_nObjCount = 0
staticprivate

Definition at line 171 of file COMOpenDocuments.hpp.

Referenced by COMOpenDocuments(), GetObjectCount(), and ~COMOpenDocuments().

◆ m_pTypeInfo

ITypeInfo * COMOpenDocuments::m_pTypeInfo = nullptr
staticprivate

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