summaryrefslogtreecommitdiff
path: root/vcl/inc/window.h
AgeCommit message (Collapse)Author
2017-11-29lokdialog: Move the LOKWindowId <-> VclPtr<Window> mapping to Window.Jan Holesovsky
This allows registering & de-registering of non-sfx windows too, and makes the Calc autofilter popup to appear. Change-Id: I7cbbe94d208115aabcb6fa5f964646c7b7ce4c93
2017-11-29lokdialog: Move the Notifier down to vcl::Window.Jan Holesovsky
We need to tunnel more than just dialogs, so this is the 1st step to get the Autofilter popup rendered. Change-Id: I6523a39ddc7a6eb2a204e48ab364130a5822f548
2017-11-14Two more functions that are private to vcl and not even VCL_DLLPUBLICTor Lillqvist
... and thus don't need to be declared in a public include file. Change-Id: Ia59040d3ef3ebf73b2372531bef086b0847911ce
2017-11-14No need for bestmaxFrameSizeForScreenSize to be declared publiclyTor Lillqvist
It is used only inside vcl, and it should stay that way. Change-Id: Ia1a14ab13cb7d3580771c880f959abb2b695b032 Reviewed-on: https://gerrit.libreoffice.org/44698 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2017-09-22Put definition of _CRT_RAND_S into bin/update_pchMike Kaganski
so it doesn't get removed again from sal/inc/pch/precompiled_sal.hxx (see commit 4af9612f2be9e023e762831207cbdb1d5f25906f). Also make necessary changes to some of the files that start to fail building after running bin/update_pch.sh, so that the patch is self-contained and leaves the tree in fully functional state. tools namespace had to be prepended with :: to disambiguate from drawinglayer::tools vcl/inc/window.h includes were amended, because ExtTextInputAttr is from vcl/commandevent.hxx, and enum class ShowTrackFlags is from vcl/window.hxx Change-Id: I47179622350754cba2f95d26a1bafd3dfbbc935b Reviewed-on: https://gerrit.libreoffice.org/42559 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2017-09-14use unique_ptr for mpControlFontNoel Grandin
Change-Id: I71eed3254cf073b754c1a634315e6e739a816606 Reviewed-on: https://gerrit.libreoffice.org/42264 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-08-19convert extended WinBits to scoped enumNoel Grandin
Change-Id: If35f4fcda2415c858ba8f963e9f471c87169bc99 Reviewed-on: https://gerrit.libreoffice.org/41301 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-07-17extend loplugin useuniqueptr to OUString pointersNoel Grandin
Change-Id: Ieb5bab3895e1edaff497c4a1a88303ccac097edc Reviewed-on: https://gerrit.libreoffice.org/39948 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-07-14extend loplugin useuniqueptr to POD typesNoel Grandin
Change-Id: I6ff24f048bd8f75bf87a78b718f37b57855d4781 Reviewed-on: https://gerrit.libreoffice.org/39932 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-03-29loplugin:singlevalfieldsNoel Grandin
Change-Id: I7f05903aaab9b0b274358243d680d0c30694ae61 Reviewed-on: https://gerrit.libreoffice.org/35804 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-31unused maMapUnitRes memberCaolán McNamara
since commit 7abd369964a0c7f9f80cdbc9e47c7dc120fe8257 Author: Noel Grandin <noel.grandin@collabora.co.uk> Date: Thu Nov 3 14:00:28 2016 +0200 loplugin:unusedmethods Change-Id: Ie1f840c3ec9a2d5888f95cf05e531a8a9464bf2e Reviewed-on: https://gerrit.libreoffice.org/30524 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Change-Id: I4cb8167698d460df6a56c5b3b7d01841e3f1a69a
2016-12-20Move ImplFrameData initialization into constructorJan-Marek Glogowski
Change-Id: Id918ae46ed521fca5675845b2eb9cd26a8c7ebbb
2016-12-16vcl: Kill unused RenderSettingsTakeshi Abe
Change-Id: Ie74d4f3258ef553b4febcc544204080d8c6e0f40 Reviewed-on: https://gerrit.libreoffice.org/32046 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2016-12-06convert IMPL_PAINT constants to typed_flagsNoel Grandin
Change-Id: I9a38a2927cc626e3a94c9eeaffb94b7fd2b6204c Reviewed-on: https://gerrit.libreoffice.org/31634 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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-18uitest: store the id of each vcl::WindowMarkus Mohrhard
We will use the ID in the UI testing to identify the widget. Change-Id: I4dd79a02355e1de40f3c2ddc6a61a805b4e30778
2016-05-25Window::SetData and Window::GetData are nearly unused nowCaolán McNamara
except for.. a) one use in sw which we can replace with a map b) one use in svx which didn't do anything c) one amusing piece of crazy in cui Change-Id: If66d9f7eab1eaddfb2bdab7815c3a6f22f4d7745
2016-05-25(nearly) nothing uses GetUniqueId anymore, so remove it.Caolán McNamara
The odd one out is the usage in Formula, which attempts to restore focus to a particular window identified by an unique id. In this case restore focus by keeping a VclPtr to the desired window. Change-Id: I1dc335325c109d75745c6bba2e12662e6ae50638
2016-05-24Convert WINDOW_HITTEST to scoped enumNoel Grandin
Change-Id: I18c3798ae41eeffe96797828709f6ee42b32fcbe Reviewed-on: https://gerrit.libreoffice.org/25395 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-13convert SHOWTRACK to scoped enumNoel Grandin
Change-Id: Ibf06f6c79f80d7265ae3239c1ea0088118e92e21 Reviewed-on: https://gerrit.libreoffice.org/24894 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-11convert EXTTEXTINPUT_ATTR to scoped enumNoel Grandin
Change-Id: I94706bdea91d367fc8c2bbd482f6b4d8f55449d7 Reviewed-on: https://gerrit.libreoffice.org/24821 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-10Convert SAL_EVENT to scoped enumNoel Grandin
Change-Id: I4e605e7acfe9d4fe409d32f20880b4c0e85a0ea7
2016-05-10vcl : Simplify vcl::Window initialisation and destructionArnaud Versini
Change-Id: Ie3a8435d0adff795645618deb2c3c3da813e54f3 Reviewed-on: https://gerrit.libreoffice.org/24681 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-06improve perf. of VCL event dispatch, take IIDavid Tardon
Change-Id: I5052f0c3e2c8739b336da52ef9590e5008255247
2016-05-06tdf#99703 Revert "improve perf. of VCL event dispatch"David Tardon
... as it causes a crash at exit. This reverts commit 9ff1d7f8140de1224bb37fba0cb266a58f37e66d. Change-Id: I48bfd8974e6ed6c5ba3f8282eb8717f685d580be
2016-05-05improve perf. of VCL event dispatchDavid Tardon
Anectodal evidence: for removal of 32 slides from 64 slide presentation, time spent in Window::CallEventListeners has been cut down from 70% to 19% of the total time. Change-Id: Ic8fbb44fa935f068e1b18235592dec0d7e71aec7
2016-03-31tdf#97525 vcl: make DeletionListener internalJochen Nitschke
move include/vcl/impdel.hxx to vcl/inc/ include impdel.hxx in salframe.hxx remove vcl/impdel.hxx includes in pch add missing <list> includes Change-Id: Id146363b2e20ce0238542929c26a83efb1e8c4bd Reviewed-on: https://gerrit.libreoffice.org/23664 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-04tdf#96888 - Kill internal vcl dog-tags ...Ras-al-Ghul
Finally removed struct ImplDelData Change-Id: Ib2bb4a51b94886b95bca0c84adffc8fd4123e8b8 Reviewed-on: https://gerrit.libreoffice.org/22093 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-01ImplOverlapData is no longer usedCaolán McNamara
Change-Id: I8fac0daefbafc9fe9e4d6cd385f543e14ac15f8a
2016-02-01mpFirstBackWin is always null nowCaolán McNamara
Change-Id: Ia03747824c7c6134bc91817538b3f79281aefb8b
2016-02-01mpNextBackWin is always null nowCaolán McNamara
Change-Id: Idd789433606da3452b9cb0a702abdf549fb1c8d4
2016-02-01nothing sets mpSaveBackDev anymoreCaolán McNamara
Change-Id: I6be6a1cbcb63510469d8c419433bf05bf4fde6e5
2016-02-01mnSaveBackSize only set not readCaolán McNamara
Change-Id: I257cb3803d055f55899a2f52bc3a88886380fb4e
2016-02-01mnAllSaveBackSize only set not readCaolán McNamara
Change-Id: Ibc5a2313b0231613b3c41002c144672140bf31dd
2016-02-01mbSaveBack is now always falseCaolán McNamara
Change-Id: Ic8068b9003136c2eff5de0cc9435c0664410e04f
2016-01-30mnTopLevel is always 1, so 1 <= 1 always hereCaolán McNamara
This mnTopLevel has been unused since commit f0f8be40da13833cc518711251fcd990ea91e032 Author: Thomas Arnhold <thomas@arnhold.org> Date: Wed Jul 13 12:57:44 2011 +0200 callcatcher: remove unused SystemWindow::Foo Which removed the unused SystemWindow::SetZLevel which was able to modify mnTopLevel for a window Change-Id: I3eeabfe74a4c56ee6185d66e3949c96009b07bee
2016-01-27vcl: readd <vector> and <set> into vcl/inc/window.hChris Sherlock
Change-Id: I705a170acc045d8423ea42aebf7c5ca13a3ede72
2016-01-27vcl: remove extraneous included headers in window.hChris Sherlock
Change-Id: I9fce8a5300ba8e2edc4641682063a94b071533e1
2016-01-16tdf#78431: Clean up pFrame parameter in ImplWindowFrameProcXisco Fauli
Change-Id: I441c1b89a975fa7d31094e66ef3ccad37ce40818 Reviewed-on: https://gerrit.libreoffice.org/21497 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-14vcl: move ImplFontCache into own private headerChris Sherlock
Change-Id: Ic4444f54fabe03319de9add93653f6b7c91d6fce
2016-01-12Revert "Re-work focus handling to use an idle handler"Miklos Vajna
This reverts commit 0ba752201dca6129cc6b4a19ec93eb369eb70890. It breaks CppunitTest_desktop_lib on Linux.
2016-01-12Re-work focus handling to use an idle handlerTor Lillqvist
Gets rid of some flashing when using OpenGL. Change-Id: I1273b960725bf868e7340eac3f2bad2f20e73d91 Reviewed-on: https://gerrit.libreoffice.org/21390 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2016-01-09tdf#96888 Kill internal vcl dog-tags ..Ras-al-Ghul
Deleted a couple of clear statements Change-Id: I6ca2c565842e1b33b3e52724981f95b634e94263 Reviewed-on: https://gerrit.libreoffice.org/21275 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2016-01-06Bin unneeded forward declarationsTor Lillqvist
Change-Id: Ia5e53ab06c3c2097602520023cb53883baa434fe
2015-12-24loplugin:unusedfieldsNoel Grandin
Change-Id: I979592adb978c3757a1e54615021ee424a2e02bf Reviewed-on: https://gerrit.libreoffice.org/20892 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-12-19coverity#1028600 Uninitialized scalar fieldCaolán McNamara
Change-Id: I0b4ee14ea2306786351ce20960a05e8f3058fb21
2015-12-18fix O(n^2) in vcl event broadcasting tdf#90199Noel Grandin
Change-Id: If3d7514364589058334369432cdcf4f7586c239d
2015-12-17Get rid of ImplDoTiledRendering()Tor Lillqvist
It returned true only on iOS, and we do use tiled rendering successfully also on the other non-DESKTOP platform, Android, plus obviously for LibreOffice Online and other LibreOfficeKit clients, so it is quite likely that the function was not really needed. Besides, the code doesn't even build for iOS at the moment. Change-Id: I229bce61eaab9b795a1d5e959cb6587dcedf1ef1