LibreOffice Module basic (master) 1
|
#include <ddectrl.hxx>
Public Member Functions | |
SbiDdeControl () | |
~SbiDdeControl () | |
ErrCode | Initiate (const OUString &rService, const OUString &rTopic, size_t &rnHandle) |
ErrCode | Terminate (size_t nChannel) |
ErrCode | TerminateAll () |
ErrCode | Request (size_t nChannel, const OUString &rItem, OUString &rResult) |
ErrCode | Execute (size_t nChannel, const OUString &rCommand) |
ErrCode | Poke (size_t nChannel, const OUString &rItem, const OUString &rData) |
Private Member Functions | |
DECL_LINK (Data, const DdeData *, void) | |
size_t | GetFreeChannel () |
Static Private Member Functions | |
static ErrCode | GetLastErr (const DdeConnection *) |
Private Attributes | |
std::vector< std::unique_ptr< DdeConnection > > | aConvList |
OUString | aData |
Definition at line 31 of file ddectrl.hxx.
SbiDdeControl::SbiDdeControl | ( | ) |
Definition at line 73 of file ddectrl.cxx.
SbiDdeControl::~SbiDdeControl | ( | ) |
Definition at line 77 of file ddectrl.cxx.
References TerminateAll().
ErrCode SbiDdeControl::Execute | ( | size_t | nChannel, |
const OUString & | rCommand | ||
) |
Definition at line 162 of file ddectrl.cxx.
References aConvList, ERRCODE_BASIC_DDE_NO_CHANNEL, DdeTransaction::Execute(), and GetLastErr().
|
private |
|
staticprivate |
Definition at line 50 of file ddectrl.cxx.
References DDE_FIRSTERR, DDE_LASTERR, ERRCODE_BASIC_DDE_ERROR, ERRCODE_NONE, DdeConnection::GetError(), and nDdeErrMap.
Referenced by Execute(), Initiate(), Poke(), and Request().
ErrCode SbiDdeControl::Initiate | ( | const OUString & | rService, |
const OUString & | rTopic, | ||
size_t & | rnHandle | ||
) |
Definition at line 99 of file ddectrl.cxx.
References aConvList, ERRCODE_NONE, GetFreeChannel(), and GetLastErr().
ErrCode SbiDdeControl::Poke | ( | size_t | nChannel, |
const OUString & | rItem, | ||
const OUString & | rData | ||
) |
Definition at line 180 of file ddectrl.cxx.
References aConvList, ERRCODE_BASIC_DDE_NO_CHANNEL, DdeTransaction::Execute(), and GetLastErr().
ErrCode SbiDdeControl::Request | ( | size_t | nChannel, |
const OUString & | rItem, | ||
OUString & | rResult | ||
) |
Definition at line 141 of file ddectrl.cxx.
References aConvList, aData, Data, ERRCODE_BASIC_DDE_NO_CHANNEL, DdeTransaction::Execute(), GetLastErr(), LINK, and DdeTransaction::SetDataHdl().
ErrCode SbiDdeControl::Terminate | ( | size_t | nChannel | ) |
Definition at line 118 of file ddectrl.cxx.
References aConvList, ERRCODE_BASIC_DDE_NO_CHANNEL, and ERRCODE_NONE.
ErrCode SbiDdeControl::TerminateAll | ( | ) |
Definition at line 135 of file ddectrl.cxx.
References aConvList, and ERRCODE_NONE.
Referenced by ~SbiDdeControl().
|
private |
Definition at line 37 of file ddectrl.hxx.
Referenced by Execute(), GetFreeChannel(), Initiate(), Poke(), Request(), Terminate(), and TerminateAll().
|
private |
Definition at line 38 of file ddectrl.hxx.
Referenced by Request().