Commit Graph

7643 Commits

Author SHA1 Message Date
79b46d5fad sal_math_Double is already a union containing a double member
Change-Id: I6e753bc0c5967ed07f162b0baa2daca4499953be
2016-01-18 19:27:35 +01:00
0646821f55 drop newly unused basebmp methods
Change-Id: Ifd9906e7288c613eb2ac6cde7ca8bc7607f349fa
2016-01-18 13:58:04 +00:00
56a35d6713 tdf#95913: Don't cache CTRL_SLIDER
Change-Id: I6af4b27f5bc2f24918d92fe8c5e430cfdfad6439
2016-01-18 14:35:07 +02:00
a9fb9929a1 drop now unused basebmp xor mode
Change-Id: If4d1a933f5ebf2154c377ef9a8596eb0962d43d3
2016-01-18 11:34:10 +00:00
08611cf8bf don't need basebmp ClipDevice or DamageTracking now
Change-Id: I8a8594084eb5f4c8521cc4b73a94da6259069516
2016-01-18 11:34:10 +00:00
de4ec0ea9f vcl: font.hxx and metric.hxx cleanup, make ctors explicit and the dtor virtual
Change-Id: Ic2cf84a07c0050fd655d1b7fb30cdf29e62f919d
Reviewed-on: https://gerrit.libreoffice.org/21575
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-18 10:57:04 +00:00
33da1e1e80 vcl: tabify font.hxx
Change-Id: Id0cff8fa258bcdd8084473b28f7719ba2806c49b
Reviewed-on: https://gerrit.libreoffice.org/21574
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-18 10:10:35 +00:00
d0054bfd21 svx: SvxXConnectionPreview::GetLineDeltaAnz -> GetLineDeltaCount
Change-Id: I1632ef3698004870a273fd85afb11c20ad4b8db3
2016-01-18 09:39:55 +01:00
aa6c54f337 loplugin:unusedfields
Change-Id: I321b594f1190cdd997b4769161e1c02d31f46213
Reviewed-on: https://gerrit.libreoffice.org/21566
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-18 08:37:10 +00:00
cb20f46895 vcl: change Font::SetName() to Font::SetFamilyName()
Change-Id: I9b7bd1ec25955981ebcb9085579cbb9fbaa802d5
Reviewed-on: https://gerrit.libreoffice.org/21560
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-18 05:24:46 +00:00
28c96fc255 vcl: rename Font::GetName to Font::GetFamilyName
Change-Id: Ie20871a3078bf875c1782b7761d60591a9c9704f
Reviewed-on: https://gerrit.libreoffice.org/21529
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-17 23:35:37 +00:00
45654a1d4d revert vcl patch series that brok Mac and Windows
revert:
9bc2f3de8672e812f3a67541c6d7069b434a7e42
 vcl: add comment about ImplFontMetric::{Get|Set}LineHeight()
26371f105bc44e04469ec03fc5bb12505e651c6b
 vcl: FontAttributes::GetSlantType() -> FontAttributes::GetItalic()
2dd0b4317372b8022efe3911b38b4fa02956d8b9
 vcl: font.hxx and metric.hxx cleanup, make ctors explicit and the dtor virtual
5ab13bf3ead3539e4ad847656da81e7eb6029652
 vcl: tabify font.hxx
f99550dae55e40e49bf9c9875053fe2abb4c71ca
 vcl: change Font::SetName() to Font::SetFamilyName()
2b297116cb6bb1061c43e5714e2609c8ee9f57d2
 vcl: rename Font::GetName to Font::GetFamilyName

Change-Id: I23f38921187d66b970ca815eb30dda4222a2da62
2016-01-16 12:20:45 -06:00
1ae5ceccb8 BASIC : Remove useless methods in StarBasic
Change-Id: I9e8ce92b967ee9c9485b7af15280f6a212ff599d
Reviewed-on: https://gerrit.libreoffice.org/21498
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-16 17:06:26 +00:00
2dd0b43173 vcl: font.hxx and metric.hxx cleanup, make ctors explicit and the dtor virtual
Change-Id: Iab0160bdf664689404ff6fd093b51c0b4d2c4f10
Reviewed-on: https://gerrit.libreoffice.org/21512
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-16 16:14:01 +00:00
5ab13bf3ea vcl: tabify font.hxx
Change-Id: Iffe94aa2ff007d7361af7166f489ebfdb7593fc1
Reviewed-on: https://gerrit.libreoffice.org/21511
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-16 16:13:32 +00:00
f99550dae5 vcl: change Font::SetName() to Font::SetFamilyName()
Change-Id: I54a4036544c680c4a49607677af776aa7a433fbc
Reviewed-on: https://gerrit.libreoffice.org/21510
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-16 16:12:14 +00:00
2b297116cb vcl: rename Font::GetName to Font::GetFamilyName
Change-Id: I83927e0992dfe0a2a79d139818a9f45d3761aae5
Reviewed-on: https://gerrit.libreoffice.org/21509
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-16 16:11:28 +00:00
bb3fc6cda5 vcl: created accessors and mutators for font classes
Font accessors:
- GetFamily()
- GetPitch()
- GetWidthType()
- GetWeight()
- GetItalic()
- GetName() <--- shouldn't that be GetFamilyName()?!?
- GetStyleName()

Font mutators did not need to be added.

Font unit tests are testing:
- Setting and getting FontFamily private member
- Setting and getting FontPitch private member
- Setting and getting FontWidth private member
- Setting and getting FontWeight private member
- Setting and getting FontItalic private member
- Setting and getting the family name and style

ImplFont accessors:
- GetFamilyNoAsk()
- GetPitchNoAsk()
- GetWidthTypeNoAsk()
- GetWeightNoAsk()
- GetItalicNoAsk()
- GetFamilyName()
- GetStyleName()

(These "NoAsk" functions are necessary because the default getters call on a function
that checks the configuration for default values, something that is not wanted in all
cases).

Change-Id: Icfbc8b4e5253d55a80892df050b0803dfc7d7c9f
Reviewed-on: https://gerrit.libreoffice.org/21501
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-16 05:59:52 +00:00
cb890ae43b oox: export Math objects to PPTX files
These hit the assert in lcl_StoreOwnAsOOXML now so better implement some
export.

Change-Id: I10c005a547e8a85f2a82198a49f9a03fc46a61d7
2016-01-15 16:45:45 +01:00
e15a997b15 loplugin:unusedmethods unused return value in include/tools
Change-Id: I77a6a46ca20cb41ed73050185fb2064a1bbf2009
Reviewed-on: https://gerrit.libreoffice.org/21485
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-15 12:39:46 +00:00
9694a0edfe basic: coverity#1348466 checked return
Kind of unnecessary but let's hope it shuts up coverity.

Change-Id: I4903c9df788ce5fb9648c5fd68627ff21362828f
2016-01-15 13:03:09 +01:00
80b55dcfc9 starmath: only use WordProcessingML elements in DOCX files
Change-Id: I1b0f6d67bd0db0796756fd920ab92303a7ee7d79
2016-01-15 13:03:08 +01:00
3e0bc5c7fe oox: move enum DocumentType out of drawingml.hxx
... which has nasty dependencies.

Change-Id: I84ba0302142ade6e15291b782453dbe3bac753dd
2016-01-15 13:03:08 +01:00
24ada65660 loplugin:unusedmethods unused return value in include/unotools
Change-Id: I3b2281dc713bff92eb3d80fddef04a8a39838aa8
Reviewed-on: https://gerrit.libreoffice.org/21484
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-15 11:51:16 +00:00
9a790ca414 vcl: add symbol and charset accessors and mutators to Font
Rules for the vcl::Font class for setting character set and
the symbol flag:

If the characterset changes to anything other than
RTL_TEXTENCODING_SYMBOL then the symbol flag should be off.

If the characterset changes to RTL_TEXTENCODING_SYMBOL then
the symbol flag should be on.

If the symbol flag is set to false and the characterset is
already RTL_TEXTENCODING_SYMBOL then set the characterset to
RTL_TEXTENCODING_DONTKNOW and set the symbol flag to false.
However, if we are setting the symbol flag from false to
false (i.e. we know the characterset) then we can keep the
characterset as it is.

Unit test written in this commit to test this is working.

Change-Id: Iced44659ab88ff66b711c560cb68bd4681ecb537
2016-01-15 18:39:31 +11:00
ed373ea7ef loplugin:unusedmethods unused return value in include/xmloff
Change-Id: I6615a467152a50e9c65f04fd0d6c8cc128517bdb
2016-01-15 09:36:42 +02:00
1859acbc7c svx: remove now unused SdrModel::isTiledRendering()
Change-Id: I8d3c6b1de2db57e39678a7e57de6e015c72719ec
2016-01-15 07:44:58 +01:00
a669faa1fa vcl: allow doxygen to see boost::intrusive_ptr
We are using boost::intrusive_ptr for a number of classes,
unfortunately by default we cannot see this in the Doxygen
collaboration diagrams.

However, we can work around this problem by making a dummy
namespace which we include in a header that is scanned by
Doxygen, but never included in LibreOffice. To be sure of this,
however, I have put #ifdef DOXYGEN_ONLY guards around the file
and defined this in the Doxygen config file.

Change-Id: I18d6956518a49e6006b64e2147023ec8266c8f5c
2016-01-15 06:26:41 +11:00
87be4885d3 -Werror=misleading-indentation (GCC 6)
Change-Id: Ic28a87df35ef3087071f87c4bc74c4c274169b51
2016-01-14 15:02:05 +01:00
03631195ff -Werror=misleading-indentation (GCC 6)
Change-Id: I83beda380dc35544b9bc6fd5b1c7359546f8c8c5
2016-01-14 15:01:44 +01:00
db3e4e560f -Werror=misleading-indentation (GCC 6)
Change-Id: I07f653626dd4519d86dba735be9fec3e4c7e91e6
2016-01-14 15:01:17 +01:00
d8551a79d2 svx: loplugin:override
Change-Id: I532525fa12af2a0afbc1277b9a918c4d563f3b4f
2016-01-14 14:48:44 +01:00
7b5d20983d editeng: handle SdrModel::isTiledSearching()
Given that the edit/outliner views can come and go, avoid the lifecycle
problems with just passing a pointer to the sdr model to editeng, and
then it'll always have the up to date "are we searching" information.

editeng can't depend on svx, so provide an interface class SdrModel can
implement.

Change-Id: I3b98011593b00ac0fab05b6b9c591dd20d94c579
2016-01-14 14:45:09 +01:00
b9565ef0a7 sd tiled rendering: it's pointless to send selection changes during search all
But they do cause annoying flashing.

Change-Id: Ic313a15429c5db98c5660a5274aa49e95dd217e5
2016-01-14 14:45:09 +01:00
d99fc6f2ad fix the MSVC 2013 --enable-lto build
... by sacrificing the appropriate number of chickens to the template
dllexport gods.

Change-Id: I27fb6a1f0a8a32c9bdc67574b3a2f3ec9f27b00f
Reviewed-on: https://gerrit.libreoffice.org/21442
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-01-14 12:52:41 +00:00
43488d9de7 vcl: FontMetric now has ImplFontMetricPtr objects
ImplFontMetricPtr is a typedef to an intrusive_ptr<ImplFontMetric>.
I have ditched the manual reference counting to use Boost's smart
pointer.

Change-Id: I5e93f45d19d43c8b7253f4342c1b9ef4a4301527
2016-01-14 11:46:28 +11:00
d406d7c3a6 resolve TODO, remove SVVERB_SHOW
Change-Id: I10148330f1a356dbd423af98267c25d7128c3a86
2016-01-13 23:42:33 +01:00
5cb1fe674f vcl: ImpFontMetric and FontMetric no longer friends with OutputDevice
Exposng your private members as public is bad, but its also
unacceptable to allow friends to access your private members. It's
not the done thing in civilized C++ society.

Change-Id: Id8f811f0e775afde26c6119b274f37908731507c
2016-01-14 09:23:02 +11:00
1ccece2f32 vcl: Create mutator for bullet offset attribute in FontMetric
Mutator created for bullet offset attribute in FontMetric.

See commit description in 8bfccd3a71d911b6d ("vcl: Create accessor
and mutator for font scaling in FontMetric") for reasoning behind
patch.

Unit tests
- check to ensure that can get and set bullet offset attribute
- check equality operator on FontMetric after setting bullet offset
  attribute

Change-Id: I87a76982a8b3ed697664299cb340fa35fb514c0e
2016-01-14 09:11:20 +11:00
71d5ffba44 vcl: Create mutator for slant attribute in FontMetric
Mutator created for slant attribute in FontMetric.

See commit description in 8bfccd3a71d911b6d ("vcl: Create accessor
and mutator for font scaling in FontMetric") for reasoning behind
patch.

Unit tests
- check to ensure that can get and set slant attribute
- check equality operator on FontMetric after setting slant attribute

Change-Id: I5490a40dba4c86386d59a42f2d04303b3fc4d536
2016-01-14 08:51:33 +11:00
a5bc28e073 vcl: Create mutator for line height attribute in FontMetric
Mutator created for line height in attribute FontMetric.

See commit description in 8bfccd3a71d911b6d ("vcl: Create accessor
and mutator for font scaling in FontMetric") for reasoning behind
patch.

Unit tests
- check to ensure that can get and set line height attribute
- check equality operator on FontMetric after setting line height
  attribute

Change-Id: I86dff217fa24850b5f9d04a17ddda464dfb0156a
2016-01-14 08:15:40 +11:00
f8ffe2ff7a vcl: Create accessor and mutator for ascent and descent in FontMetric
Accessor and mutator created for ascent and descent spacing in
FontMetric.

See commit description in 8bfccd3a71d911b6d ("vcl: Create accessor
and mutator for font scaling in FontMetric") for reasoning behind
patch.

Unit tests
- check to ensure that can set font ascent and descent spacing
- check equality operator on FontMetric after setting both ascent
  and descent font spacing

Change-Id: I714363b14bdc61ddfa37a619fe4b03f4e4e96f7a
Reviewed-on: https://gerrit.libreoffice.org/21458
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-13 20:52:40 +00:00
0b5a5210b1 cppuhelper: remove invalid doxygen markup
Change-Id: I97e8757c1f5006bb1320b4a65da34745cc563e58
Reviewed-on: https://gerrit.libreoffice.org/21456
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-13 20:05:42 +00:00
08bbdaa2f9 vcl: Create accessor and mutator for int and ext leading in FontMetric
Accessor and mutator created for external and internal leading space in
FontMetric.

See commit description in 8bfccd3a71d911b6d ("vcl: Create accessor
and mutator for font scaling in FontMetric") for reasoning behind
patch.

Unit tests
- check to ensure that can set external and leading space
- check equality operator on FontMetric after setting both external
  and internal leading space
- enhanced tests to also check the inequality operator

Change-Id: I973970dd0b0631c5eca3e89039dce57ac3a3eb63
Reviewed-on: https://gerrit.libreoffice.org/21454
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-13 19:50:18 +00:00
e3746c6692 vcl: Create accessor and mutator for builtin font flag in FontMetric
Accessor and mutator created for builtin font flag, removed the
existing bit field.

See commit description in 8bfccd3a71d911b6d ("vcl: Create accessor
and mutator for font scaling in FontMetric") for reasoning behind
patch.

Unit tests
- check to ensure that can set builtin font flag
- check equality operator on FontMetric after setting builtin font
  flag

Change-Id: Iac3f4270f86d10f9dcd0bb6e3951c0e983a4f22f
Reviewed-on: https://gerrit.libreoffice.org/21414
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-13 17:19:57 +00:00
7984e90d52 remove unused o3tl/ptr_container.hxx
Change-Id: I8132958b979add35bdd7aea52ce8788f3cdcbe51
2016-01-13 17:53:14 +01:00
84800b5e65 -Werror=misleading-indentation (GCC 6)
Change-Id: I83e38c017600946e4055a5b8ada87a0f64e83222
2016-01-13 17:21:35 +01:00
5fdb9cd64c This stuff is private to vcl
Change-Id: I623da89ea390a07bd6a3236b5c099be094a7acde
2016-01-13 15:07:55 +02:00
139c2e8cbd loplugin:unusedmethods unused return value in include/svx
Change-Id: I9a5e937905fd71ecbbf9cb215ff6cc2b7defc6f3
2016-01-13 12:16:23 +02:00
6cbf151fa9 loplugin:unusedmethods unused return value in include/svtools
Change-Id: Ibc83f032bb703559cc643933e53e8670bd6560b3
2016-01-13 12:16:23 +02:00