Chủ Nhật, 26 tháng 6, 2011

To cloud OOo/LibO

Q:
I'm a computer Engineering student, I would like to build a cloud computing "OpenOffice" version and connect some mail box with it and a cloud hard disk. so it can help employees to edit,save and share there document in the cloud.
can you help me please.
I need some information on how to start and how to make a cloud OpenOffice version on the web.
Thank you very much

A (Tora-san):

It could be easy to implement your desire as you might guess, I think.

The key module would be "vcl" in the source code of OpenOffice.org.

outdev.hxx defines the OS independent interface of virtual devices such as OS dependent real display devices, printer, PDF exporter, and so on. The upper applications such as Writer, Calc, and Impress work with the virtual devices through the interface.
http://hg.services.openoffice.org/OOO330/file/OOO330_m20/vcl/inc/vcl/outdev.hxx
http://hg.services.openoffice.org/OOO330/file/OOO330_m20/vcl/source/gdi  outdev?.cxx

To build your own cloud version of OpenOffice.org, you could add a new virtual device that serves your remote users.

E.g. the virtual device could be a hand-made web server that translates GET and PUT requests from the client side into key/mouse events and drawing actions for the upper applications.

IMHO, if I were you, I would not use any web protocol to realize it. Because it might require thousands of lines of JavaScript as AJAX in the client side. Despite the efforts, its quality might be poorer than a real OpenOffice.org.

So, how? The virtual device would draw texts and shapes on the internal bitmap virtual display first and then send the changes of bitmap via well-known VNC server protocol or video streaming protocol to the client side.

The idea comes from my situation where a VNC server is located in my SOHO in Japan and I travel to the US, Germany, Italy, China, ... Wherever I were, the view of OpenOffice.org running on a virtual machine can be projected on my laptop through VNC viewer. Before leaving the US I leave a document of OpenOffice.org open and close the VNC connection. After arriving at a hotel in Germany I can work with the document without any interruption. For me, that is the cloud.

Anyway, I believe you can do it! :-)
Serving several users concurrently for a single document might be much more challenging and attractive.

Source files of OpenOffice.org 3.3.0
http://download.services.openoffice.org/files/stable/3.3.0/
Get files OOo_3.3.0_src_xxx.tar.bz2 and extract them.

And then follow Alexandro's suggestion:

On 2011/06/26 2:31, Alexandro Colorado wrote:

Not a trvial job since OOo has more than 9 million of lines of code <http://www.openoffice.org/FAQs/build_faq.html#source>. But you will find most of the information here:

There might be much more cool, pragmatic ways. Anyone, any suggestions?

Best regards,
Tora
--

8 nhận xét:

  1. Nghe thích thế :x Anh nghĩ mình có đủ sức làm cái này ko anh?

    PS: Lang thang trên ubuntu-vn thấy có cái ảnh anh Hưng :))
    http://www.flickr.com/photos/50980156@N06/5766840928/in/set-72157626821844696/

    Trả lờiXóa
  2. Cloud: Mình chưa đủ sức làm đâu :).
    Thôi đừng ham vác nặng quá sức lại sụn xương sống.
    Bọn em đọc blog post này cho biết thế giới nó rộng, thế thôi :), đừng care nhiều. hehe

    Trả lờiXóa
  3. :)) Em lại cứ tưởng anh gợi ý ý tưởng :))

    Trả lờiXóa
  4. Em đang cần tài liệu về VCL, nhưng nó là tài liệu khá cũ và chỉ dùng trên openoffice và librepoffice, có anh chị nào có thì cho em xin với, có thể gửi mail cho em qtho1990@gmail.com

    Trả lờiXóa
  5. Tài liệu về VCL không nhiều.

    http://docs.libreoffice.org/vcl.html

    Các tài liệu về module liên quan đến VCL:
    http://docs.libreoffice.org/

    Từ OpenOffice:
    https://wiki.openoffice.org/wiki/VCL

    Trả lờiXóa
    Trả lời
    1. Cảm ơn anh, nhưng cái em muốn biết là lập trình giao diện bằng VCL thì như thế nào, ta phải lập trình trên môi trường gì và phải cần có những công cụ gì (giống như lập trình giao diện MFC thì ta cần bộ công cụ Visual studio, ta có các lệnh thao tác bằng C++).
      Em đang nghiên cứu về lập trình giao diện VCL của Libreoffice nhưng không có tài liệu hướng dẫn vì nó khá cũ và chỉ dùng cho Libre và openoffice.

      Xóa
    2. PS: Em cũng có một thắc mắc nữa đó là: Theo em tìm hiểu thì hiện tại cũng có một bộ thư viện VCL được lập trình trên công cụ Porland, cho em hỏi là bộ thư viện này với bộ thư viện VCL dùng trong Libre có liên quan gì nhau không. "Em đang rất cần bộ thư viện VCL của Libre"

      Xóa
  6. Nhận xét này đã bị tác giả xóa.

    Trả lờiXóa