summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2014-09-19My 'SkakNew-Figurine' font has a hyphen in its nameMiklos Vajna
Problem was: (gdb) print pClonedFace->GetFamilyName() $1 = "SkakNewFigurine" (gdb) print GetFamilyName() $2 = "SkakNew-Figurine" and this made e.g. JunitTest_sc_complex fail. Change-Id: Id779553716611ed31c2ef24e54e7bc4b6cc0f766
2014-09-19Fix use of uninitialised value identified by valgrindMatthew J. Francis
m_pLastSyncedDbusMenu was previously only initialised in one of two constructors Change-Id: Icd29d1ab314c54544b61ae60b57b29f1fa7d0e3d Reviewed-on: https://gerrit.libreoffice.org/11530 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2014-09-18fdo#69090 Avoid using a string after freeMatthew J. Francis
Change-Id: I9020b595e434b4de8aa6a14c20d6c98fa619b96a Reviewed-on: https://gerrit.libreoffice.org/11502 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2014-09-18use vcl::FontNoel Grandin
Change-Id: I22fd5c1340ca0c646725d9fce77304c10d9eb5d5
2014-09-18Font -> vcl::Font in vcl/unx/kde4Stephan Bergmann
Change-Id: Iaa0c71e6d4f2b142821a6546772a3364b5eb7e29
2014-09-18default n-up printing of notes to sensible 2 x 1 not 1 x 2Caolán McNamara
i.e. throw away the maFirstPageSize cache based on the initial slide view which is typically in landscape mode So that if we change to notes which are usually in portrait mode, and then visit n-up print, we get a default layout based on the notes orientation and not the slides orientation. I hate printing Change-Id: I8b7b81ce1eec0f9c5ecd7509b311cf4026958c2c
2014-09-18Use vcl::FontTor Lillqvist
Change-Id: I3ffc8beea76e6df00607330203d567e152b13611
2014-09-18Use vcl::FontTor Lillqvist
Change-Id: I25b1ce4396a8e125b23e088310b970ef746cbaf0
2014-09-18Use vcl::FontNoel Grandin
Change-Id: Ic1b66c43697e342bebdf8b5cd6f0bb419f4a4fa7
2014-09-18Use vcl::FontTor Lillqvist
Change-Id: I8efc1570c63e7de8699222497ec3e8172329319e
2014-09-18fdo#82577: Handle FontNoel Grandin
Put the VCL Font class in the vcl namespace. Avoids clash with the X11 Font typedef. Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
2014-09-17Reduce ColorValueSetMaximumRowCount to 20 from 40Krisztian Pinter
Change-Id: Id37698c20e5ded3034b62b753d25964541643fd7
2014-09-17fdo#81237: 2D OpenGL charts was upside-downZolnai Tamás
The problem is that LO drawinglayer uses a coordinate system with an origin at the top-left corner of the screen, while OpenGL uses a complete coordinate system (with all four quarters, e.g.: allows negative values). The points in LO are always positive values which means they are drawn in the first quarter of the OpenGL coordinate system which also means that the origin is at the bottom-left corner of the scene. This difference causes the flipped scene. * To solve that problem scale the projection matrix with -1.0f along the y axis. * glDisable(GL_CULL_FACE) is necessary to avoid dropping primitives after scaling with -1.0. * Since projection matrix mirrors also the textures we don't need to do that inside the ConvertBitmapExToRGBATextureBuffer() method. Change-Id: Ieba642f3e665778a12368fe50a20865ec8f73514
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: Order.Jan Holesovsky
Change-Id: Ibf8ee4bd79dfca237096172f8b23d13bac986ab3
2014-09-16vcl menu: More abstraction around MenuBar to get dynamic_cast to one place.Jan Holesovsky
Change-Id: Idbefee0e4230a3c75646e87143f5c3042221aee9
2014-09-16vcl menu: Make SelectItem() virtual to eliminate IsMenuBar() call.Jan Holesovsky
Award for the sickiest usage of IsMenuBar(). Change-Id: I194b983b61d0106b3628d364f08b261a03c0c42c
2014-09-15loplugin:salboolStephan Bergmann
Change-Id: I1ff0990052ed224a7518cd52e9b9087b5777b7b6
2014-09-15vcl menu: Rename CloseStartedFrom() to ClosePopup() + adapt code.Jan Holesovsky
Fixes a regression from fcc49e118c9da28309dce3389d111a546cba19cd (clicking outside of an opened menubar's menu did not close the menubar). Change-Id: Ib6efddd6c250b173469772c7b2ae642b5ef609aa
2014-09-15vcl menu: Move ImplLoadRes()'s body to PopupMenu constructor.Jan Holesovsky
No MenuBar is read via ResId any more. Change-Id: I7aa9ada7fb8ce1b272c6c92b5429812708027162
2014-09-15vcl menu: Make MenuBarKeyInput() virtual to eliminate IsMenuBar() call.Jan Holesovsky
Change-Id: I180450b60200bae9e570e6d05d8650660c772661
2014-09-15Missing GetImplFontCapabilities -> GetFontCapabilitiesStephan Bergmann
Change-Id: I5fa85ebe407d72654e95075626d8102f037374c7
2014-09-15vcl: Rename GetImplFontCapabilities()Chris Sherlock
The data structure is not ImplFontCapabilities but FontCapabilities, therefore the function name is very misleading. Change-Id: I90f074902af4b4bee79cd445036dc24797836ac1 Reviewed-on: https://gerrit.libreoffice.org/11454 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-09-15vcl menu: Make DeactivateMenuBar() virtual to eliminate IsMenuBar() call.Jan Holesovsky
Change-Id: I33ba324a13e2addb678fb801222bd25a21c3ef1b
2014-09-15vcl menu: Make CloseStartedFrom() virtual to eliminate IsMenuBar() call.Jan Holesovsky
Change-Id: Ifd89b7a9264075b166dd621fcb2c55225e25ea87
2014-09-14convert Edit autocomplete Hdl to boost signals2Luboš Luňák
Here it also keep track of the connection, as it needs to be explicitly disconnected in one place. Change-Id: Id3e2882106ae55c2d880898956a36f84d3ce70ef
2014-09-14convert UserDrawHdl to boost signals2Luboš Luňák
Note that ImplListBox::userDrawSignal is connected to ImplListBoxWindow::userDrawSignal to forward the signal, just like the Link was previously forwarded. Change-Id: Ic8fc6f51e309bc34fb4e39c13745302649991d0a
2014-09-14convert ListBox's ImplBtn to use boost signal2Luboš Luňák
Change-Id: I18680e47688da02c9e211bf7f8d861622735e749
2014-09-13mac: clean-up obsolete conditional code based on old SDKNorbert Thiebaud
Change-Id: Ie2d476780a48b5815961598e214343d5def962c1
2014-09-13vcl: SalFrame::Enable() is not used anywhere so removingChris Sherlock
Change-Id: I851c414aa9e95c4d2c3ddb44deb5835656d16f87
2014-09-13vcl: tabify salvd.hxxChris Sherlock
Change-Id: Ifb52f18f34f510b60292fc80e3e47b2ff45b841c
2014-09-13vcl: tabify salobj.hxx and fix initial commentChris Sherlock
Change-Id: I89e60f743c5af8b5fa0f3df779f240945af40c07
2014-09-13vcl: tabify salframe.hxxChris Sherlock
Change-Id: I53ad4992c6901e3dceae453699c2da785feb21a5
2014-09-12Revert "vcl: use DeviceCoordinate for GetCaretPositions in sallayout"Norbert Thiebaud
This reverts commit 1b42acdaeae134f94580d6e1eba89da16741d596.
2014-09-12Related: fdo#82259 we don't actually care about the ttf version hereCaolán McNamara
Change-Id: I75253c8cc4ab6325447d29fcb30a1992d8eb83ec
2014-09-12vcl: avoid calling GetResolution() twiceGiuseppe Bilotta
Since we want both horizontal and vertical resolution, just get both with the same call. Change-Id: I7b08b94e792b069b86e334608d6d6dc3901ad181 Reviewed-on: https://gerrit.libreoffice.org/11423 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-09-12use Apple Language Id conversion for matching font namesCaolán McNamara
Change-Id: Ic953c4ff0de6a90b0580bb22554750be08727349
2014-09-12fdo#66701 - don't double destroy the HASH when PDF signing.Michael Meeks
Accidentally introduced in d73c039fa it seems. Change-Id: I846314ebca3a24520492887d4d9027f812cfb32f
2014-09-12Related: fdo#82259 implement mac ttf fontname encoding supportCaolán McNamara
which is why these font's are not appearing under Linux Change-Id: Ib72ddb465b2df729953ece416cfa0477cd565bcd
2014-09-12Related: fdo#82259 support version 2 ttc fonts on LinuxCaolán McNamara
a lot of Mac OSX fonts are in this format, and we're not seeing them under Linux Change-Id: I8a6974ccb43afadec320331eb26bc4a2df9b13c9
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-12vcl: fix typo in DeviceCoordinateNorbert Thiebaud
Change-Id: I7e0ec3c276826105c89dae5471c484ec7ae999d2
2014-09-12vcl: protect against out-of-bound access of empty OUStringNorbert Thiebaud
Change-Id: If2671ba0547eb69fce7005f5427dcd175a5c29a2
2014-09-12harden access to OUString[0]Norbert Thiebaud
Change-Id: Ibc2997f9974b8f6d561db0632642060ab95b80f0
2014-09-12vcl: use DeviceCoordinate for GetCaretPositions in sallayoutNorbert Thiebaud
Change-Id: I5a959e1c3806da713e106c1b0fc8690a6578987b
2014-09-12minor whitespace changeChris Sherlock
Change-Id: I556a68a2da770080e475a4e6619722fd721101ca
2014-09-11Resolves: fdo#82552 we only check pAlphaW on one branchCaolán McNamara
Change-Id: Ib2c5a0d751050af77f267edbb7a5a0fe57494622
2014-09-11server font dtor always calls ReleaseFaceFTCaolán McNamara
therefore we must always call GetFaceFT in the ctor and not return early *before* calling GetFaceFT which could happen in case of inane font size requests, i.e. if( (mnWidth < 0) || (mfStretch > +64.0) || (mfStretch < -64.0) ) valgrind+bff Change-Id: If22f8f7ff6aaed3ffa9eec68630da8601dfd5cae