Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


On Sat, 2013-07-13 at 17:20 +0200, Siqi Liu wrote:


1. The pointer feature support
2. Is it possible to send to client some basic informations like the
current presentation filename, author, etc before the users hit "start
presentation"? Since (as Michael Meeks pointed out) it's much harder
to send previews before the beginning of the presentation, this would
be a great alternative solution. 
That should be possible: probably best to look at the start of
executeCommand in Receiver.cxx to see how to access the presentation
document, where we first get the active Frame (currently active window),
and then xFrame->getController()->getModel() to get the model of the
Presentation Document (you can find a list of some of the interfaces
that are implemented within sd/source/ui/inc/unomodel.hxx ). XModel's
getUrl method supplies the full path to the file that is open (although
there might be a better method elsewhere with just the document name).
You'll probably need to dig around a bit to find exactly what you need,
but it shouldn't be particularly difficult to do.

It should also be possible to implement the new pointer feature
independently of other protocol improvements: I don't know how you're
planning to implement it, but the only thing that would affect the rest
of the server would probably be adding the necessary code to
Receiver.cxx to parse pointer positions and pass them onto wherever you
actually deal with drawing the pointer -- it's probably worth adding a
versioning string to the protocol handshake (so that the client can
detect whether the server supports this and not offer a pointer unless
available), but it isn't entirely necessary given that the server should
just ignore any commands it doesn't understand -- although things may be
more complicated if the server has to get involved in calibration.

ATB,

        Andrzej






Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.