summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)AuthorFilesLines
2012-06-07Implement native FixedLine render, add GTK support for itRuslan Kabatsayev3-0/+41
Change-Id: I142cc8c48331aaed0d157b4b0f81e7c021005624
2012-06-07Render bg correctly for widgets without theme-visible positionRuslan Kabatsayev1-4/+32
Change-Id: I8c9d2a86ee545788d40a27538e583a8dac21095f
2012-06-07Fix new Bitmap creation in Lanczos resampling.Tomaž Vajngerl1-3/+2
Bitmaps in Lanczos resampling were not created correctly. This problem was visible in Impress when the background of a slide was set to "tile". Change-Id: Ic77ae1f20a872176eacb1f28175d53b4a0934008
2012-06-06calc input line: Fix crash on MacOSX.Jan Holesovsky1-1/+1
Change-Id: Iff50dfc1b4730ff584e3015486da4acf8fd5cb47
2012-06-06fdo#46808, Adapt UNO services to new style, Part 7, updating ::createNoel Grandin1-8/+4
Update code to use factory method URLTransformer::create Change-Id: I3fd2e838497bcfd8fc949615c0e7d60a6ea47118 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, added some tweaks.
2012-06-05Intercept the window close event and end the preview when clicking 'x'.Kohei Yoshida3-10/+36
This is to prevent the preview window from closing the whole document when pressing the window frame's 'x' button. Instead, pressing the 'x' will end the preview mode and bring it back to the normal Calc window. Change-Id: If4d42928784e3e05bc6357d811a1954efb221f01
2012-06-05remove unused headersThomas Arnhold1-6/+0
Change-Id: I72fefdcd8aaf6d1f1677b4cae21cb915e96ed503
2012-06-05fdo#50415 and fdo#34638 Fix Shortcut names are not localized on LinuxThomas Arnhold4-7/+396
This partially reverts commit 2233aa52da14ec85331aee1163b885fe9a9fb507 Before the keyboard name was used to determine the target language for translation of UI shortcuts. With this patch the UI locale is used to determine the language. Related to: - 8d9e2d9a211f710e91ac7c607fea25895282d245 - 04b9c2f633f0be1b676933943bdd0b1dc58b5471 Change-Id: I14c6759dc405db490d210a78ce19e1416efb7ac7
2012-06-05Use 32bpp bitmaps on Android (and iOS)Tor Lillqvist4-2/+12
Modify DocumentLoader correspondingly. Take Android bug 32588 into account. Ideal would be to extend the XDevice stuff, or something, so that one could hand it a pre-allocated RGBA buffer into which the drawing/rendering would go. Then one could get rid of the silly convert-to-BMP phase, which prefixes the bitmap data with BMP and DIB headers (and thus, I guess, has to copy and allocate another copy). Will see. Change-Id: I4597cd933db8faa8105dc8f19638d712d5d2238a
2012-06-05GTK theming: implement frame renderingRuslan Kabatsayev2-1/+114
Change-Id: I7efa167cee05f84c56f554b5c20029999e825809
2012-06-05Let's be bold, and default to the nice method when scaling.Jan Holesovsky2-4/+4
[ie. use BMP_SCALE_FAST only where explicitly asked for.] Change-Id: Ia5eccc786262216a803b989b073ffd9c1ed78377
2012-06-05Use BMP_SCALE_LANCZOS instead of BMP_SCALE_INTERPOLATE.Jan Holesovsky3-3/+3
Where we explicitly ask for better quality, use BMP_SCALE_LANCZOS, instead of BMP_SCALE_INTERPOLATE. Change-Id: I28ddf3290204532a8660e09ee9ab0949b6ce1c73
2012-06-05Lanczos resampling - mirror image on edges and fix image upscalingTomaž Vajngerl1-18/+42
When upscaling the bitmap at edges use the mirror of the image to calculate contributions. Fix calculation of contributions when upscaling a bitmap. Change-Id: I9d3aedaed95aaab60ee5ea9cdd65e4dd8624428f
2012-06-05assume for all menus we reserve space for checkboxesCaolán McNamara2-40/+17
so menus have consistent whitespace at left regardless of containing checkboxes/radiobutton entries. Its nasty to have menus "suddenly" appear without whitespace as submenus of ones with whitespace. This is a logical consequence of MENU_FLAG_SHOWCHECKIMAGES always set (in the absence of SetMenuFlags where usage has generally dropped MENU_FLAG_SHOWCHECKIMAGES accidentally) Change-Id: I9501381b91415131eff5143a0c88142221530fb6
2012-06-05at one stage we had checkmarks *and* icons in menus side by sideCaolán McNamara1-6/+7
later on we ended up with toggleable icons instead, change comment to reflect the current situation Change-Id: Ia39f6bffe8e5942442482b1f845d2964138ec032
2012-06-05nCheckPos and nImagePos are always the same value, merge togetherCaolán McNamara2-8/+5
Change-Id: I41bf6eada1fbeaa9548f81b3bf4fd9d4f4f6871a
2012-06-05fix mangled indentCaolán McNamara1-5/+5
Change-Id: I57d0a16ed698b406cb7362a3382698fcd5bf21b2
2012-06-05make ImplGetNativeCheckAndRadioSize return max sizeCaolán McNamara2-18/+19
rather than just max height with max width smuggled out as a confusing extra third argument Change-Id: Id37ec4f679e5668715d5db0bc8875a27c8b2fb3c
2012-06-05nMax here is a height valueCaolán McNamara1-6/+6
Change-Id: Ia1c12f29840dcb2f3f5a5d654a368ddc11554ab2
2012-06-04Change return PrintFontManager::countFontconfigFontsJulien Nabet2-4/+6
PrintFontManager::countFontconfigFonts returns an int but it's never used so let's drop the int returned Change-Id: Iab00916aec36b899a04555743d698a3fc1d45085
2012-06-04fdo#46808, Adapt UNO services to new style, Part 7, updating ::createNoel Grandin3-53/+44
Update calls to factories to use new ::create methods Change-Id: I01d4417820f52718836c92faf3c2fae0dc96b30d Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, added some tweaks.
2012-06-04fdo#50631: Fix the bounding box of rotated glyphs on MacOSX.Norbert Thiebaud1-5/+21
Similarly to Ifb04d4a8e485182c5ef2771025b06832bfd75ae0 (commit ac25f124858b79e302adcc533d6a658d5c529394), we need to rotate the bounding box of glyphs on MacOSX too. Additionally, round the position up, and convert the size more straight-forward way. Change-Id: Idf7a077836e65072795c6d98d61925ce62ee35b7
2012-06-04fdo#50169: skip the rest of the loop in case of wrong indexMichael Stahl1-4/+5
Presumably that is what Martin wanted to do in the previous patch. Change-Id: I64f1da88c1802a27cf974aa6abc15b014b56126d
2012-06-04fdo#50169: add another index checkMartin Hosken1-0/+1
Change-Id: I974ac27ee17219ce3f8a7e5641dbb0098da18f8e
2012-06-04nuke unused definesTakeshi Abe1-2/+0
Change-Id: I7924da4bff73ca8f82c76eb8cb211401530acdeb
2012-06-04fdo#46378: Lanczos3 resampling of images added to Bitmap.Tomaz Vajngerl2-0/+250
Current resampling methods for images are FAST and INTERPOLATE. FAST is used where speed of resampling is required, on the other hand INTERPOLATE resampling is used when we need quality. For example INTERPOLATE resampling method is used at PDF export. INTERPOLATE resampling uses bilinear interpolation which is known to be lower quality as other modern (and slower) resampling algorithms such as Lanczos, Mitchell or BiCubic resampling. This change adds Lanczos resampling to the Bitmap class and enables Lanczos resampling in PDF export. Lanczos3 resampling is implmented using separable convolution with which it is also possible to easily add other resampling methods like BiCubic just by changing the kernel function. Change-Id: I8dff5b65753b09dffd5bc34f2343d9818efb3e58
2012-06-04sal_uInt32 -> cmsUInt32NumberFridrich Štrba1-1/+1
Change-Id: I2d16ab0c75221cd7ce3e602d9f830b597433411b
2012-06-04Find the internal lcms2 headerFridrich Štrba1-0/+1
Change-Id: I9ee6b40f28ffb5cc557cdcfff49287bd2e4b0fe2
2012-06-04Replace the module icc functionality by a use of lcms2Fridrich Štrba3-3/+12
Change-Id: I989af1147711f0175bf889bc55043b2d84a49b38
2012-06-02vcl: add dependency on basebmp's headers not implied by linkingMatúš Kukan1-0/+5
Change-Id: Ic35a980f7ddc45ce319fe6d78c93be33126380a6
2012-06-02targeted string re-workNorbert Thiebaud9-189/+187
Change-Id: Ic1fb9f4ec0f37d4efcf43c58b903388478d52173
2012-06-02targeted string re-workNorbert Thiebaud21-134/+123
Change-Id: I0ca912c8b7e485f5ec78422150aedc72ca6df32f
2012-06-02Fix operator precedence errorRuslan Kabatsayev1-2/+2
Change-Id: I8806f17aaf9fe2c209b917259dfd1d17e530e170
2012-06-01Return correct bounding box of glyphs on Linux, we forgot to rotate it.Jan Holesovsky2-1/+16
This makes the behavior consistent with what happens on Windows. Change-Id: Ifb04d4a8e485182c5ef2771025b06832bfd75ae0
2012-06-01Gtk theming: pass tab prelight state to themeRuslan Kabatsayev1-0/+6
Change-Id: I9b924d83d4da638d17af14a66a618ce7128968e7
2012-06-01GTK theming plugin: convert big if statement to switch structureRuslan Kabatsayev1-74/+87
Change-Id: I1220d80bdba4835db3674271f8a060af50af998f
2012-06-01vcl uses X11/extension headers tooDavid Tardon2-6/+6
Change-Id: Ie2ee19ca685d082f50415c2d916f5bfdf842bd84
2012-06-01nuke unused namespaceTakeshi Abe1-1/+0
Change-Id: Ic00cdfce4172af0a2f0aa1aa33ef5e386d407976
2012-05-31targetted cppcheck warning fix reversionMichael Meeks2-7/+7
Change-Id: I44bafcc62a127f2d7c6da2952573e4128783c342
2012-05-31make CheckCharacterBounds tests happy without forcing empty glyphs 1 unit wideCaolán McNamara4-8/+9
related, i#87757 and 8bafe38c569afa2e1055eb647cb7ff161ddd1230 which itself is related to ce14342c4292628a641a72d4f63d9c048e030c6a, These character bounds are backed by what's the glyph bounding box for the ink used for the glyph. Whitespace has no ink so its an empty Rectangle. Which brings the awesome RECT_EMPTY into play. It might be a bit dubious in the first place to back getCharacterBounds with the glyph bounding box in the first place, rather than maybe the advance width or some such. But lets assume that decision was intentional. So, the qa test should accept that a glyph might be of 0 width anyway. Then, tweak rectangle merging so that we can preserve the correct top-left position of an empty glyph So, we can determine the correct character index given the top-left position of an empty glyph Change-Id: I5e18460ff7cd90cd27d5eede2aa0a5494c36a5d3
2012-05-31vcl: cleanup code flow, and minor indent tweakMichael Meeks1-24/+23
Change-Id: Id99b10f84ef977f5c808fb2c9168deaa4455a2a9
2012-05-31GTK-theming: fix rendering of toolbuttonsRuslan Kabatsayev1-8/+33
Change-Id: I6b7ec963e50c75e65c602681586a1458426ae61f
2012-05-31GTK theming: implement rendering window backgroundRuslan Kabatsayev2-1/+34
Change-Id: I34c6c38f383fce54aa0b2a61a5e88ee9a8cff4e7
2012-05-30vcl: rename unhelpful 'Default' screen to a BuiltIn screenMichael Meeks11-18/+54
Add 'BuiltInDisplay' and 'ExternalDisplay' UNO properties to clarify Change-Id: Idf5d26bf687871b3949d077fb89bfe1942839125
2012-05-30One line docu to save me code reading the next time ;-)Jan Holesovsky1-0/+1
Change-Id: I3998679c859c2a25933a879ae6412d7555350a62
2012-05-30calc input line: Fix the size on Windows.Jan Holesovsky1-8/+8
Change-Id: Iac102ad3794b8959fb219094a9db6345990c4883
2012-05-30i#87757: do not create empty Rectangle bounding box for glyphs:Michael Stahl2-1/+6
Enforce a minimum width and height of 1 in GlyphMetric::SetSize(), preventing X11SalGraphics::GetGlyphBoundRect() from returning a Rectangle that has one side set as RECT_EMPTY. This problem has surfaced due to the change of the status bar in ce14342c4292628a641a72d4f63d9c048e030c6a, causing the AccessibleStatusBarItem to fail in getCharacterBounds() because the text of the control, "Words: 0", now contains a space, for which an empty Rectangle bounding box is created, which results in a wrong return value from getCharacterBounds(): LOG> Character bounds outside component LOG> Character rect: 43, -566, 0, 0 LOG> Component rect: 91, 2, 71, 18 It turns out that the following test was disabled due to this problem, so re-enable it now: toolkit.AccessibleFixedText::com::sun::star::accessibility::XAccessibleText
2012-05-30Add temporary test JNI method createWindowFoo()...Tor Lillqvist1-0/+10
Change-Id: I8f99399faa3b0762bdea2aac09f1b849639cd191
2012-05-29nuke unused typedefTakeshi Abe3-9/+0
Change-Id: I12a55e08a83b88221d992790c97c830761755582
2012-05-29rename functions for consistency with the rest of gbuildDavid Tardon1-2/+2
Change-Id: I572a8a6dc9da4f63b7c937748b3013bab60bb6bb