Test repository to check push and ssh key
Find a file
scito e9c04fdc6d tdf#130770 apply autofilter to data regardless of autofilter changes
Add a unit test

Apply autofilter to data if there are no changes from the user for
AutoFilterMode::Normal mode

The condition
    eMode == AutoFilterMode::Normal
at that position is equivalent to
    eMode != AutoFilterMode::Top10
        && eMode != AutoFilterMode::Empty
        && eMode != AutoFilterMode::NonEmpty
because
- Top10: Excluded in if()
- Custom:  Already handled before
- Empty: Excluded in if()
- NonEmpty: Excluded in if()
- SortAscending:  Already handled before
- SortDescending:  Already handled before
- Normal: The remaining condition

Delete dead code:
The condition
    if (mpAutoFilterPopup->isAllSelected())
will never be true since
    eMode == AutoFilterMode::Normal && mpAutoFilterPopup->isAllSelected()
is excluded in the "outer if condition"
    !(eMode == AutoFilterMode::Normal && mpAutoFilterPopup->isAllSelected())
Moreover aParam.RemoveAllEntriesByField(rPos.Col()); has already been called
before.

Change-Id: I1a5362f6edf6d28b3e049977d761cef83897e63e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91645
Tested-by: Jenkins
Tested-by: Serge Krot (CIB) <Serge.Krot@cib.de>
Reviewed-by: Serge Krot (CIB) <Serge.Krot@cib.de>
2020-04-29 17:21:25 +02:00
.git-hooks git hooks: update commit-msg to Gerrit 2.16.15 2020-02-01 04:14:09 +01:00
.github
accessibility Make upcasting css::uno::Reference ctor require complete types 2020-04-27 07:19:30 +02:00
android tdf#116243 android: Include headerfootermenu.ui 2020-04-08 09:17:22 +02:00
animations loplugin:flatten in accessibility 2020-04-18 21:46:57 +02:00
apple_remote Blind fix of -Werror,-Wpointer-to-int-cast in apple_remote 2020-02-21 16:30:11 +01:00
avmedia Make upcasting css::uno::Reference ctor require complete types 2020-04-27 07:19:30 +02:00
basctl Make upcasting css::uno::Reference ctor require complete types 2020-04-27 07:19:30 +02:00
basegfx tdf#42949 Simplify use of rtl::math::approxEqual in include/basegfx/ 2020-04-22 15:36:50 +02:00
basic update pches 2020-04-26 15:34:06 +02:00
bean loplugin:buriedassign in b* 2020-04-14 16:17:55 +02:00
bin bin: Add script to find missing unittests based on git log 2020-04-15 17:54:14 +02:00
binaryurp tdf#42949 Add back includes to binaryurp/ 2020-01-28 10:31:53 +01:00
bridges loplugin:flatten in bridges 2020-04-18 21:47:45 +02:00
canvas Make upcasting css::uno::Reference ctor require complete types 2020-04-27 07:19:30 +02:00
chart2 Fix typo in code 2020-04-28 22:49:56 +02:00
cli_ure Fix typos 2020-04-22 15:48:11 +02:00
codemaker loplugin:flatten in codemaker 2020-04-18 21:46:13 +02:00
comphelper tdf#131733 Show only CN part of X.509 subject info 2020-04-29 07:05:36 +02:00
compilerplugins Silence loplugin:cppunitassertequals when comparing pointer against nullptr 2020-04-28 13:39:01 +02:00
config_host No need for HAVE_GCC_DEPRECATED_MESSAGE 2020-04-17 19:57:20 +02:00
configmgr GenericCommands: fix Fontwork tooltips 2020-02-06 23:11:39 +01:00
connectivity Fix typos 2020-04-28 20:04:35 +02:00
cppcanvas update pches 2020-04-26 15:34:06 +02:00
cppu tdf#115399: Don't kill pre-existing typelib_TypeDescription members 2020-04-28 15:07:45 +02:00
cppuhelper loplugin:flatten in cppuhelper 2020-04-17 21:07:27 +02:00
cpputools sal_Char->char in cppcanvas..cui 2019-12-18 17:40:23 +01:00
cui tdf#132288 preservation of footnote depends on reverse iteration 2020-04-29 09:46:50 +02:00
dbaccess weld SfxTemplatePanelControl 2020-04-29 09:46:08 +02:00
desktop Make upcasting css::uno::Reference ctor require complete types 2020-04-27 07:19:30 +02:00
dictionaries@74d8e82635 Update git submodules 2020-03-17 12:21:16 +01:00
distro-configs use without-latest-c++ in coverity conf 2020-04-22 09:58:36 +02:00
drawinglayer Make upcasting css::uno::Reference ctor require complete types 2020-04-27 07:19:30 +02:00
dtrans loplugin:nullptr (clang-cl) 2020-02-04 08:01:39 +01:00
editeng tdf#116883: sw: support for lists level format string 2020-04-27 22:36:12 +02:00
embeddedobj loplugin:flatten in embeddedobj,emfio 2020-04-14 20:39:00 +02:00
embedserv -Werror,-Wpointer-to-int-cast (LLVM 10 trunk clang-cl) 2020-03-20 20:48:03 +01:00
emfio Extract getting default locale for filters into separate unotools function 2020-04-27 09:38:27 +02:00
eventattacher sal_Char->char in editeng..eventattacher 2019-12-19 08:12:46 +01:00
extensions Make upcasting css::uno::Reference ctor require complete types 2020-04-27 07:19:30 +02:00
external Fix gb_ExternalProject_get_state_target,python3,removeunnecessarystuff 2020-04-29 10:54:08 +02:00
extras tdf#132138 Update Midnightblue impress template 2020-04-28 17:29:48 +02:00
filter Fix typo in code 2020-04-28 17:34:50 +02:00
forms Make upcasting css::uno::Reference ctor require complete types 2020-04-27 07:19:30 +02:00
formula Resolves: tdf#127831 implement RAND.NV() and RANDBETWEEN.NV() non-volatile 2020-04-28 11:26:38 +02:00
fpicker weld SfxTemplatePanelControl 2020-04-29 09:46:08 +02:00
framework Make upcasting css::uno::Reference ctor require complete types 2020-04-27 07:19:30 +02:00
helpcompiler loplugin:flatten in helpcompiler 2020-04-08 08:48:54 +02:00
helpcontent2@ab3da37252 Update git submodules 2020-04-29 14:59:58 +02:00
hwpfilter loplugin:buriedassign in f,h,i* 2020-04-15 19:25:23 +02:00
i18nlangtag Typo: LANGUAGE_ENGLISH_CARRIBEAN->LANGUAGE_ENGLISH_CARIBBEAN 2020-04-24 23:58:39 +02:00
i18npool tdf#42982: Improve UNO API error reporting 2020-04-27 09:40:47 +02:00
i18nutil loplugin:buriedassign in f,h,i* 2020-04-15 19:25:23 +02:00
icon-themes Sifr Dark: tdf#32490: Missing Set Reminder icons 2020-04-28 23:22:50 +02:00
idl loplugin:flatten in idl 2020-04-07 19:56:18 +02:00
idlc loplugin:buriedassign in f,h,i* 2020-04-15 19:25:23 +02:00
include [API CHANGE] uitest: make HasInfoBarWithID accessible from API 2020-04-29 12:05:40 +02:00
instsetoo_native Relates tdf#130778 - Branding for 7.0 2020-04-21 17:04:50 +02:00
io loplugin:flatten in io 2020-04-07 15:37:24 +02:00
ios Add share/fingerprint to the iOS app 2020-03-26 15:03:31 +02:00
javaunohelper Fix typo 2020-03-10 20:43:18 +01:00
jurt Use thread_local statics in dtoa.c to be thread-safe 2020-03-03 17:34:35 +01:00
jvmaccess
jvmfwk loplugin:flatten in jvmfwk 2020-04-07 15:12:35 +02:00
l10ntools loplugin:buriedassign in l,o,p* 2020-04-15 19:25:53 +02:00
librelogo pyuno,*: kill Python 2 support with fire 2020-04-09 16:43:34 +02:00
libreofficekit lok: add tabstop changing and callback to send tabstop updates 2020-04-14 15:03:04 +02:00
lingucomponent loplugin:flatten in lingucomponent 2020-04-07 13:10:29 +02:00
linguistic linguistic: make LngSvcMgr::GetAvailableGrammarSvcs_Impl() more readable 2020-04-28 14:28:19 +02:00
lotuswordpro Add include needed for std::min 2020-04-22 08:46:31 +02:00
m4
nlpsolver tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
o3tl Adapt o3tl::span to removal of std::span::cbegin et al 2020-02-22 19:41:50 +01:00
odk make spinbutton demo wide enough to use 2020-04-23 14:48:26 +02:00
offapi [API CHANGE] uitest: make HasInfoBarWithID accessible from API 2020-04-29 12:05:40 +02:00
officecfg improve: pdf export caching of jpeg bitmaps 2020-04-29 09:23:04 +02:00
onlineupdate comparison operators should be const 2020-03-12 11:05:36 +01:00
oovbaapi Fix typo 2019-11-26 20:01:51 +01:00
oox tdf#132491 DOCX DrawingML shape import: fix missing underline color 2020-04-29 16:20:37 +02:00
opencl loplugin:flatten in opencl 2020-04-03 12:39:43 +02:00
osx
package update pches 2020-04-26 15:34:06 +02:00
pch Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
postprocess Drop Macromedia Flash export filter 2020-04-23 16:16:12 +02:00
pyuno Make upcasting css::uno::Reference ctor require complete types 2020-04-27 07:19:30 +02:00
qadevOOo Fix typos 2020-04-22 15:48:11 +02:00
readlicense_oo update credits 2020-04-22 12:13:40 +02:00
registry Revert "loplugin:constfields in package..registry" 2020-03-12 08:17:11 +01:00
remotebridges tdf#88205: Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-27 22:14:11 +01:00
reportbuilder tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
reportdesign move the castToFastAttributeList function 2020-04-28 13:25:27 +02:00
ridljar GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
sal Just use __builtin_ffs on GCC and Clang 2020-04-17 15:24:07 +02:00
salhelper tdf#130137 Replace remaining uses of WNT define checks with _WIN32 2020-01-25 22:02:16 +01:00
sax make FastParser always take a FastTokenHandlerBase subclass 2020-04-25 12:13:26 +02:00
sc tdf#130770 apply autofilter to data regardless of autofilter changes 2020-04-29 17:21:25 +02:00
scaddins loplugin:buriedassign in scaddins..sdext 2020-04-15 20:59:10 +02:00
sccomp Revert "loplugin:constfields in scaddins,sccomp" 2020-03-12 17:44:30 +01:00
schema tdf#127792 implement UNO chart attribute MajorOrigin 2020-04-09 11:12:22 +02:00
scp2 Drop Macromedia Flash export filter 2020-04-23 16:16:12 +02:00
scripting Fix typos 2020-04-22 15:48:11 +02:00
sd weld SfxTemplatePanelControl 2020-04-29 09:46:08 +02:00
sdext update pches 2020-04-26 15:34:06 +02:00
setup_native Translate German variable names 2020-04-20 09:19:05 +02:00
sfx2 [API CHANGE] uitest: make HasInfoBarWithID accessible from API 2020-04-29 12:05:40 +02:00
shell Remove unused using declarations in oox...xmlsecurity 2020-03-25 09:13:27 +01:00
slideshow loplugin:makeshared in slideshow 2020-04-28 12:07:01 +02:00
smoketest Revert "loplugin:constfields in smoketest..sot" 2020-03-12 19:43:04 +01:00
solenv weld SfxTemplatePanelControl 2020-04-29 09:46:08 +02:00
soltools cid#1462267 Infinite loop 2020-04-16 22:24:48 +02:00
sot uiobject.hxx only needs forward declares 2020-04-22 09:39:07 +02:00
starmath weld SfxTemplatePanelControl 2020-04-29 09:46:08 +02:00
stoc loplugin:buriedassign in starmath..svl 2020-04-16 08:15:54 +02:00
store Revert "loplugin:constfields in stoc..svgio" 2020-03-14 07:54:02 +01:00
svgio update pches 2020-04-26 15:34:06 +02:00
svl tdf#42949 Simplify use of rtl::math::approxEqual in include/basegfx/ 2020-04-22 15:36:50 +02:00
svtools Fix typos 2020-04-28 20:04:35 +02:00
svx move the castToFastAttributeList function 2020-04-28 13:25:27 +02:00
sw tdf#121525 OOXML import: fix formula alignment 2020-04-29 16:53:23 +02:00
swext tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
sysui Drop Macromedia Flash export filter 2020-04-23 16:16:12 +02:00
test Fix typo in code 2020-04-26 15:38:46 +02:00
testtools Make upcasting css::uno::Reference ctor require complete types 2020-04-27 07:19:30 +02:00
toolkit Make upcasting css::uno::Reference ctor require complete types 2020-04-27 07:19:30 +02:00
tools add tools::Rectangle::Justify 2020-04-20 10:47:44 +02:00
translations@6b2e705c5e Update git submodules 2020-04-25 08:51:47 +02:00
ucb tdf#132460 Fix feedback-loop during WebDAV lock refresh 2020-04-29 08:07:35 +02:00
ucbhelper Make upcasting css::uno::Reference ctor require complete types 2020-04-27 07:19:30 +02:00
udkapi Update the reference rdbs to libreoffice-6.4.0.3-buildfix1 2020-02-19 17:50:45 +01:00
uitest Do not time out close_dialog_through_button 2020-04-27 10:09:58 +02:00
UnoControls tdf#42949 Simplify use of rtl::math::approxEqual in include/basegfx/ 2020-04-22 15:36:50 +02:00
unodevtools clang-tidy modernize-concat-nested-namespace 2020-01-31 18:36:09 +01:00
unoidl Revert "loplugin:constfields in unoidl" 2020-03-15 16:28:50 +01:00
unoil GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
unotest pyuno,*: kill Python 2 support with fire 2020-04-09 16:43:34 +02:00
unotools Extract getting default locale for filters into separate unotools function 2020-04-27 09:38:27 +02:00
unoxml move the castToFastAttributeList function 2020-04-28 13:25:27 +02:00
ure tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
uui tdf#42949 Simplify use of rtl::math::approxEqual in include/basegfx/ 2020-04-22 15:36:50 +02:00
vbahelper Make upcasting css::uno::Reference ctor require complete types 2020-04-27 07:19:30 +02:00
vcl Fix row/column pre-initialization in stack blur 2020-04-29 10:40:01 +02:00
winaccessibility Drop unused includes and usings 2020-04-17 11:11:07 +02:00
wizards pyuno,*: kill Python 2 support with fire 2020-04-09 16:43:34 +02:00
writerfilter tdf#121525 OOXML import: fix formula alignment 2020-04-29 16:53:23 +02:00
writerperfect Make upcasting css::uno::Reference ctor require complete types 2020-04-27 07:19:30 +02:00
xmerge tdf#117331 Merge jurt and unoil into ridl 2020-02-04 22:03:54 +01:00
xmlhelp loplugin:buriedassign in tools..xmloff 2020-04-17 12:44:46 +02:00
xmloff move the castToFastAttributeList function 2020-04-28 13:25:27 +02:00
xmlreader
xmlscript Make upcasting css::uno::Reference ctor require complete types 2020-04-27 07:19:30 +02:00
xmlsecurity Remove unnecessary if block 2020-04-29 09:23:49 +02:00
.buckconfig
.buckversion
.clang-format clang-format: don't sort using declarations 2020-02-26 09:12:49 +01:00
.editorconfig
.git-blame-ignore-revs put clang-format commit to .git-blame-ignore-revs 2020-03-07 22:59:48 +01:00
.gitattributes
.gitignore
.gitmodules
.gitpod.dockerfile Initial commit for Gitpodifying LibreOffice core 2020-03-09 13:00:32 +01:00
.gitpod.yml Install C++ VSCode extension for Gitpod 2020-03-09 15:54:14 +01:00
.gitreview
antivirusDetection.vbs tdf#84553 Correctly handle failures while getting a WMI Object. 2020-02-12 09:14:03 +01:00
autogen.sh Introduce INCLUDE: in the distro-configs... 2020-02-11 20:25:32 +01:00
BUCK
config.guess
config.sub
config_host.mk.in CLANG_C -> CLANG_CC 2020-04-21 13:38:48 +02:00
config_host_lang.mk.in
configure.ac Fix typo ("..." vs. '...' shell quoting) 2020-04-23 20:36:01 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst external: update libxmlsec to 1.2.30 2020-04-29 09:08:51 +02:00
g
hardened_runtime.xcent
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent Add the com.apple.security.cs.disable-executable-page-protection here, too 2020-04-29 17:15:15 +02:00
logerrit fix get_SHA_for_change in logerrit script 2020-03-02 13:17:08 +01:00
Makefile.fetch revert the gyp-based nss build changes 2020-03-27 12:07:27 +01:00
Makefile.gbuild
Makefile.in ofz#21701 Fuzzing build failure 2020-04-21 11:52:40 +02:00
README.cross Add missing autogen.input entries to README.cross 2020-03-25 16:25:14 +01:00
README.md Bump Windows build baseline to Visual Studio 2019 16.4 2020-03-04 18:33:21 +01:00
README.Solaris
Repository.mk Drop Macromedia Flash export filter 2020-04-23 16:16:12 +02:00
RepositoryExternal.mk lxml: try to remove some quirky PYPATH stuff 2020-04-06 18:01:48 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk remove one more usage of the all make target 2020-03-27 15:48:20 +01:00
sanitize-ubsan-blacklist
setup.cfg
TEMPLATE.SOURCECODE.HEADER

LibreOffice

Coverity Scan Build Status CII Best Practices Translation 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 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 2019 version 16.4
  • macOS:
    • Runtime: 10.10
    • Build: 10.14.4 + Xcode 11.3
  • Linux:
    • Runtime: RHEL 7 or CentOS 7
    • Build: either GCC 7.0.0; or Clang 5.0.2 with libstdc++ 7.3.0
  • iOS (only for LibreOfficeKit):
    • Runtime: 11.4 (only support for newer i devices == 64 bit)
    • Build: Xcode 9.3 and iPhone SDK 11.4
  • Android:
    • Build: NDK r19c and SDK 22.6.2

If you want to use Clang with the LibreOffice compiler plugins, the minimal version of Clang is 5.0.2. 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.

loplugin:includeform (compilerplugins/clang/includeform.cxx) enforces these rules.

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.