Commit Graph

379 Commits

Author SHA1 Message Date
af63727b9f Resolves: #i15508# Added support for BMP file type
(cherry picked from commit 9956ed1303545cd61901e33b110698c4e5e224c4)

Conflicts:
	filter/source/msfilter/escherex.cxx
	include/vcl/gfxlink.hxx
	svx/source/xml/xmlgrhlp.cxx
	sw/source/ui/docvw/romenu.cxx
	vcl/source/filter/graphicfilter.cxx

Change-Id: Ibcbb69b9c57cd8a438788e9a9c95744e99b6fcdd
2014-02-27 19:30:40 +00:00
a18a1a4545 Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxx
Added vcl/settings.hxx to all cxx files which require it.
This helps to speed up compilation after changes to the settings.

Conflicts:
	sc/source/ui/dbgui/pvlaydlg.cxx

Change-Id: I211a0735c47f72d6879f6f15339355abfe0e3cf4
Reviewed-on: https://gerrit.libreoffice.org/7933
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-20 16:22:17 +00:00
12f1faf7bf svl: sal_Bool -> bool
Change-Id: Ic31455a1f5ffffa35d4fdde901dd70734207b6f4
2014-02-20 08:17:00 +01:00
15535e32dd convert SvStream::operator>> methods to ReadXXX methods
First, I updated the clang rewriter to do the conversion.
Then I lightly hand-tweaked the output for the few places where
the rewriter messed up, mostly when dealing with calls on "this".

Change-Id: I40a6a977959cd97415c678eafc8507de8aa3b1a9
Reviewed-on: https://gerrit.libreoffice.org/7879
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2014-02-12 15:31:40 +00:00
186b4ebc99 convert specialised SvStream::operator>> methods to ReadXXX methods
as preparation for converting the SvStream::operator>> methods on
primitive types

Change-Id: I62f134bced15c687d6e0d46924f56e8d1c3d95b9
Reviewed-on: https://gerrit.libreoffice.org/7798
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-02-04 22:50:39 +00:00
0d957046f1 bool improvements
Change-Id: Ic32faa81bfbb66a9d8632fb3db187e33c31188ed
2014-01-28 20:26:17 +01:00
d803483f6a convert more SvStream::operator<< calls
.. to more explicit SvStream::Write* calls
This was done using another run of the clang rewriter, and then
a lot of hand tweaking to fix all the places where the rewriter
did not play nice with various macros.

Change-Id: I7bcab93851c8dfb59cde6bc76290c6484d88fb18
Reviewed-on: https://gerrit.libreoffice.org/7494
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2014-01-22 22:00:39 +00:00
d33b4c311e Related: #i56998# use locale rules to format percentage
Change-Id: I4b744cf10165383153d2a71c05df0c0ed327c641
2014-01-20 14:46:21 +00:00
ab50bc9d4a Resolves: #i56998# add a space separater between value and unit...
and remove separator between value and percent to match with ISO 31-0

(cherry picked from commit 0cea884e3f417e4b58d2fdcfc7b0111f3bfc6f30)

Conflicts:
	chart2/source/controller/dialogs/tp_SeriesToAxis.src
	cui/source/dialogs/colorpicker.cxx
	cui/source/dialogs/colorpicker.src
	cui/source/dialogs/grfflt.src
	cui/source/dialogs/zoom.src
	cui/source/tabpages/tabline.src
	editeng/source/items/frmitems.cxx
	editeng/source/items/textitem.cxx
	sd/source/ui/animations/CustomAnimationDialog.src
	sd/source/ui/animations/SlideTransitionPane.src
	svx/source/dialog/bmpmask.src
	svx/source/engine3d/float3d.src
	svx/source/items/algitem.cxx
	svx/source/sidebar/text/TextCharacterSpacingControl.cxx
	svx/source/xoutdev/xattr.cxx
	sw/source/ui/utlui/attrdesc.cxx
	sw/source/ui/utlui/uiitems.cxx

Change-Id: I554309cb72dd8956077c5ca6866a982cdd6529aa
2014-01-20 12:08:54 +00:00
c648d08720 convert SvStream::operator<< overloads to more explicit methods
This is in preparation for more conversion of SvStream::operator<< calls
to use more explicit method names.
This converts the subclasses that have their own convenience overloads
of operator<< to use normal methods.

Change-Id: I5efd5d9a24c264cb86d2471303dd5849bf91ba80
2014-01-16 16:08:34 +01:00
d1043892df SfxPoolItem::operator ==, != should return bool
...and SfxEnumItemInterface::HasBoolValue, too.

Change-Id: Ia032e3d35a4c3b4c1efdc515ca36e466be03fc0a
2014-01-10 17:11:51 +01:00
b69864f3f8 re-write SvStream operator<< to non-overloaded methods
This is the actual re-write.

Use a clang rewriter to rewrite SvStream::operator<< to methods
like WriteuInt32.
Note that the rewriter is not perfect, and I hand-tweaked the output.
In particular, I had to adjust places doing things like
  (*this) << 1;

Change-Id: I5923eda3f4ebaa8b452b6ef109e726e116235a2a
Reviewed-on: https://gerrit.libreoffice.org/7342
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-01-10 13:26:24 +00:00
c5b7a5fd19 fix equalsAscii conversion. Noticed in fdo#72391
In commit 363cc397172f2b0a94d9c4dc44fc8d95072795a3
"convert equalsAsciiL calls to startWith calls where possible"
I incorrectly converted equalsAsciiL calls to startsWith calls.
This commit fixes those places to use the == OUString operator.

Change-Id: If76993baf73e3d8fb3bbcf6e8314e59fdc1207b6
2013-12-09 12:53:18 +02:00
363cc39717 convert equalsAsciiL calls to startWith calls where possible
Simplify code like:
    aStr.equalsAsciiL( "%", 1 )
to
    aStr.startsWith( "%" )

Change-Id: Iee0e4e60b0ae6d567fa8f72db5d616fffbec3c00
2013-11-19 12:49:29 +02:00
610b2b94b3 remove unnecessary use of OUString constructor when assigning
change code like
   aStr = OUString("xxxx");
to
   aStr = "xxxx";

Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-19 10:29:31 +02:00
2c35fff7ec remove most use of RTL_CONSTASCII_USTRINGPARAM macro
This is largely unnecessary when working with OUString

Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-19 10:29:30 +02:00
f0a9ca24fd rhbz#887420 Implement "block untrusted referer links" feature
For now, this checks for a trusted referer (if the BlockUntrustedRefererLinks
configuration prop is set) in utl::MediaDescriptor::impl_openStreamWithURL and
SvxBrushItem::GetGraphicObject.  Checking in additional places will probably be
necessary to block /all/ unwanted communication.  Also, some places marked
/*TODO?*/ currently pass in an empty referer (which is always considered
trusted) and will probably need to be adapted.

Ideally, Referer URIs would never be empty (and consistently use something like
<private:user> for cases where access is explicitly initiated by the user and
should never be blocked), but that's a very daunting task, so start small by
identifying the places that potentially need blocking and adding appropriate
Referer URIs there.  Also, Referer information should always be computed as
freshly as possible from the context in which an access attempt is made, but,
again, always carrying the information from the context all the way to the
relevant functions is a very daunting task, so for now store the information
upon object instantiation in some cases (SvxBrushItem, SdrGrafObj, ...).

The Referer URI (css.document.MediaDescriptor property; SID_REFERER) was already
used to track macro execution, and there is one place in
SfxApplication::OpenDocExec_Impl where opening of hyperlinks (explicitly clicked
by the user) is done that needs the current document's URI as Referer to check
execution of macro URIs but needs an empty (or <private:user>, see above)
Referer to not block non-macro URIs.  Special code has been added there to
handle that.

Change-Id: Iafbdc07a9fe925d9ee580d4f5778448f18f2ebd9
2013-11-14 11:13:25 +01:00
36f21914b3 Resolves: i123564 corrected some aspects when working with bitmaps...
with low color depth or small size

(cherry picked from commit ba54ce4fc788605fc96235f432b455311faee406)

Conflicts:
	cui/source/tabpages/tpbitmap.cxx

Change-Id: I10677414ab7d1904dbb29cd395a0c0334e0faa03
2013-11-05 12:37:15 +00:00
9dc41e228d convert remnants of String in SVX to String
Change-Id: I66fd6387c3fcd33c6ae0b431810abf6679345767
2013-10-01 10:08:36 +02:00
e880a88834 fix undefined behavior with out-of-bounds substring access
Change-Id: Ie40d3dd2947d41b62eae84f20cfe457d69cc4bfe
2013-09-29 20:26:06 +02:00
98de5b40c8 Related: fdo#38838 remove UniString::EqualsIgnoreCaseAscii
Change-Id: Ib5c3a2daa4a48bc286b14fa2cebb3306ea0012bc
2013-09-25 19:24:23 +02:00
9f04bfd8d5 convert svx/* from XubString to OUString
Change-Id: Ifa063924d95bfe397bd512411a44247d4c016018
2013-09-05 08:55:14 +02:00
78c96d8337 convert svx/source/xoutdev/*.cxx from String to OUString
Change-Id: I77e122f5558a246575c68d1759bb9a07b4ce23bb
2013-09-05 08:55:01 +02:00
a5c9304179 convert include/svx/XPropertyEntry.hxx from String to OUString
Change-Id: Ie112b2e8af32eba60f67f767dd6a098980d907b4
2013-09-05 08:54:50 +02:00
2a80a284b3 convert include/svx/xbtmpit.hxx from String to OUString
Change-Id: I6b45f343febef1ca1e90a9194bd298681ed134ea
2013-09-05 08:54:12 +02:00
5a8f4cbac8 convert include/svx/xcolit.hxx from String to OUString
Change-Id: Ieae296f179e0b45384e40c6ea6fb704af11d94e3
2013-09-05 08:54:12 +02:00
79850f2598 convert include/svx/xf*.hxx from String to OUString
Change-Id: Ifd11e8efc2c6dae7dd08fe61acb949b6238682a7
2013-09-05 08:54:11 +02:00
c8375ca155 convert include/svx/xit.hxx from String to OUString
Change-Id: Ib5ba87a934fbe9220427145eb54e3de3c49b03ad
2013-09-05 08:54:11 +02:00
10407bdad8 convert include/svx/xln*.hxx from String to OUString
Change-Id: I556383c918556d634fa3bae6144f973c23ceff03
2013-09-05 08:54:11 +02:00
dfbb4009f8 convert include/svx/xoutbmp.hxx from String to OUString
Change-Id: Idfb879c75cce06d9be4459f054169926a56b0199
2013-09-05 08:54:09 +02:00
863faa0cf9 convert include/svx/xsflclit.hxx from String to OUString
Change-Id: I055d9ffc184fc2302cd01176238cd9652426414d
2013-09-05 08:54:08 +02:00
55b15c9db5 convert include/svx/xtable.hxx from String to OUString
Change-Id: I5230e5bfe1297875388ef798ed75b675ba09dd89
2013-09-05 08:53:55 +02:00
f46f23a109 XubString->OUString
Change-Id: I86515dde1c6169531e687701a5ae067de1b6f114
Reviewed-on: https://gerrit.libreoffice.org/5782
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-09-03 13:08:33 +00:00
1d3483ed27 Remove some unused code from unusedcode.easy
Change-Id: Ic3e96eebbb914c5b905a8c58532ead9cb01dd41d
Reviewed-on: https://gerrit.libreoffice.org/5721
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-09-01 09:15:44 +00:00
e8c0708ee9 remove code that was commented out long time ago 2013-08-21 21:18:24 +02:00
349c91c8ec fdo#62475 , fdo#39468: remove visual noise and translate German comments in svx/source/xoutdev/ 2013-08-21 21:18:24 +02:00
03a2bb6cd8 XubString->OUString
Change-Id: I9a542f58522bfb3db9cb990098e1bda004d25223
2013-08-21 08:45:16 +01:00
7473e8a456 convert vcl/graphicfilter.hxx from String to OUString
Change-Id: I41997c49e6332fc378a3173616112a3a26e336ae
2013-08-12 11:56:42 +02:00
e3cf548750 metric strings loaded from wrong .src
Change-Id: I5261a699a44bc7eb6ecca1842f2390a0778d7b09
2013-08-09 20:46:24 +01:00
5efc15f000 reduce use of UniString from ResID ctor
Change-Id: I8d7619e7807ff2d400ec5c7fd181375130245728
2013-07-28 16:45:48 +01:00
0b48a9b5e0 remove unused headers
Change-Id: I3345e6322a9aa25239df98033b8436ec377e197f
2013-07-11 15:17:53 +02:00
5dd1b3da57 fdo#63211 - embed images in HTML export.
Change-Id: I585c85d2cee13ee8954623bd981cb372d78b7952
2013-07-11 12:36:20 +02:00
5cb2e3104b remove toolkit/unohlp.hxx hack
Change-Id: Idb9971d848870f4d00dbf77e80e48bf7dfde8913
Reviewed-on: https://gerrit.libreoffice.org/4601
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28 11:49:28 +00:00
bb7d4a54cc warning C4702: clearly there's a case missing here
Change-Id: I3afdca0a51c41ef75f3ea63e27a6e7a858c30111
2013-06-20 14:14:19 +02:00
dde5dbdef5 Resolves: #i122318# Adapted color palette stuff, some cleanups
(cherry picked from commit 710925d1d93a8ccf36957fa2f4d98d7dedb4cb9f)

Conflicts:
	extras/source/palettes/standard.soc
	svx/inc/svx/dialogs.hrc
	svx/source/dialog/sdstring.src
	svx/source/unodraw/unoprov.cxx
	svx/source/xoutdev/xtabcolr.cxx

Change-Id: I15899fc51e61e29da443838d1a42ea5d7c53acb9
2013-06-20 12:13:39 +01:00
60446a0386 Related: #i122120# corrected flag for drawing checkerboards...
adapted previews, added to configuration

(cherry picked from commit c17e634e125f524d153e1ad8febff6d11b810ee4)

Conflicts:
	officecfg/registry/schema/org/openoffice/Office/Common.xcs
	svtools/inc/svtools/accessibilityoptions.hxx
	svtools/source/inc/configitems/accessibilityoptions_const.hxx
	vcl/inc/vcl/settings.hxx

Change-Id: I3f4fd9525e31cd816599b963ecd2fa42b1f666d7
2013-06-18 16:46:39 +01:00
6ed60d6a93 Related: #i122120# Ensured Append/Modify methods in LB implementations...
always add a UI graphic preview, corrected diag mirror in bitmap pattern

(cherry picked from commit 36a8574012525fa837df6dfd1839fa65b5a2bc70)

Conflicts:
	cui/source/tabpages/tpbitmap.cxx
	cui/source/tabpages/tpcolor.cxx
	cui/source/tabpages/tpgradnt.cxx
	cui/source/tabpages/tplnedef.cxx
	cui/source/tabpages/tplneend.cxx
	svx/inc/svx/dlgctrl.hxx
	svx/inc/svx/xtable.hxx
	svx/source/dialog/dlgctrl.cxx
	svx/source/xoutdev/xtabbtmp.cxx
	svx/source/xoutdev/xtabcolr.cxx
	svx/source/xoutdev/xtabdash.cxx
	svx/source/xoutdev/xtabgrdt.cxx
	svx/source/xoutdev/xtabhtch.cxx
	svx/source/xoutdev/xtable.cxx
	svx/source/xoutdev/xtablend.cxx

Change-Id: Iff0744061b76d8c608e285f81bcc8e76edeb6a69
2013-06-18 15:35:15 +01:00
7377557f27 Resolves: #i122120# Changed UI preview creators...
to no longer need SdrModel/SdrObject

(cherry picked from commit 0c353433ad94786a937fa9da01d6e7382e3da942)

corrected unwanted change

(cherry picked from commit 8a10735b8ee3926a592d6919f4dbb823771bed9f)

Conflicts:
	vcl/inc/vcl/outdev.hxx

7c096015d974382e6874a874370ee72a61f02e6a

Change-Id: Ib2afe135566eba2e99cc8c4a653de3df0fa7f0cd
2013-06-18 13:06:12 +01:00
445ebce3e0 Resolves: #i121791# Enhanced look of the LineStyle previews
(cherry picked from commit 35f96c967abb1a8b4723c7261c253661d409732c)

Conflicts:
	svx/source/xoutdev/xtabdash.cxx
	svx/source/xoutdev/xtable.cxx

Change-Id: Idcff1f8ca317bc17757a88c88ff2bd89a82f6f9d
2013-06-18 09:17:55 +01:00
573322e26b Resolves: #i121538# Removed old Fontwork dialogs preset box...
and all dependencies

(cherry picked from commit bcfee75544246db6788715d98efd6d33c12f933d)

Conflicts:
	sd/inc/pch/precompiled_sd.hxx
	sd/source/core/typemap.cxx
	sd/source/ui/view/drviews6.cxx
	svx/Package_inc.mk
	svx/inc/svx/dialogs.hrc
	svx/inc/svx/fontwork.hxx
	svx/inc/svx/svdstr.hrc
	svx/inc/svx/svxcommands.h
	svx/inc/svx/svxids.hrc
	svx/inc/svx/unoshprp.hxx
	svx/inc/svx/xdef.hxx
	svx/inc/svx/xenum.hxx
	svx/inc/svx/xtextit.hxx
	svx/source/dialog/fontwork.cxx
	svx/source/dialog/fontwork.hrc
	svx/source/dialog/fontwork.src
	svx/source/xoutdev/xattr.cxx
	sw/inc/pch/precompiled_sw.hxx

Change-Id: I3718285d38444d3862ca382fe020a4e0a083a677
2013-06-17 11:02:00 +01:00