summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2015-01-28Some more loplugin:cstylecast clean-upStephan Bergmann2-3/+3
Change-Id: I132d22e2af3cf673c17d8964f690d48990834884
2015-01-28This typedef is not unusedTor Lillqvist1-0/+1
Fix fallout from fe480d8136b204c8dc6c68916cce7e816f8b9c48. Change-Id: I1ced0d7bcf368884fc8a079b047e0cbf645c3e1a
2015-01-28tdf#60739 code factorisationMichaël Lefèvre1-0/+1
Limit duplciation for SfxRequest SID_OPEN_XML_FILTERSETTINGS in sw shells Change-Id: I316e7df50df5c6d24feb953415ebf61ca822066d Reviewed-on: https://gerrit.libreoffice.org/14184 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-28remove unused typedefsNoel Grandin18-38/+0
found with some minor modifications to find/find-unused-defines.sh Change-Id: I18cc479adedc7a0dada68a4aeef08300e62631dd Reviewed-on: https://gerrit.libreoffice.org/14194 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-27make it possible to easily have variants of glsl programsLuboš Luňák2-5/+11
Now it's possible to add a preamble to the compiled program, so there can be just one program with #ifdef's inside and the small variants can be selected using #define in the preamble instead of having several almost identical programs. Change-Id: I6c5112313b91b6269ebdecdfc896e0f96209ea2b
2015-01-27Get rid of std::auto_ptr in stable URE interfaceStephan Bergmann2-9/+5
...the deprecation-warning noise is getting ever louder, and eventually auto_ptr will just disappear. Just surrender and use good-old plain pointer and deletion in dtor---it's probably the best to do in this stable interface. The change is backwards compatible. For one, in all relevant standard libraries (libstdc++, even in debug mode; libc++; msvcrt) sizeof(auto_ptr<T>) equals sizeof(T*). And for another, the removed UnoUrlDescriptor ctor was only called from within cppuhelper and had deliberately been left out of cppuhelper/source/gcc3.map (so isn't exported at least on Linux)---marking it SAL_DLLPRIVATE had probably just been forgotten when retrofitting cppuhelper with CPPUHELPER_DLLPUBLIC annotations. Change-Id: Ic8bce29d93938f2b2e0a264baee85132668e1294
2015-01-26fdo#76870 Add support for Excel2013 function ENCODEURLWinfried Donkers2-1/+3
Change-Id: I369bcd58055364757b6a098fc3aa0c0065c79b67 Reviewed-on: https://gerrit.libreoffice.org/13478 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-01-26implement css::i18n::XCalendar4 and LocaleCalendar2 service, tdf#63230Eike Rathke1-6/+12
Implementation only, new local date/time routines not used yet from the outside in this step.
2015-01-26Visible function type RTTI for Clang -fsanitize=functionStephan Bergmann17-23/+27
...by adding some further SAL_DLLPUBLIC_RTTI type annotations (cf. b4f6b26b5a1a78fecfa95ec2eb7ac8b80495d8aa "SAL_DLLPUBLIC_RTTI for proper RTTI visibility for LLVM") and by making sure relevant function types do not use incomplete types in their parameter and return types (which would make the RTTI hidden). Change-Id: Id7aadcbc0704b9759968ae36266fc9ce11a2e340
2015-01-26LOK: move postMouseEvent to DocumentMiklos Vajna3-16/+25
Change-Id: I5d2d2d05fc0f55d98a1e7a1591b4d66fd93ad353
2015-01-26Add initial lok::Office::postMouseEvent()Miklos Vajna2-0/+24
There is no unit conversion yet, most probably we want to work with doc model coordinates at an API level, while VCL works with pixel coordinates. Change-Id: I98848851fbec5253e76c997844f6339402dfac46
2015-01-26followup code removal after changing virtual methods to non-virtualNoel Grandin84-468/+342
This cleanups up indentation and removes dead classes. This is a followup patch to commit 272b1dd55797aacf511fb4342b0054e3697243f6 "new loplugin: change virtual methods to non-virtual" Change-Id: I1c2139589cf8cb23bb9808defe22c51039d38de1
2015-01-26new loplugin: change virtual methods to non-virtualNoel Grandin188-656/+617
Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae
2015-01-25fdo#84592 Improve SvTreeListBox class with alternating rows.Palenik Mihály1-3/+0
It is possible to set alternating rows. Expert Configuration dialog use it. This bug was fixed earlier, but after this feature didn't work. Change-Id: I3602a6b03db32d6f43ec163de2427f4a018c7779 Reviewed-on: https://gerrit.libreoffice.org/14164 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
2015-01-24Typo: syncro->synchroJulien Nabet2-2/+2
Change-Id: I0a377f3686e0f8d8f576aacbee49a392b039d3a5
2015-01-24coverity#1265796 Dereference null return valueCaolán McNamara1-7/+1
Change-Id: I779dacdb7fb18ba8148e932b4dc684d08f824cbe
2015-01-24coverity#1265799 Dereference null return valueCaolán McNamara1-11/+7
Change-Id: I7f1838b55d7b526327efb0562f3ad1ab5a1778a1
2015-01-24Typo: ..syncronous..=>synchronous (dbaccess)(new)Julien Nabet2-7/+7
Change-Id: I6d0b6293850a8dd887e34fbf0a425f7024dd84a5
2015-01-24Revert "Typo: ..syncronous..=>synchronous (dbaccess)"Julien Nabet2-7/+7
This reverts commit 285654bf79f4e09d9ac0f6974db08df85446a500.
2015-01-24Typo: ..syncronous..=>synchronous (dbaccess)Julien Nabet2-7/+7
Change-Id: I97b57baf3777227c2d90b52a564d81b44e73a30a
2015-01-23sal: remove GCC 4.6 check, it does not claim C++11 supportMichael Stahl2-6/+0
Change-Id: Ica0ff6a36e64c732000ef900fa7aeafaf6da3e04
2015-01-23sal: try to fix prematurely pushed 853c2fc71a96755a9dee629fd5d0e1cff9a48034Michael Stahl2-0/+12
Change-Id: Id00e2579edcc9856c0fa3985e34c4a2f3e7ae5ec
2015-01-23sal: try to avoid abuse of OUStringBuffer(int) ctorMichael Stahl2-0/+34
... to avoid bugs like commit f0d6e0e1e21afd0adf5bd01d771b2d83d8f13a48. Change-Id: I1e41d421609e09bf62a7a04ba34f3a8e8d118fd3
2015-01-23Factor out SfxPoolItem::dumpAsXml() from swMiklos Vajna20-19/+20
The primary benefit of this is that it's no longer necessary to manually downcast to each and every subclass in sw. Change-Id: I5742d5744836eef192eef2d4f7ad180da67eb914
2015-01-22Resolves: fdo#87639 Image-filter Smooth crashesCaolán McNamara1-1/+0
regression from commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Author: Thorsten Behrens <thb@documentfoundation.org> Date: Sun Nov 2 22:37:32 2014 +0100 coverity#1242508: swapped arguments rename the variables to indicate which are source and which are dest indexes and that the aNewBitmap argument is always, and assert that it must be, of equivalent rotated source to the Bitmap which has ImplConvolutionPass called on it. Change-Id: If9715b9f29655da66c6981c0f7cab3d89c528ed7
2015-01-22Revert "fdo#88475 BrowseBox/grid: reposition data cursor to current row ↵Lionel Elie Mamane1-1/+0
after paint" (and its later fixup) This reverts commits e8a68c1f50f32a0f9d8bcdf16c1270c319910baa e60b589952985edff12b1a28392ce6fa0ca8d9be It was a work-around for the real underlying issue, which was that the result of dbaccess::ResultSet::isFirst() et al were clobbered by moves made by its clones. The BrowseBox has two different cursors: 1) One for data to edit (which is kept on the current/active row) 2) One for data to *paint* The second is a clone of the first. The real underlying issue is fixed by: commit d7c9a1d9d65fe8b1a56c5c280d2ca6640a549d2f Author: Lionel Elie Mamane <lionel@mamane.lu> Date: Thu Jan 22 10:49:42 2015 +0100 fdo#88475 RowSetBase: reposition cache before interrogating it Change-Id: I28d62673fdf10ee6507d38bb7c79c08e4b40902f
2015-01-22SAL_DLLPUBLIC_RTTI for proper RTTI visibility for LLVMStephan Bergmann3-2/+10
The Itanium C++ ABI mandates that for a unique (complete) C++ type a single unique symbol for the type's RTTI name is used across a process's dynamic objects (so type equivalence can be determined via pointer comparison on the RTTI names). GCC nowadays deviates from that, using strcmp to determine equivalence, so it is resilient to RTTI names being bound locally within dynamic objects (which has performance benefits, but also makes it impossible to have unrelated types that happen to have the same name "encapsulated" in individual dynamic objects--- whether or not that would violate the ODR would be open to interpretation of how dynamic objects fit into the C++ Standard). LLVM sticks to the Itanium ABI, which becomes notable in at least two places: For one, libc++abi's __dynamic_cast uses strict checking. It still has a _LIBCXX_DYNAMIC_FALLBACK for now that additionally uses strcmp checking and syslogs visibility violations. Mac OS X uses libc++abi with _LIBCXX_DYNAMIC_FALLBACK enabled, and running LO routinely logs dynamic_cast errors to the Console there. For another, RTTI-based UBSan checks unconditionally only use strict checking (cf. isDerivedFromAtOffset in lib/ubsan/ubsan_type_hash.cc). This causes false positives from Clang -fsanitize=function and -fsanitize=vptr even on Linux not using libc++abi. Therefore, introduce SAL_DLLPUBLIC_RTTI to mark types for which RTTI needs to have default visibility under the Itanium/LLVM semantics. There is unfortunately no way to mark only the (implicitly generated) RTTI symbols for default visibility, but at least with the cases where SAL_DLLPUBLIC_RTTI is used for now that is no real problem---any class type marked SAL_DLLPUBLIC_RTTI only has inline (covered by -fvisibility-inlines-hidden) or undefined pure virtual functions. It appears that even the vtables of those classes remain hidden, at least with Mach-O on Mac OS X. (That also means there is no need for a SAL_DLLPRIVATE_RTTI marker analoguous to the---also superfluous in retrospect--- CPPU_GCC_DLLPRIVATE one.) Nevertheless, the number of exported symbols of course increases when SAL_DLLPUBLIC_RTTI is "active." For a full-blown --enable-dbgutil build on Mac OS X, find instdir/LibreOffice.app/Contents -name \*.dylib\* -exec nm -gU {} \; \ wc -l increased from 125541 to 139239. For Linux, an option might be to "activate" SAL_DLLPUBLIC_RTTI only for __clang__ plus !ENABLE_RUNTIME_OPTIMIZATIONS. The set of types marked SAL_DLLPUBLIC_RTTI with this patch (wholesale cppumaker- generated UNO enum, struct, and interface types; plus some IEmbeddedHelper and IUndoManager) is chosen so that a full "make check" on Mac OS X no longer syslogs any dynamic_cast errors to the Console. Change-Id: I42fa6ec01c2503ec24bcd9c0518abb112afa3235
2015-01-22Factor out SfxStringItem::dumpAsXml() from swMiklos Vajna1-0/+2
Change-Id: If218d83297bfdd39471d5502c0639248c96af9c6
2015-01-22fdo#88551 no need to update content from field when activating grid cellLionel Elie Mamane1-1/+0
It is already loaded correctly, and reloading leads to bogus TextChanged event. Change-Id: I9ad384ce60bbfd477199a1c9fb81e8e201a5162b Reviewed-on: https://gerrit.libreoffice.org/14096 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2015-01-21Resolves: fdo#88562 convert filename widget from ro-edit to selectable-labelCaolán McNamara1-1/+1
Change-Id: I56205bf5c28b6196aae10ecfa658111768f0e433
2015-01-21Related: fdo#88562 Nothing actually sets ID_FILETP_READONLY or ID_FILETP_TITLECaolán McNamara2-5/+0
so docs cannot be toggled r/o r/w from properties page or the file name changed. Unkink the logic a bit based on that and move now static widget settings to .ui and remove unused checkbox Change-Id: Ic55e41be8ffd02e214a233a2eb90736c070b5418
2015-01-21callcatcher: update unused codeCaolán McNamara1-4/+2
Change-Id: I225cbb3a4a66a8f20bec91c4770ad78e72b663b1
2015-01-20Make the RAND() and RANDBETWEEN() Calc functions non-random when requestedTor Lillqvist1-0/+31
We don't want such a mode to affect other uses of randomness, though. Thus use a separate random number generator object for these two functions, and use a fixed seed for it if the SC_RAND_REPEATABLE environment variable is set. As RAND() is implemented in sc, and RANDBETWEEN() is implemented in scaddins, it was a bit hard to figure out where to add the new functions needed, without having to over-engineer things with UNO. (This functionality is totally Calc-specific, but neither sc nor scaddins has any public (non-UNO) API.) Caolan suggested the formula module, which seems like a good enough place to me. Change-Id: I4b0cb327392e51a18bce28478af91b0174d6b726
2015-01-20font cache gets broken on adding an embedded fontCaolán McNamara1-0/+9
Change-Id: I665cde5d4c89443238efb283c86277dedf621197
2015-01-20some debug code for finding leaked OpenGLContextsMarkus Mohrhard1-0/+11
Change-Id: I10e8c344ae6aa2e0a4ef562154f57e2070c70e2f
2015-01-20remove wrong commentMarkus Mohrhard1-2/+1
Looking into the code we handle more cases correctly so remove this misleading comment. Change-Id: Id738bb8af312dfce97560a43122a81a6708f64d3
2015-01-20Drop unused comphelper::service_decl::component_getFactoryHelper paramsStephan Bergmann1-10/+2
Change-Id: Ia47c0bc3539ddf8f925cd053a2431c742c46d337
2015-01-20Factor out SvxShadowItem::dumpAsXml() from swMiklos Vajna1-0/+1
Change-Id: Id25a050a9840d83cff4b390faec7478f17336524
2015-01-20Some more loplugin:cstylecast: vclStephan Bergmann2-12/+12
Change-Id: I74d35630b9fcdaa97af0b1f1e6d1e5c72488964d
2015-01-20Some more loplugin:cstylecast: toolsStephan Bergmann1-32/+32
Change-Id: I2b540c4c0c34823143e13d16559dac7458a38933
2015-01-20Some more loplugin:cstylecast: svxStephan Bergmann2-3/+5
Change-Id: I5eb4e1cae38decb293ea11f7cd4bfda0bad3afcb
2015-01-20Some more loplugin:cstylecast: salStephan Bergmann3-3/+3
Change-Id: Ie54d340478412e62b87d66e287fd8a3963e97898
2015-01-20Some more loplugin:cstylecast: cppuStephan Bergmann3-6/+6
Change-Id: Iec1251648031afa9eddd7445135fb08dc74821bd
2015-01-20Some more loplugin:cstylecast: comphelperStephan Bergmann1-1/+1
Change-Id: I6d3ffb195a7c9a3c44744d296fb9d9eca00115cd
2015-01-19fdo#75757 Remove inheritance from std::vectorMichaël Lefèvre1-15/+0
Take care not reproducing fdo#86552 again. Change-Id: I4a5967e76afcb5467addc81bc9eca61bb65865e7 Reviewed-on: https://gerrit.libreoffice.org/13992 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-01-19fixup previous commit:Lionel Elie Mamane1-0/+1
OSL_ENSURE does not execute in non-debug builds (and is deprecated). Do not try to seek back if paint did not seek. This happens in particular when there is no data source attached (and thus trying to seek fails). Change-Id: I3f4908c4dcae2bb120bf58c1218e3386c40d5721
2015-01-19use supersampling in Impress if fast opengl scaling is availableLuboš Luňák1-0/+9
So far it's been always disabled, with the exception of the slide preview extension. Change-Id: Iaee6fe2d5267c9dfdc31cbf4fb90a9ac0e08e781
2015-01-19Extract slow path of DrawDeviceAlphaBitmap into its own methodTomaž Vajngerl1-0/+6
Additioanlly cleanup and use ScopedReadAccess Change-Id: Ia3365f4dc968368bdd90d4398188bffe2d56e89b
2015-01-17sal: multiple use of section label 'svl'Miklos Vajna1-4/+0
Change-Id: Ia6c178dd9390bf75a08c0d53e6505582a7f5ab4f
2015-01-17Factor out SvxULSpaceItem::dumpAsXml() from swMiklos Vajna1-0/+1
Change-Id: I52d7a7aaf304b7d698705cda7d3e70e723811fb2