Commit Graph

3523 Commits

Author SHA1 Message Date
Noel Grandin
d812b78431 remove unused code -SvtLanguageTable::AddLanguageTag
Change-Id: Ibb0dda4b48c711e72574c3f5aec9e3d1186d1526
2014-05-13 12:00:28 +02:00
Noel Grandin
ffa2229a8e remove dead code
Change-Id: Ic4fb478921714429af138ca212bd7f67f408d434
2014-05-13 12:00:27 +02:00
Stephan Bergmann
9a8411d3b1 osl_openFilePath is internal sal/osl/unx functionality
Change-Id: I14e4d08f209e3d6a444d6c09f9ffb9c178d8731d
2014-05-13 10:43:15 +02:00
Jacobo Aragunde Pérez
fe88fac28a oox: Use references to prevent unnecessary object copies
Change-Id: I5113bc581a8ac98b97c6598a5355e050c7ad7860
2014-05-13 10:28:55 +02:00
Jacobo Aragunde Pérez
4b4f7e17ad ooxml: Preserve shape 3d effects: extrusion and contour colors
Shapes 3D effects can specify colors for extrusion and contours like
in the following example:

  <a:sp3d extrusionH="25400" prstMaterial="metal">
    <a:extrusionClr>
      <a:schemeClr val="accent5">
        <a:lumMod val="40000"/>
        <a:lumOff val="60000"/>
      </a:schemeClr>
    </a:extrusionClr>
    <a:contourClr>
      <a:srgbClr val="3333FF"/>
    </a:contourClr>
  </a:sp3d>

Colors can be theme-defined or set in RGB and can contain
transformations.

This patch preserves all the color information using the shape grab
bag and modifies an existing unit test to add this check.

Change-Id: Ida168affd4ca2135d0bd8f97135dc1cd1e74165a
2014-05-13 10:28:55 +02:00
Jacobo Aragunde Pérez
e8679367c9 ooxml: Preserve shape 3d effects: material
Shapes 3D effects can specify a material like in the following example:

  <a:sp3d prstMaterial="metal" z="488950" />

This patch preserves the prstMaterial attribute in the sp3d tag using
the shape grab bag and modifies an existing unit test to add this
check.

Change-Id: I7be2dbbcc7e599d5f0fb8fa53ec1d180c18d8ebd
2014-05-13 10:28:54 +02:00
Stephan Bergmann
416543e829 All three uses of osl_getFileOSHandle have been removed again
...introduced with a64db11b6c "Add some non-public
API to be used by SvFileStream" and e541105b45
"Use osl API to access files in the SvFileStream code" but subsequently
identified as dead code with ab02fa6552
"callcatcher: update list," 05a8216d03
"STAR_ENABLE_FILE_LOCKING was a secret," and
1d3483ed27 "Remove some unused code from
unusedcode.easy."

Change-Id: I9c8584890270a87e58b8d8021080ffe54bc97b93
2014-05-13 10:08:19 +02:00
Stephan Bergmann
3f72ad159c osl_openMemoryAsFile is internal, Android-only functionality
Change-Id: I36734b0e5e1c0b15ed4f0845450b444b23579ffe
2014-05-13 08:47:30 +02:00
Markus Mohrhard
9fbafe9fe8 rerender after redrawing of the window
Change-Id: Ia967ba08a9bd0499ae5fb0865492783834204963
2014-05-13 05:29:23 +02:00
Chris Sherlock
bb6f565452 vcl: reorganize accessibility functions in window.hxx
Change-Id: I25bd1368c17bcdbd642d60b056584243cd429cc0
2014-05-13 08:13:55 +10:00
Chris Sherlock
fa738be62a vcl: reformat window.hxx
Change-Id: I444cd8d57418ed7f064a2bf9f87be9fba6cc5789
2014-05-13 08:13:54 +10:00
Zolnai Tamás
01d3044d30 More warnings related to glTF rendering
Use avmedia.opengl to be more explicit.

Change-Id: I07878c3648de2e4786bf8a5144ef0c1fbb5530f1
2014-05-13 00:09:10 +02:00
Caolán McNamara
28fe3628ed o3tl::default_deleter->boost::checked_deleter
has the same result

Change-Id: Ifbebcfb26c6fc54d03522c924da86837d7dfa3b9
2014-05-12 20:25:40 +01:00
Kohei Yoshida
e2f94a8e2c Move this function object to o3tl.
Change-Id: I9d1710fbed3c5753e84ed343c5136ab87909624d
2014-05-12 13:47:31 -04:00
Tobias Mueller
5f0420450a svtools: Translated ctrltool.hxx from English to German
Someone may want to move the comments into the right place, i.e.
very close to the function definitions.

Change-Id: Ibdb74b2f1020ef338852acbb3a06f292dc94da9b
Reviewed-on: https://gerrit.libreoffice.org/9321
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-12 15:25:03 +00:00
Tobias Mueller
fd5ce1335d svx: Translated the svdmodel.hxx from German to English
Change-Id: I98d5e1308f192c302a4db023044d9246eff3c320
Reviewed-on: https://gerrit.libreoffice.org/9320
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-12 15:23:15 +00:00
Michaël Lefèvre
70e744b215 fdo#43157 Remove OSL_POSTCOND, prefer SAL_WARN_IF
Change-Id: Ia89a2dce799c7ba90bcd19919195bfd2c7a4a180
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-05-12 11:32:38 +02:00
Tor Lillqvist
859363d2a0 WaE: unknown log area 'chart2.3dopengl'
Change-Id: I7362c843ae7abae74e82b330832cb007478d853c
2014-05-12 08:53:38 +03:00
Markus Mohrhard
5b7dfb07e3 move glm operator<< for debugging to OpenGLHelper
Change-Id: Ia529badffe08507d593f494230d2e504b68ff477
2014-05-12 03:00:10 +02:00
Markus Mohrhard
8c6ec8e4c2 some work into intercepting mouse events in OpenGL window
Change-Id: I46dcfed7d5398d994c68ed7cfe4408f9f5719bf1
2014-05-12 03:00:05 +02:00
Markus Mohrhard
e478b1da96 remove framebuffer objects
We want window rendering and not off-screen rendering.

Change-Id: I23580da148a4d9449f66dd5a0a1dcb2bf5cd7745
2014-05-12 03:00:03 +02:00
Caolán McNamara
2732f2b18d coverity#707784 Uninitialized scalar field
Change-Id: Ibbe836d360fad481f2828b703871c8a242767cef
2014-05-10 21:13:03 +01:00
Caolán McNamara
92da838efc coverity#1079343 Uninitialized pointer field
Change-Id: I05ec88144273c15181e9afa8f616b0ab11695f04
2014-05-10 21:13:02 +01:00
Thomas Arnhold
c327acab9e remove globally disabled warnings from source files
Change-Id: Ic7b092a24b4d1e48ca11e53b507da5c2bfdeabe8
2014-05-10 13:03:20 +02:00
Miklos Vajna
79a4d09ac2 ISO C++ forbids declaration of ‘rLanguageTag’ with no type
Change-Id: I148b3eff0fc229fec3c6415bd582d10b124e0796
2014-05-10 07:38:00 +02:00
Julien Nabet
5ec7a589be Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part8
Change-Id: Ie16923d17541e84e0d7424fffe37caf410786abf
2014-05-10 06:19:42 +02:00
Eike Rathke
1564b0fe7c added SvtLanguageTable::AddLanguageTag()
Change-Id: Ic8be508bff3767f2f8ab1146447b3fe4bffff3b3
2014-05-10 00:39:44 +02:00
Eike Rathke
0b2c8a8b2b added ResStringArray::AddItem()
Change-Id: I361cd4256c0816a46ea6e37dd9fd2680d3dba9fb
2014-05-10 00:39:43 +02:00
Thomas Arnhold
dfbcde1847 clean up
nobody uses those switches

Change-Id: Ifbd6563aae901b4f3d931422e6d4e2369aee0573
2014-05-09 22:32:55 +02:00
Thomas Arnhold
aa3548fba6 prewin.h includes windows.h
Change-Id: I221e9f704f75472234a6ce2b09930aeff6279c7a
2014-05-09 22:32:54 +02:00
Thomas Arnhold
569ff6727e update_pch: add a bunch of pch files
I had to fix some source files because of macro redefinitions and such stuff.

Small modules like basic have a great win, too:

make basic.clean && time make basic:

                with    w/o
                 pch    pch
accessibility    23s  1m59s
basctl           30s  1m42s
basic            56s  1m35s
comphelper       23s    51s
editeng          48s  2m04s
forms            40s  1m40s
unotools         19s    38s
sd             3m37s  4m33s

Change-Id: Id24cdcddbe2ff64820b42266325c25af1355558f
Reviewed-on: https://gerrit.libreoffice.org/9293
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-09 19:50:42 +00:00
Thomas Arnhold
9037e2289d remove presys.h and postsys.h
Both files are nearly identical to prewin.h and postwin.h

Change-Id: I1f45e46dfcc00043a9e2df82e0070cd1b976c4af
Reviewed-on: https://gerrit.libreoffice.org/9294
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-09 18:17:19 +00:00
Chr. Rossmanith
2c9d68ff56 move INetContentTypes::scan() to INetMIME::scanContentType()
to avoid circular dependencies between svl and tools when using
INetContentType::scan functionality for future handling of data urls in
urlobj.cxx

Change-Id: Iad13286769e8906aebf8208e4f532151ff2f3d13
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-05-09 16:01:30 +02:00
Caolán McNamara
60eff2f442 Revert font initialization foo
this reverts 081a085463

because the heights and widths of the non .ui-converted dialogs are all too low
and everything is squished in them

Change-Id: I103eda4b3d43365c02ecedb6f37b995a682b2cf9
2014-05-09 13:47:57 +01:00
Jacobo Aragunde Pérez
f6422b3dfc ooxml: Preserve shape 3d effects: top and bottom bevel
Shapes 3D effects can specify top and bottom bevels like in the
following example:

  <a:sp3d z="488950" extrusionH="63500" contourW="50800">
    <a:bevelT w="139700" h="88900" prst="cross"/>
    <a:bevelB h="88900" prst="relaxedInset"/>
  </a:sp3d>

This patch preserves the a:bevel* tags and their attributes using the
shape grab bag and modifies an existing unit test to add this check.

Change-Id: I4762111e4d2f75ba2fd3721a126aa324a28a853c
2014-05-09 14:11:38 +02:00
Jacobo Aragunde Pérez
6566c218af ooxml: Preserve shape 3d effects: z, contour and extrusion
Shapes can contain 3D effects like in the following example:

  <a:sp3d z="488950" extrusionH="63500" contourW="50800"/>

This patch preserves the a:sp3d tag and its attributes using the shape
grab bag and modifies an existing unit test to add this check.

Change-Id: Ice3cae39c71784be0f6c7f2700b07c21a5e1fb6e
2014-05-09 14:10:46 +02:00
Jacobo Aragunde Pérez
0df9ec782e oox: preserve scene3d/lightRig effects on shapes.
Shapes can contain 3D effects like in the following example:

  <a:scene3d>
    <a:camera prst="isometricLeftDown" zoom="150000"/>
    <a:lightRig rig="threePt" dir="t">
      <a:rot lat="0" lon="0" rev="4800000"/>
    </a:lightRig>
  </a:scene3d>

This patch preserves the a:lightRig tag, its attributes and the child
element a:rot using the shape grab bag. It also adds a unit test for
this case.

Change-Id: I66b6de3c2b5ef89223b10da54006e28113b8ba5f
2014-05-09 14:10:46 +02:00
Stephan Bergmann
37d764bce9 Enforce "There is no css::uno::Sequence<bool>"
While some uses of Sequence<bool> might silently work, it would be too dangerous
to accidentally pass them around to other places that correctly expect
Sequence<sal_Bool> instead, so best to rule them out completely.

Change-Id: Ia60c839218c079cc42b4310d1315d95b6f2c68fd
2014-05-09 13:14:46 +02:00
Thomas Arnhold
32be757cc3 Related fdo#78323 GtkFrame has additional padding
Comparing the three tab pages, shows that the preview field at the bottom is different:

Line: GtkBox
Line Styles and Arrow Styles: GtkFrame

The preview field is exactly 2 px smaller for the GtkFrame tab pages, compared to GtkBox tab page.

This patch fixes this. Now all tab pages look the same.

Change-Id: Ia94bda6c37fee3c8864f8351e157b2026a735361
Reviewed-on: https://gerrit.libreoffice.org/9283
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-05-09 10:17:05 +00:00
Caolán McNamara
2510690866 callcatcher: update unused code
Change-Id: I954a5dd88cb9ae9a2a36509507385e68b88f8cd5
2014-05-09 09:28:06 +01:00
Markus Mohrhard
7ffd1af722 move the renderToFile function to the helper to avoid the context
Change-Id: I5493126047179d67b2f2ed0d3d5d936ebbaf4810
2014-05-09 00:39:42 +02:00
Caolán McNamara
d6f5d4ee2c add a status bar icon to fit slide to window
Change-Id: I2c1d1fc7425b0aaad2a2445e0ac71ddc38410fdb
2014-05-08 14:48:22 +01:00
Stephan Bergmann
5a8b1b16de Remove unused jfw_setJRELocations
Change-Id: If71cc5052f7ddfbc2d69ba01aa0cd3be2a4def8e
2014-05-08 12:58:01 +02:00
Noel Grandin
ff1a7a5943 RFC: add IsValueChangedFromSaved to VCL button and listbox
Add a method
   bool IsValueChangedFromSaved()
to the various Button and Listbox classes.
Use it to simplify code like
   if ( maBoldAppFont.GetSavedValue() !=
        TriState(maBoldAppFont.IsChecked()) )
to
   if ( maBoldAppFont.IsValueChangedFromSaved() )

Change-Id: I26b291d0980237497063ee301d63a49c7d2bc227
Reviewed-on: https://gerrit.libreoffice.org/9250
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-05-08 09:19:25 +00:00
Stephan Bergmann
cc66dec89e loplugin:saloverride
Change-Id: Ib9ab6ec00c907c2f552d116d261d9bf60d89e397
2014-05-07 21:55:39 +02:00
Markus Mohrhard
67c134d4e2 avoid linking against the OpenGL libs when only using the window
This lets us avoid to link libsclo against all the OpenGL libraries and
only link against libvcl_opengl. Only code actually using the context
will need to link against the OpenGL libs.

Change-Id: Ia47f4c651702a7fb8517073cda6fb113e7e26e50
2014-05-07 21:23:04 +02:00
Markus Mohrhard
a8e66dd657 add new window that contains OpenGL context
Change-Id: I81ce3581942d03785809d728b6b54b570899bcdc
2014-05-07 21:23:03 +02:00
Tor Lillqvist
c59fce8b51 There is no touch_lo_render_windows() any more
Change-Id: I5a918a6ae4159dd561e46116f612037e194a4847
2014-05-07 13:15:40 +03:00
Stephan Bergmann
93f5d5a919 The opaque PostUserEvent IDs are actually pointers
...so declare them as such.  This avoids the recurring mistake of storing such
IDs as sal_uInt32, truncating in 64 bit environments, causing RemoveUserEvent to
potentially not remove the event, it thus firing "too late" and probably causing
a crash.

While at it, consolidate the trivially unnecessary overloads of both
Application::PostUserEvent and Window::PostUserEvent.  And in each of them, it
looks like deleting the mpLink member was missing from the failure branch.

Change-Id: Iab13afbb06e12ac15dec6a6b5b85a7e402a3c654
2014-05-07 11:49:46 +02:00
Chris Sherlock
081a085463 Move ImplInitAppFontData from Window to Application (take 2)
I have renamed ImplInitAppFontData to InitAppFontData and moved it from
Window to Application. This is because this is something that sets
*application* global variables, it just so happens it gets it from a
Window parameter. But it should be set when the application starts, so I
have moved it to Main().

This was previously reverted, but I have since located what was causing
unit tests to fail and the font dropdowns to stop loading in writer:
see commit c6d7ba5f33c3 where Application::SetSettings() was setting
pImplSVData->maGDIData.mnAppFontX to zero.

Change-Id: I5da7073b0d8541f1a71a09b0a8337d012fc4134b
2014-05-07 09:29:00 +10:00