David Ostrovsky 1aad95eb96 Actually fix uno bridge on MSVC 14.0
VC runtime was substantially refactored on MSVC 14.0. Among other,
_tiddata structure defined in crt/src/mtdll.h was replaced with
__vcrt_getptd defined in crt/src/vcruntime/vcruntime_internal.h.

All members before

  unsigned long      _NLG_dwCode

were removed, so that the approach to access the member

  void *      _tpxcptinfoptrs; /* ptr to exception info pointers */

with __pxcptinfoptrs() and compute the offset to the _curexception
member of _tiddata doesn't work on MSVC 14.0.

As of MSVC 14.0 __vcrt_getptd symbol isn't exported but Microsoft
have introduced methods to access current exception, current exception
context and processing throw (the later can be accessed through C++17
std::unhandled_exceptions() that was made available in MSVC 14.0):

* __current_exception()
* __current_exception_context()
* __processing_throw() aka std::unhandled_exceptions()

Make use of __current_exception() which we can hope will be maintained
going forward.

Change-Id: Ibfffa5fba62d6928328ac976cb1b24937277363e
Reviewed-on: https://gerrit.libreoffice.org/18475
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
2015-09-12 09:17:15 +00:00
2015-09-11 08:48:55 +02:00
2015-09-11 18:32:49 +00:00
2015-07-29 14:17:05 +03:00
2015-09-11 08:48:54 +02:00
2015-08-11 09:48:17 +02:00
2015-09-10 11:38:30 +02:00
2015-08-11 08:25:33 +02:00
2015-09-11 08:48:54 +02:00
2015-09-08 21:02:21 +00:00
2015-08-14 10:52:47 +02:00
2015-09-11 08:48:55 +02:00
2015-09-11 15:38:39 +01:00
2015-07-30 06:23:00 +00:00
2015-09-09 15:11:43 +00:00
2015-08-21 15:02:41 +02:00
2015-09-03 08:04:56 +00:00
2015-09-02 11:46:18 +00:00
2015-09-09 11:05:04 +02:00
2015-09-10 10:31:38 +01:00
2015-09-12 08:05:48 +02:00
2015-07-29 14:17:05 +03:00
2015-08-20 19:45:04 +02:00
2015-07-29 14:17:05 +03:00
2015-09-11 08:48:54 +02:00
2015-09-11 11:47:49 +00:00
2015-09-12 08:05:48 +02:00
2015-09-11 08:48:54 +02:00
2015-08-07 07:20:24 +02:00
2015-09-11 08:48:54 +02:00
2015-09-08 08:16:46 +02:00
2015-09-07 09:56:06 +01:00
2015-09-10 08:30:11 +02:00
2015-09-12 08:05:48 +02:00
2015-09-10 21:01:10 +01:00
2015-09-10 08:30:11 +02:00
2015-09-11 08:48:55 +02:00
2015-09-10 23:04:35 +02:00
2015-09-03 17:33:47 +00:00
2015-08-03 11:12:31 +02:00
2015-08-03 06:37:16 +00:00
2015-08-11 09:48:18 +02:00
2015-08-24 17:03:06 +02:00
2015-09-10 04:14:47 +02:00
2015-09-11 20:57:57 +00:00
2015-08-03 12:16:33 +00:00
2015-09-11 08:48:54 +02:00
g

LibreOffice

Coverity Scan Build Status

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
basebmp/ enables a VCL compatible rendering API to render to bitmaps, as used for LibreOffice Online, Android, iOS, etc.
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%