summaryrefslogtreecommitdiff
path: root/cui
AgeCommit message (Collapse)AuthorFilesLines
2015-05-08PostUserEvent - first cut at keeping a VclPtr for posted UserEvents.Michael Meeks5-7/+7
This should eventually enable more certainty that they are still live by the time we emit the event later. Change-Id: I7c9eb4c000753d4efe8c59a9e13ef3e11c93b2fa
2015-05-08lopluign:staticmethods: Handle DECL_LINKStephan Bergmann14-18/+22
Change-Id: Ib27854a8470f3ff5b208cb949a7bd02f2a86c969
2015-05-08Silence sal_Bool -> sal_IntPtr Link return value mismatches for nowStephan Bergmann1-1/+1
Some uses of untyped Link<> (returning sal_IntPtr) are hard to update to typed versions, but upcoming changes to loplugin:implicitboolconversion would flag these uses of sal_False/True, so just explicitly cast them to sal_IntPtr for now. Change-Id: I654e555e85faba0b30178c978e7d50fc7240b004
2015-05-08Use typed Menu::SetHighlightHdl LinkStephan Bergmann2-3/+3
Change-Id: I47a35813fddcb90497b621a96bafe74969dc90d0
2015-05-07tdf#90935 - fix dispose ordering for tools->customize dialog.Michael Meeks1-5/+2
Change-Id: I1ddd3b804f82438e08ea7761a205fc4b784cdf00
2015-05-07Catch another erroneous 'make' constructor function.Michael Meeks1-1/+1
Change-Id: I4a674b44bce1f3c3f5c3de2639863ff4b4fcd41e
2015-05-07convert BUTTONDIALOG constants to scoped enumNoel Grandin1-4/+4
Change-Id: Icbf73fe55ad604f762dd2b98fd39189bab82f061 Reviewed-on: https://gerrit.libreoffice.org/15648 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-05-07Refactor Buttons to use RenderContext when paintingTomaž Vajngerl1-2/+2
Change-Id: I4ebecb2bda44319a3590a62a2c113c73c94ba974
2015-05-06tdf#91014 - dispose SfxControllerItem sub-class earlier.Michael Meeks1-3/+5
This avoids getting StateChange calls on disposed widgets. Change-Id: I33968f1afc09df47eda5ad5e0f0ae3a5cc408a63
2015-05-06tdf#90258 Toggle Thousand Separator with Engineering NotationLaurent Balland-Poirier4-2/+52
If scientific format is selected, "Thousands separator" option is almost useless. It could be replaced by "Engineering Notation". Rebase of https://gerrit.libreoffice.org/15152 Update with more robust tests. Change-Id: Ie2b88b1f149fce26c32a43ace623cf1f45f38e6e Reviewed-on: https://gerrit.libreoffice.org/15606 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-05-06tdf#90565: Focus category list on showing the dialogKatarina Behrens1-0/+1
Change-Id: Ice995c7061b195ae7ac600635fc7643f762841c0
2015-05-06simplify code using ScopedVclPtrNoel Grandin2-17/+2
Change-Id: I71db7422ab8ad83455cc61df5314cf214a4d388c
2015-05-06Remove unused SvxControlFocusHelperStephan Bergmann4-57/+0
Change-Id: I3bdadb02918bf109e7e93ea0c7c709f018caed4a
2015-05-06convert BMP_MIRROR constants to scoped enumNoel Grandin1-1/+1
and fix bug in svx/source/xoutdev/_xoutbmp.cxx,XOutBitmap::MirrorGraphic where it was not correctly translating between different flags types. Change-Id: I78b4965544da2aa54b67ec18307fa54c8ffc3aee
2015-05-06convert BMP_SCALE constant to scoped enumNoel Grandin3-4/+4
Change-Id: Ibc9f88d2588c028cd71aa86c26d970a73025ef22
2015-05-06convert USER_OPT constants to scoped enumNoel Grandin1-29/+29
Change-Id: I85a1c9f89ac79e0e54fcd8dfd1908325fae9a8ac
2015-05-06convert DEFAULTFONT_ constants to scoped enumNoel Grandin2-2/+2
Change-Id: Ia33e957f6cf530e2639b3c86d9482f642652cb46
2015-05-06Use various typed ToolBox::Set*Hdl LinksStephan Bergmann2-4/+2
Change-Id: Iddfd36ae0de86fdd2d4febb2c05d1fe0c02801f0
2015-05-05vcl: rename other members of StateChangedType for consistencyMichael Stahl5-6/+6
Change-Id: Ifd3339813e5d3dfb54566fd226aaf2d2a199d59a
2015-05-05loplugin:staticmethodsNoel Grandin2-22/+1
Change-Id: I4d19f868a618cb135aa7a949222972dc35b47d2a
2015-05-05Use typed Idle::SetIdleHdl LinkStephan Bergmann14-24/+14
Change-Id: I189937950325dc4ef663f7f49cb45f38f8537de9
2015-05-05Use typed Timer::SetTimeoutHdl LinkStephan Bergmann20-32/+20
Change-Id: Iaaf0c93e5b28c0f7dbe4f02eda8beeae30708100
2015-05-05loplugin:staticmethodsNoel Grandin27-52/+52
Change-Id: I3d61c1c64f7e781c032a77d5d35998e953bf5c0c
2015-05-02Audit LoseFocus - basctl, cui, dbaccess.Michael Meeks2-2/+14
Change-Id: If61b45f28f30e3ab00dbf071198233d59899d719
2015-05-01better use application settingsEike Rathke1-1/+1
It doesn't really matter, just saves some cycles looking up the system locale. Change-Id: I8895593b445c49f167f26bcbf510c12a3c25e1d4
2015-04-30Use typed Link for MenuButton::SetSelectHdlStephan Bergmann8-26/+16
(and MenuButton::GetSelectHdl was unused) Change-Id: I94df06bcda9e041fde65553e30247874b20ff74b
2015-04-30display both, LibreOffice locale and system localeEike Rathke1-1/+1
For us our own configured locale is even more important. Change-Id: Idfab979e868f49e2323dc9f516996393112b0689
2015-04-30Gradually typed LinkStephan Bergmann61-199/+199
Turn the Link class into a template abstracting over the link's argument and return types, but provide default template arguments that keep the generic, unsafe "void* in, sal_IntPtr out" behvior. That way, individual uses of the Link class can be updated over time. All the related macros are duplicated with ..._TYPED counterparts, that additionally take the RetType (except for LINK_TYPED, which manages to infer the relevant types from the supplied Member). (It would have been attractive to change the "untyped" LinkStubs from taking a void* to a properly typed ArgType parameter, too, but that would cause -fsanitize=function to flag uses of "untyped" Link::Call.) Change-Id: I3b0140378bad99abbf240140ebb4a46a05d2d2f8
2015-04-30Get rid of initial :: for the svx namespaceTor Lillqvist4-6/+6
Change-Id: I03e428a749bca409ebac9c142acaddafcbfeca23
2015-04-30Get rid of the initial :: for the vcl namespaceTor Lillqvist1-2/+2
We used it all over the place without leading :: already anyway, even in many files in include. So let's be consistent. In the majority of cases, prefer the easier-on-the-eyes choice, not the "safe" one. In those files in include where *all* existing uses of ::vcl:: indeed used the :: prefix, there let's keep it for consistency. Change-Id: If99cb41d3bf290d38c601d91125c3c8d935e61d0
2015-04-30Bin some pointless comments and reduce some vertical whitespaceTor Lillqvist1-6/+4
Bin pointless '// predeclarations' or '// forward declarations' comments. If a programmer doesn't know what a forward declaration is, well, why read C++ source code? Also bin some pointless '// end of namespace foo' comments after namespace blocks just a handful of lines long, and some superfluous vertical whitespace. Change-Id: I2a31c5d73d9b4de8825fb8eb9e7559dbd7303ef9
2015-04-29cui: loplugin:literaltoboolconversionMichael Stahl1-1/+1
Change-Id: I26b9778d2fe593dd5d4bdbc2cb737c6304bae120
2015-04-29Remove unnecessary IMPL_LINK[_NOARG]_INLINE_START/ENDStephan Bergmann12-62/+19
...just use IMPL_LINK[_NOARG] and let the compiler decide what to inline Change-Id: I63ec5116df7e79093ebf31193f8c674f1351c0e6
2015-04-29Remove unnecessary STATIC_LINK macroStephan Bergmann6-14/+14
Change-Id: I4788824667c8e0d1d4e0717b7ae7737bb0fd2c90
2015-04-29the 'Edit' button is a color picker, rename and moveCaolán McNamara1-15/+17
to the color value entry column Change-Id: I3c044fbff2e93c553f2eb8da33f99a944a6db336
2015-04-29on using 'add' color button, don't frighten with an errorCaolán McNamara2-41/+55
that the name already exists if the user didn't use the edit entry yet. Just always, like the gradient one, put up the dialog to enter a name, use the entry text if that name isn't taken, and generate a new one if its is. Change-Id: Ibd3d37db73ecdbae7998884d3397cbc2bc6b7c3f
2015-04-29convert ZOOMBTN constants to scoped enumNoel Grandin4-17/+20
Change-Id: Ia7641f736fa4f84dce0b5ea8bf68339c1309e74b
2015-04-29convert CT_ constants to scoped enumNoel Grandin13-100/+101
Change-Id: Icd1f009e879965feb936c6268688cdcd1edbd231
2015-04-29convert _EDIT constants to scoped enumNoel Grandin1-28/+29
Change-Id: I1502692f9491bc55856b7477040bd5918faf4df8
2015-04-29convert LANG_LIST constants to scoped enumNoel Grandin7-14/+14
Change-Id: Ibd699cfdfd3266c2965a5b6368cfe2f4431b7fb4
2015-04-29convert SVX_ flags to scoped enumNoel Grandin1-5/+5
Change-Id: I6ca73a459597f06fc301a12d6556775a77a7c4c7
2015-04-29convert SW_BORDER_MODE constants to scoped enumNoel Grandin2-10/+10
Change-Id: I7b2e03a5cacf5d2a706ba8e2d3b276fcb3f7e88b
2015-04-29convert CS_ constants to scoped enumNoel Grandin2-7/+7
Change-Id: I7fb03a04f086c1952a6f186a00fffad0b6c1236b
2015-04-29fix compile: delegate RenderContext parameter to superTomaž Vajngerl1-2/+2
Change-Id: I1c08e29c45d8334db52b129a957098481f3e57a4
2015-04-29replace Paint calls to Invalidate + fix compilationTomaž Vajngerl3-6/+6
Change-Id: Id716c47d56922ab6ce0c3adb3d426ea814980674
2015-04-29mass rewrite Paint(Rect&) to Paint(RenderContext&, Rect&)Tomaž Vajngerl20-28/+28
Change-Id: Ia1667246064d11827dbd149def15e5bf08b119b8
2015-04-28cui: fix GCC-4.7 buildMiklos Vajna3-3/+3
Change-Id: I4ff4cf6e9152dd44b5ec4cf14e58291e05dd65a2
2015-04-28Merge remote-tracking branch 'origin/feature/vclptrmerge2'Michael Meeks205-2833/+5842
2015-04-28Merge remote-tracking branch 'origin/feature/vclptr'Michael Meeks205-2833/+5842
Resolve several thousand lines of conflicts. Conflicts: accessibility/source/extended/accessiblelistbox.cxx accessibility/source/standard/vclxaccessiblecombobox.cxx accessibility/source/standard/vclxaccessibledropdowncombobox.cxx accessibility/source/standard/vclxaccessibledropdownlistbox.cxx accessibility/source/standard/vclxaccessiblelistbox.cxx accessibility/source/standard/vclxaccessibletextfield.cxx basctl/source/basicide/basidesh.cxx cui/source/inc/chardlg.hxx cui/source/tabpages/tpbitmap.cxx dbaccess/source/ui/dlg/UserAdmin.cxx dbaccess/source/ui/querydesign/ConnectionLineAccess.cxx extensions/source/propctrlr/propertyeditor.hxx extensions/source/scanner/sanedlg.cxx filter/source/pdf/impdialog.cxx include/sfx2/mgetempl.hxx include/sfx2/sidebar/SidebarToolBox.hxx include/sfx2/viewsh.hxx include/svtools/brwbox.hxx include/svtools/filectrl.hxx include/svtools/scrwin.hxx include/svx/dlgctrl.hxx include/svx/sidebar/Popup.hxx include/svx/sidebar/PopupContainer.hxx include/svx/sidebar/PopupControl.hxx include/svx/sidebar/SidebarDialControl.hxx include/svx/sidebar/ValueSetWithTextControl.hxx sc/source/ui/condformat/condformatdlgentry.cxx sc/source/ui/navipi/navipi.cxx sc/source/ui/sidebar/CellBorderStyleControl.hxx sd/source/ui/animations/CustomAnimationDialog.cxx sd/source/ui/inc/DrawViewShell.hxx sd/source/ui/inc/Ruler.hxx sd/source/ui/inc/SlideSorter.hxx sd/source/ui/inc/ViewTabBar.hxx sd/source/ui/inc/Window.hxx sd/source/ui/inc/morphdlg.hxx sd/source/ui/inc/sdpreslt.hxx sd/source/ui/sidebar/CurrentMasterPagesSelector.hxx sd/source/ui/sidebar/LayoutMenu.hxx sd/source/ui/sidebar/MasterPagesSelector.hxx sd/source/ui/sidebar/NavigatorWrapper.hxx sd/source/ui/sidebar/PanelBase.hxx sd/source/ui/sidebar/RecentMasterPagesSelector.cxx sd/source/ui/sidebar/RecentMasterPagesSelector.hxx sd/source/ui/slideshow/showwindow.hxx sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx sd/source/ui/view/ViewShellBase.cxx sd/source/ui/view/drviewsa.cxx sfx2/source/appl/fileobj.hxx sfx2/source/appl/opengrf.cxx sfx2/source/control/thumbnailviewacc.hxx sfx2/source/dialog/securitypage.cxx sfx2/source/dialog/templdlg.cxx sfx2/source/doc/docinsert.cxx sfx2/source/doc/guisaveas.cxx sfx2/source/inc/alienwarn.hxx sfx2/source/sidebar/Deck.cxx sfx2/source/sidebar/Deck.hxx sfx2/source/sidebar/DeckTitleBar.cxx sfx2/source/sidebar/DeckTitleBar.hxx sfx2/source/sidebar/MenuButton.cxx sfx2/source/sidebar/MenuButton.hxx sfx2/source/sidebar/Panel.cxx sfx2/source/sidebar/Panel.hxx sfx2/source/sidebar/PanelTitleBar.hxx sfx2/source/sidebar/SidebarDockingWindow.hxx sfx2/source/sidebar/SidebarToolBox.cxx sfx2/source/sidebar/TabBar.hxx sfx2/source/sidebar/TabItem.cxx sfx2/source/sidebar/TabItem.hxx sfx2/source/sidebar/TitleBar.hxx sfx2/source/toolbox/imgmgr.cxx starmath/inc/edit.hxx starmath/inc/smmod.hxx starmath/qa/cppunit/test_starmath.cxx starmath/source/edit.cxx starmath/source/smmod.cxx svtools/source/brwbox/brwbox1.cxx svtools/source/brwbox/datwin.hxx svtools/source/contnr/fileview.cxx svtools/source/contnr/simptabl.cxx svtools/source/control/filectrl.cxx svtools/source/control/valueimp.hxx svx/inc/GalleryControl.hxx svx/source/dialog/dlgctrl.cxx svx/source/dialog/swframeexample.cxx svx/source/fmcomp/fmgridif.cxx svx/source/gallery2/GalleryControl.cxx svx/source/sidebar/EmptyPanel.hxx svx/source/sidebar/area/AreaPropertyPanel.hxx svx/source/sidebar/area/AreaTransparencyGradientControl.hxx svx/source/sidebar/graphic/GraphicPropertyPanel.hxx svx/source/sidebar/insert/InsertPropertyPanel.cxx svx/source/sidebar/insert/InsertPropertyPanel.hxx svx/source/sidebar/line/LinePropertyPanel.hxx svx/source/sidebar/line/LineWidthControl.cxx svx/source/sidebar/line/LineWidthControl.hxx svx/source/sidebar/line/LineWidthValueSet.hxx svx/source/sidebar/paragraph/ParaPropertyPanel.hxx svx/source/sidebar/possize/SidebarDialControl.cxx svx/source/sidebar/text/TextCharacterSpacingPopup.hxx svx/source/sidebar/text/TextPropertyPanel.hxx svx/source/sidebar/tools/PopupContainer.cxx svx/source/sidebar/tools/PopupControl.cxx svx/source/sidebar/tools/ValueSetWithTextControl.cxx svx/source/svdraw/svdfmtf.hxx svx/source/svdraw/svdibrow.cxx svx/source/tbxctrls/colrctrl.cxx svx/source/tbxctrls/tbcontrl.cxx sw/source/ui/dbui/mmaddressblockpage.cxx sw/source/ui/dialog/uiregionsw.cxx sw/source/ui/index/cnttab.cxx sw/source/uibase/inc/drpcps.hxx sw/source/uibase/sidebar/PageColumnControl.hxx sw/source/uibase/sidebar/PageMarginControl.hxx sw/source/uibase/sidebar/PageOrientationControl.hxx sw/source/uibase/sidebar/PagePropertyPanel.hxx sw/source/uibase/sidebar/PageSizeControl.hxx sw/source/uibase/uiview/view2.cxx sw/source/uibase/utlui/navipi.cxx vcl/inc/svdata.hxx vcl/source/control/combobox.cxx vcl/source/control/lstbox.cxx vcl/source/window/dockwin.cxx vcl/source/window/winproc.cxx Change-Id: I056cf3026ff17d65cca0b6e6588bda4a88fa8d95
2015-04-28use sensible variable naming, tdf#85432 follow-upEike Rathke2-12/+12
Change-Id: Ibb468ff3b4c3210c4c5df60fbd42d74884bbfdb3