Commit Graph

2787 Commits

Author SHA1 Message Date
Luboš Luňák
64b993e046 finish deprecation of O(U)String::valueOf()
Compiler plugin to replace with matching number(), boolean() or OUString ctor,
ran it, few manual tweaks, mark as really deprecated.

Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-21 15:10:35 +02:00
Michael Meeks
1c7af455ab Re-work 8bit characters in source code, or remove them.
Change-Id: I93e14d4936c0ffbe03425d4a54bb0e09bc62b3e3
Reviewed-on: https://gerrit.libreoffice.org/5550
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@suse.com>
Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-08-20 19:30:59 +00:00
Tor Lillqvist
c6a7300974 Use subfolder names from <config_folders.h>
Change all instances of hardcoded "program", "share" etc subfolder names to
use those from <config_folders.h> instead. In normal builds, the end result
will not change.

Change-Id: I91c95cd8e482818be67307e889ae6df887763f53
2013-08-18 21:11:16 +03:00
Armin Le Grand
b5c9668d34 Resolves: #i122149# Corrected stuff around polygon-based clip regions
do not use them where not needed

(cherry picked from commit 4ccb1eb7d58005ab3b501b7c6ff128fadbcd5066)

Conflicts:
	basegfx/inc/basegfx/matrix/b2dhommatrixtools.hxx
	basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
	basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx
	basegfx/inc/basegfx/tuple/b2dtuple.hxx
	basegfx/inc/basegfx/tuple/b3dtuple.hxx
	sc/source/ui/inc/output.hxx
	sc/source/ui/view/gridwin.cxx
	sc/source/ui/view/output.cxx
	vcl/win/source/gdi/salgdi.cxx

Change-Id: Ie265814a51180bffe3c821a3f2148cb3bb54ecad
2013-08-14 11:32:19 +01:00
Noel Grandin
59a5dcb206 -WaE remove unused variables
Change-Id: I30f8175e35d15c8cce0b2e05de7741bb8feba410
2013-08-12 11:56:50 +02:00
Noel Grandin
db3f16317e convert String to OUString in VCL
Change-Id: Ie5c6874298641dc6fc1b6b4e2206a704acd7cc10
2013-08-12 11:56:49 +02:00
Noel Grandin
8129fffd1b convert XubString to OUString in VCL
Change-Id: I5002b4c237dd919210cb7edfef9f552688735154
2013-08-12 11:56:48 +02:00
Noel Grandin
8698234610 convert vcl/inc/outfont.hxx from String to OUString
Change-Id: I6b9b5f0cd51412ad14f1a07f2ad3a03bd17bb5d3
2013-08-12 11:56:45 +02:00
Noel Grandin
4e0d0ee674 convert vcl/font.hxx from String to OUString
Change-Id: I3df88f26516296ca8f4e81576e86372c8b499a84
2013-08-12 11:56:42 +02:00
Noel Grandin
624e0c4937 convert vcl/pdfextoutdevdata.hxx from String to OUString
Change-Id: I65a04c9bf2d1b9f456e6cf8a430c280f7b15e67c
2013-08-12 11:56:41 +02:00
Noel Grandin
d7fe5ab30c convert vcl/menu.hxx from XubString to OUString (second attempt)
Change-Id: I579525326be702ffbb57d49970da5804fd2fe12d
2013-08-12 11:56:36 +02:00
Caolán McNamara
9dd40c656f XubString->OUString
Change-Id: I04c7da143425a9d8cc4fae155ad45a469df953c1
2013-08-12 08:32:59 +01:00
Julien Nabet
651a252374 Remove unused BitmapWriteAccess::FillPolygon
Change-Id: Iba583b4efab88620b54b02626bc9d9396219d0c8
2013-08-10 15:51:12 +02:00
Herbert Dürr
022da4ea29 Resolves: #i122948# fill gaps in glyphs->chars mapping for usp10-layouts
using a heuristic that assumes a glyph with unknown char mapping
is the continuation of the preceding glyph. If there is no known
preceding mapping use the run bounds.

(cherry picked from commit 576e4ea626e1c1ffcf9d025e692db62fed8c3cab)

Change-Id: I70e58a02d814e14e9592ff8efc0ae630346ae5df
2013-08-06 16:15:18 +02:00
Stephan Bergmann
a333ad86b6 Do not instantiate LinguServiceManager when it is not needed
...this e.g. prevents endless recursion when broken JVM detection leads to a
message box that in turn tries to instantiate a Java-based service from
LinguServiceManager.

Change-Id: I0e78ab3ea05ce16544846803d5bb84c789a61eef
2013-08-05 14:00:13 +02:00
Kohei Yoshida
f89637e329 Revert "convert vcl/menu.hxx from XubString to OUString"
This reverts commit 43b1ac3651.
2013-07-31 14:09:15 -04:00
Tor Lillqvist
89133bbf19 Fix compilation error with MSVC
Change-Id: Ibd81f2f5252d00c2545e429552028b2115475524
2013-07-31 15:21:29 +03:00
Noel Grandin
43b1ac3651 convert vcl/menu.hxx from XubString to OUString
Change-Id: I9469363c09e4cc863ad4d8ddddf8d923fe444e25
2013-07-31 13:36:52 +02:00
Noel Grandin
1211c5dcf1 convert vcl/pdfwriter.hxx from XubString to OUString
Change-Id: Ifc3d56ad9db6b73c26a16520482d5a94a5ba48a2
2013-07-31 13:36:51 +02:00
Noel Grandin
6dae1199db convert the rest of vcl/OutputDevice from XubString->OUString
Change-Id: I97ca1bed06f4e47ea6c77cc0c2314dba555c344d
2013-07-29 14:15:43 +02:00
Noel Grandin
bfc58ddbf4 convert more XubString->OUString in OutputDevice
Change-Id: I7c100614f7321c8c0527067012b47673ac6914f1
2013-07-29 14:15:42 +02:00
Noel Grandin
7ef052646a convert the rest of outdev.hxx from XubString to OUString
Change-Id: I1305dde31106aada30534919456a4809a302afcf
2013-07-29 14:15:42 +02:00
Noel Grandin
0c7579d5de convert OutputDevice::DrawTextArray from XubString to OUString
Change-Id: Ie16504ea004e39eda246a7ed170504a04a0764bb
2013-07-29 14:15:42 +02:00
Noel Grandin
eb96a5296a convert OutputDevice::DrawText from XubString to OUString
Change-Id: I5c641fff9a7b2a32658cdaf81aa5f45048263f22
2013-07-29 14:15:41 +02:00
Stephan Bergmann
a95d1eff07 Remove effectively unused INetURLObject OString overloads
Change-Id: Icbbe27b229d5454d27be646e00e8b362a77359b3
2013-07-29 08:26:29 +02:00
Jan Holesovsky
5132017d86 ImageList::AddImage(sal_uInt16, ...) is unused again, kill.
Change-Id: I58be12e7cbf1b97b4d52f398853074ad135780a0
2013-07-28 22:10:53 +02:00
Ivan Timofeev
dd6518d42f fdo#67397: don't bother to create BlendFrame for width == 1 or height == 1
... because:
1) frame painted as a line doesn't make sense to me anyway;
2) it leads to x = 1 or y = 1 in createBlendFrame, while the max value for that
   variable is "width (or height) - 1", i.e. 0.

Change-Id: I7437bce6681e42cb57458c012927cf5d6bfc154f
2013-07-28 20:45:45 +04:00
Michael Meeks
5d071dda37 Rename misleading icon link data from cache to hash.
Change-Id: Iefce4992e7a0180cba57ea35fb51d077c642af80
2013-07-26 17:00:23 +01:00
Marcos Paulo de Souza
6b0ea72453 Remove some unused code form unusedcode.easy
Change-Id: Ib9f0bc7416c7f05684802ba2bb5f014a340fb2e8
Reviewed-on: https://gerrit.libreoffice.org/5068
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-25 07:20:34 +00:00
Michael Meeks
dda3686acd fdo#67086 - clear device font list before re-fetching it.
Seemingly if this is done in the other order, then ImplUpdateFontData
reads the old font list into mpGraphics leaving pointers around that
are then freed by ClearDevFontCache -> GlyphCache::ClearFontCache

Change-Id: I06fdc428c782820dd9f98cf77dc0eef486a096ee
2013-07-24 20:38:56 +01:00
Herbert Dürr
794a1f8e68 Resolves: #i122796# fix half-pixel offset in StretchAndConvert...
image scaling

(cherry picked from commit ec3d48418f1cbad40153b3e4fdc2497ebf0e7d59)

Change-Id: Idc4bf7acc30c24a788be79c3686155e924afb28c
2013-07-24 08:55:26 +01:00
Caolán McNamara
86b8b3b7e0 WaE: returning temporary
Change-Id: Ibb401d8df817ca700a806ef28ac359e0b74ec3e2
2013-07-19 12:01:33 +01:00
Norbert Thiebaud
8529e88518 Cleanup String in connectivity
Change-Id: Ica1cf0ac9e9da9c943e50ba77b1ce4a9dc7f8300
Reviewed-on: https://gerrit.libreoffice.org/4895
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2013-07-19 09:45:01 +00:00
Muthu Subramanian
8b71607241 n#820077: Import images with duotone filter.
Also, contains implementation for a simple duotone filter.
2013-07-17 13:02:07 +05:30
Jelle van der Waa
7650a82702 fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFO
Change-Id: I85a3cfeac16e2c8e20724e1f6a5dd16c2c143a49
Reviewed-on: https://gerrit.libreoffice.org/4882
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2013-07-15 15:28:05 +00:00
Armin Le Grand
04d937c1ec Resolves: #i120957# Added Reginas corrections for gradient colors for...
linear gradients in VCL renderers

Patch by: Regina
Review by: alg

(cherry picked from commit 94205034afa2abe9ab73b2f5d0c76f295a7889c9)

Conflicts:
	vcl/source/gdi/outdev4.cxx

Change-Id: I8b66bb1b9155253e138c7ebb4fc3e0686bae7913
2013-07-12 12:54:41 +01:00
Eike Rathke
562880754b restrict to ISO language-country
Change-Id: I0dbcb4bd75fa270acee409524d6b1dd12547ff0d
2013-07-12 01:34:38 +02:00
Eike Rathke
f66f896657 DefaultFontConfiguration and FontSubstConfiguration with LanguageTag
Change-Id: I6c111392537d114358d0574f2dbdf40f684b5103
2013-07-12 00:10:13 +02:00
Stephan Bergmann
b100f3f06b Simplify support for bitmap depth conversion in X11 clipboard/dnd code
...I see no good reason to make the code from bmpconv.cxx available to
vcl/unx/generic/dtrans/ in a complicated way via UNO, instead of calling it
there directly.

Change-Id: I4f2e53c4610e8e19c96e1230a5c5ef034aab80da
2013-07-11 13:22:33 +02:00
Arnaud Versini
1a44cf5f6d Remove warning by using the right printf commands
Change-Id: Id476a0eb1f5965098c8cc2e2847547b1d23387eb
Reviewed-on: https://gerrit.libreoffice.org/4753
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Tested-by: Petr Mladek <pmladek@suse.cz>
2013-07-09 10:10:39 +00:00
Herbert Dürr
2142eb79bd Resolves: #i121127# use PDF base14's symbol font only if explicitly requested
(cherry picked from commit df03a043e531182080d26449899fabe0b7078b81)

Change-Id: Ic50da57748c86de7a87de905c97d9162afde8ed6
2013-07-09 09:29:21 +01:00
Michael Stahl
6fa07d2d60 fdo#66478: sw: un-break hyphenation
The main problem is calling SetHyphPos with a stack pointer.
Converting STRING_LEN <-> -1 can't hurt though.

(regression from a2f6402b1f)

Change-Id: I59a4e3b16b418082de468c7d7f7f38a9b0bccd01
2013-07-07 18:11:55 +02:00
Takeshi Abe
8624906bc4 Mark as const
Change-Id: Ia5f9724002da11da69f70bb0f71d44c3b5a19bcb
2013-07-05 10:38:08 +09:00
Norbert Thiebaud
6a08067902 OUString convertion for unotools
Change-Id: Ifae7f344e3827875e32afa3cda23c771f5735707
Reviewed-on: https://gerrit.libreoffice.org/4659
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-02 07:31:30 +00:00
Khaled Hosny
92ffe57f6b Don’t shrink text from fallback fonts
This code is bogus in multiple ways:
* It scales text based on ascent or descent, but this makes no sense
  as those control line height and nothing else, if one is to scale two
  different fonts to “fit” together, cap or x height would be more
  appropriate. This results in some text being ridiculously shrunk.
* Not only that, but it is comparing apples to oranges; original font
  ascent/descent with the bounding box of the fallback glyphs, which
  results in different scale ratios depending on the shape of the glyphs
  at hand, which leads to all sorts of funny and irregular text.
* Even worse, the PDF export is completely broken in this case; it uses
  the scaled down glyph widths but the unscaled font size, resulting in
  cramped unreadable text.

Change-Id: Iaa6117ecfdad8388887d9a03b538e7327544ad5e
Reviewed-on: https://gerrit.libreoffice.org/4293
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-07-01 12:23:04 +00:00
Norbert Thiebaud
710f41b7ae Clean String and sal_Bool in tools
Change-Id: I6a92196f33d7a5278c7dcc426112e9c56d582655
Reviewed-on: https://gerrit.libreoffice.org/4627
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-06-30 04:58:49 +00:00
Michael Stahl
9bd0a97601 fdo#66288: fix RegionBand (de)serialization
Commit e717d1dcce interacts badly with
commit 7b2a0e5415:
the newly added "long" variables serialized to SvStream with
operator>>/<< now read/write 8 bytes.

Using "long" for binary serialized integers is an idiotic idea in the
first place.

Change-Id: I9432c1bb2c339e797c064371f2cbdcfec2200994
2013-06-30 00:34:33 +02:00
Michael Stahl
36e42c0bc0 fdo#66288: fix MetaAction::Read()
This is "collateral damage" from the actual bug, and is broken since CVS
initial import (which likely means that in practice no bare MetaActions
exist), but the MetaAction::Read() must not read the type from the
stream since MetaAction::ReadMetaAction() has already done that!

Change-Id: I9ab06ec3112c1eefb86ab70ddfa2f588af257b88
2013-06-30 00:34:32 +02:00
Thomas Arnhold
ba0a57702c remove OUString wrap for string literals
For some functions and all kinds of Exceptions.

CannotConvertException
CloseVetoException
DisposedException
EmptyUndoStackException
ErrorCodeIOException
Exception
GridInvalidDataException
GridInvalidModelException
IOException
IllegalAccessException
IllegalArgumentException
IllegalTypeException
IndexOutOfBoundsException
NoMasterException
NoSuchElementException
NoSupportException
PropertyVetoException
RuntimeException
SAXException
ScannerException
StorageWrappedTargetException
UnsupportedFlavorException
VetoException
WrappedTargetException
ZipIOException
throwGenericSQLException
throwIllegallArgumentException

createInstance
createInstanceWithContext
forName
getByName
getPackageManager
getPropertyValue
getUnpackedValueOrDefault
getValueByName
hasPropertyByName
openKey
setName
setPropertyValue
supportsService

bash command:

for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx'
	| cut -d ':' -f1 | sort -u
	| xargs sed -i
		-e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g"
		-e "s/\($i.*\)\"+ /\1\" + /g";
done

Change-Id: Iaf8e641b0abf28c082906014f87a183517630535
Reviewed-on: https://gerrit.libreoffice.org/4624
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-06-29 21:52:54 +00:00
Ivan Timofeev
231fb4182f make HitTestNativeControl const
Change-Id: I1d3f09cce87fadd8bdc18b2775ebe2a6968d99c1
2013-06-29 18:06:15 +04:00