Altium C++ SDK 3.0
Loading...
Searching...
No Matches
CServerDocument Class Reference

#include <DXP.Classes.h>

Inheritance diagram for CServerDocument:
DXP::CAbstractServerDocument CAbstractSupportService CDispatchObject IServicesSupportInternal CDispatchRecord

Public Member Functions

 CServerDocument (IServerModule *const AServerModule, const wstring AKind, const wstring AFileName)
virtual ~CServerDocument ()
Public Member Functions inherited from DXP::CAbstractServerDocument
IServerDocumentGetIServerDocument ()
Public Member Functions inherited from CAbstractSupportService
virtual HRESULT __stdcall QueryInterface (const IID &riid, void **ppvObject)
virtual ULONG __stdcall AddRef (void)
virtual ULONG __stdcall Release (void)
IServicesSupportInternalGetServicesSupportInternal ()
Public Member Functions inherited from CDispatchObject
 CDispatchObject ()
virtual ~CDispatchObject ()
IDispatch * GetIDispatch ()
Public Member Functions inherited from CDispatchRecord
 CDispatchRecord ()
virtual HRESULT __stdcall GetTypeInfoCount (UINT *pctinfo)
virtual HRESULT __stdcall GetTypeInfo (UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
virtual HRESULT __stdcall GetIDsOfNames (REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)

Protected Member Functions

virtual bool FileLoad ()
virtual bool FileSave (const wstring AKind)
virtual unsigned int GetFileShareMode ()
void ModifiedChanged ()
virtual void AddView (IServerDocumentView *const AView)
virtual void SetModified (bool const Value)
virtual void SetIsShown (bool const Value)
virtual void SetBeingClosed (bool const Value)
virtual void Focus ()
virtual bool DoFileLoad ()
virtual bool DoFileSave (wstring const AKind)
virtual bool SupportsReload ()
virtual bool GetCanClose ()
virtual int GetCount ()
virtual wstring GetFileName ()
virtual wstring SetFileName (wstring const AFileName)
virtual wstring GetKind ()
virtual bool GetModified ()
virtual bool GetIsShown ()
virtual bool GetBeingClosed ()
virtual double GetFileModifiedDate ()
virtual void UpdateModifiedDate ()
virtual IServerModuleGetServerModule ()
virtual IServerDocumentViewGetView (int Index)
virtual IServerDocumentViewGetViewByName (wstring const ViewName)
virtual void NotifyViews (INotification *ANotification)
virtual bool GetSupportsOwnSave ()
virtual wstring GetContextHelpTopicName ()
virtual void SetFileModifiedDate (double const AValue)
virtual bool WarnIfOwnedByOther (TFileOwnershipWarningLevel AWarningLevel)
virtual void AcquireFileOwnership ()
virtual void ReleaseFileOwnership ()
virtual void ReleaseDataFileHandle ()
virtual void AcquireDataFileHandle ()
virtual bool OwnsFile ()
virtual bool DoSafeFileSave (wstring const AKind)
virtual bool DoSafeChangeFileNameAndSave (wstring const ANewFileName, wstring const AKind)
virtual bool CreateSnippetFile (IServerDocumentView *const AView, wstring ASnippetFilePath, TSnippetCreationMode AMode, bool AContextSensitive)
virtual void ZoomSnippetContents ()
virtual IServerDocumentViewGetSnippetView ()
virtual void PlaceSnippet (wstring ASnippetAddress, IServerDocumentView *const AView)
virtual bool CanPlaceSnippet (wstring const ASnippetPath)
virtual bool CanCreateSnippet (IServerDocumentView *const AView, TSnippetCreationMode AMode, bool AContextSensitive)
virtual void DocumentDirectoryChanged ()
virtual double GetDocumentModifiedDate ()
Protected Member Functions inherited from DXP::CAbstractServerDocument
virtual bool SupportsService (std::wstring const AServiceName)
virtual HRESULT __stdcall Invoke (DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
virtual bool DoFileSave (std::wstring const AKind)=0
virtual std::wstring SetFileName (std::wstring const AFileName)=0
virtual IServerDocumentViewGetViewByName (std::wstring const ViewName)=0
virtual bool DoSafeFileSave (std::wstring const AKind)=0
virtual bool DoSafeChangeFileNameAndSave (std::wstring const ANewFileName, std::wstring const AKind)=0
virtual bool CreateSnippetFile (IServerDocumentView *const AView, std::wstring ASnippetFilePath, TSnippetCreationMode AMode, bool AContextSensitive)=0
virtual void PlaceSnippet (std::wstring ASnippetAddress, IServerDocumentView *const AView)=0
virtual bool CanPlaceSnippet (std::wstring const ASnippetPath)=0

Protected Attributes

std::vector< IServerDocumentView * > mDocumentViews
Protected Attributes inherited from CDispatchRecord
ULONG mRefCount

Private Member Functions

bool FileHandleIsOwned_Data ()
bool FileHandleIsOwned_Lock ()
bool IsFileInAnyProjectOutputDirectory ()

Private Attributes

wstring mFileName
wstring mKind
bool mModified
IServerModulePtr mServerModule
bool mIsShown
bool mBeingClosed
double mFileModifiedDate
double mDocModifiedDate
HANDLE mFileHandle_Data
HANDLE mFileHandle_Lock
bool mIsOwnedByOther

Constructor & Destructor Documentation

◆ CServerDocument()

CServerDocument::CServerDocument ( IServerModule *const AServerModule,
const wstring AKind,
const wstring AFileName )

◆ ~CServerDocument()

virtual CServerDocument::~CServerDocument ( )
virtual

Member Function Documentation

◆ AcquireDataFileHandle()

virtual void CServerDocument::AcquireDataFileHandle ( )
protectedvirtual

◆ AcquireFileOwnership()

virtual void CServerDocument::AcquireFileOwnership ( )
protectedvirtual

◆ AddView()

virtual void CServerDocument::AddView ( IServerDocumentView *const AView)
protectedvirtual

◆ CanCreateSnippet()

virtual bool CServerDocument::CanCreateSnippet ( IServerDocumentView *const AView,
TSnippetCreationMode AMode,
bool AContextSensitive )
protectedvirtual

◆ CanPlaceSnippet()

virtual bool CServerDocument::CanPlaceSnippet ( wstring const ASnippetPath)
protectedvirtual

◆ CreateSnippetFile()

virtual bool CServerDocument::CreateSnippetFile ( IServerDocumentView *const AView,
wstring ASnippetFilePath,
TSnippetCreationMode AMode,
bool AContextSensitive )
protectedvirtual

◆ DocumentDirectoryChanged()

virtual void CServerDocument::DocumentDirectoryChanged ( )
protectedvirtual

◆ DoFileLoad()

virtual bool CServerDocument::DoFileLoad ( )
protectedvirtual

◆ DoFileSave()

virtual bool CServerDocument::DoFileSave ( wstring const AKind)
protectedvirtual

◆ DoSafeChangeFileNameAndSave()

virtual bool CServerDocument::DoSafeChangeFileNameAndSave ( wstring const ANewFileName,
wstring const AKind )
protectedvirtual

◆ DoSafeFileSave()

virtual bool CServerDocument::DoSafeFileSave ( wstring const AKind)
protectedvirtual

◆ FileHandleIsOwned_Data()

bool CServerDocument::FileHandleIsOwned_Data ( )
private

◆ FileHandleIsOwned_Lock()

bool CServerDocument::FileHandleIsOwned_Lock ( )
private

◆ FileLoad()

virtual bool CServerDocument::FileLoad ( )
protectedvirtual

◆ FileSave()

virtual bool CServerDocument::FileSave ( const wstring AKind)
protectedvirtual

◆ Focus()

virtual void CServerDocument::Focus ( )
protectedvirtual

◆ GetBeingClosed()

virtual bool CServerDocument::GetBeingClosed ( )
protectedvirtual

◆ GetCanClose()

virtual bool CServerDocument::GetCanClose ( )
protectedvirtual

◆ GetContextHelpTopicName()

virtual wstring CServerDocument::GetContextHelpTopicName ( )
protectedvirtual

◆ GetCount()

virtual int CServerDocument::GetCount ( )
protectedvirtual

◆ GetDocumentModifiedDate()

virtual double CServerDocument::GetDocumentModifiedDate ( )
protectedvirtual

◆ GetFileModifiedDate()

virtual double CServerDocument::GetFileModifiedDate ( )
protectedvirtual

◆ GetFileName()

virtual wstring CServerDocument::GetFileName ( )
protectedvirtual

◆ GetFileShareMode()

virtual unsigned int CServerDocument::GetFileShareMode ( )
protectedvirtual

◆ GetIsShown()

virtual bool CServerDocument::GetIsShown ( )
protectedvirtual

◆ GetKind()

virtual wstring CServerDocument::GetKind ( )
protectedvirtual

◆ GetModified()

virtual bool CServerDocument::GetModified ( )
protectedvirtual

◆ GetServerModule()

virtual IServerModule * CServerDocument::GetServerModule ( )
protectedvirtual

◆ GetSnippetView()

virtual IServerDocumentView * CServerDocument::GetSnippetView ( )
protectedvirtual

◆ GetSupportsOwnSave()

virtual bool CServerDocument::GetSupportsOwnSave ( )
protectedvirtual

◆ GetView()

virtual IServerDocumentView * CServerDocument::GetView ( int Index)
protectedvirtual

◆ GetViewByName()

virtual IServerDocumentView * CServerDocument::GetViewByName ( wstring const ViewName)
protectedvirtual

◆ IsFileInAnyProjectOutputDirectory()

bool CServerDocument::IsFileInAnyProjectOutputDirectory ( )
private

◆ ModifiedChanged()

void CServerDocument::ModifiedChanged ( )
protected

◆ NotifyViews()

virtual void CServerDocument::NotifyViews ( INotification * ANotification)
protectedvirtual

◆ OwnsFile()

virtual bool CServerDocument::OwnsFile ( )
protectedvirtual

◆ PlaceSnippet()

virtual void CServerDocument::PlaceSnippet ( wstring ASnippetAddress,
IServerDocumentView *const AView )
protectedvirtual

◆ ReleaseDataFileHandle()

virtual void CServerDocument::ReleaseDataFileHandle ( )
protectedvirtual

◆ ReleaseFileOwnership()

virtual void CServerDocument::ReleaseFileOwnership ( )
protectedvirtual

◆ SetBeingClosed()

virtual void CServerDocument::SetBeingClosed ( bool const Value)
protectedvirtual

◆ SetFileModifiedDate()

virtual void CServerDocument::SetFileModifiedDate ( double const AValue)
protectedvirtual

◆ SetFileName()

virtual wstring CServerDocument::SetFileName ( wstring const AFileName)
protectedvirtual

◆ SetIsShown()

virtual void CServerDocument::SetIsShown ( bool const Value)
protectedvirtual

◆ SetModified()

virtual void CServerDocument::SetModified ( bool const Value)
protectedvirtual

◆ SupportsReload()

virtual bool CServerDocument::SupportsReload ( )
protectedvirtual

◆ UpdateModifiedDate()

virtual void CServerDocument::UpdateModifiedDate ( )
protectedvirtual

◆ WarnIfOwnedByOther()

virtual bool CServerDocument::WarnIfOwnedByOther ( TFileOwnershipWarningLevel AWarningLevel)
protectedvirtual

◆ ZoomSnippetContents()

virtual void CServerDocument::ZoomSnippetContents ( )
protectedvirtual

Member Data Documentation

◆ mBeingClosed

bool CServerDocument::mBeingClosed
private

◆ mDocModifiedDate

double CServerDocument::mDocModifiedDate
private

◆ mDocumentViews

std::vector<IServerDocumentView *> CServerDocument::mDocumentViews
protected

◆ mFileHandle_Data

HANDLE CServerDocument::mFileHandle_Data
private

◆ mFileHandle_Lock

HANDLE CServerDocument::mFileHandle_Lock
private

◆ mFileModifiedDate

double CServerDocument::mFileModifiedDate
private

◆ mFileName

wstring CServerDocument::mFileName
private

◆ mIsOwnedByOther

bool CServerDocument::mIsOwnedByOther
private

◆ mIsShown

bool CServerDocument::mIsShown
private

◆ mKind

wstring CServerDocument::mKind
private

◆ mModified

bool CServerDocument::mModified
private

◆ mServerModule

IServerModulePtr CServerDocument::mServerModule
private

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