summaryrefslogtreecommitdiff
path: root/cui
AgeCommit message (Collapse)AuthorFilesLines
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
2015-04-28don't assume Country to be always present, tdf#85432 follow-upEike Rathke1-2/+7
For example, 'C' was displayed as "C_" Also, append Variant if present to display the full locale identifier, for example "en_US.UTF-8" Change-Id: I00c7bf832df25c00cc014589c4662806f8bf1137
2015-04-28UpdateFormatListBox_Impl bCat param wants to be of type boolStephan Bergmann2-6/+6
Change-Id: Idf6831ef21cf94926667ca532d9df2a18926e452
2015-04-28Dialog::EndDialog nResult param is of type long/VclResponseTypeStephan Bergmann1-2/+2
Change-Id: I31f1941daf158676518fcf259ef8a9e84863473e
2015-04-28SfxTabPage::DeactivatePage wants to return SfxTabPage::sfxpgStephan Bergmann47-89/+89
Change-Id: Iba538bb51635e6cae1e033d14e8da3dabfb36634
2015-04-27tdf#69316: Sort numbering options meaningfullyKatarina Behrens1-16/+16
+ unify terminology image vs. graphics In an ideal world, those strings wouldn't be duplicated in both sw and cui and change like this would be done in a single place. But there's currently no straightforward way how to share strings between those two ... Change-Id: I5311aca3e7b4070c82cf4f84f96ab1b6eff473c6
2015-04-27More loplugin:simplifyboolStephan Bergmann6-7/+7
Change-Id: If2eef4011382f48b31d8d6289e4bf725a8cb60ae
2015-04-24Fix unhelpful MI from a VclPtr type and Abstract factory type.Michael Meeks7-53/+43
Change-Id: Ibd8a8e22ffe2cd01225e97588d65eae1cc0bffb8
2015-04-24loplugin:simplifyboolStephan Bergmann7-18/+16
Change-Id: Idd83e86cabc9c9075564fc79f91a59f54116bf95
2015-04-23Improved loplugin:literaltoboolconversion looking into cond. exprs.Stephan Bergmann6-14/+14
...automatic rewriter fixes Change-Id: I6b04ca80f08f8a71ff94e309fd52f44d736751ee
2015-04-23loplugin:staticmethodsNoel Grandin2-2/+2
Change-Id: I6207b475127099872c6f3764331006688129b673
2015-04-23loplugin:staticmethodsNoel Grandin1-4/+4
Change-Id: Ib0c0841e48814d1a6e13bcd4575725d86ffa5e5e
2015-04-22Clean up odd sal::static_int_cast<sal_Bool> usesStephan Bergmann2-7/+6
Change-Id: Idbd1cdb06315b96dc9f45e34108a1af45229ed2f Reviewed-on: https://gerrit.libreoffice.org/15484 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2015-04-22convert SV_DRAGDOP_ constants to scoped enumNoel Grandin3-6/+6
Change-Id: If953610ed24a2b6d5f33f2ba014fba2ca5308d7d
2015-04-22convert SV_LBOXTAB_ constants to scoped enumNoel Grandin3-9/+9
Change-Id: Ic7d91ca51106288fb0e14f6f243d74be77cb2c0d
2015-04-22convert HIB_ constants to scoped enumNoel Grandin11-45/+45
Change-Id: I6fa3ecde4a1c5f9c7e6e1dcd22250cba065933e3
2015-04-22convert EBBF_ constants to scoped enumNoel Grandin1-1/+1
Change-Id: I6f281001a96ebfbca20f3e8dd3423945e119eef0
2015-04-22convert BROWSER_ constants to scoped enumNoel Grandin1-1/+2
and fix a couple of places where it was mixing these flags up with the WinBits flags and calling the wrong constructor. Change-Id: I65c66bdd5a263e2f1db179c853f3f00e9ac7659e
2015-04-18cui: convert new to ::Create.Michael Meeks40-150/+150
Change-Id: Ifad69772a4954f14772cca9eeae913e546eff477
2015-04-17tdf#82784: cui: Area tab page: do not override imported bitmapsMichael Stahl1-18/+28
Check that we don't clobber a custom bitmap in the dialog. The (non-obvious) trick is that the name of these is non-empty, so we can check that to filter out pool default items that Draw likes to put into item sets (?), as well as just plain weird items that Draw likes to put into item sets, while avoiding relying on the surprisingly implemented ImpGraphic::operator==(). (regression from 38d0047da7f964c862360b48d88cc869ad376b6b) Change-Id: I0b94e49ef3a9a32c188c3b117a57f780f55e1584
2015-04-17Fix SfxTabPage creation to use VclPtr.Michael Meeks104-358/+316
Change-Id: Ia0e8b666daec7b5eaba119c758b9ca1ec8276128
2015-04-17Clean up conversion from TriState to boolStephan Bergmann1-2/+6
to witness, in Draw select multiple rectangles, with and without shadows, then "Format - Area... - Shadow" Change-Id: Ia1d042f0e3e99bb55228c558568c96b113edfe00
2015-04-17convert SCRIPTTYPE_ constants to scoped enumNoel Grandin1-5/+5
Change-Id: I5be3980ac865162d8d7626556ca47eca4b0ee433 Reviewed-on: https://gerrit.libreoffice.org/15344 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-04-15loplugin:cstylecastNoel Grandin1-2/+2
Change-Id: Iba70d0e7fc7cf4829e709efd25e8125353379942