summaryrefslogtreecommitdiff
path: root/vcl/inc
AgeCommit message (Collapse)AuthorFilesLines
2013-06-20fdo#60565 - re-read font data on GtkSettings fontconfig-timestamp notify.Michael Meeks1-0/+4
Change-Id: If1c4d3a7754cc35208e40494828a799f94f26afc Reviewed-on: https://gerrit.libreoffice.org/4347 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com> Reviewed-on: https://gerrit.libreoffice.org/4376
2013-06-11Fix bnc#795857 Use correct sizes for EMF+ bitmap renderingRadek Doulik1-1/+1
Fix pdf export wrong size issues for embedded EMF+ images. (cherry picked from commit 4c676625d4016d428e9becd5512b7cfc8b0c4b24) Conflicts: vcl/inc/vcl/gdimtf.hxx vcl/source/gdi/gdimtf.cxx Signed-off-by: Michael Meeks <michael.meeks@suse.com> Conflicts: vcl/source/gdi/gdimtf.cxx Change-Id: I998c9535bde32fc9f452d61d7cb7609c95f5528d
2013-05-16Resolves: rhbz#963276 rhbz#761009 lp#766153 lp#892904 HandleFontOptions crashCaolán McNamara1-1/+2
The mpServerFont member of a ImplServerFontEntry must not be deleted while the ImplServerFontEntry still exists see also 39cbce553da1834f78b77f48b2f1be9578d6cc05 for another reason a crash in the same place can happen. Its impossible from traces in crashes before 39cbce553da1834f78b77f48b2f1be9578d6cc05 was fixed to distinguish those crashes from this crash. This crash is a regression due to 7a416820ab5e03f8b988656e0f6a592cb1e81d07 where we went from modifying pServerFont in X11SalGraphics::setFont directly to modifying it/a-different-one indirectly via ImplServerFontEntry The various font caches and font thing lifecycles of LibreOffice are somewhat confusing. This crash had eluded me for years, to reproduce: insert->special chars->select a font with loads of glyphs, i.e. "AR PL UKai CN" click on the first row of glyphs and hold down page-down until you hit the bottom, then page-up until you hit the top. Pre patch it won't survive the whole down+up (and valgrind will moan quite a bit) (cherry picked from commit 3d6424a752902bba513102834966868f609d91e6) Change-Id: Ifde0cb375f487c556b04a640d77765a7dc2f0913 Reviewed-on: https://gerrit.libreoffice.org/3922 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-22rhbz#954991 Avoid static data (causing trouble at exit)Stephan Bergmann1-0/+10
(cherry picked from commit aa1aedb2a0ef97cb6110f18a1de86abc8dbcd304) Conflicts: vcl/inc/unx/salinst.h vcl/unx/generic/dtrans/X11_service.cxx Change-Id: Ifc8275276811ba24b62f93096e7cb98a5dbf658c Reviewed-on: https://gerrit.libreoffice.org/3556 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-04-04fdo#58807 bring Beep() for basic backThomas Arnhold8-3/+52
The functionality was removed by fdo#48549. This partially reverts 0f6101cfef4c2e45d9f1f1b3a61ef94799e4526b 0bdf6fc7c71c4c49e6d6f83d56ac953272ad16d5 85cb9084533605657aca0394afe4516058a8e4ef I changed the behavior to always beep, because only the basic macro function is using Beep(). Looks like the Beep macro function didn't even work correctly before the removal, because the default was to not beep for most platforms. So I set the volume from disable (0) to 50% for XBell(). Reviewed-on: https://gerrit.libreoffice.org/3124 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com> (cherry picked from commit 47664d3f2e12649d324b031ca6ffd5589fe3d197) Conflicts: vcl/inc/headless/svpframe.hxx Change-Id: I663ffb7af75d2fd6d2c1f94073e4412d9744de4a Reviewed-on: https://gerrit.libreoffice.org/3185 Tested-by: Thomas Arnhold <thomas@arnhold.org> Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
2013-02-25Resolves: fdo#60764 sort options can grow too wide to fit on screenCaolán McNamara3-0/+11
(cherry picked from commit 7c760f34a00462d5904d0e2eed4132761c2e51c5) Conflicts: sc/uiconfig/scalc/ui/sortoptionspage.ui vcl/inc/vcl/lstbox.hxx vcl/source/control/lstbox.cxx Change-Id: Id3aed9ef251f61710b43ceda1a28c6895e91872f Reviewed-on: https://gerrit.libreoffice.org/2392 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-02-25Resolves: rhbz#895196 sc filter float a11y parent of itself loop/recurseCaolán McNamara1-0/+3
Change-Id: I3679e7cfcd32a78b40c6a7b803c92ff0abe6f32c (cherry picked from commit 1b13c952f50aab2b907dab13395ab23d0955c238) Reviewed-on: https://gerrit.libreoffice.org/2261 Reviewed-by: Eike Rathke <erack@redhat.com> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-02-06implement spread button layoutCaolán McNamara1-10/+4
Change-Id: Ia17d3f4d14319adec6b0b20dced5daf5b8018c36 (cherry picked from commit 5dc0c03f797e53aef7411c26782b6d39b7e93d0c) Resolves: fdo#59767 detect outlier widths and exclude from size normalization For non-homogeneous (the default) button boxes we want in general to give all buttons the same width as the max button width. But if we detect that certain buttons are > 1.5 the average button width, then leave those outliers at their natural size and set the rest of the buttons to the max width of the remainder. (cherry picked from commit 6e81082dbb2d16f0e61527c5ad13f91d49828125) Conflicts: vcl/source/window/layout.cxx Change-Id: Ice514e741e3a7725d69e150e5752158a1c267141 Reviewed-on: https://gerrit.libreoffice.org/1973 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-02-03fdo#54629 MultiSalLayout::GetBoundRect always uses level 0 fallback fontCaolán McNamara1-1/+0
...in X11SalGraphics::GetGlyphBoundRect In MultiSalLayout::GetBoundRect we loop through each fallback font and union each level's GetBoundRect to get the result, which seems reasonable, except that for each level that means a call to SalLayout::GetBoundRect which calls X11SalGraphics::GetGlyphBoundRect. Those sublevel SalLayouts don't know that they are sublevels so they never set the level bits on their glyphs. Which results in X11SalGraphics::GetGlyphBoundRect always searching for that glyph in the level 0 font, so there's a mismatch between the font the SalLayout's are created to use and the font that gets used. Now, SalLayout::GetBoundRect is a fairly simple thing, it just calls GetNextGlyphs 1 by 1 and X11SalGraphics::GetGlyphBoundRect on the result of that. So I *think* that if we remove the specialized MultiSalLayout::GetBoundRect in favour of the default implementation, then because MultiSalLayout::GetNextGlyphs is specialized to do-the-right-thing and set up the glyph ids correctly, then we bubble the ids down to X11SalGraphics::GetGlyphBoundRect correctly to get it to use the right font and we get the correct bounding size. defb4d60a2d22fd36a0ff3f077faa6a0932b45a4 defb4d60a2d22fd36a0ff3f077faa6a0932b45a4 Change-Id: Idefb4d60a2d22fd36a0ff3f077faa6a0932b45a4 Reviewed-on: https://gerrit.libreoffice.org/1907 Tested-by: Lior Kaplan <kaplanlior@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
2013-01-17Personas: Clear the BitmapEx first, so that we can switch off Personas.Jan Holesovsky1-2/+2
[Also rename mpPersona*Bitmap -> maPersona*Bitmap, it is not a pointer.] Change-Id: I93cc56b1f30c4fe966b8de87b766e820d9e2cefa Reviewed-on: https://gerrit.libreoffice.org/1741 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-01-14export cleaned up dotted version in environment and GtkWindow user-data.Michael Meeks1-0/+5
Change-Id: If865127a9a5560f4b3636fb870699e2f3bac0e83 Signed-off-by: Noel Power <noel.power@suse.com>
2013-01-14split out the ComboBox code that determines the positioning of subwidgetsCaolán McNamara1-0/+11
and re-use it to get a better calculation of the optimal size of a widget, rather than taking the current position of the subedit the upshot of this is that with CTL and/or CJK mode enabled in... a) calc, then the format->cells font dialog doesn't have squashed font size and font style listboxes b) writer, the 10.5 default size for CJK doesn't have part of the .5 clipped off it the calcComboBoxDropDownComponentBounds code should be entirely equivalent to the existing ::Resize calculation given the same input, we just call it with effectively unbounded available size in the GetOptimalSize case to find the desired margins around the subedit field (cherry picked from commit d19eab221f168aed12249ffc8a36a9f1aca5a94e) Change-Id: I85cb3ff98f23d21d7cfdcc28188e36616a19b5e8 Reviewed-on: https://gerrit.libreoffice.org/1657 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-01-11Personas: As Michael suggested, use BitmapEx instead of BitmapEx*.Jan Holesovsky1-5/+5
Change-Id: Ib1d84b37d452785d12502095c0eedaac4a25fb6b (cherry picked from commit 0721b5b83e34de1e2fcb320d6a7deae1ad109d61) Signed-off-by: Miklos Vajna <vmiklos@suse.cz>
2013-01-11Resolves: fdo#58301 make sure ScrollBar OptimalSize is up to dateCaolán McNamara1-1/+2
if the scrollbar sizes haven't been calculated yet then the optimalsize will be wrong, so it's necessary to enforce calculating them in that case. (cherry picked from commit f41a2804dd4a23352b7af2dd28c03df02debfb13) Change-Id: I12e95c3594ffbb508c7f79bd512e07aaf44a6eab Reviewed-on: https://gerrit.libreoffice.org/1630 Reviewed-by: Kohei Yoshida <kohei.yoshida@gmail.com> Tested-by: Kohei Yoshida <kohei.yoshida@gmail.com>
2013-01-10Resolves: fdo#59131 resolve default backend on printer->setupCaolán McNamara1-1/+2
For setting permanent defaults via spadmin we don't want to resolve the default backend on saving "default", this happens during the print initialization stuff. But when we tweak the printer settings for a single print job and reset back to default, we need to resolve that to what backend we want Change-Id: Iac2370624b6d248c9658fb0fbc2f2d449849d81a (cherry picked from commit 9c4d77f22d58f5b500c95f65a431628a8d8d6e6e) Reviewed-on: https://gerrit.libreoffice.org/1609 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-01-08Personas: Read the bitmaps in StyleSettings.Jan Holesovsky1-0/+9
Change-Id: I52b67c82f69059a7d2babf1b49e59f27062cc02c Signed-off-by: Cor Nouws <oolst@nouenoff.nl> Signed-off-by: Olivier Hallot <olivier.hallot@documentfoundation.org> Signed-off-by: Adolfo Jayme Barrientos <fitoschido@ubuntu.com> Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2013-01-08Make LO buildable again after the GraphicFilter move.Jan Holesovsky3-81/+57
Conflicts: svtools/Library_svt.mk q# Change-Id: I3455a7294b136400f32163626d5a7a7f2bfa898c Signed-off-by: Cor Nouws <oolst@nouenoff.nl> Signed-off-by: Olivier Hallot <olivier.hallot@documentfoundation.org> Signed-off-by: Adolfo Jayme Barrientos <fitoschido@ubuntu.com> Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2013-01-08Move GraphicFilter class to vcl.Jan Holesovsky3-0/+513
Change-Id: I2318eeda59cee1cfdb074f9a90fd7d8d80aab19f Signed-off-by: Cor Nouws <oolst@nouenoff.nl> Signed-off-by: Olivier Hallot <olivier.hallot@documentfoundation.org> Signed-off-by: Adolfo Jayme Barrientos <fitoschido@ubuntu.com> Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2013-01-08fdo#54165: Allow localized shortcut names on WindowsJesús1-0/+7
Change-Id: I2de53cd8d888ecf819271e96f8eb2cc4a90e554d Reviewed-on: https://gerrit.libreoffice.org/1554 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-12-22fdo#38090: vcl: remove ImplFontCache::maFontNameList:Michael Stahl1-4/+0
The font cache in VCL returns different fonts for identical parameters, which causes layout differences in Writer. first we search the font with language 1054: debug: XXX 0x2103950 add to maFontNameList: TH SarabunPSK->waree p maFontNameList $9 = boost::unordered_map with 1 elements = { ["TH SarabunPSK"] = "waree" debug: XXX 0x2103950 found in maFontNameList: TH SarabunPSK->waree in this very same invocation the "waree" is then rerouted to Deja Vu (which can only be because it was called with language 1033): debug: XXX 0x2103950 add to maFontNameList: TH SarabunPSK->dejavusans p maFontNameList $11 = boost::unordered_map with 1 elements = { ["TH SarabunPSK"] = "dejavusans" } debug: XXX 0x2103950 found in maFontNameList: TH SarabunPSK->dejavusans - the selection of different fonts happens in FcPreMatchSubstititution::FindFontSubstitute. - we never get a direct cache hit from maFontInstanceList because there are some differences like WIDTH_DONTKNOW, and the maSearchName - the first time a font is searched, it ends up in maFontInstanceList - the second time a font is searched, it may end up in maFontNameList, which maps _only_ based on the name (appears to be an invalid optimization) - once we have TH SarabunPSK->dejavusans in maFontNameList we can never select the other one because apparently dejavusans covers all languages Change-Id: Ibd73de88d8fc3b6e1319eb34c261e55ea217a988 (cherry picked from commit bb51791ae49ecded0f618b4534893adb8fcf917e)
2012-12-13fdo#56402: SVG in About Dialog.Muthu Subramanian2-0/+2
2012-12-12Resolves: fdo#57469 allow tab to traverse into custom widgetsCaolán McNamara1-0/+13
The magic WB_TABSTOP bit is the one that allows a widget to be accepted as a candidate for getting focus when pressing tab (cherry picked from commit 166d8257979aac6775319a9e1f305bc94df97e29) Conflicts: svx/source/dialog/fontlb.cxx Change-Id: I7d964bae6b84184ccbc4652d66cf3d2637566405
2012-12-05export VclScrolledWindow for external-to-builder useCaolán McNamara1-2/+38
as a work-in-progress Change-Id: I6065f3a4db5056cd925152dccd275de0d17b77b9 (cherry picked from commit 953cb304b16d04e8ec6e023643b9393395e2d99a) Signed-off-by: Caolán McNamara <caolanm@redhat.com>
2012-12-04Who wants RET_OK / RET_CANCEL to be sal_Bool?Jan Holesovsky1-2/+2
Change-Id: Ibda7e501b8f116f231a012a0ddee82674bfb5cc0
2012-12-04clarify ui warnings in builderJack Leigh1-3/+3
Change-Id: I3d55ba0e8d284a69d6ce7d3d7ec49d4ab5d9b682 Reviewed-on: https://gerrit.libreoffice.org/1230 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2012-12-03hide the manage cond format dialog when opening the cond format dlgMarkus Mohrhard1-1/+3
Change-Id: Iee1e8344610e42f22c405c698fdfd82d59ca836e
2012-12-03fdo#45651: fix drop down listbox text color with dark gtk themeIvan Timofeev1-0/+3
Change-Id: I9ba0b27924d1698bad2c34da75fff57f75a737f0
2012-12-03ugly hack to avoid virtual method in WindowMarkus Mohrhard1-1/+4
Change-Id: I7ffc13167f5ecbfe3afab6451e1ef52e81130d48
2012-12-03first working version of modal ref input dlgsMarkus Mohrhard1-0/+2
The following things still need to be changed: * don't use virtual method in Window * Use a WinBits flag for it * move all the dialogs to it * fix the ugly hack for range name dlg * fix all the uncommented code in winproc.cxx * general clean-up Change-Id: I2a8cfc1c4abf591878b11aa4829a9ff910540eff
2012-11-30Related: fdo#44664 spadmin support for forcing "postscript of driver level"Caolán McNamara1-2/+2
pdf of 0 and ps of 0 == automatically pick pdf if pdf is default backend. Which means that spadmin wasn't able to disable pdf if one selected "postscript of driver leve", though picking an explicit postscript level would work. So we need to tweak things to use the pdf flag to be either automatic, explicitly pdf or explicitly ps Change-Id: Ic5382a3eb9cbcff39d363723825e75851d73520e
2012-11-30SetTopEntryStr declared but never definedCaolán McNamara1-1/+0
Change-Id: Icfca11faebceab2dbb1dd065f0569203159b4ee9
2012-11-29Resolves: fdo#44664 Provide a way to set the default print job format.Caolán McNamara2-0/+5
a) In the print dialog you can temporarily override the default print job format for a single print job b) In the printer options dialog you can override the default print job format for a single printer c) Under tools->options->print you can override the default print job format for all printers. Tidy up the restart dialog in passing Change-Id: Ibea94bab6a79c3590dbf34583013db4e2ac06f45
2012-11-29make the options dialog layout incrementally convertable to .uiCaolán McNamara1-2/+2
it will now allocate the fixed reserved size for its tab pages to layout-enabled tabpages Change-Id: I5e56a09c5febc702d194f18954fd249bcd366dd9
2012-11-28We only support MSVC 2008 (_MSC_VER 1500) or laterTor Lillqvist2-3/+3
We can drop or simplify many conditionals. Change-Id: I37e820e515cc09845c30b62c89ddb3b6ff370f97
2012-11-28Remove useless method SetBackgroundBitmapMarcos Paulo de Souza8-16/+0
Thomas Arnhold asked me to take a look at the method SetBackgroundBitmap. In my XFCE, removing this method didn't chnage anything. So this needs more tests in Windows and other WM's. Change-Id: I3e10bea4eac114326ff981fb21ba0d292818b1da Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2012-11-27try and make error message a little more usefulCaolán McNamara1-0/+6
Change-Id: I20070965dbf2632461fc74cc8a9795c7ddded269
2012-11-27fdo#46808: Missing adaptions to XFolderPicker2Stephan Bergmann3-6/+6
c988da288ec473a28f61ebb53aa3ff82bab11ef4 "fdo#46808, Adapt ui::dialogs::FolderPicker UNO service to new style" had left some FolderPicker implementations at XFolderPicker, so creating them caused DeploymentExceptions. Change-Id: I3463161f9bb87a69a2777c331eb5b93d487790b0
2012-11-27vcl: Edit: add placeholder text feature, import it from .uiIvan Timofeev1-0/+4
Change-Id: I65d305b07dba5ddd80a108d5ef1b36f75eb67243
2012-11-26make presentation spanning all screens work (bnc#758138)Luboš Luňák1-11/+13
This reverts an API "improvement" from 6ee5dfa150d408179e20a5525ff7ec46649e0e58 that tried to use -1 as the current screen/display but failed. The check for nDisplayScreen being in range broke all-screens (which is represented as last_screen+1 value, which is broken in its own way, as e.g. the screen count can change). The same way -1 as the default value is broken, as everywhere else invalid invalid screen number means spanning all screens. The extra overloads without a default value should take care of that. Change-Id: Ie118038eacacebc007c25860732d5904ad0de2b9
2012-11-23some i18n wrappers with LanguageTagEike Rathke2-3/+5
Change-Id: I2ceaa3159e8669c2c569fa8559c1e061dcad399d
2012-11-23callcatcher: update listCaolán McNamara1-2/+0
.ui conversion has finally make inroads into core vcl widgets, no WorkWindow are initialized from ResIds anymore post conversion of the xslt filter dialog Change-Id: I4a1764d9fb9be9e252630e3afc9972221bc16be6
2012-11-23Include gio headers only when gio is enabledFridrich Štrba1-0/+2
Change-Id: I04058cd7bc96b1380d0ac85b6090073810996210
2012-11-22make left-right traverse through radiobutton groupsCaolán McNamara1-2/+1
lets preserve the traversal order from the initial grouping order, so convert the radio group set to a vector Change-Id: If057f0c5d5f2eac2e8866a8a39efde8035c4fc4a
2012-11-22support setting textbuffers on textviewsCaolán McNamara1-36/+28
Change-Id: Iaab4f17539c65c11870ce9b0635dc5ab47f1fa88
2012-11-22Use ENABLE_GMENU_INTEGRATION consistentlyStephan Bergmann1-4/+3
Change-Id: I576bfa41b0dce0cba8c92c123f8747cf619fcffb
2012-11-22AllSettings with LanguageTagEike Rathke1-16/+10
Change-Id: I710ae66e51139662eb442b681fdf9cc9d158551d
2012-11-21Clean up remains of NativeActivity-based Android app supportTor Lillqvist1-14/+0
We haven't been able to build NativeActivity-based apps (like the android/qa/sc and anroid/qa/desktop thingies) since we switched to DISABLE_DYNLOADING and a single DSO liblo-native-code.so anyway. No lo_main() any more. <sal/main.h> should not be included ever when compiling for Android of iOS now. Lots of stuff binned from vcl's androidinst.cxx, in the (vain?) hope that it will reduce the amount of never invoked GUI code that gets linked in. Change-Id: I25f584864c40110774c728a23151e089620442d9
2012-11-21apply packing properties of pseudo-scrolledwindow to self-scrolling childCaolán McNamara1-1/+1
Change-Id: I13b0b625109237a0ec9711ed2efdc34cd3e0d32b
2012-11-20sal, cppuhelper, udkapi, offapi: s/@since 3.7/@since 4.0/Michael Stahl1-1/+1
Change-Id: Iefbe31af8d6ec421c6006423b6ee3a6375e3d453
2012-11-20cairo: convert to gbuildMatúš Kukan1-1/+1
Change-Id: I1f3dd368a0d0b78b73df3baad214a1079bbbd1d3 Reviewed-on: https://gerrit.libreoffice.org/1144 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>