998 Commits

Author SHA1 Message Date
Noel Grandin
0a9ef5a18e convert OUString 0==compareToAscii to equalsAscii
Convert code like:
   0 == aStr.compareToAscii("XXX")
to
   aStr.equalsAscii("XXX")
which is both clearer and faster.

Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
2013-11-11 12:58:12 +02:00
Noel Grandin
e52779d2f8 remove unnecessary use of OUString constructor
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-11-11 11:21:26 +02:00
Thomas Arnhold
cefed9792d fixincludeguards.sh: sdext
Change-Id: I5cb8f7fb35121f41aedeff46f50d51d2ee039206
2013-11-05 09:28:52 +01:00
Noel Grandin
0e6a2601b3 Convert code that calls OUString::getStr()[] to use the [] operator
This also means that this code now gets bounds checked in debug builds.

Change-Id: Id777f85eaee6a737bbcb84625e6e110abe0e0f27
2013-11-04 08:06:10 +02:00
Armin Le Grand
223f6b631c Resolves: #i123433# Detect pseudo-vertices at svg import...
unify svg:d handling, correct svg:d import for relative sub-polygons in svg
import; changed default for moveto writes for svg:d in ODF to absolute

(cherry picked from commit f15874d8f976f3874bdbcb53429eeefa65c28841)

Conflicts:
	basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
	basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx
	basegfx/inc/basegfx/polygon/b3dpolypolygontools.hxx
	basegfx/source/polygon/b2dpolypolygontools.cxx
	basegfx/source/polygon/b2dsvgpolypolygon.cxx
	basegfx/source/polygon/b3dpolypolygontools.cxx
	basegfx/source/tools/makefile.mk
	basegfx/test/boxclipper.cxx
	basegfx/test/clipstate.cxx
	basegfx/test/genericclipper.cxx
	canvas/source/tools/surfaceproxy.cxx
	sdext/source/pdfimport/tree/drawtreevisiting.cxx
	sdext/source/pdfimport/tree/writertreevisiting.cxx
	xmloff/inc/xexptran.hxx
	xmloff/source/draw/XMLImageMapContext.cxx
	xmloff/source/draw/XMLImageMapExport.cxx
	xmloff/source/draw/shapeexport2.cxx
	xmloff/source/draw/shapeexport3.cxx
	xmloff/source/draw/xexptran.cxx
	xmloff/source/draw/ximp3dobject.cxx
	xmloff/source/draw/ximpshap.cxx
	xmloff/source/style/MarkerStyle.cxx
	xmloff/source/text/XMLTextFrameContext.cxx
	xmloff/source/text/txtparae.cxx

Change-Id: I5171b4a3559ea116bea45152e1f2685666463635
2013-10-31 15:56:14 +00:00
Takeshi Abe
d502ddff20 Remove unnecessary #includes
and add them to a couple of appropriate headers

Change-Id: I500765df767319a0a75ea2446f4fec591a34da58
2013-10-30 09:35:36 +09:00
Takeshi Abe
943a03a4ee Drop unnecessary #include
Change-Id: I20448aebfae86c097413660e9ec836a786507a85
2013-10-29 09:27:39 +09:00
Tor Lillqvist
a7724966ab Bin comments that claim to say why some header is included
They are practically always useless, often misleading or obsolete.

Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-22 16:56:28 +03:00
Stephan Bergmann
a83b3b5d45 Minimizer: *.mini was saved w/o .odp etc. extension (and clean up)
Change-Id: I4626794f7816ae455a392cdc0acbac42c866fff4
2013-10-15 18:24:14 +02:00
David Ostrovsky
cc2a405915 fdo#61950 De-extensionize presentation minimizer: post clean
Change-Id: I7d21f1d67b13fcd83792503e8c72ccf16fbda1ec
Reviewed-on: https://gerrit.libreoffice.org/6247
Reviewed-by: David Ostrovsky <David.Ostrovsky@gmx.de>
Tested-by: David Ostrovsky <David.Ostrovsky@gmx.de>
2013-10-15 15:50:12 +00:00
Eike Rathke
8ab1c6103d could not convert from ‘const char*’ to ‘rtl::OUString’
Since 3eb84bcb4580af50c2ded9f48749384b8455258e which apparently Clang
has no problem with.

Change-Id: I21af4e20dd116705e53d73a968fde478bff142bb
2013-10-15 16:59:36 +02:00
Stephan Bergmann
71b2bf62d6 Remove unnecessary TK_Last
Change-Id: Ia5095646f01a76258d69df866e3c803f8691915b
2013-10-15 09:27:57 +02:00
Stephan Bergmann
2f7492ad67 Small simplification (and exit loop early)
Change-Id: I076307174fdd63b58a8cb9c9690f50dae746c289
2013-10-15 09:27:57 +02:00
Stephan Bergmann
124f5981d8 Simplify PPPOptimizerTokenEnum -> OUString
Change-Id: I8be2a1d603afd26de11e737586590ebb7adcbc42
2013-10-15 09:27:57 +02:00
Stephan Bergmann
cd10abe0ba Simplify PPPOptimizerTokenEnum -> OUString
Change-Id: I88176f00c5fb356d63ecfdd291c006e88606a604
2013-10-15 09:27:56 +02:00
Stephan Bergmann
3eb84bcb45 Simplify TKGet(TK_FOO) -> "FOO"
Change-Id: I06e3134aeef27f13969f6d9d7d81b916bc93e8e2
2013-10-15 09:27:56 +02:00
Stephan Bergmann
be1ce88b8e Remove unused file
...was referenced from removed sdext/source/minimizer/description.xml

Change-Id: I501860640eb899742f7850f626008b930bf8eab4
2013-10-14 12:21:39 +02:00
Stephan Bergmann
9acc06843a Remove file apparently unused since inception
Change-Id: Ib2522c943df37c0b299120fcbdb262a74ee5f5f7
2013-10-14 12:21:39 +02:00
Stephan Bergmann
cc0d5df45d No need to have com.sun.star.comp.PPPOptimizer as a service
After de-extension-alization of Presentation Minimizer, it is important that its
UNO implementation names are different from the ones used by the extension (in
case the extension ever is installed as shared or per-user).  For
com.sun.star.comp.PPPOptimizer it appears to be easiest to not advertise this as
a service at all, but rather instantiate the object directly where used.  (For
com.sun.star.comp.PresentationMinimizerImp the necessary renaming had been done
in the previous commit already.)

Change-Id: I954b715f2d434cecf9abd2776b39c4ed3152c5ec
2013-10-14 12:21:39 +02:00
David Ostrovsky
2aa5d13ed0 fdo#61950 De-extensionize presentation minimizer
Change-Id: I87805ceacf184d5aa5faae68e8bb932391ace7fb
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-14 12:21:39 +02:00
Thomas Arnhold
39022b8b7d little String to OUString + documentation
Change-Id: I982e44150fd2909da0571409f16051d79377d7a3
Reviewed-on: https://gerrit.libreoffice.org/6192
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-10-10 17:58:31 +00:00
Tor Lillqvist
46ddcbbe2a Normalize ENABLE_PDFIMPORT: TRUE or empty
Change-Id: I962b37757dbf3569df73e70ae2d7c666d7cdf43e
2013-10-10 09:56:23 +03:00
Thorsten Behrens
21ec9beae2 XCanvas does no longer imply XBitmapCanvas
Remove the implication that XCanvas IS-A XBitmapCanvas, i.e. one can
access underlying pixels. That's a preparation for display-list based
canvas implementations, and was a rather silly assumption in the first
place.

Also fixes up all client sites.

Change-Id: I7a3d6f68ef46fe94b23cce7759cc0b8b6ca4dae9
2013-10-07 17:33:45 +02:00
Matúš Kukan
04496cb869 sdext: kill Package_pdfimport_xcu.mk
Change-Id: I88a402bf26852e8e216de11d71cbd42edb0aff23
2013-10-02 22:07:16 +02:00
Tor Lillqvist
d37b6fad16 WaE: unused variable
Change-Id: I0e344a64da4166b99be6887df384224042172454
2013-10-02 20:04:10 +03:00
Stephan Bergmann
0101162fc4 -Werror,-Wunused-const-variable
Change-Id: If23f88f35e5200cdcc271143d87c8c40b7fd65da
2013-10-02 16:49:36 +02:00
Stephan Bergmann
660400c9f7 -Werror,-Wunused-const-variable
Change-Id: I393816c526764c21762e5bc19318f862d0f91de5
2013-10-02 16:49:36 +02:00
Andras Timar
2381e89bd3 fix Windows build, dbglevel=2
Change-Id: I7dba2852a32a1b1c8309b5981e6b535c6dfb1b8c
2013-09-20 07:52:42 -07:00
Siqi LIU
eb0cc3a63d dummy implementation for getTranslationOffset
Change-Id: Ie1f71ee76af308a6eec9d38e3d629d7d6faf3596
2013-08-23 11:18:28 +08:00
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
Bjoern Michaelsen
0a74847e5d also adjust for poppler 0.24
Change-Id: I177cc28ec357ec5f88bb1efae1928eb120dcd9f2
2013-08-20 17:14:50 +02:00
Takeshi Abe
f4004429d3 Mark as const
Change-Id: Ic81dd60fadecf72f25792903985f2b387df7a7a0
2013-08-19 07:47:34 +09: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
Siqi LIU
1d1189b4ae oups.. forgot to comment out a debug line
Change-Id: Ib22428a305d834a635f198f94b7b82088a718893
2013-07-20 01:11:00 +02:00
Siqi LIU
d9e8255e64 remove server if no longer visible
Change-Id: I75902afe3040304155d164fd0502a00869e4f9d7
2013-07-20 01:07:18 +02:00
Siqi LIU
f63d44df0a minor bug fix
Change-Id: Ib2358feb09812a219966525d0992eb49a62dbdfc
2013-07-20 01:07:17 +02:00
Siqi LIU
7753cd008a comment out updateCurrentSlide(0) in presentationController constructor as it causes remote control to receive 0 as currentSlide whereas slideshow started from the middle. 2013-07-18 21:52:07 +02:00
Michael Meeks
ee4569efa8 fdo#67045 - fix several nasty screen selection issues with presenter console.
Also add the ability to select the external screen (whatever it is) to the
configuration dialog.

Change-Id: Id2d157eafff0031d7ae9fa2140d7022ae4a0cc6b
2013-07-18 14:55:12 +01:00
Ciorba Edmond
0218b0e2fa fdo#65457 - Provide visual clues in presenter view.
Change-Id: I225ae2dfa467df824d2586a05c8b8b576a43e8dc
Reviewed-on: https://gerrit.libreoffice.org/4929
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
2013-07-18 07:57:19 +00:00
Mark Wielaard
cae861f0b3 Fix memory leak with osl_getCurrentSecurity ().
The result of osl_getCurrentSecurity () should always be deleted again
with osl_freeSecurityHandle ().

Change-Id: If0991937fcb24207d1f78166f61c4be22d423629
Reviewed-on: https://gerrit.libreoffice.org/4947
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-07-17 10:57:21 +00:00
Petr Mladek
828ebc542b fix build with system poppler-0.23.0
XRef *xref parameter has been added to the OutputDev::startPage method, see
http://cgit.freedesktop.org/poppler/poppler/commit/?id=8eb489c355d734a72e140ce7e32470d048362499

Change-Id: I7ad875bf58f6998e639c740f0dac3795738cd1db
2013-07-16 16:45:31 +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
Fridrich Štrba
eb276d11a6 fdo#38878: Upgrading internal xpdf -> poppler
Change-Id: I00aafb3fd275e6be3b5d0eb370320e5325110da5
Reviewed-on: https://gerrit.libreoffice.org/4770
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-08 16:25:32 +00:00
Lionel Elie Mamane
fa6ce5a6e8 API change: osl/time.h take const pointers where appropriate
Should be backwards-compatible...

Change-Id: I6b04bec2c032ff8c57a1b5192b2d3962dcc96c84
2013-07-05 12:22:03 +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
Thomas Arnhold
318f2b64cc remove some createFromAscii usage
there are a lot more of them:

git grep 'createFromAscii[^)]*"'

Change-Id: Ibc2e9cae208d8b9c91667bb3b177c6bd6d3a9424
2013-06-29 16:23:23 +02:00
Caolán McNamara
59eee3c0a4 coverity#1019312 check inflateInit return value
Change-Id: I5ec18176291e128c79d3e51e39b8a42b17a27b30
2013-06-25 09:26:58 +01:00
Jelle van der Waa
51daa4de4f fdo#43460 sd,rsc,ucb,sdext: use isEmpty()
Change-Id: I7a7a77c26b74078f7fc160fbaa1c8d4e912b844e
Reviewed-on: https://gerrit.libreoffice.org/4442
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2013-06-24 21:44:24 +00:00
Stephan Bergmann
bc5a0560f2 Typo
Change-Id: I73700479207c0ee594dd23709640cdff82224469
2013-06-20 16:17:53 +02:00
Caolán McNamara
4c8aa30155 advance over font token during font name parsing
Change-Id: I457a4cae7907df6fc05535873ed51766c56220ee
2013-06-14 17:08:55 +01:00