Test repository to check push and ssh key
Find a file
Franklin Weng 7c1f11985c tdf#115795 Solve wrong redirect behavior of "Get Online Help"
When under locale zh-TW, Help > Get Online Help would use only "zh"
as the parameter of LOLang and sent it to hub.libreoffice.org, which
would redirect to Simplified Chinese forum instead of zh_TW
ask.libreoffice.org forum.  After discussing with Guilhem he
refactored the behavior of the Hub, use LOlocale instead of LOLang,
and keep LOLang for backward compatibility.  The LibreOffice sent
LOlocale instead to avoid this problem happening again.

Change-Id: Ia9348cff88723210f693e65260bb987826a3f3ea
Reviewed-on: https://gerrit.libreoffice.org/50503
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2018-02-28 15:39:09 +01:00
.git-hooks
accessibility use less COLORDATA_RGB 2018-02-28 11:51:32 +01:00
android [Pardus] tdf#112481 Ability to add worksheets on Calc 2018-02-24 14:58:00 +01:00
animations
apple_remote
avmedia weld native message dialogs 2018-02-22 22:07:38 +01:00
basctl tdf#114441 sal_uLong to better integer types 2018-02-27 17:51:42 +01:00
basegfx loplugin:useuniqueptr in Triangulator 2018-02-27 10:25:09 +01:00
basic convert Redline warning dialog to .ui to get helpids 2018-02-27 17:25:59 +01:00
bean
bin Fix typos 2018-02-26 12:58:03 +01:00
binaryurp
bridges iOS, solved problem with -I for asm module 2018-02-21 10:34:29 +01:00
canvas convert COL_ constants to be of type Color 2018-02-28 07:34:27 +01:00
chart2 convert COL_ constants to be of type Color 2018-02-28 07:34:27 +01:00
cli_ure
codemaker
comphelper Use for-range loops in comphelper and configmgr 2018-02-27 09:12:59 +01:00
compilerplugins loplugin:oncevar extend to tools/gen.hxx types 2018-02-26 07:21:04 +01:00
config_host
configmgr Use for-range loops in comphelper and configmgr 2018-02-27 09:12:59 +01:00
connectivity Translate German comments and debug strings 2018-02-28 10:51:36 +01:00
cppcanvas convert COL_ constants to be of type Color 2018-02-28 07:34:27 +01:00
cppu
cppuhelper loplugin:oncevar extend to tools/gen.hxx types 2018-02-26 07:21:04 +01:00
cpputools
cui Drop unnecessary HIDs from Hyperlink dialog 2018-02-28 12:57:11 +01:00
dbaccess remove unused vclunohelper.hxx includes 2018-02-27 15:00:06 +01:00
desktop Clean up Desktop::CreateTemporaryDirectory 2018-02-28 15:08:06 +01:00
dictionaries@2b77116784 Updated core 2018-02-28 08:44:03 +01:00
distro-configs Buildsystem changes to recognize Haiku. 2018-02-19 12:58:11 +01:00
drawinglayer convert COL_ constants to be of type Color 2018-02-28 07:34:27 +01:00
dtrans
editeng use less COLORDATA_RGB 2018-02-28 11:51:32 +01:00
embeddedobj
embedserv
emfio convert COL_ constants to be of type Color 2018-02-28 07:34:27 +01:00
eventattacher
extensions convert COL_ constants to be of type Color 2018-02-28 07:34:27 +01:00
external tdf#115968: make libcmis work better with CIB doxima 2018-02-24 13:57:18 +01:00
extras update emoji autocorrect files from po-files 2018-02-22 14:10:37 +01:00
filter convert COL_ constants to be of type Color 2018-02-28 07:34:27 +01:00
forms convert COL_ constants to be of type Color 2018-02-28 07:34:27 +01:00
formula use less RGB_COLORDATA 2018-02-26 16:11:58 +01:00
fpicker Translate German comments and debug strings 2018-02-28 10:51:36 +01:00
framework use less COLORDATA_RGB 2018-02-28 11:51:32 +01:00
helpcompiler
helpcontent2@9e31d6fffa Updated core 2018-02-27 22:38:22 +01:00
hwpfilter forcepoint #8 ensure ColumnDef lifetime 2018-02-25 01:00:13 +01:00
i18nlangtag
i18npool tdf#116072 Extend MidLetter in Hungarian word breaking 2018-02-28 08:42:38 +01:00
i18nutil
icon-themes fix incorrect icon set size 2018-02-23 02:58:12 +01:00
idl tdf#114441 sal_uLong to better integer types 2018-02-27 17:51:42 +01:00
idlc
include drop old tools/gen methods in reportdesign..xmloff 2018-02-28 12:47:31 +01:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit Fix build, for real this time 2018-02-27 21:40:12 +05:30
lingucomponent loplugin:useuniqueptr in Hyphenator 2018-02-17 07:07:02 +01:00
linguistic
lotuswordpro ofz#6602 infinite recursion 2018-02-28 09:19:21 +00:00
m4
mysqlc
nlpsolver
o3tl
odk
offapi add some whitespace to make it more readable, no change 2018-02-22 22:18:25 +01:00
officecfg tdf#114768: Update default font list for Simplified Chinese 2018-02-23 13:51:22 +01:00
onlineupdate
oovbaapi
oox convert COL_ constants to be of type Color 2018-02-28 07:34:27 +01:00
opencl
osx
package loplugin:oncevar extend to tools/gen.hxx types 2018-02-26 07:21:04 +01:00
postprocess Always execute pack_images.py with the right Python interpreter 2018-02-22 21:21:16 +01:00
pyuno
qadevOOo tdf#45904: Move _SheetFilterDescriptor Java tests to C++ 2018-02-27 18:18:31 +01:00
readlicense_oo update credits 2018-02-22 13:55:08 +01:00
registry
remotebridges
reportbuilder
reportdesign drop old tools/gen methods in reportdesign..xmloff 2018-02-28 12:47:31 +01:00
ridljar
sal Fix typos 2018-02-24 16:44:31 +01:00
salhelper
sax sax: don't crash during logging 2018-02-28 02:05:33 +01:00
sc use less COLORDATA_RGB 2018-02-28 11:51:32 +01:00
scaddins loplugin:useuniqueptr in scaddins 2018-02-17 07:06:42 +01:00
sccomp swarm: don't assert the result in testUnconstrained 2018-02-28 14:26:34 +01:00
schema
scp2
scripting weld native message dialogs 2018-02-22 22:07:38 +01:00
sd convert COL_ constants to be of type Color 2018-02-28 07:34:27 +01:00
sdext New loplugin:nestedunnamed 2018-02-21 08:09:46 +01:00
setup_native Remove now unused libgetuid.so 2018-02-19 16:17:02 +01:00
sfx2 tdf#115795 Solve wrong redirect behavior of "Get Online Help" 2018-02-28 15:39:09 +01:00
shell Remove obsolete comment 2018-02-28 07:01:27 +01:00
slideshow convert COL_ constants to be of type Color 2018-02-28 07:34:27 +01:00
smoketest
solenv Merge upstream fixes into solenv/flatpak-manifest.in 2018-02-28 10:13:27 +01:00
soltools
sot
starmath drop old tools/gen methods in reportdesign..xmloff 2018-02-28 12:47:31 +01:00
stoc New loplugin:nestedunnamed 2018-02-21 08:09:46 +01:00
store
svgio
svl convert COL_ constants to be of type Color 2018-02-28 07:34:27 +01:00
svtools drop old tools/gen methods in reportdesign..xmloff 2018-02-28 12:47:31 +01:00
svx drop old tools/gen methods in reportdesign..xmloff 2018-02-28 12:47:31 +01:00
sw UBSan: signed integer overflow 2018-02-28 12:03:38 +01:00
swext
sysui apparmor: allow cert9.db 2018-02-19 18:57:19 +01:00
test ensure [Message]Dialog dispose order on direct .ui hackery 2018-02-28 09:40:04 +01:00
testtools
toolkit convert COL_ constants to be of type Color 2018-02-28 07:34:27 +01:00
tools drop old tools/gen methods in reportdesign..xmloff 2018-02-28 12:47:31 +01:00
translations@db79c92222 Updated core 2018-02-22 12:56:52 +01:00
ucb
ucbhelper
udkapi
uitest Revert "uitest: add timeout for blocking actions" 2018-02-21 14:15:44 +01:00
UnoControls use less TRGB_COLORDATA 2018-02-26 16:12:08 +01:00
unodevtools
unoidl
unoil
unotest
unotools
unoxml
ure
uui convert Redline warning dialog to .ui to get helpids 2018-02-27 17:25:59 +01:00
vbahelper
vcl Let Application::Abort always dump core in debug builds 2018-02-28 13:46:07 +01:00
winaccessibility
wizards tdf#114817 new bitmap presets for Area Fill 2018-02-18 14:38:41 +01:00
writerfilter convert COL_ constants to be of type Color 2018-02-28 07:34:27 +01:00
writerperfect astyle 2018-02-27 19:10:32 +01:00
xmerge
xmlhelp
xmloff drop old tools/gen methods in reportdesign..xmloff 2018-02-28 12:47:31 +01:00
xmlreader
xmlscript
xmlsecurity convert remaining ErrorBox to weld::MessageDialog 2018-02-26 15:27:09 +00:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.gitattributes
.gitignore
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in Integrate initial version of gla11y tool in the build system 2018-02-20 22:21:48 +01:00
config_host_lang.mk.in
configure.ac Fix --enable-python documentation 2018-02-23 15:51:10 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst Update orcus to 0.13.4. 2018-02-27 13:04:26 +01:00
g
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in Fix test 2018-02-20 09:32:08 +01:00
README.cross
README.md
README.Solaris
Repository.mk Remove now unused libgetuid.so 2018-02-19 16:17:02 +01:00
RepositoryExternal.mk
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-blacklist
TEMPLATE.SOURCECODE.HEADER

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 build chain and runtime baselines

These are the current minimal operating system and compiler versions to run and compile LibreOffice, also used by the TDF builds:

  • Windows:
    • Runtime: Windows 7
    • Build: Cygwin + Visual Studio 2015 Update 3
  • macOS:
    • Runtime: 10.9
    • Build: 10.12 + Xcode 8
  • Linux:
    • Runtime: RHEL 6 or CentOS 6
    • Build: GCC 4.8.1 or Clang
  • iOS (only for LibreOfficeKit):
    • Runtime: 11.2 (only support for newer i devices == 64 bit)
    • Build: Xcode 9.0 and iPhone SDK 11.2

At least Clang 3.4.2 is known to be too old to pass the configure.ac check "whether $CXX supports C++17, C++14, or C++11" in its current form (due to the #pragma GCC diagnostic ignored "-Wpragmas" that it does not understand).

If you want to use Clang with the LibreOffice compiler plugins, the minimal version of Clang is 3.8. Since Xcode doesn't provide the compiler plugin headers, you have to compile your own Clang to use them on macOS.

You can find the TDF configure switches in the distro-configs/ directory.

To setup your initial build environment on Windows and macOS, we provide the LibreOffice Development Environment (LODE) scripts.

For more information see the build instructions for your platform in the TDF wiki.

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:

https://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.

Rules for #include directives (C/C++)

Use the "..." form if and only if the included file is found next to the including file. Otherwise, use the <...> form. (For further details, see the mail Re: C[++]: Normalizing include syntax ("" vs <>).)

The UNO API include files should consistently use double quotes, for the benefit of external users of this API.

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.