/io/

ice-5-0'>distro/cib/libreoffice-5-0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/vcl/source/window/menubarwindow.hxx
AgeCommit message (Collapse)Author
2018-03-19show rest of the menu bar in a pop-up if the are is too smallTomaž Vajngerl
In case when the window is to small to show the whole menu then the use couldn't access the rest of the items in the menu. This change adds a button in the end (using the ">>" marker as in toolbar) which on click adds a pop-up that shows the rest of the menu items. Change-Id: I9218dba504464bdd44d61ebb383f7674f3df760f Reviewed-on: https://gerrit.libreoffice.org/46711 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit 9f3b61e51f7f9de11436b0e4eaec164f2656fbdd)
2017-07-18loplugin:constparams in vclNoel Grandin
Change-Id: I36afe2107e07ffb9b73c0b76be600e3e999a0fd4 Reviewed-on: https://gerrit.libreoffice.org/40116 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-06-17loplugin:unusedfields in vcl part2Noel Grandin
Change-Id: Icd02f63e9738c0bb91348e2084649f9edc281e67 Reviewed-on: https://gerrit.libreoffice.org/38833 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-03-31tdf#82580 tools: rename Rectangle to tools::RectangleMiklos Vajna
Mostly generated using make check COMPILER_EXTERNAL_TOOL=1 CCACHE_PREFIX=clang-rename-wrapper RENAME_ARGS="-qualified-name=Rectangle -new-name=tools::Rectangle" Except some modules have their own foo::tools namespace, so there have to use ::tools::Rectangle. This commit just moves the class from the global namespace, it does not update pre/postwin.h yet. Change-Id: I42b2de3c6f769fcf28cfe086f98eb31e42a305f2 Reviewed-on: https://gerrit.libreoffice.org/35923 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2017-01-27loplugin: unnecessary destructor vbahelper..vclNoel Grandin
Change-Id: I6b7800d4a456391251168f7923a1ec7a5ca9efc9 Reviewed-on: https://gerrit.libreoffice.org/33577 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-05Remove _TYPED suffix from tools/link.hxx macrosStephan Bergmann
...which was introduced with 3ead3ad52f9bb2f9d1d6cf8dfc73a0a25e6778ed "Gradually typed Link" to distinguish the new, typed versions from the old, untyped ones, but is no longer necessary since 382eb1a23c390154619c385414bdbe6f6e461173 "remove untyped Link<>" removed the old versions. Change-Id: I494025df486a16a45861fcd8192dfe0275b1103c
2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann
The issue of 362d4f0cd4e50111edfae9d30c90602c37ed65a2 "Explicitly mark overriding destructors as 'virtual'" appears to no longer be a problem with MSVC 2013. (The little change in the rewriting code of compilerplugins/clang/override.cxx was necessary to prevent an endless loop when adding "override" to OOO_DLLPUBLIC_CHARTTOOLS virtual ~CloseableLifeTimeManager(); in chart2/source/inc/LifeTime.hxx, getting stuck in the leading OOO_DLLPUBLIC_CHARTTOOLS macro. Can't remember what that isAtEndOfImmediateMacroExpansion thing was originally necessary for, anyway.) Change-Id: I534c634504d7216b9bb632c2775c04eaf27e927e
2016-08-12loplugin:countusersofdefaultparams in vcl..xmlsecurityNoel Grandin
Change-Id: I538596a99e632178d928ff7e66ad45c71b73c6fd Reviewed-on: https://gerrit.libreoffice.org/28018 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-27loplugin:singlevalfields in vcl(part2)Noel Grandin
Change-Id: I4782c6f6d3d090ba0f9e29af8afdd7d88aa2d382 Reviewed-on: https://gerrit.libreoffice.org/26598 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-23tdf#97527 - vcl: reference-count MenuNoel Grandin
some places are marked with "dodgy"- need to check those to see what is going on, because they are leaving dangling pointers behind in the Menu class Change-Id: I41d5c7c0fec2f70ce9e3ffdc48cd03d26c0a869b Reviewed-on: https://gerrit.libreoffice.org/26516 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-16VCL: Simplify ToolBox initialisationArnaud Versini
Change-Id: Ia83e2011897b8c6b81cbe476a22944abd2230291 Reviewed-on: https://gerrit.libreoffice.org/26329 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-10separate this piece of goo out into a standalone thingCaolán McNamara
no logic change Change-Id: Ib03a2516c9b3cf6bedf52760d8f7cb68cc70464f
2016-04-04cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: I68310e2abc8f0ca114adb2b52f82157a0f455202
2016-03-16loplugin:constantparams in vcl/Noel Grandin
also some improvements to the plugin Change-Id: I0e3a519d70756e577fcb1bd47dd66864b5b4c871 Reviewed-on: https://gerrit.libreoffice.org/23289 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-12loplugin:unusedmethodsNoel Grandin
Change-Id: I0fb06079ff8a9d0b2f5a2929f31846f91391f5c4 Reviewed-on: https://gerrit.libreoffice.org/22229 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-19tdf#96888 - Kill internal vcl dog-tags ...Ras-al-Ghul
Modifications done as per CR Change-Id: I0b57f5c32fc217929d71411ca5176e3cab3f6e73 Reviewed-on: https://gerrit.libreoffice.org/21457 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2015-11-17loplugin:unnecessaryvirtualNoel Grandin
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-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-09-20convert Link<> to typedNoel Grandin
Change-Id: I10b050dc4aae45e646761a82520caa96969bc511 Reviewed-on: https://gerrit.libreoffice.org/18700 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-16convert Link<> to typedNoel Grandin
Change-Id: If6334d32abbec379acbb9def98fdf6cb5144238b
2015-09-16convert Link<> to typedNoel Grandin
Change-Id: I628de57f87b4ba20a797d345bdf71cf10cf148fc
2015-09-09remove unused Link<> fieldsNoel Grandin
Change-Id: Ifed1a8cfa774225cb450bb211b1b1b949ef02811 Reviewed-on: https://gerrit.libreoffice.org/18429 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-08-27No need for IMenuBarWindow abstractionStephan Bergmann
Change-Id: I5be4cfb951100d36054e409043cb9becbe52338d
2015-08-26Remove unused AddMenuBarButton parameterStephan Bergmann
...which had apparently been unused ever since the function's introduction in 86ef4422bc62f912f72c0bedda47ce0e6e2722e4 "INTEGRATION: CWS onlineupdate3," even though the function's code had always been careful to clip the value to m_aAddButtons.size() (which was now detected by clang-tidy's clang-analyzer-deadcode.DeadStores) Change-Id: Ic3542aaef04d059125d997cdc5e199d5edb1184a
2015-08-26Convert vcl Button Link<> click handler to typed Link<Button*,void>Noel Grandin
Change-Id: Ie80dfb003118d40741549c41ebcc7eda4819f05b
2015-07-09tdf#92630 Enable auto-accelerator behaviour for gtkSimon Long
Change-Id: I671177dd1f9e535c28a29bcbd6b74f1c789371ea Reviewed-on: https://gerrit.libreoffice.org/16883 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-05-25cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: I62076450ab77472bfd09b3fb9824f54b6ea1e0f7
2015-05-18ApplySettings for MenuTomaž Vajngerl
Change-Id: Iaf004e3deed19dfc9f808b53f0bbe45e0949c034
2015-05-16further refactor Menu to use RenderContextTomaž Vajngerl
Change-Id: Ied420c8b3349ff1a2e2951c14359cbe1a23e5141
2015-05-15partially refactor MenuBar to use RenderContextTomaž Vajngerl
Change-Id: I91353f2a74cdcafbe53fec3bd3ee58883c21fec5
2015-05-07Revert "Tackle Menu with RenderContext refactoring, Invalidate"Stephan Bergmann
This reverts 5485ef70cee1e3a743047f95ce94533024004b7c, which breaks JunitTest_toolkit_unoapi (toolkit.AccessibleMenu) Change-Id: Ic9021c23178f1598c08186e5cb24fde13a866579
2015-05-07Tackle Menu with RenderContext refactoring, InvalidateTomaž Vajngerl
Change-Id: Ib2812723141c5dfe39b30c95f12d1aeca9c367bd
2015-05-06Use various typed ToolBox::Set*Hdl LinksStephan Bergmann
Change-Id: Iddfd36ae0de86fdd2d4febb2c05d1fe0c02801f0
2015-04-30Gradually typed LinkStephan Bergmann
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-29mass rewrite Paint(Rect&) to Paint(RenderContext&, Rect&)Tomaž Vajngerl
Change-Id: Ia1667246064d11827dbd149def15e5bf08b119b8
2015-04-10get misc. ordering right and add missing disposes.Michael Meeks
Change-Id: I76489f833949a556b657010e5d5cba6f64c89ba7
2015-04-09vcl: dispose of more Window sub-classes, particularly top-level windows.Michael Meeks
Change-Id: If8311e5cf3193fd1434c3af5225367ca8e91fc6d
2015-04-09vcl: rename VclReference to VclPtrNoel Grandin
and remove the typedefs. The code is more obvious this way. Change-Id: I4c8f5b5ab050dd96216302a03e760ed0e3ab3464
2015-04-09manage VCL widgets using rtl::ReferenceNoel Grandin
Change-Id: Ie95790cbaa5d459c8e849d7333098d857d31ed0a
2014-09-23fdo#82577: Handle WindowNoel Grandin
Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-17vcl menu: Add the height setting to the IMenuBarWindow interface.Jan Holesovsky
Change-Id: I7b5f6e1b79f9972e2f23ed50c8da53874ad8b55e
2014-09-16loplugin:saloverrideStephan Bergmann
Change-Id: Id88a0130bf6468013e2d7441ec79131fe115d13b
2014-09-16vcl menu: More abstraction around MenuBar to get dynamic_cast to one place.Jan Holesovsky
Change-Id: Idbefee0e4230a3c75646e87143f5c3042221aee9
2014-09-12vcl: The DecoToolBox has grown its own legs, it cannot be a button any more.Jan Holesovsky
Change-Id: I44497df5a5506127247cdef0924e9f7b76ed7d9b
2014-09-12vcl: It's a close button, there is no such a thing as a 'closer'.Jan Holesovsky
Clean up at least vcl + what depends on that, but unfortunately there are still some "Closer"'s left elsewhere... Change-Id: I019c863d07ee62d701ff01c8d871334012c105f1
2014-09-09vcl: Move MenuBarWindow to an own file + adapt code.Jan Holesovsky
Change-Id: Id24711ad0a6fa6a0599fcc172c47f48fbe65183b