summaryrefslogtreecommitdiff
path: root/desktop/inc
AgeCommit message (Collapse)AuthorFilesLines
2015-09-17boost->stdCaolán McNamara5-9/+4
Change-Id: Ifde84627578283bd057d7393eb7e5578ef5c029a
2015-09-09LOK: moved the decalaration of LibLODocument_Impl to make it visibleMihai Varga1-0/+27
We needed a better way to test LOK methods that are not app specific, but are defined in /desktop/source/lib/init.cxx. So the decalaration needs to be visible. I also moved the `getStyles` test in the new test file Change-Id: I98d97dc17a66e72732ca7bd848c131610790f48e
2015-08-28make PostUserEvent Link<> typedNoel Grandin1-2/+2
Change-Id: I13f10bda985d55d419a5bff481130a456ae2db8a
2015-07-17loplugin:unusedmethods desktopNoel Grandin1-4/+0
Change-Id: I78d4cd362bebde05e5bec55eff5e38603cb3f813
2015-07-10do not include boost/utility.hppMichael Stahl1-1/+1
It just includes a bunch of other boost headers; mostly we need boost/noncopyable.hpp so include that directly. This eliminates 831 MB(!) of boost/preprocessor/seq/fold_left.hpp completely, which is the 2nd biggest header after ustring.hxx. Change-Id: I3df55770adcb46e56f389af828e8ba80da2dc1f2
2015-06-17Replace boost::scoped_array<T> with std::unique_ptr<T[]>Takeshi Abe2-2/+2
This may reduce some degree of dependency on boost. Done by running a script like: git grep -l '#include *.boost/scoped_array.hpp.' \ | xargs sed -i -e 's@#include *.boost/scoped_array.hpp.@#include <memory>@' git grep -l '\(boost::\)\?scoped_array<\([^<>]*\)>' \ | xargs sed -i -e 's/\(boost::\)\?scoped_array<\([^<>]*\)>/std::unique_ptr<\2[]>/' ... and then killing duplicate or unnecessary includes, while changing manually m_xOutlineStylesCandidates in xmloff/source/text/txtimp.cxx, extensions/source/ole/unoconversionutilities.hxx, and extensions/source/ole/oleobjw.cxx. Change-Id: I3955ed3ad99b94499a7bd0e6e3a09078771f9bfd Reviewed-on: https://gerrit.libreoffice.org/16289 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-05-22loplugin:constantfunctionNoel Grandin1-1/+0
Change-Id: I7cb5b0c2cf9ade557173ca596ea5d42d853ff448
2015-05-08lopluign:staticmethods: Handle DECL_LINKStephan Bergmann1-2/+2
Change-Id: Ib27854a8470f3ff5b208cb949a7bd02f2a86c969
2015-05-05loplugin:staticmethodsNoel Grandin1-1/+1
Change-Id: I4d19f868a618cb135aa7a949222972dc35b47d2a
2015-05-05Use typed Timer::SetTimeoutHdl LinkStephan Bergmann1-1/+1
Change-Id: Iaaf0c93e5b28c0f7dbe4f02eda8beeae30708100
2015-04-22Various #include <sal/log.hxx> fixupsStephan Bergmann1-0/+1
rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx> (and don't make use of it themselves), but many other files happen to depend on it. Cleaned up some, but something like grep -FwL sal/log.hxx $(git grep -Elw \ 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF') -- \*.cxx) shows lots more files that potentially need fixing before the include can be removed from rtl/string.hxx and rtl/ustring.hxx. Change-Id: Ibf033363e83d37851776f392dc0b077381cd8b90
2015-04-09loplugin:staticmethodsNoel Grandin1-11/+11
Change-Id: Ie348778ea666c24e95e048386547f301083a0017
2015-02-07Fixup --without-x buildRiccardo Magliocchetti1-1/+1
Accept gl linkage in hope of future offscreen mesa support. Avoid linking with GLX though. Change-Id: I4e666f60e74fe34075a8da9eeba95807cf8fe38c Signed-off-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/13452 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-02-05Updated all precompiled headers.Ashod Nakashian4-16/+12
Change-Id: I955c8ac4dbe002d23531df7eb10fb4444d6b5157 Reviewed-on: https://gerrit.libreoffice.org/14292 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-01-02boost::unordered_map->std::unordered_mapCaolán McNamara1-2/+2
you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2014-12-04Add a SAL_INFOTor Lillqvist1-0/+1
The "bootstrap" errors tend to end up being displayed in some error dialog attempt which of course does nothing on mobile platforms, and that crack seems to crash on Android even, so this should give us some chance to get some idea at least what the code thinks is wrong... Change-Id: I070b017baf042ff692766d1efd1511e1addb6ecf
2014-11-20WaE: work around loplugin:unreffun and loplugin:externandnotdefinedTor Lillqvist1-0/+4
Change-Id: I5192ad1f068746da257f3e1d9340325956b1e69d
2014-08-13update_pchThomas Arnhold1-0/+6
Change-Id: Ic1dae7aac2f4367b4196ba3128c0aea9be1fbbda
2014-07-26fdo#75757: remove inheritance to std::mapTakeshi Abe1-4/+0
Typedef'ing AcceptorMap in appinit.cxx is enough. Change-Id: Ia26e119562c87b11d8dd81f49b72d825739162b2 Reviewed-on: https://gerrit.libreoffice.org/10555 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-07-11new loplugin: externalandnotdefinedNoel Grandin1-0/+2
Find "missing headers," where a function is declared directly in the .cxx (as extern) and not defined, and should arguably instead be declared in an include file. Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
2014-06-11Move liblibreoffice into LibreOfficeKit.Andrzej Hunt2-149/+0
Change-Id: Ib2754a77be470faaa6f9b27644a1d8dd082ed2b8
2014-06-04update_pch: add a bunch of pch filesThomas Arnhold8-0/+652
desktop: 1m51s -> 54s framework: 1m55s -> 1m04s package: 32s -> 16s sdext: 1m31s -> 47s svgio: 32s -> 15s uui: 49s -> 20s vbahelper: 1m44s -> 27s xmlscript: 15s -> 10s xmlsecurity: 45s -> 23s Change-Id: Ia437969c091bf877983ababc5ea2d044bbc0bee0
2014-06-04desktop: fix includesThomas Arnhold1-1/+1
Change-Id: Ia51cd6fcdb84c049907b0aeda20774558198b575
2014-05-09Revert font initialization fooCaolán McNamara1-1/+0
this reverts 081a0854635f4bc9f6f743ef4e2675c208405f74 because the heights and widths of the non .ui-converted dialogs are all too low and everything is squished in them Change-Id: I103eda4b3d43365c02ecedb6f37b995a682b2cf9
2014-05-08desktop: sal_Bool->boolNoel Grandin1-6/+6
Change-Id: I3462a9d4c23c9bc858c1a9d91caa58d87b204ee0
2014-05-07Move ImplInitAppFontData from Window to Application (take 2)Chris Sherlock1-0/+1
I have renamed ImplInitAppFontData to InitAppFontData and moved it from Window to Application. This is because this is something that sets *application* global variables, it just so happens it gets it from a Window parameter. But it should be set when the application starts, so I have moved it to Main(). This was previously reverted, but I have since located what was causing unit tests to fail and the font dropdowns to stop loading in writer: see commit c6d7ba5f33c3 where Application::SetSettings() was setting pImplSVData->maGDIData.mnAppFontX to zero. Change-Id: I5da7073b0d8541f1a71a09b0a8337d012fc4134b
2014-05-05Revert "Move ImplInitAppFontData from Window to Application"Miklos Vajna1-1/+0
This reverts commit f76026a43acc65465882924796d93e635c35fd90. This brings back the paragraph style and font name combo boxes in Writer. Change-Id: Idb28253797ef842d575fe10537f6e70faa34fe75
2014-05-04Move ImplInitAppFontData from Window to ApplicationChris Sherlock1-0/+1
I have renamed ImplInitAppFontData to InitAppFontData and moved it from Window to Application. This is because this is something that sets *application* global variables, it just so happens it gets it from a Window parameter. But it should be set when the application starts, so I have moved it to Main(). Change-Id: I9d98aa5b533166f91352218af267930034648c7a Reviewed-on: https://gerrit.libreoffice.org/9242 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-04-13Clean up function declarations and some unused functionsStephan Bergmann1-0/+4
Change-Id: Ie35d71a03d2f89cd72836db21fac8746a9e85b09
2014-04-08liblo: Older versions do not have saveAsWithOptions yet.Tomaž Vajngerl1-0/+4
Change-Id: I41b15e81f2e3c5c413b73382a1f55d79a4f7103a
2014-04-08liblo: new saveAsWithOptions functionTomaž Vajngerl2-5/+13
To not break API compatibility of libLO, add a new saveAsWithOptions function and revert the old saveAs to initial state. Change-Id: If245c0261a932b6ed5d65e20cb1b6d8bd1c50ce6
2014-04-08liblo: extend doc_saveAs with filterOptionsTomaž Vajngerl2-3/+4
Change-Id: I720f2819955b6f26ea7161493cccb07f873f2a51
2014-04-08liblo: clean-up liblibreoffice.h(xx)Tomaž Vajngerl2-31/+52
Change-Id: I596fc3afde94e095ecf97c23617158f3d49afcc1
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann1-1/+1
It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-03-27Second batch of adding SAL_OVERRIDE to overriding function declarationsStephan Bergmann1-8/+8
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-02-21vcl: sal_Bool -> boolStephan Bergmann1-1/+1
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
2014-02-07remove the 4 send crash report tabpagesCaolán McNamara1-1/+0
and other logical consequences of officecfg::Office::Recovery::CrashReporter::Enabled == false because we have this disabled by default since the first LibreOffice release and we have no backend infrastucture to handle the submissions anyway and it's blocking conversion of legacy .src dialogs to .ui format Change-Id: Id5481af3ec970032b3728c0e6cc0c6a52d3ed3dc
2014-02-04Change Application::SystemSettingsChanging to OverrideSystemSettingsChris Sherlock1-22/+21
The name Application::SystemSettingsChanging implies that the app is being notified that system settings are being changed. This is not what the function does - in fact, SystemSettingsChanging overrides a settings object with user defined settings Change-Id: Ibbf821ff3c7ec5b38e2e79751058494c749b6428 Reviewed-on: https://gerrit.libreoffice.org/7629 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
2014-01-20Remove unused Window parameter from SystemSettingsChangingChris Sherlock1-1/+1
This took a bit of code archaelogy for me to track down. It turns out that as part of an effort to optimize startup, the line of code in this function was commented out, presumably to be rewritten later. This happened in commit ee3351d78c in July 2001 (!). About three years later, in February 2004, the function was rewritten in commit 189c2388d80. As it turns out, the only two functions that used the Window parameter were vcl/source/window/window.cxx (which passed itself in, but of course this did nothing) and vcl/source/window/winproc.cxx. Furthermore, winproc only ever passed in the first frame, so it didn't really do anything either. Consequently, the function as it stands *now* only notifies the application that system settings have been changed. It doesn't care which window it tells. Therefore, I have excised this parameter from the function. I don't think it made sense when it was implemented anyway, so there is no net loss. After removing the unneeded parameter, I was also able to remove the Window parameter from winproc.cxx's ImplHandleSalSettings function as it was only ever used to set the top level window, which is now irrelevant. Change-Id: I84f2c5c5ff8969387da3af81e4a9c7f9ac6237e1 Reviewed-on: https://gerrit.libreoffice.org/7541 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2013-11-15-Werror,-Wlogical-not-parenthesesStephan Bergmann1-1/+1
Change-Id: I7a61ce2b235e7aa566d647fcca2dcfc09799e648
2013-11-15liblibo: expose a C API for ABI reasons, and wrap with C++.Michael Meeks2-8/+84
Change-Id: I7b3bcead05788e663d94724522bfa3f227b15499
2013-10-28fixincludeguards.sh: desktopThomas Arnhold3-7/+7
Change-Id: Iaeba85d313af1840f925fd0536d11ac83545a118
2013-10-18Some clean-upStephan Bergmann1-4/+0
Change-Id: I142f9c4e73585272c3028880e40c20f4a056f3c3
2013-08-23Clean up desktop::UserInstallStephan Bergmann1-2/+0
Change-Id: I0cbf15443877648b1b2d82bdcf03dcccdf5f26ac
2013-08-18Revert "Fixing i#119950 warn about other running terminal sessions"Jesús Corrius1-1/+0
This reverts commit b218cbf59de4d7ae0a6962995fb0f719ed68b5d2. The original patch just looks for another instance running which of course can be in the same terminal session. The assumptions the author makes are wrong. The bug the patch tries to solve is real and we'll probably have to solve it in the future, but not this way. Conflicts: desktop/source/app/officeipcthread.cxx Change-Id: I1e645671aa09c6147163820c12d5efb3b3688bd1 Reviewed-on: https://gerrit.libreoffice.org/5415 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-30Fixing i#119950 warn about other running terminal sessionsJürgen Schmidt1-0/+1
introduce new warning message box to inform about further running terminal sessions Patch By: Juan Li Review By: Jina Fang Zheng, jsc (cherry picked from commit 208b788dd4afc0559eb26c6e20a59548be0d993e) Conflicts: desktop/source/app/app.cxx desktop/source/app/officeipcthread.cxx desktop/source/app/officeipcthread.hxx Change-Id: Icd858adaa0d2400eecba3c61c91e0c6fdb6d6af7
2013-07-29liblo - add ability to select filter / format for saveas.Michael Meeks1-1/+2
Change-Id: I866c6cb836407019973559051c854d24f9549d2a
2013-07-26more liblibreoffice pieces.Michael Meeks2-31/+13
Change-Id: I21d67de281847321d784cddc652d4a51a437fadf
2013-04-28namespacing cleanupThomas Arnhold1-9/+5
Change-Id: I1384bf53a29e174bb97db4c0644f9dce39c0e36d
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák1-9/+9
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09