[libreoffice-dev] - libreoffice 4.2 extension - waiting on multiple sockets
Neeraj Rai
rneeraj.rai at gmail.com
Mon Dec 2 19:19:43 PST 2013
Hi,
I had built an extension to transfer data over raw sockets using an
extension to libreoffice (link below to original post)
http://nabble.documentfoundation.org/libreoffice-dev-libreoffice-4-0-waiting-on-multiple-sockets-td4031915.html
It doesn't seem to work with upgrade to 4.2. Would someone know of the top
of their head if following calls are compatible with 4.0 .
below is the pseudo code of relevant calls (lock controllers, get Cell
range, set data in loop and set data array with it. unlock controllers:
xModel_->lockControllers();
getCellRange (SYM_COLS, _count+1); // function code included below
// loop to set data
data_[shmIdx+1][0] <<= shmIdx; // i can print the data here - it is
present
xCellRangeData_->setDataArray(data_);
xModel_->unlockControllers();
void ObjView::getCellRange (int _cols, int _count)
{
Reference< XCellRange > xCellRange1( sheet_, UNO_QUERY );
Reference< XCellRange > xCellRange =
xCellRange1->getCellRangeByPosition( 0, 0, _cols, _count );
Reference< XCellRangeData > xCellRangeData1( xCellRange, UNO_QUERY
);
Sequence < Sequence < Any > > data = xCellRangeData1->getDataArray();
xCellRangeData_ = xCellRangeData1;
data_ = data;
}
thanks
Neeraj
--
=====
Intuition - is the inability to figure out the facts on which we based the
decision.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20131202/ce634cb8/attachment.html>
More information about the LibreOffice
mailing list