summaryrefslogtreecommitdiff
path: root/reportdesign
AgeCommit message (Collapse)AuthorFilesLines
2014-05-29reportdesign: Fix applying the last used colorMaxim Monastirsky3-0/+9
The last used color is stored inside SvxColorToolBoxControl, so we must call its Select method to do that. (This also fixes using the last shape, See previous commit for a fix of exactly the same problem in chart2.) For the font color, there was also another problem: The SID used for that button is SID_ATTR_CHAR_COLOR2. The problem is that SvxColorToolBoxControl::Select actually calls for that SID the ".uno:CharColorExt" command instead of ".uno:FontColor" (which activates in writer the format paintbrush mode). Given that since commit 584b415924bba22db23a4258062e54973de0ed7c this command also receives the last used color as argument, the easiest solution is to register ".uno:CharColorExt" here as well. (cherry picked from commit 426033250db0b9b6344980655ca0be59efe6a6a5) Change-Id: I2db25a7fb537ce10dfec7b1c2d049dd77d9f8f6b
2014-05-29reportdesign: Update shape buttons with sub toolbar selectionMaxim Monastirsky1-1/+6
Change-Id: Ie39f1005182da118475fdf9c4e463bfb902d4446 (cherry picked from commit 16ba360f2a526654cedfcd4cda230442c3a8a522)
2014-05-28fdo#67937 "print on group change" defaults to TRUELionel Elie Mamane1-2/+2
Thus it needs to be saved when it is *false*. Change-Id: I01bae547afe71ede12fb852c1a9040b7e45bf7b9 Reviewed-on: https://gerrit.libreoffice.org/9502 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu> (cherry picked from commit 7b8e9ea4f9645599f45f7e2f708bab2837dafd0d) Reviewed-on: https://gerrit.libreoffice.org/9505 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-05-19hrc and src files: squeeze multiple newlinesThomas Arnhold8-15/+0
for i in `find . -name *.src -or -name *.hrc`; do FILE=$(cat -s "$i"); echo "$FILE" > "$i"; done Change-Id: I2bac5ad3e1eb3c566e5c867ccf45893a19e1561e
2014-05-17Correct common misspellings, and remove some ASCII art along the way.Chris Laplante1-1/+1
Change-Id: I42787db31769e8bde984c5f4f0aa90335e889b1c Reviewed-on: https://gerrit.libreoffice.org/9356 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
2014-05-17Comment why it's not a copy paste errorJulien Nabet1-0/+1
See http://nabble.documentfoundation.org/Question-unoType-for-getXmlToken-dbaccess-reportdesign-module-td4109071.html Thank you Lionel! Change-Id: I999bad0d6de0327bea7ba04a6c61a497d45f53a0
2014-05-14Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part12Julien Nabet9-15/+15
Change-Id: I7c514b7a1d86f52d77672b826b1f08b825fd7aa7
2014-05-14update_pch: add reportdesignThomas Arnhold10-1/+698
3m44s reduced to 53s... Change-Id: I9a7601e4cb23430b850fe4303e7da877ab1d63e2
2014-05-14fix-includes.pl: reportdesignThomas Arnhold25-67/+67
Change-Id: I01ad1f4c3a8e0ee8173ceb147ce20945b7d5433d
2014-05-14Keep only one class for toolbox color controlsMaxim Monastirsky1-5/+2
instead of 5 (mostly identical) classes. Also the following bugs were fixed: * All pickers now use split buttons. (fdo#45671) * Color palette now indicates the current color. (fdo#73891) (Previous changes related to that bug are reverted as part of this commit.) * Selecting a color from a float panel now updates the button. (fdo#77683) * For Font color/background color in Writer, the color that is shown on the button, is always the one that's actually used. (Can be a different color after hiding the toolbar.) * For Font color/background color in Writer, the button now indicates when we're in the format paintbrush mode. (Removed in 085e8a07e61ef2d3a82e11094d8773ab17cfdb3c for some reason.) Change-Id: Idb4829552240c52fb0882aca627c8177bbe2f839
2014-05-13Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part11Julien Nabet2-73/+73
Change-Id: Ibe0a1006aba2b6cbd87c0bd6ca3acbf9ba7b0fbe
2014-05-11Fix previous commit (reportdesign part, following)Julien Nabet1-1/+1
Change-Id: Ib55bdc21fa6081c55777465115538905c1cab5e0
2014-05-11Fix previous commit (reportdesign part)Julien Nabet1-32/+32
Change-Id: I490326abccac237bd70209d2a3dd623ebd5c59a2
2014-05-11Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part10Julien Nabet5-43/+43
Change-Id: I67acda35fa127547dcea0cd18c9dc16db7c00294
2014-05-10Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part9Julien Nabet1-1/+1
Change-Id: I82ed4a4868cb22566706ca0f4b1321e0d45016cf
2014-05-08typosThomas Arnhold1-2/+2
Change-Id: I2e7676ddec446dfdb72018a1039d6271f963376c
2014-05-08reportdesign: sal_Bool->boolNoel Grandin24-87/+208
Change-Id: Ib3e7a51a8b01165d4706857f7b347d622c2e624a
2014-05-08RFC: add IsValueChangedFromSaved to VCL button and listboxNoel Grandin1-8/+8
Add a method bool IsValueChangedFromSaved() to the various Button and Listbox classes. Use it to simplify code like if ( maBoldAppFont.GetSavedValue() != TriState(maBoldAppFont.IsChecked()) ) to if ( maBoldAppFont.IsValueChangedFromSaved() ) Change-Id: I26b291d0980237497063ee301d63a49c7d2bc227 Reviewed-on: https://gerrit.libreoffice.org/9250 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-05-07The opaque PostUserEvent IDs are actually pointersStephan Bergmann1-2/+2
...so declare them as such. This avoids the recurring mistake of storing such IDs as sal_uInt32, truncating in 64 bit environments, causing RemoveUserEvent to potentially not remove the event, it thus firing "too late" and probably causing a crash. While at it, consolidate the trivially unnecessary overloads of both Application::PostUserEvent and Window::PostUserEvent. And in each of them, it looks like deleting the mpLink member was missing from the failure branch. Change-Id: Iab13afbb06e12ac15dec6a6b5b85a7e402a3c654
2014-05-06remove uncompiled source filesThomas Arnhold5-114/+0
Change-Id: I0c581bb48f101a84d0f0c4ceb7b064cff0d509d6
2014-05-02reportdesign: sal_Bool->boolNoel Grandin85-505/+510
Change-Id: I7a269dbf163f4c839b6c553c7b096185fe2f8a01
2014-04-29coverity#1210196 Uninitialized pointer fieldCaolán McNamara1-3/+0
Change-Id: Ib6add605efa2588ac357185687b22c2a6b8863ca
2014-04-29coverity#1210201 Uninitialized pointer fieldCaolán McNamara1-3/+0
Change-Id: I94c4853524eea306dd53a7a747f94735e0be0752
2014-04-23huge hrc and src file cleanupThomas Arnhold3-6/+1
* mostly fallout from ui conversion * some completely unused defines from src files * lots of unused HID ids Change-Id: I976561205798db3d06ee139de6223f638e58f47a Reviewed-on: https://gerrit.libreoffice.org/9142 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
2014-04-22clean up hrc filesThomas Arnhold1-2/+0
and remove some unused stuff Change-Id: Iea6177c3d2f9d0668187e66155b62688ae2ecb04
2014-04-21remove comments why a file gets includedThomas Arnhold1-1/+0
also remove some commented out code Change-Id: Ia80c5c57d8d2a74418032de50eee95642cc0969d
2014-04-19fixincludeguards.sh: reportdesignThomas Arnhold109-315/+315
2014-04-19Remove gcc3 workaround for bug long since fixed in gccChris Sherlock4-8/+4
Change-Id: Ieb1c41481a79ab8713663caee3d5373640ff0ec8 Reviewed-on: https://gerrit.libreoffice.org/9102 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-04-14fdo#76294: Fix the build.Kohei Yoshida3-4/+24
Change-Id: I123751e9f08faaccc06649c2f8b29a9a33548312
2014-04-14Clean up function declarations and some unused functionsStephan Bergmann9-39/+23
Change-Id: I367acc372d6b5996430a2c560e776a469b7e0007
2014-04-14typo: noone -> no oneThomas Arnhold1-1/+1
2014-04-14typo: currect -> currentThomas Arnhold1-1/+1
2014-04-10It's "its", not "it's"Tor Lillqvist2-3/+3
Change-Id: Ieaa787afd7cc622b4750a2ee8f17f6dad934ba63
2014-04-06fdo#72276 introduce .uno:ZoomMenu so we can split the menu entries/labelsJoren De Cuyper1-1/+1
Currently .uno:zoom is used for the topmenu and submenu. Deleting the '...' behind the text will delete it for both, which is not correct. Therefore I introduce .uno:ZoomMenu for the topmenu. Change-Id: I75bcae572be0cca7216c34d81e0b99f4c59c0aab Reviewed-on: https://gerrit.libreoffice.org/8503 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
2014-04-04coverity#738784 Uninitialized scalar fieldCaolán McNamara1-10/+9
Change-Id: Ibe261cb6b7c91b6a72fc24aef05ef269c69c390f
2014-04-03remove unnecessary scope qualifier from sal_Bool usesNoel Grandin46-283/+283
i.e. convert "::sal_Bool" to "sal_Bool" Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-04-03dbaccess: sal_Bool->boolNoel Grandin2-19/+19
Change-Id: Ida8ee14bb6350fad815d741ca7a2b7db04a8ed11
2014-04-02coverity#707967 Uninitialized scalar fieldCaolán McNamara1-0/+3
Change-Id: I65aa00d79efe15f63c272fbcd5d3e0dea2c28dfc
2014-04-02coverity#707969 unused nMasterPageNameIndexCaolán McNamara1-1/+0
Change-Id: I1a91871eb9f1952625b94b15d9ab8a4712487048
2014-04-02coverity#707970 Uninitialized scalar fieldCaolán McNamara1-7/+9
Change-Id: I70cc8c7667d9cfb2fc043e3889c7fb5adc9abd52
2014-04-02coverity#707971 Uninitialized scalar fieldCaolán McNamara1-2/+11
Change-Id: I5c1045253c082a00397cf0f048baee947232c9b1
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann3-4/+4
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-31xmloff: sal_Bool->boolNoel Grandin2-5/+6
Change-Id: Id3d8f4f4ef32280a131907ffa32eb2ad5d6ea2e1
2014-03-31xmloff: sal_Bool->boolNoel Grandin1-36/+36
Change-Id: I64c33ae4c157e270acac9a1f820d3e6272ba0bea
2014-03-31xmloff: sal_Bool->boolNoel Grandin1-1/+1
Change-Id: I1c97da5b7bbac348150399afbf386613433e5551
2014-03-31xmloff: sal_Bool->boolNoel Grandin1-2/+2
Change-Id: I1deb10cb1581137ab92e73367e63339822a9a094
2014-03-28Merge back branch alg_writerframes to trunkArmin Le Grand1-1/+1
(cherry picked from commit b635b4fa4e42053d30ab639643d2236a20243f62) Conflicts: comphelper/inc/comphelper/TypeGeneration.hxx comphelper/source/property/TypeGeneration.cxx cui/source/factory/dlgfact.hxx cui/source/inc/cuitabarea.hxx cui/source/tabpages/tabarea.cxx cui/source/tabpages/tabarea.hrc cui/source/tabpages/tabarea.src cui/source/tabpages/tparea.cxx drawinglayer/source/primitive2d/polypolygonprimitive2d.cxx drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx drawinglayer/source/texture/texture.cxx editeng/inc/editeng/unotext.hxx editeng/source/items/frmitems.cxx include/drawinglayer/texture/texture.hxx include/editeng/brushitem.hxx include/svx/sdr/primitive2d/sdrdecompositiontools.hxx include/svx/svxids.hrc include/xmloff/xmltypes.hxx reportdesign/source/ui/misc/UITools.cxx sc/source/ui/drawfunc/drawsh.cxx sfx2/source/dialog/tabdlg.cxx svl/source/undo/undo.cxx svx/inc/svx/unoshprp.hxx sw/Library_sw.mk sw/inc/doc.hxx sw/inc/format.hxx sw/inc/frmfmt.hxx sw/inc/swatrset.hxx sw/inc/unomap.hxx sw/inc/unoprnms.hxx sw/source/core/access/accpara.cxx sw/source/core/attr/format.cxx sw/source/core/attr/swatrset.cxx sw/source/core/doc/docdraw.cxx sw/source/core/doc/docfly.cxx sw/source/core/doc/notxtfrm.cxx sw/source/core/inc/frame.hxx sw/source/core/inc/frmtool.hxx sw/source/core/layout/atrfrm.cxx sw/source/core/layout/paintfrm.cxx sw/source/core/text/inftxt.cxx sw/source/core/text/porfld.cxx sw/source/core/text/txtfly.cxx sw/source/core/txtnode/fntcache.cxx sw/source/core/uibase/app/docst.cxx sw/source/core/uibase/app/docstyle.cxx sw/source/core/uibase/shells/drawdlg.cxx sw/source/core/uibase/shells/frmsh.cxx sw/source/core/unocore/unoframe.cxx sw/source/core/unocore/unomap.cxx sw/source/core/unocore/unoprnms.cxx sw/source/core/unocore/unostyle.cxx sw/source/ui/fmtui/tmpdlg.cxx sw/source/ui/fmtui/tmpdlg.src sw/source/ui/frmdlg/frmdlg.cxx sw/source/ui/frmdlg/frmpage.src sw/source/ui/inc/frmsh.hxx xmloff/source/text/txtprhdl.cxx xmloff/source/text/txtprmap.cxx Change-Id: Id3ffaa83bb5594d287f1ac8f2c1c9cf55c70946d
2014-03-27Second batch of adding SAL_OVERRIDE to overriding function declarationsStephan Bergmann92-1222/+1222
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-03-26Split TYPEINFO into plain and TYPEINFO_OVERRIDEStephan Bergmann8-15/+15
...where the latter contains SAL_OVERRIDE annotations Change-Id: Id64794b388d83dfe7026440e8b20a5b5efd412d1
2014-03-25svtools: sal_Bool->boolNoel Grandin4-8/+6
Change-Id: I90320997ed79be2556eafa4c35af6b968b378454