Commit Graph

350104 Commits

Author SHA1 Message Date
Tor Lillqvist
4973486e64 Hah
Change-Id: Iaf3ddb15268f1a3f10b78f1c2bd12aafc329a359
2014-04-07 08:35:14 +03:00
Tor Lillqvist
828263c759 Huh?
Change-Id: I71527cd33d7d2bcef10dd7e7c9c7c661acb4875e
2014-04-07 07:59:13 +03:00
Chris Sherlock
9413750057 Change newly introduced Clip* functions to ClipAndDraw
A number of new clipping functions have been introduced, but to make
it more clear as to their purpose they have been renamed. They are:

+ ClipGradientToBounds -> ClipAndDrawGradientToBounds
+ ClipGradient -> ClipAndDrawGradient
+ XORClipGradient -> XORClipAndDrawGradient
+ ClipGradientMetafile -> ClipAndDrawGradientMetafile

Change-Id: I2448a62d0473501a8d2613e685ee909cb6df7708
Reviewed-on: https://gerrit.libreoffice.org/8878
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-04-06 23:49:39 -05:00
Chris Sherlock
8659d189ec fdo#74702 Refactor gradient clipping functions
There are two gradient clipping functions: one uses a normal intersection
to get the symmetric difference to clip the gradient - this is used by
OS X and when printing. The other uses XOR clipping, which is an elegant
trick to implement complex clipping on graphics systems that have minimal
capabilities.
cf. http://www.openoffice.org/marketing/ooocon2008/programme/wednesday_1401.pdf

Change-Id: Iab16258c8e758c41a29337525927ba780329e887
Reviewed-on: https://gerrit.libreoffice.org/8873
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-04-06 22:08:41 -05:00
Tor Lillqvist
3b6dba357f WaE: overriding virtual function declaration not marked 'override'
Change-Id: I6d38c9b389ce2c5d196e372fd6ae5ad7ac0a03af
2014-04-06 23:40:56 +03:00
Tor Lillqvist
0db3691954 WaE: passing OString by value, rather pass by reference
Change-Id: I41a318b8376ae3e68701ffe6ebc745bdbec62dc8
2014-04-06 23:39:50 +03:00
Matteo Casalin
dab7865343 OUString: constify and avoid concatenated appends
Change-Id: I1bef9af92107d4cb4ac869dd0f6cbd2853302330
2014-04-06 22:19:55 +02:00
Matteo Casalin
7493a4ad64 sal_uInt16 to sal_uInt32
Change-Id: I4cd153b38a02d7b1d58877134857dd9825b6ace5
2014-04-06 22:19:55 +02:00
Matteo Casalin
487099327b Avoid concatenated OUString appends
Change-Id: Ib1daffc252bf389c04cad8ae84f14c9b99c852b9
2014-04-06 22:19:55 +02:00
Matteo Casalin
96fb465431 Reduce scope
Change-Id: Ib49437559d08f41a111dc6348939a1b82564f1a5
2014-04-06 22:19:54 +02:00
Matteo Casalin
2644ccd1f4 Use proper types and constify
Change-Id: Iff4783bbe386fdc0aff2a2b722d3390277e5fdea
2014-04-06 22:19:54 +02:00
Matteo Casalin
52154a7f16 Use index to get consecutive OUString tokens
Change-Id: I7dc854444d6176f99fd9b79445e643a2bb464020
2014-04-06 22:19:54 +02:00
Matteo Casalin
699f5229c7 OUString: constify, remove temporaries and unneeded casts
Change-Id: Icd2a14798dddad5810e63f4c8f77aee5cdf99ceb
2014-04-06 22:19:54 +02:00
Matteo Casalin
352bb1fe2c Constify some variables
Change-Id: Ibc513d125ce792170d9310359539ed4336b6dab6
2014-04-06 22:12:50 +02:00
Matteo Casalin
4fb4e733f3 Constify OUString
Change-Id: I610fbdc860e04ae486b428432e8fb4dd62464557
2014-04-06 22:12:50 +02:00
Matteo Casalin
33a9039df8 Simplify loop
Change-Id: Ie6ccc6b7b77fe4d169e39eb1235042dc3c864e92
2014-04-06 22:12:50 +02:00
Matteo Casalin
5709b98cc2 It does not make sense to iterate on a list with a constant index
Change-Id: If0d12158c23df10d003d9f7ad5bb2bd003b75aa3
2014-04-06 22:12:50 +02:00
Matteo Casalin
cb2ccc4321 sal_uInt16 to sal_Int32/size_t + some constification
Change-Id: I4026e9d0b6e9e6e593298c0564bb5d2c6b028f6c
2014-04-06 22:12:49 +02:00
Matteo Casalin
59c13c04cc long to sal_Int32 as index for Sequence
Change-Id: I111fe8aaf9b2ce3b6276c51195911520961602e4
2014-04-06 22:12:49 +02:00
Matteo Casalin
c41b573daa Avoid concatenated appends
Change-Id: I6234eb875ce3042d25e33ca33c1973770a422977
2014-04-06 22:12:49 +02:00
Matteo Casalin
15f6acbab9 Do not cast to intermediate sal_uInt16 + constify
Change-Id: Ie7145eddf79069fc52e14f0276596228fd12333e
2014-04-06 22:12:48 +02:00
Matteo Casalin
b73b824b83 sal_uInt16 to int
Change-Id: Ic5c2c85eb264f15cd6c73ed4fa15279a14f308d1
2014-04-06 22:12:48 +02:00
Matteo Casalin
8f77b01856 Avoid magic number for array size
Change-Id: I79267391286855859d2a7d6ccff1500dc096a023
2014-04-06 22:12:48 +02:00
Matteo Casalin
a0e0d5f9cb OUString: remove temporaries and unneeded conversions
Change-Id: I99d876bb37b3ac781a0686fe27c6a9c52aaf26b5
2014-04-06 22:12:48 +02:00
Matteo Casalin
060d2e0e99 Remove redundant loop condition, to break is enough
Change-Id: Ia02e8483437fd7bd4db6fd9d74d11f6eb10952bc
2014-04-06 22:12:47 +02:00
Matteo Casalin
de13902e51 sal_uInt16 to size_t/sal_Int32
Change-Id: I59f0100b96208ced0a372dee2aa405bdb3cbccd9
2014-04-06 22:12:45 +02:00
Tomaž Vajngerl
9dc6182766 html: "using namespace css" missing
Change-Id: I06d0b77b374be004bf417480e5cc59c73e21bf60
2014-04-06 22:02:13 +02:00
Tomaž Vajngerl
566c8c4de3 sw html: cleanup htmlatr
Change-Id: I502c63995b053be9535886c5565dc9d07e14bc57
2014-04-06 22:02:13 +02:00
Tomaž Vajngerl
af04f766b0 sw html: cleanup wrthtml
Change-Id: I807a2b5338c56d90a27305c113ade25baecb01de
2014-04-06 22:02:12 +02:00
Tomaž Vajngerl
c30cf5a3d7 sw html: use HtmlWriter in htmlatr in some places
Change-Id: I98369729df0298d05a683cdfc1aa1584187206a7
2014-04-06 22:02:12 +02:00
Tomaž Vajngerl
58f8e286e9 Add HtmlWriterHelper to svtools.
Change-Id: I4d96402cc0fa86d83fe0ade314b84bff86d7db97
2014-04-06 22:02:12 +02:00
Tomaž Vajngerl
c7b69624ee Introduce HtmlWriter unit tests.
Change-Id: Icb39dde433124d444c48761e074f6b839a043d4e
2014-04-06 22:02:11 +02:00
Tomaž Vajngerl
2480ded80e HtmlWriter: add prettyPrint option, instance variables
Change-Id: I6a29e91cc2f328ccbd01b617b39dc9275332d1f0
2014-04-06 22:02:11 +02:00
Tomaž Vajngerl
ee0b9f8df6 svtools: make HTMLOutFuncs::Out_AsciiTag clearer.
Change-Id: I89d72383a50707aa8cb958eaea916e8070cfcd82
2014-04-06 22:02:10 +02:00
Tomaž Vajngerl
96c548a7c6 svtools: HtmlWriter - for writing HTML structure to a stream
HtmlWriter is used to write the structure of a HTML document to
a stream. The goal is to abstract the messy construction of
strings when writing attributes of a html element and other
HTML specifics needed when structuring a HTML document.

Change-Id: Ibdf42914e43ef02f16a43e4230575ed7340e68d8
2014-04-06 22:02:10 +02:00
Tomaž Vajngerl
82a3eb625a sw html: convert stringbuffer chaining (append) to use + operator
Change-Id: Ie828b7c290ad4b61c23bd74676c43cdff0afd257
2014-04-06 22:02:10 +02:00
Tomaž Vajngerl
4b22b7fbba sw html: also change commented constants in css1kywd + translate
Change-Id: Ief05af37729929bb51a72ee17b941a7370c52728
2014-04-06 22:02:09 +02:00
Tomaž Vajngerl
4487e268ff sw html: css1atr - put local stuff in anonymous namespace
Change-Id: Iea0e0a82ce8726f5a51de37d1c20e9cfa2f751d9
2014-04-06 22:02:09 +02:00
Tomaž Vajngerl
3841e3a13f sw html: get rid of macro - use const sal_Char* constant instead
Change-Id: I2b3b264d40cd61507e0b3a1957f89f4f681c6f61
2014-04-06 22:02:08 +02:00
Tomaž Vajngerl
7f36ef95c0 sw html: split htmldraw.cxx to reader and writer parts
Change-Id: Id9c9f1098a88bc31282863a5713c38850d03e62b
2014-04-06 22:02:08 +02:00
Tomaž Vajngerl
e340350d69 sw html: cleanup wrthtml.hxx
Change-Id: Id5108ce1e086e3c45b00742aa12a4bc6d40f3ee4
2014-04-06 22:02:07 +02:00
Tomaž Vajngerl
d8075d1588 sw html: use scoped_ptr in htmlatr
Change-Id: I54eb81b3dff76881fc6ed79aca1df6f9687083f8
2014-04-06 22:02:07 +02:00
Tomaž Vajngerl
2039fbdd72 sw html: split htmlfly to writer and class definition part
Change-Id: I2e0185827fa1edce607a45b87cf3a25438276c03
2014-04-06 22:02:07 +02:00
Tomaž Vajngerl
08c28193ca sw html: split htmlnum to reader, writer and common part
Change-Id: Id6c733f6bf752f06e81b3924418f11babefc3c66
2014-04-06 22:02:06 +02:00
Joren De Cuyper
7007e3952d fdo#72276 introduce .uno:ZoomMenu so we can split the menu entries/labels
Currently .uno:zoom is used for the topmenu and submenu.
Deleting the '...' behind the text will delete it for both,
which is not correct. Therefore I introduce .uno:ZoomMenu for the
topmenu.

Change-Id: I75bcae572be0cca7216c34d81e0b99f4c59c0aab
Reviewed-on: https://gerrit.libreoffice.org/8503
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
2014-04-06 13:32:31 -05:00
Norbert Thiebaud
0586bdc748 coverity#704111: Unchecked return value
Change-Id: Ida3a1b2804f655b39378f79e10872dcac4e70cf1
2014-04-06 13:11:30 -05:00
Norbert Thiebaud
302bd1c4ec coverity#441207: Logicaly dead code
Change-Id: Ia198d64a95d86a1cd47987d6db3aa3faafba84f4
2014-04-06 13:11:30 -05:00
Norbert Thiebaud
fa2d66daa6 coverity#706300,306,983619: Uncaught exception
Change-Id: If46a483ba0a5334926ffb5c25db064a5d2b81e46
2014-04-06 13:11:30 -05:00
Norbert Thiebaud
fa2769d549 coverity#706292,95-96,98: Uncaught exception
Change-Id: I7daf691bdaef6939112383f65ba72d246efe58c8
2014-04-06 13:11:29 -05:00
Norbert Thiebaud
de69c1e931 coverity#708313: Unitialized scalar field
Change-Id: If79cfd926464eb1360ea7764c8c9c609f533de3d
2014-04-06 13:11:29 -05:00