Test repository to check push and ssh key
Find a file
Stephan Bergmann 4a0ca73c31 Add some help content to test-passive.oxt
...mainly to test how well/poorly extension help is supported by
--with-help=html, but also as a kind of reference implementation.  (There are
also extensions in odk/examples/ that contain help content, namely
odk/examples/DevelopersGuide/Extensions/DialogWithHelp/ containing context-
sensitive help for a dialog, a topic that is not covered here.)

See <https://wiki.openoffice.org/wiki/Documentation/DevGuide/Extensions/
Help_Content#Integration_into_the_OpenOffice.org_help_system> for the ways an
extension's help content can be integrated into the "classic" (plain
--with-help) help system (citing sub-section headings used in that document):

* Help Viewer Contents page:

  The contained help.tree provides a "The test-passive Extension" section with
  a "The test-passive Extension" page (main.xhp).

* Help Viewer Index page:

  The contained main.xhp provides index entries for "test-passive extension" and
  "extensions"-"test-passive", and---only on the index pages of Calc and Writer
  ---for "test-passive extension in Calc and Writer".

* Help Viewer Find page:

  The contained main.xhp is indexer="include", so it should be found by e.g.
  searching for "bla bla".

* Context sensitive help and extended tool tips:

  The contained Addons.xcu has been extended with a small (floating by default)
  toolbar containing a "native" button (doing the same as the "passive - native"
  menu entry), and the contained main.xhp provides an extended tooltip of "Show
  the test-passive extension's native dialog" for that toolbar button (displayed
  when using "Help - What's This?" and hovering over the button).

  For context-sensitive help for dialogs, see the mention of
  odk/examples/DevelopersGuide/Extensions/DialogWithHelp/ above.

The contained help is only provided in "en" localization, which should thus be
used as fallback regardless for which locale LO is run.

The help-related XML files need to provide identifiers in lots of places, many
of which appear to be unused for the given example uses.  I specified those as
empty strings.

The workdir/Extension/test-passive.oxt extension can be built with `make
Extension_test-passive`.

Change-Id: I0e75f35df85683c9fae1d1384fa6afeaeb8a687d
Reviewed-on: https://gerrit.libreoffice.org/55736
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-06-13 13:32:05 +02:00
.git-hooks Restore .git-hooks/commit-msg accidentally removed earlier 2018-05-22 11:48:59 +02:00
accessibility tdf#42949 remove unused compheler includes .. 2018-06-05 10:56:36 +02:00
android tdf#117777 fix show hidden files/folders option on Android 2018-06-01 04:32:33 +02:00
animations
apple_remote
avmedia tdf#42949 remove unused compheler includes .. 2018-06-05 10:56:36 +02:00
basctl tdf#117825: check if macros are allowed when double-click one 2018-06-02 18:57:57 +02:00
basegfx loplugin:passstuffbyref 2018-05-25 21:46:32 +02:00
basic Translate German comments and debug strings 2018-06-06 13:46:09 +02:00
bean Use https instead of http 2018-04-16 15:57:08 +02:00
bin Respect --bindir.. 2018-06-13 09:47:04 +02:00
binaryurp
bridges loplugin:stringconcat, loplugin:sallogareas (clang-cl) 2018-05-15 09:44:03 +02:00
canvas tdf#42949 remove unused compheler includes .. 2018-06-05 10:56:36 +02:00
chart2 loplugin:useuniqueptr in chart2 *ItemConverter 2018-06-12 20:44:11 +02:00
cli_ure tdf#96099 Remove some trivial std::vector typedefs 2018-06-11 08:57:06 +02:00
codemaker tdf#117918 codemaker: avoid including ourselves in .hpp files 2018-06-06 08:41:29 +02:00
comphelper look for unnecessary calls to Reference::is() after an UNO_QUERY_THROW 2018-06-08 01:29:32 +02:00
compilerplugins loplugin:constantparam 2018-06-12 08:24:45 +02:00
config_host rename config_extension_update.h.in to config_extensions.h.in 2018-05-23 11:44:57 +02:00
configmgr Improve re-throwing of UNO exceptions 2018-05-25 21:46:49 +02:00
connectivity look for unnecessary calls to Reference::is() after an UNO_QUERY_THROW 2018-06-08 01:29:32 +02:00
cppcanvas rhbz#1589029 tdf#93789 impress not showing text highlight in presentation mode 2018-06-11 17:35:44 +02:00
cppu loplugin: look for CPPUNIT_ASSERT_EQUALS with params swapped 2018-06-01 09:14:25 +02:00
cppuhelper cppuhelper : use rtl::isAlphaNumeric instead of recreate the method. 2018-05-31 20:09:25 +02:00
cpputools
cui weld SvxTransparenceTabPage 2018-06-12 15:53:47 +02:00
dbaccess simplify calls to *DialogFactory::Create methods 2018-06-12 08:24:04 +02:00
desktop Add some help content to test-passive.oxt 2018-06-13 13:32:05 +02:00
dictionaries@6c85a19c88 Updated core 2018-05-29 22:11:07 +02:00
distro-configs solenv/flatpak-manifest.in: Properly disable debug information 2018-06-08 12:50:14 +02:00
drawinglayer forcepoint#41 assert 2018-06-12 15:53:14 +02:00
dtrans tdf#42949 remove unused compheler includes .. 2018-06-05 10:56:36 +02:00
editeng simplify calls to *DialogFactory::Create methods 2018-06-12 08:24:04 +02:00
embeddedobj look for unnecessary calls to Reference::is() after an UNO_QUERY_THROW 2018-06-08 01:29:32 +02:00
embedserv Use for-range loops in embeddedobj, embedserv and formula 2018-03-17 18:30:39 +01:00
emfio assert in BitmapInfoAccess if bitmap is empty or we can't read from it 2018-06-07 13:50:16 +02:00
eventattacher Improve re-throwing of UNO exceptions 2018-05-25 21:46:49 +02:00
extensions simplify calls to *DialogFactory::Create methods 2018-06-12 08:24:04 +02:00
external svx: set the font name of imported PDF text 2018-06-07 10:45:32 +02:00
extras weld SwSectionFootnoteEndTabPage 2018-06-02 22:16:25 +02:00
filter crashtesting: asserts on empty mask 2018-06-12 16:43:59 +02:00
forms new loplugin:shouldreturnbool 2018-06-11 11:38:15 +02:00
formula tdf#42949 remove unused compheler includes .. 2018-06-05 10:56:36 +02:00
fpicker new loplugin:shouldreturnbool 2018-06-11 11:38:15 +02:00
framework loplugin:constantparam 2018-06-12 08:24:45 +02:00
helpcompiler tdf#96099 Remove some trivial std::vector typedefs 2018-06-11 08:57:06 +02:00
helpcontent2@e530fd6789 Updated core 2018-06-12 21:40:09 +02:00
hwpfilter new loplugin:shouldreturnbool 2018-06-11 11:38:15 +02:00
i18nlangtag loplugin: look for CPPUNIT_ASSERT_EQUALS with params swapped 2018-06-01 09:14:25 +02:00
i18npool tdf#115007: add import/export to NatNum12 (spell out numbers, 2018-06-08 18:00:20 +02:00
i18nutil tdf#42949 remove unused compheler includes .. 2018-06-05 10:56:36 +02:00
icon-themes Colibre icons: add 32px icons 2018-06-13 04:43:16 +02:00
idl tdf#96099 Remove some trivial std::vector typedefs 2018-06-11 08:57:06 +02:00
idlc fflush() followed by fclose() is redundant 2018-04-06 06:35:02 +02:00
include Fix typos 2018-06-13 08:20:35 +02:00
instsetoo_native [API CHANGE] Remove unused StartCenterHideExternalLinks configuration property 2018-06-07 08:47:33 +02:00
io Use for-range loops in hwpfilter, i18n*, idl* and io 2018-03-18 11:33:16 +01:00
ios We use ICU 61 now 2018-06-07 21:51:36 +03:00
javaunohelper Use https instead of http 2018-04-16 15:57:08 +02:00
jurt Use https instead of http 2018-04-16 15:57:08 +02:00
jvmaccess Improve re-throwing of UNO exceptions 2018-05-25 21:46:49 +02:00
jvmfwk Keep strings alive again as necessary 2018-04-12 08:26:34 +02:00
l10ntools Add some help content to test-passive.oxt 2018-06-13 13:32:05 +02:00
librelogo
libreofficekit libreofficekit: Run gla11y on gtv.ui 2018-05-24 11:09:56 +02:00
lingucomponent tdf#112442: Use list of available dictionaries, not available locales 2018-05-18 09:17:04 +02:00
linguistic tdf#42949 remove unused compheler includes .. 2018-06-05 10:56:36 +02:00
lotuswordpro Fix typos 2018-06-13 08:20:35 +02:00
m4
mysqlc Replace Galaxy icon theme by Colibre 2018-05-05 10:19:26 +02:00
nlpsolver
o3tl loplugin: look for CPPUNIT_ASSERT_EQUALS with params swapped 2018-06-01 09:14:25 +02:00
odk Fix typos 2018-05-27 10:12:35 +02:00
offapi Derive NativeNumberXmlAttributes2 from NativeNumberXmlAttributes, tdf#115007 follow-up 2018-06-11 13:05:22 +02:00
officecfg tdf#114875 Added an option to not show "No offline help installed" popup 2018-06-11 14:49:47 +02:00
onlineupdate updater: Tone down the geekiness in user-facing strings 2018-03-20 05:35:42 -06:00
oovbaapi Add a MailMerge class and object to the Writer VBA API 2018-06-13 07:06:45 +02:00
oox coverity#1436015 UNUSED_VALUE 2018-06-11 12:25:54 +02:00
opencl tdf#42949 remove unused compheler includes .. 2018-06-05 10:56:36 +02:00
osx Add sal/osl/unx/file.cxx for debugging convenience 2018-05-21 17:14:44 +03:00
package tdf#96099 Remove some trivial std::vector typedefs 2018-06-12 07:35:25 +02:00
postprocess [API CHANGE] Remove unused StartCenterHideExternalLinks configuration property 2018-06-07 08:47:33 +02:00
pyuno look for unnecessary calls to Reference::is() after an UNO_QUERY_THROW 2018-06-08 01:29:32 +02:00
qadevOOo tdf#45904 Move _XCellRangeData Java test to C++ 2018-06-12 18:38:52 +02:00
readlicense_oo tdf#111988 Bump OSX version in README 2018-05-30 19:28:30 +02:00
registry loplugin:constantparam 2018-06-12 08:24:45 +02:00
remotebridges
reportbuilder use the standard name pattern for a package 2018-04-15 13:49:53 +02:00
reportdesign simplify calls to *DialogFactory::Create methods 2018-06-12 08:24:04 +02:00
ridljar Use https instead of http 2018-04-16 15:57:08 +02:00
sal tdf#96099 Remove some trivial std::vector typedefs 2018-06-12 07:35:25 +02:00
salhelper
sax tdf#42949 remove unused compheler includes .. 2018-06-05 10:56:36 +02:00
sc loplugin:useuniqueptr in ScDPResultData 2018-06-13 13:29:12 +02:00
scaddins New o3tl::temporary to simplify calls of std::modf 2018-05-17 21:03:12 +02:00
sccomp loplugin:redundantcast improvements for floating-integer conversions 2018-05-17 08:22:14 +02:00
schema
scp2 Build kde-integration for '--enable-gtk3-kde5' as well 2018-06-13 11:17:29 +02:00
scripting simplify calls to *DialogFactory::Create methods 2018-06-12 08:24:04 +02:00
sd tdf#118063 Impress: Deselected spacing remained checked 2018-06-12 22:14:21 +02:00
sdext look for unnecessary calls to Reference::is() after an UNO_QUERY_THROW 2018-06-08 01:29:32 +02:00
setup_native loplugin:nullptr (clang-cl) 2018-05-01 15:15:38 +02:00
sfx2 fix leak in SfxApplication::OpenDocExec_Impl 2018-06-12 15:14:01 +02:00
shell Fix typos 2018-05-27 10:12:35 +02:00
slideshow tdf#42949 remove unused compheler includes .. 2018-06-05 10:56:36 +02:00
smoketest Fix typos 2018-04-14 08:05:36 +02:00
solenv gla11y: Enable warnings for more widgets missing a label 2018-06-13 09:50:16 +02:00
soltools Fix typos 2018-05-27 20:26:31 +02:00
sot Improve re-throwing of UNO exceptions 2018-05-25 21:46:49 +02:00
starmath simplify calls to *DialogFactory::Create methods 2018-06-12 08:24:04 +02:00
stoc tdf#96099 Remove std::vector typedefs 2018-06-07 07:28:54 +02:00
store Remove redundant reinterpret_cast 2018-06-12 11:29:04 +02:00
svgio loplugin:useuniqueptr in pathTextBreakupHelper 2018-05-28 08:46:55 +02:00
svl Derive NativeNumberXmlAttributes2 from NativeNumberXmlAttributes, tdf#115007 follow-up 2018-06-11 13:05:22 +02:00
svtools loplugin:constantparam 2018-06-12 08:24:45 +02:00
svx crashtesting: asserts on empty fill patterns 2018-06-12 16:14:59 +02:00
sw coverity#1436922 Dereference before null check 2018-06-13 10:26:31 +02:00
swext remove notice about cite.php 2018-03-24 14:05:45 +01:00
sysui Respect --bindir.. 2018-06-13 09:47:04 +02:00
test tdf#45904 Move _XCellRangeData Java test to C++ 2018-06-12 18:38:52 +02:00
testtools Use PYTHON_FOR_BUILD instead of calling python directly 2018-02-13 15:34:21 +01:00
toolkit Translate German comments and debug strings 2018-06-06 13:46:09 +02:00
tools tdf#42949 remove unused compheler includes .. 2018-06-05 10:56:36 +02:00
translations@ed31445a5c Updated core 2018-05-24 15:19:19 +02:00
ucb tdf#96099 Remove std::vector typedefs 2018-06-07 07:28:54 +02:00
ucbhelper loplugin:redundantfcast look for redundant copies in return statements 2018-03-12 07:37:24 +01:00
udkapi Fix typo 2018-06-07 14:30:41 +02:00
uitest Typos in change 53934 2018-05-09 19:59:35 +02:00
UnoControls Fix typos 2018-04-16 23:19:34 +02:00
unodevtools Fix typos 2018-03-15 20:09:53 +01:00
unoidl Typo in error message 2018-03-16 16:18:45 +01:00
unoil Use https instead of http 2018-04-16 15:57:08 +02:00
unotest Fix typos 2018-05-05 09:21:24 +02:00
unotools tdf#115007: Use [NatNum12 params...] syntax 2018-06-08 15:08:33 +02:00
unoxml tdf#42949 remove unused compheler includes .. 2018-06-05 10:56:36 +02:00
ure Remove std::bad_alloc -> css::uno::RuntimeException mappings 2018-04-09 21:25:18 +02:00
uui tdf#42949 remove unused compheler includes .. 2018-06-05 10:56:36 +02:00
vbahelper look for unnecessary calls to Reference::is() after an UNO_QUERY_THROW 2018-06-08 01:29:32 +02:00
vcl Removed duplicated include 2018-06-13 09:48:45 +02:00
winaccessibility Fix typo 2018-04-13 15:41:09 +02:00
wizards Access2Base - FIX Sql errors when apostrophe in table names 2018-05-13 15:06:55 +02:00
writerfilter look for unnecessary calls to Reference::is() after an UNO_QUERY_THROW 2018-06-08 01:29:32 +02:00
writerperfect Fix IWYU warnings 2018-06-07 09:27:46 +02:00
xmerge Fix typos 2018-04-16 23:19:34 +02:00
xmlhelp tdf#96099 Remove std::vector typedefs 2018-06-07 07:28:54 +02:00
xmloff Derive NativeNumberXmlAttributes2 from NativeNumberXmlAttributes, tdf#115007 follow-up 2018-06-11 13:05:22 +02:00
xmlreader
xmlscript look for unnecessary calls to Reference::is() after an UNO_QUERY_THROW 2018-06-08 01:29:32 +02:00
xmlsecurity loplugin:unusedmethods 2018-06-11 14:38:37 +02:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.gitattributes
.gitignore
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in Respect --bindir.. 2018-06-13 09:47:04 +02:00
config_host_lang.mk.in
configure.ac Respect --bindir.. 2018-06-13 09:47:04 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst upload libepubgen 0.1.1 2018-06-03 19:14:54 +02:00
g Revert "g: ignore submodule changes" 2018-03-12 20:38:49 +01:00
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit
Makefile.fetch add --enable-build-opensymbol option to build opens___.ttf from source 2018-05-29 15:33:05 +02:00
Makefile.gbuild
Makefile.in Makefile: re-run configure when download.lst changes 2018-05-08 19:53:06 +02:00
README.cross
README.md Bump iOS SDK version to the current one, 11.4 2018-06-07 21:51:36 +03:00
README.Solaris
Repository.mk libreofficekit: Run gla11y on gtv.ui 2018-05-24 11:09:56 +02:00
RepositoryExternal.mk Fix dependencies for CppunitTest_svl_qa_cppunit.mk 2018-05-17 16:30:20 +02:00
RepositoryFixes.mk Revert "Remove dead HSQLDB driver" 2018-04-12 09:09:37 +02:00
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.4 (only support for newer i devices == 64 bit)
    • Build: Xcode 9.3 and iPhone SDK 11.4

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.