summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2015-11-23SvxSmartTagsControl: Do not leak sub menusMaxim Monastirsky1-2/+3
And while on it, move other things to smart pointers as well. Change-Id: I8b234b8a9fe60e0ca82bb08e48f6b7db94cbcd4d
2015-11-22crashtesting: fdo72067-2.odp missing SdrEdgeLineDeltaAnzItem::CloneCaolán McNamara1-0/+4
Change-Id: I6dea8c690d07b670358f8488c6be83ec49c8ee43
2015-11-20loplugin:staticmethodsStephan Bergmann1-2/+0
Change-Id: Ia306219fdcce4633e85c34db343a99b21e88157e
2015-11-20tdf#67770 store sidebar elements statesLaurent Godard6-23/+25
deck & panel states at user registry level when disposing a sidebar if a shared deck (with "any" context application) is modified, it apply to all applications (eg. Gallery between calc and writer); TODO ? clean ResourceManager Get/Set const/non-const add panels when deck is created & refactoring * macro example Sub Main controller = thisComponent.currentcontroller sidebar = thisComponent.currentcontroller.getSidebar() sidebar.setVisible(true) decks = sidebar.getdecks() deck = decks.getByName("PropertyDeck") deck.activate(true) deck.setTitle("new deck title") deck.moveLast() panels = deck.getPanels() panel = panels.getByName("TextPropertyPanel") panel.setTitle("new panel title") panel.expand(true) ' expand and collapse other panel.moveLast() End Sub Change-Id: I2552000af92a366ebb51a479962a094b72e400b6 Reviewed-on: https://gerrit.libreoffice.org/17992 Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de> Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
2015-11-20Seems more natural to pass a homogenous list by initializer_listStephan Bergmann1-27/+4
...than by template parameter pack (even if that requires using ServiceDecl*, as initializer_list cannot take reference types) Change-Id: Ia986201b52d8daedfe925f132ebc79bc2c0ba378
2015-11-20Revert "vcl: Initial NotebookBar implementation."Samuel Mehrbrodt1-3/+0
Will use a different approach for NotebookBar. Also this should not be in 5.1. This reverts commit 8c1014021dbe9da2e18233d215b970f5359db67b. Change-Id: Ic699723818a890bf4c3be3a2c045527148bd118b Reviewed-on: https://gerrit.libreoffice.org/20075 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-11-20mark WeakReference with SAL_WARN_UNUSEDNoel Grandin1-1/+1
Change-Id: I9d56cdecba8066058a0c6f128720534fcf6f6e34
2015-11-20loplugin:sallogareasStephan Bergmann2-8/+26
Change-Id: Ib1f06cb5f925535858bc14aab6f59ad7fd2a3a8d
2015-11-20tdf#95938 Toolbar context menu has no commandsSamuel Mehrbrodt1-1/+1
because of an integer overflow Change-Id: I75103450d0af59fd6f3196f451984e0dce45c693 Reviewed-on: https://gerrit.libreoffice.org/20072 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-11-20add mapKeysToSequence/mapValuesToSequence methods to comphelperNoel Grandin1-0/+25
and use them Change-Id: If4dc9df63db37185228aeaaab2979498d61304ec Reviewed-on: https://gerrit.libreoffice.org/20055 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-19loplugin:sallogareasStephan Bergmann1-2/+19
Change-Id: I2220ab194384fb397716bf3227d38716ba54f537
2015-11-19Toolbar: Add 'Save As' to 'Save' dropdownSamuel Mehrbrodt1-0/+5
Change-Id: I6597ae5569b29d09a8c44fc9a55b71166aa37b05
2015-11-19Add OpenGLContext::UseNoProgram()Tor Lillqvist1-0/+1
Will be useful in cases where there is some external library code that uses shaders outside of our OpenGLContext. Change-Id: I59c57e3225f55d13e69b6a9b7c0db1a7487c586d
2015-11-19move translating a command name to image name out of frameworkTomaž Vajngerl1-0/+64
This is the first step to decouple resolving of command names to image (icon) names. This is necessary to make allow additional processing of images before the image is passed on and better decision which image source to take. Change-Id: I129dc6a1ae812aaaca32696ef2a2749d5fa86a54
2015-11-18SystemMenuData::nSize is never readStephan Bergmann1-1/+0
...and of little use if all users of SystemMenuData agree on the definition in vcl/sysdata.hxx Change-Id: Id102a30074b611e3ad37ce69ce27c929f4505495 Reviewed-on: https://gerrit.libreoffice.org/20044 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2015-11-18Revert "ToolBox: Remove unused methods"Maxim Monastirsky1-0/+3
The ImplLoadRes method *is* used in ToolBox::ToolBox( vcl::Window* pParent, const ResId& rResId ). This change breaks the navigator panel, and therefore the JunitTest_toolkit_unoapi_1 test. This reverts commit 99648095012187ef284d0a9399a8e12878b2a370.
2015-11-18cosmeticsEike Rathke1-8/+8
Change-Id: Ic06bef4c80426b97a2613fe296ae0aa0ee55a215
2015-11-18rename FormulaToken HasForceArray to IsInForceArrayEike Rathke1-17/+17
... to name it was it does and to distinguish from ScParameterClassification::HasForceArray(OpCode) which IS about a function having ForceArray parameters. Change-Id: I8af4e1d0353cdb5ad0a9b837ae0763dc77242734
2015-11-18svx: SdrEdgeNode1HorzDistItem etc. missing Clone overridesMichael Stahl1-0/+6
Change-Id: I2bc2de3c3a71dd54e432905c129a3dbd5395f6ab
2015-11-18gtktiledviewer: allow passing initializeForRendering() argumentsMiklos Vajna1-0/+2
Change-Id: Ic7b52764cf2fedbf73d4dcaaf36d1055b8ee22f2
2015-11-18vcl::ITiledRenderable::initializeForTiledRendering: support init. argumentsMiklos Vajna1-1/+1
Change-Id: I9a6a75457078dc6383673f4c1a2012b69b5cefdd
2015-11-18lok::Document::initializeForRendering: support init. argumentsMiklos Vajna2-3/+16
Change-Id: I8aaf19a50f25f495cb87fba7ff6a4b0f56ed7d80
2015-11-18Use C++11 char16_t for sal_UnicodeStephan Bergmann3-0/+25
...in LIBO_INTERNAL_ONLY, __cplusplus, non-MSVC case. It turns out that sal_Unicode happens to not be mangled into any symbols that make up the stable URE interface, so (for LIBO_INTERNAL_ONLY, at least) we are free to replace the typedef to sal_uInt16 with a typedef to any integral type layout-compatible with that. (sal_Unicode does appear in some symbols in sal's PRIVATE_textenc.1 section, but that is private between the sal and sal_textenc libraries, so changing those symbols does not require a change of SONAME.) C++11 chart16_t is the obvious choice (and will ultimately allow using u"..." to write literals of type array-of-sal_Unicode). Reportedly, char16_t is supported since GCC 4.4 and Clang 2.9 but will only be available in MSVC 2015. For plain C, we continue to use sal_uInt16. We could theoretically use C11 char16_t from <uchar.h>, but at least the Mac OS X 10.11 SDK still does not offer that C11 header. For MSVC, we continue to use wchar_t (which is actually unsigned short, due to /Zc:wchar_t-) for now. Potential options there include dropping /Zc:wchar_t- and using true wchar_t, or using C++11 char16_t once support for MSVC 2013 is dropped. Some code needed to be adapted that was written in a way assuming that sal_Unicode is unsigned short (which indicates that changing sal_Unicode for non-LIBO_INTERNAL_ONLY would be an ABI change). OUStringBuffer::append can now differentiate between being called with sal_Unicode (to append a single character) and erroneously being called with sal_uInt16 (intending to append a number's textual representation, for which the sal_Int32 overload must be used instead). Bugs found are 379fe0409e7973b36210cffa3dd1dfd4032f0ecc "Assume that this code wants to append a number, not a character" and dc148335a6a438848325f24c49198fba81043279 "Assume this wants to append the numerical representation." The GDB support for pretty-printing of sal_Unicode-related data in solenv/gdb/libreoffice/sal.py can presumably be simplified now. Change-Id: I445b3a80e65b7cb004d9e08b38bdc9ee93bc9401 Reviewed-on: https://gerrit.libreoffice.org/20036 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2015-11-18Unify menu-based toolbar controllersMaxim Monastirsky1-37/+0
The new GenericPopupToolbarController takes by default the popup menu controller that registered for the same .uno:Something command, and sets ToolBoxItemBits to ToolBoxItemBits::DROPDOWNONLY. If a different command specified using the "Value" property - takes the popup menu controller that registered for this command, and sets bits to ToolBoxItemBits::DROPDOWN. Change-Id: I75c5300bd27fcc9f618f2ee0df2aa6aefd088239 Reviewed-on: https://gerrit.libreoffice.org/20040 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-11-18ToolBox: Remove unused methodsSamuel Mehrbrodt1-3/+0
Change-Id: Ic56cf27c61a904278770f0617d827e574d1eae68
2015-11-18xmloff: add meta:generator constants LO_43x and LO_44xMichael Stahl1-2/+4
Change-Id: I1d962ad637f19b02855616edebcedbad719689c5
2015-11-18xmloff: document potential pitfall with SvI18NMap usageMichael Stahl1-0/+11
Change-Id: I37050203f9d7b4f04b6d0b0dc5c4e04855d017f7
2015-11-18Indentation fixesSamuel Mehrbrodt1-19/+19
Change-Id: Ib508e6f3c89266660e6163bbef2c7f50f5d01806
2015-11-18remove unused typedefs and inline use-once typedefsNoel Grandin8-43/+4
and improve the script a little Change-Id: I2792ea4dd5df3a50736fbe209225c3f16fb86b84 Reviewed-on: https://gerrit.libreoffice.org/20033 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-18use unique_ptr for pImpl in editeng/Noel Grandin5-5/+9
Change-Id: I43ae9f706db15594b3a0c5cba41436d009588393
2015-11-18use unique_ptr for pImpl in sfx2/Noel Grandin4-4/+8
Change-Id: I564fa80a2642a4849127f3c25236634289b5b93d
2015-11-18use unique_ptr for pImpl in sax/Noel Grandin1-1/+2
Change-Id: I0bef03451437cbdc5b0fed6b67690ac1d547291d
2015-11-18use unique_ptr for pImpl in svl/Noel Grandin9-11/+18
Change-Id: Ieef897314ac0f056c0a09a5182ca59800fd58f41
2015-11-18use unique_ptr for pImpl in svtools/Noel Grandin8-8/+15
Change-Id: Ic82db5859464978ca58094e2b6f44e3c9ba30b4c
2015-11-17loplugin:unnecessaryvirtualNoel Grandin10-19/+13
update the plugin with lessons learned from the mergeclasses plugin and re-run it Change-Id: I9d622eb3d05fceaf8fa764c533c8fa5dfb4c7711 Reviewed-on: https://gerrit.libreoffice.org/20015 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-17other #includes should be AFTER the include-once #defineNoel Grandin15-18/+24
found with the following script: git ls-files *.hxx | xargs perl -0777 -ne 'if (/include.* .* .* "; close ARGV }' Change-Id: I3afb0e81eb315c34bc0eb6bb4733dd1f0537d5c0
2015-11-17use unique_ptr for pImpl in tools/Noel Grandin3-5/+8
Change-Id: I7ac7eca32a67524f6c87696c16b16128e6d8518b
2015-11-17tdf#95845 Add methods for menu labels to CommandInfoProviderSamuel Mehrbrodt1-0/+8
Change-Id: Ibf6a26940ec194f540255584776f8ebcefbb94ae
2015-11-17tdf#95845 Use CommandInfoProvider to receive command propertiesSamuel Mehrbrodt1-0/+4
Change-Id: I41f9a661b7a5b355e50910d7f58f0d9d55dc62a6
2015-11-17Add SvStream::ReadUtf16 (don't assume sal_Unicode is unsigned short)Stephan Bergmann1-0/+1
Change-Id: I74f34e3389582617fa83f8f4a3d6867cf87189e1
2015-11-17use unique_ptr for pImpl in ucbhelper/Noel Grandin7-8/+15
Change-Id: Ibae75fc4d843bd38179d4c7afc6ddb532835c7a6
2015-11-17use unique_ptr for pImpl in unotools/Noel Grandin3-7/+6
Change-Id: I4128ca0d4ff18f6e0c3c9f8ecad13b69c38c3157
2015-11-17use unique_ptr for pImpl in vcl,vbahelper,uuiNoel Grandin2-4/+6
Change-Id: Icb7573c24c681a8fc0570d61b6a30dab91378eb8
2015-11-17use unique_ptr for pImpl's in xmloff/Noel Grandin15-16/+31
Change-Id: Ib95118941938af83fed566a085837e17f092017a
2015-11-16If SAL_WARN() does nothing, no point in CHECK_GL_ERROR() eitherTor Lillqvist1-0/+4
Earlier, CHECK_GL_ERROR() always called OpenGLHelper::checkGLError(). That function looks up the OpenGL error status using glGetError(), which might be a not so light-weight operation, and outputs error information using SAL_WARN(). In a production build where SAL_WARN() is a no-op anyway, that is fairly pointless. Change-Id: I2d044bff6128a8ac7739020f8e414d7d3615e8d5
2015-11-16Use injected class nameStephan Bergmann2-10/+10
Change-Id: I22bf0f7024538ea7a6c2c328a6647d3aeb478141 Reviewed-on: https://gerrit.libreoffice.org/20000 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2015-11-16opengl: remove unused mbPixmap & glPix members.Michael Meeks1-5/+0
We use textures bound to FBO's for everything in recent times. Change-Id: I7c9068d75b3653a2ceff0056e2ade1f27955422f Reviewed-on: https://gerrit.libreoffice.org/19995 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-11-16Move functionality to retrieve command image to CommandInfoProviderSamuel Mehrbrodt1-1/+7
Change-Id: I79c22e0507c5eba8b5e28721de3279131aececc9
2015-11-16Move CommandInfoProvider to vcl and use it from thereSamuel Mehrbrodt1-8/+10
Change-Id: If7e3ef81cad8974bc54f359096e3ecc700fa62d6 Reviewed-on: https://gerrit.libreoffice.org/19984 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-11-16Resolves: tdf#95670 propagate ForceArray per parameterEike Rathke1-9/+20
Regression of b5cd11b4b02a85a83db77ba9d8d1763f0cd88cb1 It was always wrong to propagate ForceArray already if a function had a ForceArray parameter *somewhere*, we need to do this per parameter instead. Change-Id: If188d45366279d9a7bf641edc7e4dd7095d6d035