25#define DDE_FIRSTERR 0x4000
26#define DDE_LASTERR 0x4011
70 aData = OUString::createFromAscii(
static_cast<const char*
>(
pData->getData()) );
87 for (; nChannel < nListSize; ++nChannel)
103 auto pConv = std::make_unique<DdeConnection> ( rService, rTopic );
112 aConvList[nChannel-1] = std::move(pConv);
120 if (!nChannel || nChannel >
aConvList.size())
143 if (!nChannel || nChannel >
aConvList.size())
164 if (!nChannel || nChannel >
aConvList.size())
175 DdeExecute aRequest( *pConv, rCommand, 30000 );
182 if (!nChannel || nChannel >
aConvList.size())
tools::Long GetError() const
void SetDataHdl(const Link< const DdeData *, void > &rLink)
ErrCode Poke(size_t nChannel, const OUString &rItem, const OUString &rData)
ErrCode Initiate(const OUString &rService, const OUString &rTopic, size_t &rnHandle)
std::vector< std::unique_ptr< DdeConnection > > aConvList
ErrCode Request(size_t nChannel, const OUString &rItem, OUString &rResult)
static ErrCode GetLastErr(const DdeConnection *)
ErrCode Execute(size_t nChannel, const OUString &rCommand)
ErrCode Terminate(size_t nChannel)
IMPL_LINK(SbiDdeControl, Data, const DdeData *, pData, void)
const ErrCode nDdeErrMap[]
#define LINK(Instance, Class, Member)
std::unique_ptr< sal_Int32[]> pData
constexpr OUStringLiteral aData
#define ERRCODE_BASIC_DDE_NOTPROCESSED
#define ERRCODE_BASIC_DDE_BUSY
#define ERRCODE_BASIC_DDE_QUEUE_OVERFLOW
#define ERRCODE_BASIC_DDE_NO_CHANNEL
#define ERRCODE_BASIC_DDE_TIMEOUT
#define ERRCODE_BASIC_DDE_ERROR
#define ERRCODE_BASIC_DDE_PARTNER_QUIT