Miklos Vajna c0f1c0da77 svx lok: avoid SfxViewShell::Current() during constructing a new view shell
Currently when a text edit is started, then in the LOK case if there is
an other view that shows the same page, then both draw views will have
an outliner view showing the text edit. This means that in case a view
shell is created after starting the text edit, that won't have an
outliner view for the text edit.

Before fixing this, calls to SfxViewShell::Current() has to be avoided
when we're in the process of setting up a new LOK view. In case of
Impress, this is a double initialization, and by the time
SdrObjEditView::ImpMakeOutlinerView() is called, we're already in the
process of setting up the second SfxViewShell (as part of
SdXImpressDocument::initializeForTiledRendering()), but
SfxViewShell::Current() still points to the old view shell.  Which means
that the outliner view would refer to a view shell that's deleted soon,
and we crash as soon as it tries to invoke a LOK callback.

Fix this by adding a virtual member function to SdrObjEditView, and
override it in sd, so in case applications want to provide a more
precise way of giving the view shell owning a draw view, then they can.

Change-Id: Ie0005f73237d4ff9cf576bf16fa5b46280f13759
Reviewed-on: https://gerrit.libreoffice.org/27561
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-07-27 10:07:51 +00:00
2016-07-12 08:45:14 +00:00
2016-07-10 11:35:30 +00:00
2016-07-19 23:38:14 +01:00
2016-06-20 15:18:45 +00:00
2016-07-22 17:50:36 +00:00
2016-07-11 17:25:42 +02:00
2016-07-27 09:17:44 +00:00
2016-07-18 11:09:43 +00:00
2016-07-08 18:09:17 -05:00
2016-07-14 02:41:35 +02:00
2016-07-22 08:59:59 +00:00
2016-07-19 05:39:46 +00:00
2016-07-25 06:09:17 +00:00
2016-07-25 10:48:38 +00:00
2016-06-30 07:01:41 +00:00
2016-07-15 14:05:41 +00:00
2016-07-15 14:05:41 +00:00
2016-07-26 23:07:04 +02:00
2016-06-07 11:11:43 +02:00
2016-07-27 11:02:28 +01:00
2016-07-15 14:05:41 +00:00
2016-07-27 11:02:28 +01:00
2016-07-12 08:45:14 +00:00
2016-07-27 11:02:28 +01:00
2016-07-27 11:02:28 +01:00
2016-06-06 14:28:41 +02:00
2016-07-07 11:57:34 +00:00
2016-07-15 14:05:41 +00:00
2016-07-27 11:02:28 +01:00
2016-07-19 15:47:37 +00:00
2016-07-17 17:21:52 +02:00
2016-07-27 11:02:28 +01:00
2016-07-22 21:45:22 +00:00
2016-06-23 15:39:52 +00:00
2016-07-22 17:50:36 +00:00
2016-07-25 18:30:34 +00:00
2016-05-17 14:29:39 +02:00
2016-06-04 08:09:56 +02:00
2016-06-23 15:39:52 +00:00

LibreOffice

Coverity Scan Build Status

LibreOffice is an integrated office suite based on copyleft licenses and compatible with most document formats and standards. Libreoffice is backed by The Document Foundation, which represents a large independent community of enterprises, developers and other volunteers moved by the common goal of bringing to the market the best software for personal productivity. LibreOffice is open source, and free to download, use and distribute.

A quick overview of the LibreOffice code structure.

Overview

You can develop for LibreOffice in one of two ways, one recommended and one much less so. First the somewhat less recommended way: it is possible to use the SDK to develop an extension, for which you can read the API docs here and here. This re-uses the (extremely generic) UNO APIs that are also used by macro scripting in StarBasic.

The best way to add a generally useful feature to LibreOffice is to work on the code base however. Overall this way makes it easier to compile and build your code, it avoids any arbitrary limitations of our scripting APIs, and in general is far more simple and intuitive - if you are a reasonably able C++ programmer.

The important bits of code

Each module should have a README file inside it which has some degree of documentation for that module; patches are most welcome to improve those. We have those turned into a web page here:

http://docs.libreoffice.org/

However, there are two hundred modules, many of them of only peripheral interest for a specialist audience. So - where is the good stuff, the code that is most useful. Here is a quick overview of the most important ones:

Module Description
sal/ this provides a simple System Abstraction Layer
tools/ this provides basic internal types: 'Rectangle', 'Color' etc.
vcl/ this is the widget toolkit library and one rendering abstraction
framework UNO framework, responsible for building toolbars, menus, status bars, and the chrome around the document using widgets from VCL, and XML descriptions from /uiconfig/ files
sfx2/ legacy core framework used by Writer/Calc/Draw: document model / load/save / signals for actions etc.
svx/ drawing model related helper code, including much of Draw/Impress

Then applications

Module Description
desktop/ this is where the 'main' for the application lives, init / bootstrap. the name dates back to an ancient StarOffice that also drew a desktop
sw/ Writer
sc/ Calc
sd/ Draw / Impress

There are several other libraries that are helpful from a graphical perspective:

Module Description
basegfx/ algorithms and data-types for graphics as used in the canvas
canvas/ new (UNO) canvas rendering model with various backends
cppcanvas/ C++ helper classes for using the UNO canvas
drawinglayer/ View code to render drawable objects and break them down into primitives we can render more easily.

Finding out more

Beyond this, you can read the README files, send us patches, ask on the mailing list libreoffice@lists.freedesktop.org (no subscription required) or poke people on IRC #libreoffice-dev on irc.freenode.net - we're a friendly and generally helpful mob. We know the code can be hard to get into at first, and so there are no silly questions.

Description
LibreOffice mirror (not auto-updating).
Readme 1.9 GiB
Languages
C++ 82.4%
Java 5.3%
Rich Text Format 2.3%
PostScript 1.9%
Python 1.9%
Other 5.7%