summaryrefslogtreecommitdiff
path: root/include/vcl
AgeCommit message (Collapse)Author
2014-12-01fdo#84938: replace EVENT_ constants with enumTobias Madl
Change-Id: I8275832d8dae43b374bddd48520d11592e9a6a1f Reviewed-on: https://gerrit.libreoffice.org/13134 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-01use boost::shared_ptr instead of manual ref countingMarkus Mohrhard
Change-Id: I3c2ed9b5641202ff965c3a0c833c8201b2b1548b
2014-11-29vcl: Remove DummyApplicationChris Sherlock
DummyApplication is, frankly, a hack. Application is an abstract class because Application::Main() is a pure virtual function. However, as DummyApplication shows - this is not necessary because InitVCL() just makes a dummy app anyway. Anyone who uses Application::Main() will get a warning. Also: I want to move some of the global data into Application, and I can't do this whilst it is an abstract class. Given it's not necessary, then I'm getting rid of Main() as a pure virtual function. Change-Id: I425cf6feae4866f5670963ee9905f6161e421dd2
2014-11-28vcl: remove newlines from include/vcl/svapp.hxxChris Sherlock
Change-Id: I894d0e5f224be97323f8a85821f2f35054951a06
2014-11-25Remove ptr_deque.hpp header include from vcl/outdev.hxx.Kohei Yoshida
This header is also a very high impact header. Change-Id: Iab63f2ec2edebc14b47820c6377a7f83131cfd06
2014-11-24coverity#1255909 Uninitialized scalar fieldCaolán McNamara
Change-Id: I162199233c9d3feb03e7ab33b777174b2a03035a Reviewed-on: https://gerrit.libreoffice.org/13104 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-22vcl: Track the GL context's clip region and update before drawing when neededLouis-Francis Ratté-Boulianne
Change-Id: Ibec92851dc87f6696ee55a8db10fe160cd97d09c
2014-11-22vcl: Move the painting fence to the OpenGL contextLouis-Francis Ratté-Boulianne
Change-Id: I462e68a1ad7a56fafe57504959cf169a70665f81
2014-11-22vcl: Always use the same OpenGL context when drawing in a windowLouis-Francis Ratté-Boulianne
Change-Id: Ief0e947149c133aaa8e81973e088c4df6432bfdc
2014-11-22vcl: Add support for backend-dependent blending of bitmaps (mask and alpha)Louis-Francis Ratté-Boulianne
Change-Id: Iba64eb42965c86ca5655b9a105ef3f397e033ecf
2014-11-22vcl: remove commented out friend class from outdev.hxxChris Sherlock
Change-Id: I6064a9017effe49fc7727868398ad73140379708
2014-11-22vcl: remove unnecessary typedef VCLXGraphicsList_implChris Sherlock
Change-Id: Iaaf2f0edf721567f88ffc948501548fddd648428
2014-11-22vcl: remove System as friend of OutputDeviceChris Sherlock
Change-Id: I5ca8c8b1a4cc4c031e5966887b41af766df9fe68 Reviewed-on: https://gerrit.libreoffice.org/13036 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-11-22vcl: remove ImplImageBmp as friend of OutputDeviceChris Sherlock
Change-Id: Ia212aaa10840bae30508579e17ed8d2e9781c46d Reviewed-on: https://gerrit.libreoffice.org/13035 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-11-21vcl: remove ::Bitmap as friend of OutputDeviceChris Sherlock
Change-Id: Idea0fee1ca79ae1660e89ef7038b35cf27358082 Reviewed-on: https://gerrit.libreoffice.org/13013 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-11-21make glxtest available in salmainMarkus Mohrhard
Change-Id: Ic8bc3f2d5d96506590d35138089ead2eac984314
2014-11-21maDocFileURLStr is always emptyZolnai Tamás
Change-Id: I34c4a44d4fbe8d721a3a0bda5dbe35c68fe15c13
2014-11-20vcl: remove Application as friend of OutputDeviceChris Sherlock
Change-Id: Id8296445c72334164db149440c60c89823c94e40 Reviewed-on: https://gerrit.libreoffice.org/12989 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-11-20windows opengl: Introduce OpenGLCompatibleDC.Jan Holesovsky
This is to abstract the compatible DC creation and usage, to be reused in the native theme rendering. Change-Id: Id34bba4aeea7f46fc2aa42f292f0a525d753b8d7
2014-11-20vcl: Kill IsMapMode(), it means the same as IsMapModeEnabled().Jan Holesovsky
Change-Id: I65fd40b8268cb0a27ba40da60fcf8e84cc8f7661
2014-11-20include the unx part for getting OpenGL driver & device informationMarkus Mohrhard
desktop/unx/source/glxtest.cxx is taken directly from the Mozilla project. THe whole concept is taken from Mozilla and is based on starting an early process that creates an OpenGL context. This prevents crashing drivers to crash Libreoffice. We read the information from the pipe as soon as we create the first vcl Window. In that place we then decide if the device/driver combination is blacklisted. Change-Id: I2624d4ce06d503281a4459cf3174f57cf1f7b733
2014-11-20vcl: update the OpenGLContext's pixmap when re-sizing a VirtualDevice.Michael Meeks
Change-Id: Iee8089fc3bfbea60adee95dfb2c229f3efea28f8
2014-11-18windows opengl: Share the contexts as we do on Linux.Jan Holesovsky
Change-Id: Ic58cca612cdf8f73170c18573917465bf34a187c
2014-11-18fdo#75757 remove inheritance from std::vectorMichaël Lefèvre
For TextDoc, also removing ToolsList Change-Id: Id818f61f562317ce106414937253f1748a33315a Reviewed-on: https://gerrit.libreoffice.org/12454 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18bin confusing commentDouglas Mencken
Change-Id: Idedad17ed2c89613a3f5caeea39f5c47c9856114 Reviewed-on: https://gerrit.libreoffice.org/12516 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-18vcl: remove AnimViewList_impl typedef alsoChris Sherlock
Another typedef that destroys code readibility. I've removed AnimViewList_impl because it's just a vector of ImplAnimView pointers. Change-Id: I97e5867e1a7aeae575e45989ba7436867da9c808
2014-11-18vcl: remove AnimationBitmapList_impl typedefChris Sherlock
Severe overuse of typedefs makes baby Torvalds sad. :-) AnimationBitmapList_impl is just a typedef to a vector of AnimationBitmap pointers. It's used precisely once in the code - in animate.hxx. This just makes reading the code more difficult - too many layers of abstraction. Change-Id: If84892dc90220c7dfe8c071d629268efa226f069
2014-11-16coverity#1187864 Uninitialized scalar fieldCaolán McNamara
Change-Id: I80df95f70de515a0247827a89297cdfdf0399989
2014-11-16callcatcher: update unused codeCaolán McNamara
pleasing cleanup of whacky ScRawToken::sbyteOffset, etc. Change-Id: I5ad97f8dab7c5dc9d5f0286bf606b619126c22c9
2014-11-16vcl: let the ModalDialog ctor take an OUStringMiklos Vajna
Change-Id: I839435338f4acf80c40896b6c86f7ef122f5449d
2014-11-16vcl: let the ModelessDialog ctor take an OUStringMiklos Vajna
Change-Id: Iae88a9889c674337fb999a23a799d8730d2793d5
2014-11-15vcl: let the Dialog ctor take an OUStringMiklos Vajna
To make the conversion in the TabDialog ctor unnecessary. Put conversions to other subclasses till they are properly adapted. Change-Id: I6152b6229ce9c840262739cf11812538c9e0a532
2014-11-15TabDialog ctor: take an OUStringMiklos Vajna
Change-Id: Ie390fb9debe3a80b3ebc5e609119723c78eadba2
2014-11-14vcl: remove more unnecessary headers from mapmod.hxxMichael Stahl
Change-Id: I9ce4c11cc9e7e703fbaad76a062ad38bb900ed9a
2014-11-14vcl: move the Impl class of MapMode ...uhm... out of the public header?Michael Stahl
And remove the tools/fract.hxx include. grep -l -r fract.hxx workdir/Dep/*Object* |wc -l before: 4569 after: 1851 Shrinks some libraries, example from --enable-dbgutil Fedora gcc 4.8.3: libvcllo.so by 473k (0.35%) libswlo.so by ~1Mb (sadly that is just 0.2%) Change-Id: I09bd025d551a5d2c5528b938a68c6aa5f8f114a0
2014-11-13vcl: Use scissor or stencil for clipping in OpenGL backendLouis-Francis Ratté-Boulianne
Change-Id: Ib6620572391999d5f8124a1a8695909d6c48643d
2014-11-13vcl: Use single-buffer rendering and only flush when necessaryLouis-Francis Ratté-Boulianne
Change-Id: I832dd6f3647fbb423975fa928a5ec32447225e85
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-11vcl: move OutputDevice::ImplDrawFrameDev() to WindowChris Sherlock
I have moved ImplDrawFrameDev() from OutputDevice to Window, because it deals with frames which is clearly the responsibility of the Window class, not the OutputDevice class which shouldn't really care about it at all. I've also renamed it to drawFrameDev() as it's a private function. Change-Id: I45fd50e8e34fe4a97730c3c857080e4e1ddb1c17 Reviewed-on: https://gerrit.libreoffice.org/12340 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-11-11fdo#84938: replace HELPMODE_ constants with enumNoel Grandin
Change-Id: I44be5567e84cdabd8b10771ea37e28b8a88cc23e Reviewed-on: https://gerrit.libreoffice.org/12333 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-11vcl: make ImplDrawOutDevDirect a protected function in OutputDeviceChris Sherlock
Also renamed it to drawOutDevDirect. We're making it protected because I'm about to move ImplDrawFrameDev() from OutputDevice to Window, where it should be. Change-Id: I7a94304cdc48b858c057749532de66086eeb5020 Reviewed-on: https://gerrit.libreoffice.org/12339 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-11-11vcl: move OutputDevice::ImplGetFrameDev() to WindowChris Sherlock
ImplGetFrameDev() is for some unknown reason in OutputDevice, but it's most definitely something that's specific to Window. I've moved this, and also renamed it getFrameDev() as it's a private function. Change-Id: Iffb2c439bee8c29ee585a0d50cfd6fbcfc28c3bc Reviewed-on: https://gerrit.libreoffice.org/12338 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-11-11vcl: tabify include/vcl/window.hxxChris Sherlock
Change-Id: I2c45b3b125b758dd391376bf731d8b91c00a0a5d Reviewed-on: https://gerrit.libreoffice.org/12337 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-11-10vcl: cleanup the opengl selection API.Michael Meeks
Change-Id: Icebf3c7d2911b27e29d2259b780a04048b293b3c
2014-11-10vcl: add BitmapEx load from icon theme constructor.Michael Meeks
Change-Id: I3dbad69664b7417928a6be10ac561307dd94f67b
2014-11-10fix spelling implemenation -> implementationNoel Grandin
Change-Id: I5ac499df1f4063a80a5d41f60778106a7b96940d
2014-11-10vcl: Initial work to have native widgets rendered with OpenGLLouis-Francis Ratté-Boulianne
Change-Id: I8b244a5bdd12a64a65ca1bab14dfe6917a175ccf
2014-11-10use GLXPixmap for VirtualDeviceMarkus Mohrhard
Change-Id: I6397708f164be68bd6561a382115654f90ecd471
2014-11-10split the OpenGLContext::ImplInit method into its platform partsMarkus Mohrhard
Change-Id: I2fb8a85748497f2e9c361764e094ebf83ebeabe8
2014-11-10vcl: Get visual info for window from GLX when neededLouis-Francis Ratté-Boulianne
Change-Id: Id8cea87391835694e20aa703b7fdb3f13434d47b