Commit Graph

1165 Commits

Author SHA1 Message Date
31af61ea09 Fraction: Revert "fdo#81356: convert Fraction to boost::rational<long> - wip"
This reverts commit 47a2d7642d249d70b5da0c330a73f3a0032e4bba.

Conflicts:

	cui/source/tabpages/transfrm.cxx
	svx/source/svdraw/svdedtv1.cxx
	svx/source/svdraw/svdibrow.cxx
	sw/source/filter/ww1/w1filter.cxx
	tools/source/generic/rational.cxx

Change-Id: I4849916f5f277a4afef0e279b0135c76b36b9d15
2014-10-23 18:34:39 +02:00
858c2a2977 Fraction: Revert "fdo#84854 it seems long is not enough on 32 bit"
This reverts commit 582ef22d3e8e30ffd58f092d37ffda30bd07bd9e.

Conflicts:

	svx/source/svdraw/svdedtv1.cxx
	svx/source/svdraw/svdibrow.cxx
	sw/source/filter/ww1/w1filter.cxx

Change-Id: I80abc7abdeddc267eaabc9f8ab49611bb3f8ae83
2014-10-23 18:34:34 +02:00
582ef22d3e fdo#84854 it seems long is not enough on 32 bit
Fraction used BigInt internally for computations, rational does nothing
like that.

Change-Id: I3e9b25074f979bc291208f7c6362c3c40eb77ff5
2014-10-16 17:44:44 +02:00
f6d61562d4 vcl: Make ImplFontCharMap a pImpl and move functions to FontCharMap
To do this, I've made FontCharMap a friend class for ImplFontCharMap,
and have moved the functions directly into FontCharMap. In this patch,
I am attempting to stop the direct use of ImplFontCharMap by anything
other than FontCharMap. However, FontCharMap itself requires a
refcounter, so we will use FontCharMapPtr to access the font character
map.

Change-Id: I509b990a8cbd911c5cc1572c7d24fc5348ca06d9
Reviewed-on: https://gerrit.libreoffice.org/11823
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-10-13 09:19:04 +00:00
47a2d7642d fdo#81356: convert Fraction to boost::rational<long> - wip
* Added rational util functions used by Fraction class not
  available in the boost::rational class.
* Replaced usage of Fraction by boost::rational<long>
* Removed code that relies on:
  1. fraction.IsValid() -- rational only allow valid values, ie
     denominator() != 0
  2. rational.denominator() == 0 -- always false
  3. rational.denominator() < 0 -- always false but implementation
     detail: http://www.boost.org/doc/libs/release/libs/rational/rational.html#Internal%20representation
* Simplified code that relies on:
  1. rational.denominator() != 0 -- always true
* BUGS EXIST because Fraction allows the creation of invalid values but
  boost::rational throws the exception boost::bad_rational

Change-Id: I84970a4956afb3f91ac0c8f726547466319420f9
Reviewed-on: https://gerrit.libreoffice.org/11551
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2014-10-09 11:33:33 +00:00
fc04f76336 fdo#82577: Handle Time
Put the TOOLS Time class in the tools namespace. Avoids clash with the X11
Time typedef.

Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866
Reviewed-on: https://gerrit.libreoffice.org/11684
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-01 07:34:23 +00:00
0ecf6afbd1 loplugin: cstylecast
Change-Id: Iea517d2287bded4a702c73dfdd1f182023425d67
2014-09-29 12:50:35 +02:00
4e26b91568 remove unnecessary casts in misc calls to SvStream.Write*
left over from our conversion of the SvStream output operators
to more specific methods

Change-Id: Ib80032e8626f5476a89b958f590441994594f4e4
2014-09-26 15:27:18 +02:00
5cefde06ea remove unnecessary casts in calls to SvStream.WriteUInt32
left over from our conversion of the SvStream output operators
to more specific methods

Change-Id: I1d848f19f82783e6eabf2da37dbde78fe36ea1e0
2014-09-26 15:27:17 +02:00
04fd62096f remove unnecessary casts in calls to SvStream.WriteInt32
left over from our conversion of the SvStream output operators
to more specific methods

Change-Id: I0c0172519479be0535a447e41a592fbf782751bd
2014-09-26 15:27:17 +02:00
d46b16e1e4 remove unnecessary casts's
left over from our conversion of the SvStream output operators
to more specific methods

Change-Id: I63f18be8e940098c2acbbc73ee49ede3a949fcb2
2014-09-26 15:25:40 +02:00
23e1fc277d loplugin: cstylecast, update PTR_CAST macro to use static_cast
I introduce a template method into the PTR_CAST machinery
to maintain constness.
There is now a FIXME in sd/../docshell.cxx because I needed
to use a dynamic_cast there to work around the games it appears
to be playing with OLE in-place activation.

Signed-off-by: Stephan Bergmann <sbergman@redhat.com>,
dropping the GCC-extension, unnecessary use of typeof from tools/rtti.hxx

Change-Id: Iba5ace1aa27e02b34fcc91af1e658c43371afd03
2014-09-23 17:27:47 +02:00
827c46e7d7 fdo#82577: Handle Window
Put the VCL Window class in the vcl namespace. Avoids clash with the X11
Window typedef.

Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-23 14:11:39 +03:00
60e78fbb80 fdo#82577: Handle Font
Put the VCL Font class in the vcl namespace. Avoids clash with the X11
Font typedef.

Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
2014-09-18 08:54:37 +02:00
636dd4aba3 add Kven Finnish [fkv-NO] to language list, fdo#83332
Change-Id: I3faa39ebc32e909bd2e7eeee6ae67c6f3148fb7c
2014-09-17 18:45:40 +02:00
bfd2e82881 Resolves: fdo#82259 more fonts that lie or have no os/2 table
Seems to be that the default mac fonts are way messy than the MS or Linux ones
tend to me

Change-Id: Ia0ed6f9fcc650bea9466c4127f6faf7adba72d44
2014-09-13 14:20:23 +01:00
7a70bbb002 USCRIPT_LAO->USCRIPT_MALAYALAM
Change-Id: I5ae275532ccb3e77acd2422f1d6b90078fe95a9e
2014-09-13 12:03:52 +01:00
6ceff3f7de Related: fdo#82259 GungSeo has no OS/2 table
Change-Id: Idf2431927d8f501f87301d01a7bb884f1445125f
2014-09-13 10:19:05 +01:00
aa9abb373e do HardCodedScriptName before getting Font Capabilities
Change-Id: I3f3f14b3b24abbbdb40f8eb6655d42b12d920999
2014-09-13 10:19:05 +01:00
92f4c7418f Related: fdo#82259 BiauKai makes some crazy claims
Change-Id: I002dd4834e0813b81548d6f275e261b37859f646
2014-09-12 17:06:06 +01:00
e0be487afd Related: fdo#82259 various "* MN" fonts incorrectly claim to support TAMIL
Change-Id: Ie1f21052ff09fcf243a3cc0839cf7118efa09c68
2014-09-12 14:44:07 +01:00
cee813ac6e fdo#69162 avoid crashing on Accellerator in poorly initialized context
Change-Id: If3446ae33f2c2e737acf56bb523519e7b9d9935e
2014-09-05 12:44:41 +02:00
b6e581aec7 fdo#82259 Hardcode script for "GB18030 Bitmap"
Change-Id: I3b3ad955f1793197e970c837ff53aa85a74b8cfb
Reviewed-on: https://gerrit.libreoffice.org/11213
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-09-02 16:00:16 -05:00
f61e453f84 the DUMMY_CHART_FACTORY variable is not the only indicator for OpenGl charts
Change-Id: Idab33c8611526dc4749b4dbe4fe84e68138b4f73
2014-08-29 17:40:35 +02:00
5d622c55ef cache the call to getenv
Change-Id: I13095b13694aa092e3d5f542b5be12e703eb4590
2014-08-29 17:40:35 +02:00
9991b50ccc Make opengl chart window always active
Fortunately there is a special ole object group with
the MS_EMBED_ACTIVATEWHENVISIBLE flag which define this
behaviour.
Problem is that both Aspect and EmbedMisc are MS specific
enums so we can't use them directly for non-MS objects. But we
can handle opengl charts the same as this ole object group.

Change-Id: I49abeffce319cbb775709a72ba198a1f76b65374
2014-08-29 17:40:27 +02:00
6e4f6ec445 Add a method to check whether an XEmbeddedObject is a chart
Change-Id: I6f860b9f1bce200c5366df0a32650705cf429a80
2014-08-29 17:40:26 +02:00
69638beaba Related: fdo#82259 possible solution to 'GB18030 Bitmap' detected as Japanese
Change-Id: Ibcf9c02c341aecc747b8b5a1ee347f7ded173e27
2014-08-26 17:00:23 +01:00
f6c0803e99 itemdel.[ch]xx is only used in sfx2
Change-Id: I240f15f87e27ba8a52bab244f8c784d527bff179
2014-08-26 13:34:04 +02:00
30ae83c268 fdo#82577: Handle KeyCode
Put the VCL KeyCode class in the vcl namespace. Avoids clash with the X11
KeyCode typedef.

Change-Id: I624c9d937f7c5f5986d313b6c5f060bd8bb7e028
2014-08-23 22:33:30 +03:00
d21d5a7261 drop unnecessary shl.hxx includes
Change-Id: Ieb984987c4a4f888a563377e0500444b12f43506
2014-08-18 12:59:49 +01:00
7b61f9f09d use of STR_ARR_SVT_LANGUAGE_TABLE in wizards is gone
since

commit 65e104060b2bd46259f0307263aa3d8eba4c0ace
Author: Xisco Fauli <anistenis@gmail.com>
Date:   Sun Oct 21 20:35:05 2012 +0200
    pyletter: remove java letter wizard

Change-Id: I77065cd277233b78b90c23a6545854a83cd17b16
2014-08-15 09:09:34 +01:00
56dc7aecc3 Related: fdo#82259 not all STIX are symbol fonts
The new "STIX" and "STIX Math" are regular fonts, as well as the old
"STIXGeneral", so narrow the match a bit.

Change-Id: I82341c3e9e5dd4e0323bf76096cba8890a82f0c7
2014-08-12 19:29:43 +03:00
198a775ebc Related: fdo#82259 Show same preview for both Symbol variants
Change-Id: Iafabbe5068a1817b5be717018536e0d31117c434
2014-08-12 15:53:21 +01:00
92f3e68cd1 Related: fdo#82259 esint10 can't render its name either
Change-Id: Idcb881613900001f237cf343e7bc485c170e4385
2014-08-12 15:53:20 +01:00
662af47c3c Related: fdo#82259 OpenSymbol doesn't have 0x2706 or 0x2704 so no preview
Change-Id: I2164cb2c37c7b13759e47561002024fd2bb577f9
2014-08-12 14:57:14 +01:00
16076f1203 Resolves: fdo#82259 use same symbol strategy on all platforms
Change-Id: Ia4f0a36c8a95849b7c8551b930873e912b673537
2014-08-12 14:42:26 +01:00
b56bb5dce9 Related: fdo#82259 all the STIX fonts are really for symbols
Change-Id: Id032f1b643199a57c6fc08ccf580a54ff2370861
2014-08-12 14:40:48 +01:00
25e81910d1 Related: fdo#82259 list Apple Color Emoji as a symbol font.
Note that this is a blind fix, as I don’t have an OS X machine.

Change-Id: I43a98fbbee06117b914eae332d48b2793a266bce
Reviewed-on: https://gerrit.libreoffice.org/10812
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-08-12 08:35:33 -05:00
212f745c29 Related: fdo#82259 stmary can render its own name, but unreadably
Change-Id: Iedff28d1290efb38eb68f83757a0787d52e28859
2014-08-11 13:13:12 +01:00
94753833b9 Related: fdo#82259 add Armenian preview text
Change-Id: I3698b5cbf8c39e618faaae1321eaa4442f1b2827
2014-08-11 12:47:04 +01:00
d005acae3a Resolves: #i125386# secured user request and changed some bools to bitfield
(cherry picked from commit 5e3cbe056c19bea5018dbf1fd4b2bc8f8b030ff3)

Conflicts:
	comphelper/inc/comphelper/embeddedobjectcontainer.hxx
	comphelper/source/container/embeddedobjectcontainer.cxx
	sfx2/source/appl/linkmgr2.cxx
	svtools/source/misc/embedhlp.cxx

Change-Id: I7e9b20a87ca6afe8cb91c577860a6c6b72368ee9
2014-08-09 14:13:08 +01:00
f2940a4bff rename SfxItemDesruptor -> SfxItemDisruptor
Change-Id: I7cc9fa3ab6aebc541df4708e29b530f8021b14ba
2014-07-23 13:26:17 +02:00
6296c64fb0 Enable copy-paste of charts/ole as bitmaps.
Adds FORMAT_BITMAP to OLE Objects - to allow charts
to be pasted into non-LibreOffice applications.
Should be safe for all OLE Objects, though.

Change-Id: If18768b82d4bb4415b3a8e00828b2eb5c31eeb15
2014-07-22 22:08:16 +05:30
482f97926e use SimpleReferenceObject in svtools module
to replace hand-rolled version

Change-Id: I7a1048ff1ea335c3934fe7e91a09489a4d7aeb96
2014-07-08 15:16:47 +02:00
c414389e87 Avoid possible memory leaks in case of exceptions
Change-Id: I46d49b515f5212a34612e80a82a3330a041b956c
2014-07-05 22:49:42 +09:00
1d38cb3655 fdo#71076, fdo#71767: Preserve number formats when charts are copied.
Change-Id: If5ae8852152012483237e7602e56a0c46ea8748a
2014-06-19 14:46:56 -04:00
54f52a53ae coverity#1210044 Uncaught exception
Change-Id: I3837f316a4b73eb508bfd4fca97fa741080df8c0
2014-06-17 10:58:02 +01:00
30069114fe loplugin:staticcall
Change-Id: If7b285a2214bc878e8464a986538d0445078fcb3
2014-06-13 17:54:34 +02:00
b247e5f77d add LANGUAGE_USER_FRENCH_TOGO 0x8C0C [fr-TG] French (Togo), fdo#79353
Change-Id: Id1e127a3652d4bef280327c2a62d95c17c012656
2014-06-02 20:34:03 +02:00