Caolán McNamara 00657aef09 migrate to boost::gettext
* all .ui files go from <interface> to <interface domain="MODULE"> e.g. vcl
* all .src files go away and the english source strings folded into the .hrc as NC_("context", "source string")
* ResMgr is dropped in favour of std::locale imbued by boost::locale::generator pointed at matching
  MODULE .mo files
* UIConfig translations are folded into the module .mo, so e.g. UIConfig_cui
  goes from l10n target to normal one, so the res/lang.zips of UI files go away
* translation via Translation::get(hrc-define-key, imbued-std::locale)
* python can now be translated with its inbuilt gettext support (we keep the name strings.hrc there
  to keep finding the .hrc file uniform) so magic numbers can go away there
* java and starbasic components can be translated via the pre-existing css.resource.StringResourceWithLocation
  mechanism
* en-US res files go away, their strings are now the .hrc keys in the source code
* remaining .res files are replaced by .mo files
* in .res/.ui-lang-zip files, the old scheme missing translations of strings
  results in inserting the english original so something can be found, now the
  standard fallback of using the english original from the source key is used, so
  partial translations shrink dramatically in size
* extract .hrc strings with hrcex which backs onto
   xgettext -C --add-comments --keyword=NC_:1c,2 --from-code=UTF-8 --no-wrap
* extract .ui strings with uiex which backs onto
   xgettext --add-comments --no-wrap
* qtz for gettext translations is generated at runtime as ascii-ified crc32 of
   content + "|" + msgid
* [API CHANGE] remove deprecated binary .res resouce loader related uno apis
      com::sun::resource::OfficeResourceLoader
      com::sun::resource::XResourceBundleLoader
      com::sun::resource::XResourceBundle
    when translating strings via uno apis
      com.sun.star.resource.StringResourceWithLocation
    can continue to be used

Change-Id: Ia2594a2672b7301d9c3421fdf31b6cfe7f3f8d0a
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-11 10:52:19 +02:00
2017-06-15 08:24:33 +02:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-06-15 08:24:33 +02:00
2017-07-20 09:14:43 +02:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-19 16:54:50 +02:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-06-22 00:27:26 +02:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-17 14:40:24 +02:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-18 09:57:26 +02:00
2017-07-20 15:45:49 +02:00
2017-07-21 08:20:50 +01:00
2017-07-19 16:14:17 +02:00
2017-07-18 20:03:44 +02:00
2017-07-21 08:20:50 +01:00
2017-06-22 11:24:12 +02:00
2017-06-23 11:52:25 +02:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-06-17 15:08:07 +02:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-06-14 00:28:47 +02:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-19 14:36:13 +02:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-18 14:59:47 +02:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-17 13:31:28 +02:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:37:21 +02:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-06-27 13:15:34 +02:00
2017-07-21 08:20:50 +01:00
2017-07-12 18:19:40 +02:00
2017-07-18 21:25:57 +03:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-05-30 17:38:27 +02:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-06-07 12:26:24 +02:00
2017-07-21 08:20:50 +01:00
2017-07-20 10:48:05 +02:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00
2017-07-21 08:20:50 +01:00

LibreOffice

Coverity Scan Build Status CII Best Practices

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%