summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)AuthorFilesLines
2013-01-04Fix build on linux.Jan Holesovsky2-4/+4
Change-Id: I5753a822e9f18d1afa831ece6134e030f88ad47f
2013-01-04Personas: Fix copy constructor + always reference the Application settingsJan Holesovsky3-8/+8
...to avoid reading the bitmaps more than once. Change-Id: I7577f5df96a5a28f1ac1f800867af5eee298663e
2013-01-04Kill workaround of i#75264 - it breaks drawing of a perfectly fine bitmap.Jan Holesovsky1-65/+0
The case where it broke was a bitmap that is very wide (3000 pixels), but not too tall - and the small height satisfied the aPosAry.mnDestHeight > 3*mnOutHeight condition. Such workarounds that are triggered only in very rare cases are a bad idea in general, unless there is a unit test. I've tested with the document from i#75264, and it works for me - there were some improvements in the bitmap scaling, hopefully the root cause is fixed by that, or maybe I just have more memory; who knows. Change-Id: I4b7a749378ef35469db78dfc680fc77f87bc4382
2013-01-04Personas: Make the Persona working in the top docking area too.Jan Holesovsky1-2/+26
Change-Id: I1d3986675ceb7a2748a77b736beb8a654a514e0d
2013-01-04Personas: Make the Persona in the menubar working.Jan Holesovsky2-18/+45
Change-Id: I21a45159f6b27aa7beff5ec07530b14480675729
2013-01-04Fix base location of the bitmap Wallpaper computation.Jan Holesovsky1-2/+2
The nX / nY is correct for clipping operation, but not for base; visible with WALLPAPER_TOPRIGHT style. Change-Id: I8de92b68b822a156bc376201e97ce458d1a6ba08
2013-01-04Personas: Read the bitmaps in StyleSettings.Jan Holesovsky2-3/+116
Change-Id: I52b67c82f69059a7d2babf1b49e59f27062cc02c
2013-01-04Make LO buildable again after the GraphicFilter move.Jan Holesovsky19-280/+243
Change-Id: I3455a7294b136400f32163626d5a7a7f2bfa898c
2013-01-04Move GraphicFilter class to vcl.Jan Holesovsky105-0/+24429
Change-Id: I2318eeda59cee1cfdb074f9a90fd7d8d80aab19f
2013-01-04fdo#50415: Add Catalan translations of keyboard shortcutsJesús Corrius1-0/+31
Change-Id: Ieeab5b84674d26e4d29324614641813d8b65c517 Reviewed-on: https://gerrit.libreoffice.org/1543 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-01-03fdo#58963: Revert "fdo#39983: Support Mac OS X 10.7 full-screen mode"Tor Lillqvist3-97/+0
It caused breakage of the existing slide-show full-screen mode. So let's revert for now.
2013-01-01implement spread button layoutCaolán McNamara1-10/+25
Change-Id: Ia17d3f4d14319adec6b0b20dced5daf5b8018c36
2013-01-01WaE: duplicate 'const' declaration specifierTor Lillqvist1-1/+1
Change-Id: I70b12a4de7edd785f87e4de3f398e90bf54ca84f
2013-01-01WaE: unused private fieldTor Lillqvist1-14/+16
The fields were not really unused but the compiler can't know that, and it was done in a horribly hacky way anyway. Same fix as sberg did for the corresponding MacOSX code. (Yeah, should factor out the commonality. Not that I know whether the VCL code for iOS will ever be used.) Change-Id: I573073c3f5c15f0a40ed72c9d58578fc80f65b93
2012-12-30Fix Memory leak: bufferJulien Nabet1-1/+1
Change-Id: I300b329de802aa88c71bdf9da0a878a1577364b7
2012-12-29don't remove blank rows/cols more than onceCaolán McNamara1-7/+41
Change-Id: I7b46ac1f9fcca5a3ae9dbb6b6c4f92917f522295
2012-12-29now that the print dialog is fixed the SYMBOL_PREV/NEXT hack can goCaolán McNamara1-12/+0
Change-Id: I870a46e1b1e2bcd05795e423d3bb67a61e4c22d0
2012-12-29callcatcher: update unused code listCaolán McNamara2-17/+0
Change-Id: I47467b53705f8059a829126a598e29a1105df13c
2012-12-29Some cppcheck cleaningJulien Nabet1-1/+1
Change-Id: Id027823617d2328b9e827268825812634731a828
2012-12-27convert icu to gbuild and add to tail_buildPeter Foley1-0/+1
Change-Id: Id7d8bc05b1393cc2bae4a531c8a47f62df24b1d6 Reviewed-on: https://gerrit.libreoffice.org/1488 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2012-12-27More MSC -> _MSC_VER, sorryTor Lillqvist2-2/+2
Change-Id: Ie5070d514c1f4dd9f9708253eb44134baec6524a
2012-12-26PCH for Library_vclLubos Lunak4-1/+371
2012-12-25convert external to gbuildPeter Foley1-1/+1
Change-Id: I7127db6aad9e97a0f3e758aa83b22ac8465d3f43
2012-12-23WaE: non-constant-expression cannot be narrowedTor Lillqvist6-24/+24
Change-Id: I401fd149e62d74a96edfc2a7e5105fb2cc95f0c7
2012-12-22fdo#38090: vcl: remove ImplFontCache::maFontNameList:Michael Stahl2-30/+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
2012-12-22fdo#47553: UniscribeLayout: adjust mnSubStringMinMichael Stahl1-0/+9
... to actual minimum so that the fix for fdo#33090 in UniscribeLayout::GetNextGlyphs subtracts exactly the right number. The original value of mnSubStringMin is guessed and may be up to 8 smaller than the actual start of the first VisualItem. For the bugdoc it happens that sometimes it's too small by 8 and then the wrong entries in mpGlyphs2Chars are initialized and then apparently there are single glyphs that represent multiple characters and so GetNextGlyphs returns a -1 character which is invalid. ->GetNextGlyphs dir 1 36 mnSubStringMin 28 ->GetNextGlyphs g2c #1 [8] = 36 ->GetNextGlyphs g2c #1 [9] = 37 ->GetNextGlyphs g2c #1 [10] = 38 ->GetNextGlyphs g2c #1 [11] = 39 ->GetNextGlyphs g2c #1 [12] = 40 ->GetNextGlyphs g2c #2 [4] = 40 ->GetNextGlyphs g2c #2 [3] = 39 ->GetNextGlyphs g2c #2 [1] = 38 ->GetNextGlyphs g2c #2 [1] = 37 ->GetNextGlyphs g2c #2 [0] = 36 ... ->GetNextGlyphs init nCharPos -1 ->GetNextGlyphs g2c [2] nCharPos -1 ->GetNextGlyphs set pCharPosAry -1 layout[0]->GetNextGlyphs 768,1024 a1800 c-1 0 Change-Id: Ie33ec797a412aa898bec3f4e8f97b88dcfed4d11
2012-12-21Try harder to fix build against 10.4 SDKTor Lillqvist1-3/+3
2012-12-21About Dialog: Use edition path as well.Muthu Subramanian1-6/+10
2012-12-21Try to fix build against 10.4 SDKTor Lillqvist1-0/+6
Change-Id: I433512dbd533fe6c84e94059f378c4a7a6e8671d
2012-12-21fdo#39983: Support Mac OS X 10.7 full-screen modeTor Lillqvist3-0/+93
Should be good enough for now, at least doesn't break any existing functionality if you don't use the system provided full-screen buttons. Should continue to compile against older SDKs but still work also on newer OSes. There are some known glitches. For instance if you choose View:Full Screen, the window does go into the system full-screen state, but if you then use the system unfullscreen button on the (now no longer disabled, but hidden) menubar, LO keeps displaying its own small floating unfullscreen dialog... I also occasionally managed to get some menus in the menubar borked with no text!? But as traditionally a full-screened LO has no menubar at all, technically that isn't a regression;) Partially based on my own old patch, partially on http://svn.apache.org/viewvc?view=revision&revision=1423520 , http://svn.apache.org/viewvc?view=revision&revision=1423523 by Herbert Duerr <hdu@apache.org>. Change-Id: I546c58f7cee9f8cb6c746eb014d8d5a8af3619cb
2012-12-21fdo#55044: OutputDevice::ImplDrawAlpha:Michael Stahl1-2/+2
reset members before calling GetBitmap(), as apparently they are used by GetBitmap(), resulting in missing/not rendering parts of the preview image in the bugdoc. (regression from c0ce7ca4884f7f6d1016bd1dbcc22066cb4a7797) Change-Id: I02a6abb822900e1a28a1c632a122c1e093b73553
2012-12-21fdo#46808, Convert frame::Desktop to new style service.Noel Grandin6-22/+14
I had to drop XEventBroadcaster from the merged interface because it introduced method name conflicts (addEventListener). Shouldn't be an issue since it was scheduled to be dropped anyhow, and the service implementation still implements it, so existing clients will be fine. I dropped the interface XPropertySet from the combined IDL because nobody seems to be using it, and it's primary purpose appears to be to set weird flags. I dropped the optional interfaces XStatusIndicatorFactory XDispatchInformationProvider from the combined IDL because the service does not implement them, and nobody seems to be using them. I suspect they were mistakenly copied from XFrame. I also did not convert the Title, UserDefinedAttributes and LayoutManager properties to attributes, again because no-one is using them. Change-Id: I678a00006ed2cca2d6c37c4e39465811442c33af
2012-12-20Some cppcheckJulien Nabet3-5/+3
Change-Id: Ifec449ea334d9055bb33beb0518ab2e01d885d0d
2012-12-20vcl/headless: some more string cleanupRiccardo Magliocchetti2-6/+3
As suggested by Olivier Hallot and Lubos Lunak Change-Id: Ie5d9f379294b004992dab0b98d6dfa4aa5456159
2012-12-20optimize: changing focus shouldn't have an impact on widget sizeCaolán McNamara1-0/+1
Change-Id: I98385c9b75125c2785a52ab1a2e6c2c4a6798213
2012-12-20The LineListBox drew lines wider than can fit in its text areaCaolán McNamara2-11/+29
it takes the outputsize of the entire widget and take a little (not enough) off that as the line width. The line is always wider that space available, so with widget-layout enabled it will request more space. On the next update of the lines it repeats, so listbox grows ever wider. Change-Id: Ib43239d297bb0ba0dc1096acf347ef17b5e41273
2012-12-20implement small-size variant stock image buttonsCaolán McNamara7-64/+54
Change-Id: I82d5a957b5c38b8aa19e28ceb8d6850c0bf7526e
2012-12-20vcl/headless: remove rtl namespace prefix from OUstring methodsRiccardo Magliocchetti5-25/+22
Change-Id: Ic3948384bc1709d648507c41542c34437abea468 Reviewed-on: https://gerrit.libreoffice.org/1422 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2012-12-19a GtkComboBoxText and GtkComboBox are effectively the same thingCaolán McNamara1-8/+1
Change-Id: Iec7b9a0d04c3974a081813aee285f7482de904aa
2012-12-19fix KDE file dialog setting checkboxes to trueLuboš Luňák1-1/+1
No idea how long this has been broken, or if it ever worked, but inserting a picture sets the 'link' and 'preview' checkboxes to true for the next time (as getValue() returns void*, which gets silently converted to bool *sigh*). Change-Id: I6af0e09ac5e475fc9ff04cd7f937af0bc7aeea77
2012-12-19-DENABLE_GRAPHITE -> config_graphite.hLuboš Luňák12-4/+13
Change-Id: I94c7865b68c65540765c9fbfba6f669055dad4ba
2012-12-18Replace GUIBASE checks with equivalent OS checksTor Lillqvist2-6/+6
The idea is to get rid of GUIBASE and GUI checks as much as possible. GUIBASE=aqua <=> OS=MACOSX GUIBASE=WIN <=> OS=WNT GUIBASE=cocoatouch <=> OS=IOS GUIBASE=android <=> OS=ANDROID Don't set GUIBASE to these values any more in configure.ac either. GUIBASE_FOR_BUILD is not used anywhere. Conflicts: configure.ac postprocess/packcomponents/makefile.mk postprocess/packregistry/makefile.mk Change-Id: Ie0526b40e1073f2328ba6c333e28752104b0fed3
2012-12-18Related: fdo#50284 apple's modern symbol font is unicode encodedCaolán McNamara1-0/+13
So codepoints that are from the legacy range need to be converted to their unicode equivalents even in the presence of an installed "symbol" font on MacOSX. This should work out ok if input codepoints that exist in the apple symbol unicode are used, they should be left untouched by this conversion. Change-Id: Ia9996e2d9bf632c86c8d26832d77c7c662cf1076
2012-12-18fdo#56937 - mac a11y hang related to traversing vast, broken hierarchies.Michael Meeks1-10/+27
Change-Id: Iff0537a69b2c6ae929da6a05f26c0d55415d6d8a
2012-12-17cppcheck: I wanted to check for 'e' and 'E' here for 'end'Caolán McNamara1-1/+1
Change-Id: Ie5a1da69c1282c518ec33835fefe723b0fdf3a40
2012-12-17split out document info page and convert to .uiCaolán McNamara3-2/+68
move svt::SelectableFixedText to vcl and implement "selectable" GtkLabels by mapping to that vs FixedText for standard GtkLabels Change-Id: Ic114991cd2c2eb6673bcef634fa286dd7c67056f
2012-12-17Move forcing existence of tabpages to TabControl::GetOptimalSizeCaolán McNamara1-0/+11
rather than just for SfxTabDialog, do it for all TabControls Change-Id: I29a19c51c7ce3baec428df716e2ee3595e496c39
2012-12-17allow tabpageids to have names which can be queriedCaolán McNamara3-16/+52
and in the .ui builder set that name from the name of the label widget matching that tab which allows human understandable names to be used in looking up the pageids for a given tab page rather than fragile by_position so tab pages can be freely moved around without busting the code Change-Id: Ieaff1408b25545c561a0b28c51ec205af6e1400f
2012-12-17mnTabPageResId is not used anywhere, continue to skip the resource thoughCaolán McNamara1-5/+3
Change-Id: Ief4707613352b1382fb23e5914fd05f6c7618327
2012-12-17UniString::ToUpperAscii -> OUString::toAsciiUpperCaseCaolán McNamara1-6/+4
Change-Id: I70f2238021c79a34b97a6bdbcc374d8b1ffb2a31