[Bug 90341] Easy Hack: Clean up excessive const_cast'ing

2015-03-29 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=90341

Stephan Bergmann  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1
 Whiteboard||EasyHack DifficultyBeginner
   ||SkillCpp TopicCleanup

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: vcl/quartz

2015-03-29 Thread Tor Lillqvist
 vcl/quartz/salgdicommon.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 17309d29794951cd07376a1bfcc547b418a28241
Author: Tor Lillqvist 
Date:   Mon Mar 30 01:38:34 2015 +0300

Don't crash if no screens available (no access to the window system)

Fixes a crash when running gengal on OS X in a ssh session when not
logged in through the window system at the same time.

Change-Id: I6a47666aeac43fc140f52ae2d62b36eadc976246

diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx
index 8cbbf65..ac65c77 100644
--- a/vcl/quartz/salgdicommon.cxx
+++ b/vcl/quartz/salgdicommon.cxx
@@ -1693,7 +1693,7 @@ void AquaSalGraphics::initResolution( NSWindow* )
 if( pScreen == nil )
 {
 NSArray* pScreens = [NSScreen screens];
-if( pScreens )
+if( pScreens && [pScreens count] > 0)
 pScreen = [pScreens objectAtIndex: 0];
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Bug 90341] New: Easy Hack: Clean up excessive const_cast'ing

2015-03-29 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=90341

Bug ID: 90341
   Summary: Easy Hack: Clean up excessive const_cast'ing
   Product: LibreOffice
   Version: unspecified
  Hardware: All
OS: All
Status: UNCONFIRMED
  Severity: enhancement
  Priority: medium
 Component: LibreOffice
  Assignee: libreoffice-b...@lists.freedesktop.org
  Reporter: sberg...@redhat.com
CC: libreoffice@lists.freedesktop.org

Find C++ source files that need a suspiciously high amount of const_cast, then
see if some of them are due to poor design that can be improved (by e.g. making
relevant member functions const, making relevant member variables mutable,
making relevant variables pointer to non-const).

(You can use something like

> git grep --word-regexp --count const_cast | sort --numeric-sort --key=2 
> --field-separator=:

to get the high-scorers of const_cast usage.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: How many degrees of headlessness do we need?

2015-03-29 Thread Tor Lillqvist
> I our company, on Windows machines, it is used regularly to convert file
> formats (xls to odf/pdf) without user interaction, without any signs of
> being broken.
>

Yeah, which is why I said "to some degree". It's not the situations and
combinations that work that are interesting, but those that don't.

--tml
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


LibreOffice Gerrit News for core on 2015-03-30

2015-03-29 Thread gerrit
Moin!

* Open changes on master for project core changed in the last 25 hours:

 First time contributors doing great things! 
+ Breeze: Border style change
  in https://gerrit.libreoffice.org/15057 from Andreas Kainz
  about module icon-themes
+ Parallelized update precompiled headers.
  in https://gerrit.libreoffice.org/14802 from Ashod Nakashian
  about module bin
+ tdf#51460 Calc fails to set undo step after changing image anchor mode
  in https://gerrit.libreoffice.org/14489 from Henry Castro
  about module sc
+ tdf#90246 PPTX paragraph and bullet leftMargin and Indentation is not exp
  in https://gerrit.libreoffice.org/15016 from Priyanka Gaikwad
  about module include, oox, sd
 End of freshness 

+ stop including irrelevant header; include right ones instead
  in https://gerrit.libreoffice.org/15061 from Takeshi Abe
  about module starmath
+ tdf#90301: CRASH Assertion after pressing back button the Function Wizard
  in https://gerrit.libreoffice.org/15046 from Julien Nabet
  about module formula


* Merged changes on master for project core changed in the last 25 hours:

+ Galaxy: wront icon name in links.txt sc_sc_
  in https://gerrit.libreoffice.org/15056 from Andreas Kainz
+ Breeze: update svx and icons for 4.4 from links.txt galaxy
  in https://gerrit.libreoffice.org/15055 from Andreas Kainz
+ Breeze: decrement icons now look like increment
  in https://gerrit.libreoffice.org/15054 from Andreas Kainz
+ Breeze: Style and Formatting sidebar
  in https://gerrit.libreoffice.org/15051 from Andreas Kainz
+ Breeze: Properties Spacing and Indent Sidebar
  in https://gerrit.libreoffice.org/15053 from Andreas Kainz
+ Breeze: sfx2/res locked files icons
  in https://gerrit.libreoffice.org/15052 from Andreas Kainz
+ Breeze: missing icons from sc/res folder
  in https://gerrit.libreoffice.org/15049 from Andreas Kainz
+ Breeze: missing sc icons
  in https://gerrit.libreoffice.org/15050 from Andreas Kainz
+ writerfilter: turn RTFDestinationState into a C++11 scoped enumeration
  in https://gerrit.libreoffice.org/15047 from Miklos Vajna
+ Breeze: CellBorder icons
  in https://gerrit.libreoffice.org/15048 from Andreas Kainz
+ Breeze: Calc ChartWizard icons
  in https://gerrit.libreoffice.org/15037 from Andreas Kainz


* Abandoned changes on master for project core changed in the last 25 hours:

None

* Open changes needing tweaks, but being untouched for more than a week:

+ tdf#64575 Photo Album: Better Image Layout
  in https://gerrit.libreoffice.org/14912 from Enes Ateş
+ tdf#39468 Translate German Comments - sc/source/core/data/
  in https://gerrit.libreoffice.org/14866 from Christian M. Heller
+ tdf#49893: final fix for blank rectangle problem
  in https://gerrit.libreoffice.org/14584 from Vasily Melenchuk
+ xmloff: convert xof.component to use constructor syntax
  in https://gerrit.libreoffice.org/14820 from Chris Sherlock
+ xmloff: use constructor syntax in xo.component
  in https://gerrit.libreoffice.org/14803 from Chris Sherlock
+ sd: use constructor syntax for rest of sd.component
  in https://gerrit.libreoffice.org/14689 from Chris Sherlock
+ embeddedobj: convert emboleobj.*.component to constructor syntax
  in https://gerrit.libreoffice.org/14687 from Chris Sherlock
+ sc: use constructor syntax in sc.component
  in https://gerrit.libreoffice.org/14750 from Chris Sherlock
+ Convert ScDocument to constructor syntax, remove sc_component_getFactory(
  in https://gerrit.libreoffice.org/14751 from Chris Sherlock
+ scaddins: use constructor syntax for date.component
  in https://gerrit.libreoffice.org/14707 from Chris Sherlock
+ scaddins: use constructor syntax for pricing.component
  in https://gerrit.libreoffice.org/14706 from Chris Sherlock
+ scaddins: use constructor syntax for analysis.component
  in https://gerrit.libreoffice.org/14708 from Chris Sherlock
+ package: use constructor syntax in xstor.component
  in https://gerrit.libreoffice.org/14757 from Chris Sherlock
+ xmlsecurity: use constructor syntax in xsec_xmlsec.component
  in https://gerrit.libreoffice.org/14758 from Chris Sherlock
+ BUG - tdf#38835 strip out non-trivial globals before main
  in https://gerrit.libreoffice.org/14830 from Karthick Prasad
+ Convert OS = LINUX conditionals to GUIBASE = unx.
  in https://gerrit.libreoffice.org/14790 from Ryo ONODERA
+ fdo#83672 , fdo#67776 : Fixed shape rotation angle in xlsx import.
  in https://gerrit.libreoffice.org/13090 from Sushil Shinde
+ tdf#85491 : break parameter incorrectly set in .XLSX import.
  in https://gerrit.libreoffice.org/12213 from Sushil Shinde
+ Drop MAC_OS_X_VERSION_... variables
  in https://gerrit.libreoffice.org/13212 from Douglas Mencken
+ jpeg-turbo: OpenCL for decompression of jpegs.
  in https://gerrit.libreoffice.org/13315 from Jan Holesovsky
+ GPU Calc:Support string parameter in SUMIF an SUMIFS.
  in https://gerrit.libreoffice.org/12044 from Hao Chen
+ wip: get rid of svx dbtoolsclient
  in https://gerrit.libreoffice.org/11737 from Lionel Elie Mamane

[Bug 90336] Make it visible in "Options - LibreOffice - OpenCL" whether OpenCL will be used, and which implementation

2015-03-29 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=90336

--- Comment #2 from Tor Lillqvist  ---
Ideally we shouldn't have the white and black lists visible in the UI at all. I
don't have any expectation that actual end-users will ever understand what they
mean, or edit them. (This is my personal opinion.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


RE: How many degrees of headlessness do we need?

2015-03-29 Thread Winfried Donkers
Hi tml,

>On Linux (and other X11-using Unixes), --headless is tightly coupled to the 
>'vclplug' concept, as there used to be a 'headless' (actually called 'svp') 
>vclplug that was used (instead of a "generic" X11, GTK or KDE one) in headless 
>mode. Nowadays the 'svp' code is not technically a vclplug any more, but that 
>is just an implementation detail. On Windows and OS X, --headless support is 
>presumably broken to some degree.

I our company, on Windows machines, it is used regularly to convert file 
formats (xls to odf/pdf) without user interaction, without any signs of being 
broken.

Winfried
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: 37 commits - bin/gbuild-to-ide offapi/com offapi/UnoApi_offapi.mk sc/CppunitTest_sc_new_cond_format_api.mk sc/inc sc/Library_sc.mk sc/Module_sc.mk sc/qa sc/source

2015-03-29 Thread Markus Mohrhard
 bin/gbuild-to-ide |1 
 offapi/UnoApi_offapi.mk   |   16 
 offapi/com/sun/star/sheet/ConditionEntryType.idl  |8 
 offapi/com/sun/star/sheet/ConditionFormatEntry.idl|9 
 offapi/com/sun/star/sheet/ConditionFormatOperator.idl |   10 
 offapi/com/sun/star/sheet/ConditionalFormat.idl   |4 
 offapi/com/sun/star/sheet/DataBar.idl |8 
 offapi/com/sun/star/sheet/IconSet.idl |5 
 offapi/com/sun/star/sheet/IconSetFormatEntry.idl  |   15 
 offapi/com/sun/star/sheet/XColorScaleEntry.idl|   16 
 offapi/com/sun/star/sheet/XDataBarEntry.idl   |   12 
 offapi/com/sun/star/sheet/XIconSetEntry.idl   |   12 
 sc/CppunitTest_sc_new_cond_format_api.mk  |  109 +
 sc/Library_sc.mk  |1 
 sc/Module_sc.mk   |1 
 sc/inc/colorscale.hxx |6 
 sc/inc/conditio.hxx   |2 
 sc/inc/unonames.hxx   |1 
 sc/inc/unowids.hxx|3 
 sc/qa/extras/new_cond_format.cxx  |  307 +++
 sc/qa/extras/testdocuments/new_cond_format_api.ods|binary
 sc/source/core/data/colorscale.cxx|   24 
 sc/source/core/data/conditio.cxx  |   14 
 sc/source/ui/inc/condformatuno.hxx|  520 +
 sc/source/ui/unoobj/cellsuno.cxx  |   15 
 sc/source/ui/unoobj/condformatuno.cxx | 1746 ++
 26 files changed, 2835 insertions(+), 30 deletions(-)

New commits:
commit 64c251f99ba633c96c1e3410e69dfcdcbf44a267
Author: Markus Mohrhard 
Date:   Mon Mar 30 02:03:14 2015 +0200

let all cond format objects inherit from XConditionEntry

Change-Id: I60f156b4a64cc70bd1d19f4bb29c79cc8cff3e94

diff --git a/sc/source/ui/inc/condformatuno.hxx 
b/sc/source/ui/inc/condformatuno.hxx
index 48ab6fe..99e5dec 100644
--- a/sc/source/ui/inc/condformatuno.hxx
+++ b/sc/source/ui/inc/condformatuno.hxx
@@ -238,7 +238,8 @@ private:
 const ScCondFormatEntry* mpFormat;
 };
 
-class ScColorScaleFormatObj : public 
cppu::WeakImplHelper1
+class ScColorScaleFormatObj : public 
cppu::WeakImplHelper2
 {
 public:
 
@@ -247,6 +248,11 @@ public:
 
 static ScColorScaleFormatObj* 
getImplementation(uno::Reference xPropSet);
 
+// XConditionEntry
+virtual sal_Int32 SAL_CALL getType()
+throw(::com::sun::star::uno::RuntimeException, std::exception) 
SAL_OVERRIDE;
+
+
 ScColorScaleFormat* getCoreObject();
 
 // XPropertySet
@@ -329,7 +335,8 @@ private:
 size_t mnPos;
 };
 
-class ScDataBarFormatObj : public 
cppu::WeakImplHelper1
+class ScDataBarFormatObj : public 
cppu::WeakImplHelper2
 {
 public:
 ScDataBarFormatObj(rtl::Reference xParent,
@@ -340,7 +347,11 @@ public:
 
 ScDataBarFormat* getCoreObject();
 
-// XPropertySet
+// XConditionEntry
+virtual sal_Int32 SAL_CALL getType()
+throw(::com::sun::star::uno::RuntimeException, std::exception) 
SAL_OVERRIDE;
+
+// XPropertySet
 virtual ::com::sun::star::uno::Reference< 
::com::sun::star::beans::XPropertySetInfo >
 SAL_CALL getPropertySetInfo()
 throw(::com::sun::star::uno::RuntimeException, 
std::exception) SAL_OVERRIDE;
@@ -414,7 +425,8 @@ private:
 size_t mnPos;
 };
 
-class ScIconSetFormatObj : public 
cppu::WeakImplHelper1
+class ScIconSetFormatObj : public 
cppu::WeakImplHelper2
 {
 public:
 ScIconSetFormatObj(rtl::Reference xParent,
@@ -425,7 +437,11 @@ public:
 
 ScIconSetFormat* getCoreObject();
 
-// XPropertySet
+// XConditionEntry
+virtual sal_Int32 SAL_CALL getType()
+throw(::com::sun::star::uno::RuntimeException, std::exception) 
SAL_OVERRIDE;
+
+// XPropertySet
 virtual ::com::sun::star::uno::Reference< 
::com::sun::star::beans::XPropertySetInfo >
 SAL_CALL getPropertySetInfo()
 throw(::com::sun::star::uno::RuntimeException, 
std::exception) SAL_OVERRIDE;
diff --git a/sc/source/ui/unoobj/condformatuno.cxx 
b/sc/source/ui/unoobj/condformatuno.cxx
index b3ff5c9..ba9d496 100644
--- a/sc/source/ui/unoobj/condformatuno.cxx
+++ b/sc/source/ui/unoobj/condformatuno.cxx
@@ -30,6 +30,7 @@
 #include 
 #include 
 #include 
+#include 
 
 namespace {
 
@@ -613,7 +614,7 @@ ScCondFormatEntry* ScConditionEntryObj::getCoreObject()
 sal_Int32 ScConditionEntryObj::getType()
 throw(uno::RuntimeException, std::exception)
 {
-return 0;
+return sheet::ConditionEntryType::CONDITION;
 }
 
 uno::Reference SAL_CALL 
ScConditionEntryObj::getPropertySetInfo()
@@ -729,7 +730,6 @@ uno::Any SAL_CALL ScConditionEntryObj::getPropertyValue( 
const OUString

[Bug 90336] Make it visible in "Options - LibreOffice - OpenCL" whether OpenCL will be used, and which implementation

2015-03-29 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=90336

Markus Mohrhard  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 CC||libreoffice@lists.freedeskt
   ||op.org
 Ever confirmed|0   |1
 Whiteboard||EasyHack DifficultyBeginner
   ||SkillCpp

--- Comment #1 from Markus Mohrhard  ---
The setting around OpenCL are available in opencl/source/openclconfig.

The OpenCL dialog is in cui/source/options/optopencl.cxx and
cui/uiconfig/ui/optopenclpage.ui

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: Branch 'private/moggi/conditional-format-api-rebased' - 36 commits - bin/gbuild-to-ide offapi/com sc/CppunitTest_sc_new_cond_format_api.mk sc/inc sc/Library_sc.mk sc/Mo

2015-03-29 Thread Markus Mohrhard
Rebased ref, commits from common ancestor:
commit 64c251f99ba633c96c1e3410e69dfcdcbf44a267
Author: Markus Mohrhard 
Date:   Mon Mar 30 02:03:14 2015 +0200

let all cond format objects inherit from XConditionEntry

Change-Id: I60f156b4a64cc70bd1d19f4bb29c79cc8cff3e94

diff --git a/sc/source/ui/inc/condformatuno.hxx 
b/sc/source/ui/inc/condformatuno.hxx
index 48ab6fe..99e5dec 100644
--- a/sc/source/ui/inc/condformatuno.hxx
+++ b/sc/source/ui/inc/condformatuno.hxx
@@ -238,7 +238,8 @@ private:
 const ScCondFormatEntry* mpFormat;
 };
 
-class ScColorScaleFormatObj : public 
cppu::WeakImplHelper1
+class ScColorScaleFormatObj : public 
cppu::WeakImplHelper2
 {
 public:
 
@@ -247,6 +248,11 @@ public:
 
 static ScColorScaleFormatObj* 
getImplementation(uno::Reference xPropSet);
 
+// XConditionEntry
+virtual sal_Int32 SAL_CALL getType()
+throw(::com::sun::star::uno::RuntimeException, std::exception) 
SAL_OVERRIDE;
+
+
 ScColorScaleFormat* getCoreObject();
 
 // XPropertySet
@@ -329,7 +335,8 @@ private:
 size_t mnPos;
 };
 
-class ScDataBarFormatObj : public 
cppu::WeakImplHelper1
+class ScDataBarFormatObj : public 
cppu::WeakImplHelper2
 {
 public:
 ScDataBarFormatObj(rtl::Reference xParent,
@@ -340,7 +347,11 @@ public:
 
 ScDataBarFormat* getCoreObject();
 
-// XPropertySet
+// XConditionEntry
+virtual sal_Int32 SAL_CALL getType()
+throw(::com::sun::star::uno::RuntimeException, std::exception) 
SAL_OVERRIDE;
+
+// XPropertySet
 virtual ::com::sun::star::uno::Reference< 
::com::sun::star::beans::XPropertySetInfo >
 SAL_CALL getPropertySetInfo()
 throw(::com::sun::star::uno::RuntimeException, 
std::exception) SAL_OVERRIDE;
@@ -414,7 +425,8 @@ private:
 size_t mnPos;
 };
 
-class ScIconSetFormatObj : public 
cppu::WeakImplHelper1
+class ScIconSetFormatObj : public 
cppu::WeakImplHelper2
 {
 public:
 ScIconSetFormatObj(rtl::Reference xParent,
@@ -425,7 +437,11 @@ public:
 
 ScIconSetFormat* getCoreObject();
 
-// XPropertySet
+// XConditionEntry
+virtual sal_Int32 SAL_CALL getType()
+throw(::com::sun::star::uno::RuntimeException, std::exception) 
SAL_OVERRIDE;
+
+// XPropertySet
 virtual ::com::sun::star::uno::Reference< 
::com::sun::star::beans::XPropertySetInfo >
 SAL_CALL getPropertySetInfo()
 throw(::com::sun::star::uno::RuntimeException, 
std::exception) SAL_OVERRIDE;
diff --git a/sc/source/ui/unoobj/condformatuno.cxx 
b/sc/source/ui/unoobj/condformatuno.cxx
index b3ff5c9..ba9d496 100644
--- a/sc/source/ui/unoobj/condformatuno.cxx
+++ b/sc/source/ui/unoobj/condformatuno.cxx
@@ -30,6 +30,7 @@
 #include 
 #include 
 #include 
+#include 
 
 namespace {
 
@@ -613,7 +614,7 @@ ScCondFormatEntry* ScConditionEntryObj::getCoreObject()
 sal_Int32 ScConditionEntryObj::getType()
 throw(uno::RuntimeException, std::exception)
 {
-return 0;
+return sheet::ConditionEntryType::CONDITION;
 }
 
 uno::Reference SAL_CALL 
ScConditionEntryObj::getPropertySetInfo()
@@ -729,7 +730,6 @@ uno::Any SAL_CALL ScConditionEntryObj::getPropertyValue( 
const OUString& aProper
 {
 aAny <<= aConditionEntryMap[i].nApiMode;
 break;
-
 }
 }
 }
@@ -794,6 +794,12 @@ ScColorScaleFormat* ScColorScaleFormatObj::getCoreObject()
 throw lang::IllegalArgumentException();
 }
 
+sal_Int32 ScColorScaleFormatObj::getType()
+throw(uno::RuntimeException, std::exception)
+{
+return sheet::ConditionEntryType::COLORSCALE;
+}
+
 uno::Reference SAL_CALL 
ScColorScaleFormatObj::getPropertySetInfo()
 throw(uno::RuntimeException, std::exception)
 {
@@ -1057,6 +1063,12 @@ ScDataBarFormat* ScDataBarFormatObj::getCoreObject()
 throw lang::IllegalArgumentException();
 }
 
+sal_Int32 ScDataBarFormatObj::getType()
+throw(uno::RuntimeException, std::exception)
+{
+return sheet::ConditionEntryType::DATABAR;
+}
+
 uno::Reference SAL_CALL 
ScDataBarFormatObj::getPropertySetInfo()
 throw(uno::RuntimeException, std::exception)
 {
@@ -1432,6 +1444,12 @@ ScIconSetFormat* ScIconSetFormatObj::getCoreObject()
 throw lang::IllegalArgumentException();
 }
 
+sal_Int32 ScIconSetFormatObj::getType()
+throw(uno::RuntimeException, std::exception)
+{
+return sheet::ConditionEntryType::ICONSET;
+}
+
 uno::Reference SAL_CALL 
ScIconSetFormatObj::getPropertySetInfo()
 throw(uno::RuntimeException, std::exception)
 {
commit d21f9f5079c4ca705331dcb298709bc55971bafa
Author: Markus Mohrhard 
Date:   Mon Mar 30 02:02:39 2015 +0200

fix API values

Change-Id: I3a5890d8d46936b264510150ef0fa8ac79feb74d

diff --git a/offapi/com/sun/star/sheet/ConditionEntryType.idl 
b/offapi/com/sun/star/sheet/ConditionEntryType.idl
index 151ed52..43148cf 1

[Libreoffice-commits] core.git: Changes to 'private/moggi/conditional-format-api-rebased'

2015-03-29 Thread Markus Mohrhard
New branch 'private/moggi/conditional-format-api-rebased' available with the 
following commits:
commit 36232ea23543635d4bb24750cbd36ad88e4e710c
Author: Markus Mohrhard 
Date:   Mon Mar 30 02:03:14 2015 +0200

let all cond format objects inherit from XConditionEntry

Change-Id: I60f156b4a64cc70bd1d19f4bb29c79cc8cff3e94

commit e8ce1b0af1566b7d45a89895ddfa70110f188fd2
Author: Markus Mohrhard 
Date:   Mon Mar 30 02:02:39 2015 +0200

fix API values

Change-Id: I3a5890d8d46936b264510150ef0fa8ac79feb74d

commit afa0a5213618ab715cf80479703c86141b814e27
Author: Markus Mohrhard 
Date:   Mon Mar 30 01:55:29 2015 +0200

implement last part for color scales

Change-Id: Ieaca45d01b5e631e624016b58ab7964dc880725a

commit c0f72bbb691d7bcb679974c6dcfd22ae52e2354f
Author: Markus Mohrhard 
Date:   Mon Mar 30 01:47:13 2015 +0200

add color scale entries

Change-Id: If88822765b5ec738f3204a4ef7c76c3d529e6be2

commit f136700a94c2da2c2c5df0e5312ec53d11ba0003
Author: Markus Mohrhard 
Date:   Mon Mar 30 01:27:47 2015 +0200

add last databar part

Change-Id: Id86dfa4e6795d0ec6a66850747f95de6b0bd8b98

commit 702c7055c5ec4f2bc871d860e616c5514bde8a2a
Author: Markus Mohrhard 
Date:   Mon Mar 30 01:17:44 2015 +0200

implement last missing IconSet piece

Change-Id: I97fb3a2e8bc5abb68a07e4daab6492a4ffa5c52a

commit 34230f3240a752e6a294c1bd0287e0aa18689042
Author: Markus Mohrhard 
Date:   Mon Mar 30 01:03:37 2015 +0200

first icon set entry always is minimum

Change-Id: Iddeced617ec6248601a3636a84abab6c1d4bb015

commit 9b0c342a2c1841e7e22e602d358566d2d17fd413
Author: Markus Mohrhard 
Date:   Mon Mar 30 01:01:04 2015 +0200

add uno object for iconset entries

Change-Id: I3eed6b39a72369063e160e2be7a27fed53a0234a

commit 1751f6c7e4fa6dd9df7acf564d2a51a6b5d2906b
Author: Markus Mohrhard 
Date:   Mon Mar 30 01:00:11 2015 +0200

add UNO object for DataBar entries

Change-Id: I5e11e62076495f62876654baeebe7dffe6492040

commit 4d90f30748ec6fbb6edfbd5e1c75891211557444
Author: Markus Mohrhard 
Date:   Mon Mar 30 00:58:43 2015 +0200

add value for first entry

Change-Id: Ifc53952ba0aaa8b5e59944e309428bfce4d48ef7

commit c73d53d6b5801b3f8c6cb160e0a7c5db23d173f9
Author: Markus Mohrhard 
Date:   Sun Mar 29 23:10:51 2015 +0200

work on initial colorscale properties tests

Change-Id: Ifc71437b8c7dfd70bf733863713ada4ad605abad

commit f0dcbe0074aa76b5c6d27ab96f009926314c02af
Author: Markus Mohrhard 
Date:   Sun Mar 29 23:03:06 2015 +0200

the implementation is available so enable it again

Change-Id: Ia5974e57fd4a21897577ff25fb53f48cceb49501

commit a8d6522ad7aefe2a9f03ec9d0e894e2287a9e89f
Author: Markus Mohrhard 
Date:   Sun Mar 29 23:01:28 2015 +0200

start work on data property tests

Change-Id: I1f1722aa3566555816df19e68aa7eaa97e7a13d9

commit eceacf9d9087b26c8a130a08bd59e64e70c8
Author: Markus Mohrhard 
Date:   Sun Mar 29 23:01:10 2015 +0200

fix condition

Change-Id: If8ad2361d6c0d838c39f8625f129fc326efd2cd4

commit 1d1589c04dcc836f4a0f93c4c61fbb36ca5b588b
Author: Markus Mohrhard 
Date:   Sun Mar 29 19:54:09 2015 +0200

correct lifecycle handling for more objects

Change-Id: I456019c298c73bc872b49b55b628af1e0233be73

commit 251a4139cc1e4d4c5eae047bb227df2058c9241a
Author: Markus Mohrhard 
Date:   Fri Mar 27 04:13:52 2015 +0100

implement one more method

Change-Id: Ie18be81fa664df88af605674968e302c59f7dc98

commit 95455fee4db3101ac2ab057731eb04175ba3e15c
Author: Markus Mohrhard 
Date:   Fri Mar 27 04:12:53 2015 +0100

fix return type

Change-Id: I581a8a0c7348a9752611b378e883ef20172d16e0

commit 83b87a6c6dcf5be1c3f1ca92aeb28358355cc2b1
Author: Markus Mohrhard 
Date:   Fri Mar 27 04:11:53 2015 +0100

implement one more method

Change-Id: I3483b2004c0afb8bea651d9eec35d1cbf9aff2a1

commit a0df287a9518f645f9d14d4453a609c447a5bb24
Author: Markus Mohrhard 
Date:   Fri Mar 27 03:24:35 2015 +0100

implement some more properties for databars

Change-Id: Ib6c7f4f316ff49d433c8810ef9a7bbfe64c0576d

commit 10028520a2894d95565a903337e6855612c3d177
Author: Markus Mohrhard 
Date:   Thu Mar 26 23:16:27 2015 +0100

fix getPropertyValue/setPropertyValue for ScCondFormatEntry UNO object

Change-Id: Id1a3cc62288c6c618c8b86caaa69a96eb541d06f

commit a4c4b904906b0830435c79d3a61f945195773fe0
Author: Markus Mohrhard 
Date:   Thu Mar 26 23:14:29 2015 +0100

more work for fixing lifecycle

Change-Id: Ieba2eef93777f616bda6a46fe206b773c09ab2a0

commit 50e4f714b38397c73fdd0abb595909c3e8e9ae79
Author: Markus Mohrhard 
Date:   Thu Mar 26 23:12:10 2015 +0100

add missing enum values

Change-Id: I3234fb21e3f62068e39b6667e9c77e857536ade4

commit 86c85bae001f775e10f5b4a19c19905fd06a701d
Author: Markus Mohrhard 
Date:   Tue Mar 17 08:34:05 2015 +0100

let all new conditional formatting objects use WeakImplHelper

Ch

[Libreoffice-commits] core.git: Branch 'private/moggi/conditional-format-api' - 4 commits - offapi/com sc/inc sc/source

2015-03-29 Thread Markus Mohrhard
 offapi/com/sun/star/sheet/ConditionEntryType.idl |8 
 sc/inc/colorscale.hxx|2 
 sc/source/core/data/colorscale.cxx   |8 
 sc/source/ui/inc/condformatuno.hxx   |   58 ++
 sc/source/ui/unoobj/condformatuno.cxx|  196 ++-
 5 files changed, 260 insertions(+), 12 deletions(-)

New commits:
commit c0b663063c38bea1e3cd60d2583813d78c0c02b7
Author: Markus Mohrhard 
Date:   Mon Mar 30 02:03:14 2015 +0200

let all cond format objects inherit from XConditionEntry

Change-Id: I60f156b4a64cc70bd1d19f4bb29c79cc8cff3e94

diff --git a/sc/source/ui/inc/condformatuno.hxx 
b/sc/source/ui/inc/condformatuno.hxx
index 7200a2a..fd56c05 100644
--- a/sc/source/ui/inc/condformatuno.hxx
+++ b/sc/source/ui/inc/condformatuno.hxx
@@ -238,7 +238,8 @@ private:
 const ScCondFormatEntry* mpFormat;
 };
 
-class ScColorScaleFormatObj : public 
cppu::WeakImplHelper1
+class ScColorScaleFormatObj : public 
cppu::WeakImplHelper2
 {
 public:
 
@@ -247,6 +248,11 @@ public:
 
 static ScColorScaleFormatObj* 
getImplementation(uno::Reference xPropSet);
 
+// XConditionEntry
+virtual SAL_CALL sal_Int32 getType()
+throw(::com::sun::star::uno::RuntimeException, std::exception) 
SAL_OVERRIDE;
+
+
 ScColorScaleFormat* getCoreObject();
 
 // XPropertySet
@@ -329,7 +335,8 @@ private:
 size_t mnPos;
 };
 
-class ScDataBarFormatObj : public 
cppu::WeakImplHelper1
+class ScDataBarFormatObj : public 
cppu::WeakImplHelper2
 {
 public:
 ScDataBarFormatObj(rtl::Reference xParent,
@@ -340,7 +347,11 @@ public:
 
 ScDataBarFormat* getCoreObject();
 
-// XPropertySet
+// XConditionEntry
+virtual SAL_CALL sal_Int32 getType()
+throw(::com::sun::star::uno::RuntimeException, std::exception) 
SAL_OVERRIDE;
+
+// XPropertySet
 virtual ::com::sun::star::uno::Reference< 
::com::sun::star::beans::XPropertySetInfo >
 SAL_CALL getPropertySetInfo()
 throw(::com::sun::star::uno::RuntimeException, 
std::exception) SAL_OVERRIDE;
@@ -414,7 +425,8 @@ private:
 size_t mnPos;
 };
 
-class ScIconSetFormatObj : public 
cppu::WeakImplHelper1
+class ScIconSetFormatObj : public 
cppu::WeakImplHelper2
 {
 public:
 ScIconSetFormatObj(rtl::Reference xParent,
@@ -425,7 +437,11 @@ public:
 
 ScIconSetFormat* getCoreObject();
 
-// XPropertySet
+// XConditionEntry
+virtual SAL_CALL sal_Int32 getType()
+throw(::com::sun::star::uno::RuntimeException, std::exception) 
SAL_OVERRIDE;
+
+// XPropertySet
 virtual ::com::sun::star::uno::Reference< 
::com::sun::star::beans::XPropertySetInfo >
 SAL_CALL getPropertySetInfo()
 throw(::com::sun::star::uno::RuntimeException, 
std::exception) SAL_OVERRIDE;
diff --git a/sc/source/ui/unoobj/condformatuno.cxx 
b/sc/source/ui/unoobj/condformatuno.cxx
index b3ff5c9..ba9d496 100644
--- a/sc/source/ui/unoobj/condformatuno.cxx
+++ b/sc/source/ui/unoobj/condformatuno.cxx
@@ -30,6 +30,7 @@
 #include 
 #include 
 #include 
+#include 
 
 namespace {
 
@@ -613,7 +614,7 @@ ScCondFormatEntry* ScConditionEntryObj::getCoreObject()
 sal_Int32 ScConditionEntryObj::getType()
 throw(uno::RuntimeException, std::exception)
 {
-return 0;
+return sheet::ConditionEntryType::CONDITION;
 }
 
 uno::Reference SAL_CALL 
ScConditionEntryObj::getPropertySetInfo()
@@ -729,7 +730,6 @@ uno::Any SAL_CALL ScConditionEntryObj::getPropertyValue( 
const OUString& aProper
 {
 aAny <<= aConditionEntryMap[i].nApiMode;
 break;
-
 }
 }
 }
@@ -794,6 +794,12 @@ ScColorScaleFormat* ScColorScaleFormatObj::getCoreObject()
 throw lang::IllegalArgumentException();
 }
 
+sal_Int32 ScColorScaleFormatObj::getType()
+throw(uno::RuntimeException, std::exception)
+{
+return sheet::ConditionEntryType::COLORSCALE;
+}
+
 uno::Reference SAL_CALL 
ScColorScaleFormatObj::getPropertySetInfo()
 throw(uno::RuntimeException, std::exception)
 {
@@ -1057,6 +1063,12 @@ ScDataBarFormat* ScDataBarFormatObj::getCoreObject()
 throw lang::IllegalArgumentException();
 }
 
+sal_Int32 ScDataBarFormatObj::getType()
+throw(uno::RuntimeException, std::exception)
+{
+return sheet::ConditionEntryType::DATABAR;
+}
+
 uno::Reference SAL_CALL 
ScDataBarFormatObj::getPropertySetInfo()
 throw(uno::RuntimeException, std::exception)
 {
@@ -1432,6 +1444,12 @@ ScIconSetFormat* ScIconSetFormatObj::getCoreObject()
 throw lang::IllegalArgumentException();
 }
 
+sal_Int32 ScIconSetFormatObj::getType()
+throw(uno::RuntimeException, std::exception)
+{
+return sheet::ConditionEntryType::ICONSET;
+}
+
 uno::Reference SAL_CALL 
ScIconSetFormatObj::getPropertySetInfo()
 throw(uno::RuntimeException, std::exce

Re: How many degrees of headlessness do we need?

2015-03-29 Thread Tor Lillqvist
> Also, I will probably get rid of the ConsoleOnly thing, and instead call
> EnableHeadlessMode() in gengal and test IsHeadlessModeEnabled in SVMain().
> (This will affect only OS X, as it is only on OS X that ImplSVMainHook()
> can return true.)
>

On the other hand, it *is* documented in svapp.hxx what ConsoleOnly mode
means, and it is in fact orthogonal to headlessness. ("Used to disable Mac
specific app init that requires an app bundle.") So using this in gengal
(which indeed is not a program in an app bundle; only soffice is) makes
sense.

On the other hand, the change I did yesterday to check IsConsoleOnly()
in OfficeIPCThread::EnableOfficeIPCThread() and OfficeIPCThread::execute()
probably was wrong. That has nothing to do with whether the code is
executing in an app bundle or not. Probably what I should be checking there
is IsHeadlessModeEnabled().

Also the check for IsConsoleOnly() in OpenGLHelper::isVCLOpenGLEnabled() is
probably not right, because whether OpenGL can be used or not has little do
do with whether running in app bundle or not. Probably
IsHeadlessModeEnabled() is the right thing to call there, too.

--tml
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: Branch 'private/moggi/conditional-format-api' - 11 commits - offapi/com sc/qa sc/source

2015-03-29 Thread Markus Mohrhard
 offapi/com/sun/star/sheet/IconSetFormatEntry.idl   |   13 
 sc/qa/extras/new_cond_format.cxx   |  112 +
 sc/qa/extras/testdocuments/new_cond_format_api.ods |binary
 sc/source/ui/inc/condformatuno.hxx |   68 +++
 sc/source/ui/unoobj/condformatuno.cxx  |  399 +++--
 5 files changed, 561 insertions(+), 31 deletions(-)

New commits:
commit a3adf88205df89c7fafac8a434956e0495fd90d4
Author: Markus Mohrhard 
Date:   Mon Mar 30 01:27:47 2015 +0200

add last databar part

Change-Id: Id86dfa4e6795d0ec6a66850747f95de6b0bd8b98

diff --git a/sc/source/ui/unoobj/condformatuno.cxx 
b/sc/source/ui/unoobj/condformatuno.cxx
index 0b81b5a..c0c20f0 100644
--- a/sc/source/ui/unoobj/condformatuno.cxx
+++ b/sc/source/ui/unoobj/condformatuno.cxx
@@ -894,6 +894,43 @@ uno::Reference SAL_CALL 
ScDataBarFormatObj::getProperty
 return aRef;
 }
 
+namespace {
+
+void setDataBarEntry(ScColorScaleEntry* pEntry, 
uno::Reference xEntry)
+{
+ScColorScaleEntryType eType;
+sal_Int32 nApiType = xEntry->getType();
+bool bFound = false;
+for (size_t i = 0; i < SAL_N_ELEMENTS(aDataBarEntryTypeMap); ++i)
+{
+if (aDataBarEntryTypeMap[i].nApiType == nApiType)
+{
+eType = aDataBarEntryTypeMap[i].eType;
+bFound = true;
+break;
+}
+}
+
+if (!bFound)
+throw lang::IllegalArgumentException();
+
+pEntry->SetType(eType);
+switch (eType)
+{
+case COLORSCALE_FORMULA:
+// TODO: Implement
+break;
+default:
+{
+double nVal = xEntry->getFormula().toDouble();
+pEntry->SetValue(nVal);
+}
+break;
+}
+}
+
+}
+
 void SAL_CALL ScDataBarFormatObj::setPropertyValue(
 const OUString& aPropertyName, const uno::Any& aValue )
 throw(beans::UnknownPropertyException, 
beans::PropertyVetoException,
@@ -994,6 +1031,10 @@ void SAL_CALL ScDataBarFormatObj::setPropertyValue(
 if (aEntries.getLength() != 2)
 throw lang::IllegalArgumentException();
 
+
setDataBarEntry(getCoreObject()->GetDataBarData()->mpLowerLimit.get(),
+aEntries[0]);
+
setDataBarEntry(getCoreObject()->GetDataBarData()->mpUpperLimit.get(),
+aEntries[1]);
 }
 else
 throw lang::IllegalArgumentException();
commit ca89b93acff683b7fb2f8212a6a303d43e7552f8
Author: Markus Mohrhard 
Date:   Mon Mar 30 01:17:44 2015 +0200

implement last missing IconSet piece

Change-Id: I97fb3a2e8bc5abb68a07e4daab6492a4ffa5c52a

diff --git a/sc/source/ui/unoobj/condformatuno.cxx 
b/sc/source/ui/unoobj/condformatuno.cxx
index 10a2e78..0b81b5a 100644
--- a/sc/source/ui/unoobj/condformatuno.cxx
+++ b/sc/source/ui/unoobj/condformatuno.cxx
@@ -1228,6 +1228,44 @@ uno::Reference SAL_CALL 
ScIconSetFormatObj::getProperty
 return aRef;
 }
 
+namespace {
+
+void setIconSetEntry(ScIconSetFormat* pFormat, 
uno::Reference xEntry, size_t nPos)
+{
+ScIconSetFormatData* pData = pFormat->GetIconSetData();
+ScColorScaleEntryType eType;
+sal_Int32 nApiType = xEntry->getType();
+bool bFound = false;
+for (size_t i = 0; i < SAL_N_ELEMENTS(aIconSetEntryTypeMap); ++i)
+{
+if (aIconSetEntryTypeMap[i].nApiType == nApiType)
+{
+eType = aIconSetEntryTypeMap[i].eType;
+bFound = true;
+break;
+}
+}
+
+if (!bFound)
+throw lang::IllegalArgumentException();
+
+pData->maEntries[nPos].SetType(eType);
+switch (eType)
+{
+case COLORSCALE_FORMULA:
+// TODO: Implement
+break;
+default:
+{
+double nVal = xEntry->getFormula().toDouble();
+pData->maEntries[nPos].SetValue(nVal);
+}
+break;
+}
+}
+
+}
+
 void SAL_CALL ScIconSetFormatObj::setPropertyValue(
 const OUString& aPropertyName, const uno::Any& aValue )
 throw(beans::UnknownPropertyException, 
beans::PropertyVetoException,
@@ -1286,7 +1324,11 @@ void SAL_CALL ScIconSetFormatObj::setPropertyValue(
 uno::Sequence > aEntries;
 if (aValue >>= aEntries)
 {
-
+sal_Int32 nLength = aEntries.getLength();
+for (size_t i = 0; i < size_t(nLength); ++i)
+{
+setIconSetEntry(getCoreObject(), aEntries[i], i);
+}
 }
 else
 throw lang::IllegalArgumentException();
commit c0d30df0ef942e34c84a941757f11d59c52a4875
Author: Markus Mohrhard 
Date:   Mon Mar 30 01:03:37 2015 +0200

first icon set entry always is minimum

Change-Id: Iddeced617ec6248601a3636a84abab6c1d4bb015

diff --git a/sc/source/ui/unoobj/condformatuno.cxx 
b/sc/source/ui/unoobj/condformatuno.cxx
in

Re: How many degrees of headlessness do we need?

2015-03-29 Thread Tor Lillqvist
> I've googled a bit on libreoffice headless and invisible options usage on
> forums in the context of document conversion. Found just once occurence of
> invisible used alone at stack overflow, most of the time it's headless
> alone or headless and invisible together. So i'd just make it an alias of
> headless to avoid breaking scripts and mark it as deprecated in the help.
>

Yep, that seems sensible to me, too. Will do that.

Also, I will probably get rid of the ConsoleOnly thing, and instead call
EnableHeadlessMode() in gengal and test IsHeadlessModeEnabled in SVMain().
(This will affect only OS X, as it is only on OS X that ImplSVMainHook()
can return true.)

BTW, despite the ConsoleOnly thing, gengal was still crashing on OS X when
running with no access to the window system. That was because the [NSScreen
screens] call in AquaSalGraphics::initResolution() naturally returned an
empty NSArray, but the code anyway tried to get the 0th object of it. I
fixed that today. Will push together with the other changes mentioned above
once I have done some double-checking.

--tml
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: 3 commits - bin/benchmark-document-loading bin/convwatch.py desktop/source odk/examples sysui/desktop unotest/source

2015-03-29 Thread Tor Lillqvist
 bin/benchmark-document-loading|2 +-
 bin/convwatch.py  |2 +-
 desktop/source/app/cmdlineargs.cxx|3 +--
 desktop/source/app/cmdlineargs.hxx|1 -
 odk/examples/cpp/custompanel/Makefile |2 +-
 sysui/desktop/man/README  |2 ++
 unotest/source/cpp/officeconnection.cxx   |3 +--
 unotest/source/java/org/openoffice/test/OfficeConnection.java |2 +-
 unotest/source/python/org/libreoffice/unotest.py  |2 +-
 9 files changed, 9 insertions(+), 10 deletions(-)

New commits:
commit 1da98a2fb1954a45a583197efb4f87ddedae2e1b
Author: Tor Lillqvist 
Date:   Sun Mar 29 23:35:04 2015 +0300

Think aloud

Change-Id: I26d18571bba41b66d64a6b1be6f2cbc45b1b71d2

diff --git a/sysui/desktop/man/README b/sysui/desktop/man/README
index 1536ae5..8c18447 100644
--- a/sysui/desktop/man/README
+++ b/sysui/desktop/man/README
@@ -1 +1,3 @@
 FIXME: These man pages are used for distro packaging using "make 
distro-pack-install"
+
+(And what is it that needs fixing in that?)
commit 00ab36a16db3ed0cac6206a233722b4c7efb8cb6
Author: Tor Lillqvist 
Date:   Sun Mar 29 23:23:46 2015 +0300

The --nofirststartwizard option is a no-op

Change-Id: Id481af38ebb51224f4f8493cccfb4eb4fd1e268f

diff --git a/bin/benchmark-document-loading b/bin/benchmark-document-loading
index 07dc459..6d06580 100644
--- a/bin/benchmark-document-loading
+++ b/bin/benchmark-document-loading
@@ -151,7 +151,7 @@ class OfficeConnection:
 def bootstrap(self, soffice, userdir, socket):
 argv = [ soffice, "--accept=" + socket + ";urp",
 "-env:UserInstallation=" + userdir,
-"--quickstart=no", "--nofirststartwizard",
+"--quickstart=no",
 "--norestore", "--nologo", "--headless" ]
 if "--valgrind" in self.args:
 argv.append("--valgrind")
diff --git a/bin/convwatch.py b/bin/convwatch.py
index c60c0fa..9d05511 100644
--- a/bin/convwatch.py
+++ b/bin/convwatch.py
@@ -93,7 +93,7 @@ class OfficeConnection:
 def bootstrap(self, soffice, userdir, socket):
 argv = [ soffice, "--accept=" + socket + ";urp",
 "-env:UserInstallation=" + userdir,
-"--quickstart=no", "--nofirststartwizard",
+"--quickstart=no",
 "--norestore", "--nologo", "--headless" ]
 if "--valgrind" in self.args:
 argv.append("--valgrind")
diff --git a/odk/examples/cpp/custompanel/Makefile 
b/odk/examples/cpp/custompanel/Makefile
index 95268db..c696e46 100644
--- a/odk/examples/cpp/custompanel/Makefile
+++ b/odk/examples/cpp/custompanel/Makefile
@@ -47,7 +47,7 @@ OUT_COMP_DEPLOY=$(OUT_DEPLOY)/$(COMP_NAME)
 OUT_DEPLOY_DIR=$(subst /,$(PS),$(OUT_COMP_DEPLOY))
 OUT_DEPLOY_URL=$(URLPREFIX)$(OUT_COMP_DEPLOY)
 ENV_USER_INSTALL=-env:"UserInstallation=$(OUT_DEPLOY_URL)"
-OFFICE_START_OPTIONS=-nologo -nofirststartwizard -norestore -writer
+OFFICE_START_OPTIONS=-nologo -norestore -writer
 OXT_DEPLOYEDFLAG=$(OUT_MISC)/cpp_$(COMP_NAME)_deployed_oxt.flag
 
 CXXFILES = \
diff --git a/unotest/source/cpp/officeconnection.cxx 
b/unotest/source/cpp/officeconnection.cxx
index 0c9f045..e86a883 100644
--- a/unotest/source/cpp/officeconnection.cxx
+++ b/unotest/source/cpp/officeconnection.cxx
@@ -55,7 +55,6 @@ void OfficeConnection::setUp() {
 if (argSoffice.match("path:")) {
 desc = "pipe,name=" + uniquePipeName(OUString("oootest"));
 OUString noquickArg("--quickstart=no");
-OUString nofirstArg("--nofirststartwizard");
 OUString norestoreArg("--norestore");
 OUString nologoArg("--nologo");
 // disable use of the unix standalone splash screen app for the
@@ -70,7 +69,7 @@ void OfficeConnection::setUp() {
 "-env:UNO_JAVA_JFW_ENV_JREHOME=true");
 OUString classpathArg("-env:UNO_JAVA_JFW_ENV_CLASSPATH=true");
 rtl_uString * args[] = {
-noquickArg.pData, nofirstArg.pData, norestoreArg.pData,
+noquickArg.pData, norestoreArg.pData,
 nologoArg.pData, headlessArg.pData, acceptArg.pData, userArg.pData,
 jreArg.pData, classpathArg.pData };
 rtl_uString ** envs = 0;
diff --git a/unotest/source/java/org/openoffice/test/OfficeConnection.java 
b/unotest/source/java/org/openoffice/test/OfficeConnection.java
index 6a6d15b..8dc5232 100644
--- a/unotest/source/java/org/openoffice/test/OfficeConnection.java
+++ b/unotest/source/java/org/openoffice/test/OfficeConnection.java
@@ -51,7 +51,7 @@ public final class OfficeConnection {
 description = "pipe,name=oootest" + UUID.randomUUID();
 ProcessBuilder pb = new ProcessBuilder(
 sofficeArg.substring("path:".length()), "--quickstart=no",
-"--nofirststartwizard", "--noresto

[Libreoffice-commits] core.git: shell/source

2015-03-29 Thread Stephan Bergmann
 shell/source/backends/localebe/localebackend.cxx |6 +++---
 shell/source/backends/macbe/macbackend.mm|   16 
 2 files changed, 11 insertions(+), 11 deletions(-)

New commits:
commit 9e53fbd9a67bbfc35aa6b96dc034df9f6ecf5643
Author: Stephan Bergmann 
Date:   Sun Mar 29 21:36:54 2015 +0200

loplugin:cstylecast

Change-Id: I8bb20f4ce9c8cca3b70057cd8c4fb23819fa3b23

diff --git a/shell/source/backends/localebe/localebackend.cxx 
b/shell/source/backends/localebe/localebackend.cxx
index 1a8da7b..f2190d1 100644
--- a/shell/source/backends/localebe/localebackend.cxx
+++ b/shell/source/backends/localebe/localebackend.cxx
@@ -106,7 +106,7 @@ namespace /* private */
 if (ref == NULL)
 return NULL;
 
-CFStringRef sref = (CFGetTypeID(ref) == CFArrayGetTypeID()) ? 
(CFStringRef)CFArrayGetValueAtIndex((CFArrayRef)ref, 0) : (CFStringRef)ref;
+CFStringRef sref = (CFGetTypeID(ref) == CFArrayGetTypeID()) ? 
static_cast(CFArrayGetValueAtIndex(static_cast(ref), 
0)) : static_cast(ref);
 
 // NOTE: this API is only available with Mac OS X >=10.3. We need to 
use it because
 // Apple used non-ISO values on systems <10.2 like "German" for 
instance but didn't
@@ -133,7 +133,7 @@ namespace /* private */
 {
 aLocaleBuffer.setLength(0); // clear buffer which still 
contains fallback value
 
-CFStringRef lang = (CFStringRef)CFArrayGetValueAtIndex(subs, 
0);
+CFStringRef lang = 
static_cast(CFArrayGetValueAtIndex(subs, 0));
 OUStringBufferAppendCFString(aLocaleBuffer, lang);
 
 // country also available? Assumption: if the array contains 
more than one
@@ -141,7 +141,7 @@ namespace /* private */
 if (CFArrayGetCount(subs) > 1)
 {
 aLocaleBuffer.appendAscii("-");
-CFStringRef country = 
(CFStringRef)CFArrayGetValueAtIndex(subs, 1);
+CFStringRef country = 
static_cast(CFArrayGetValueAtIndex(subs, 1));
 OUStringBufferAppendCFString(aLocaleBuffer, country);
 }
 }
diff --git a/shell/source/backends/macbe/macbackend.mm 
b/shell/source/backends/macbe/macbackend.mm
index cd14665..57b0a21 100644
--- a/shell/source/backends/macbe/macbackend.mm
+++ b/shell/source/backends/macbe/macbackend.mm
@@ -97,8 +97,8 @@ bool GetProxySetting(ServiceType sType, char *host, size_t 
hostSize, UInt16 *por
 break;
 }
 // Proxy enabled?
-enableNum = (CFNumberRef) CFDictionaryGetValue( proxyDict,
-   proxiesEnable );
+enableNum = static_cast(CFDictionaryGetValue( proxyDict,
+   proxiesEnable ));
 
 result = (enableNum != NULL) && (CFGetTypeID(enableNum) == 
CFNumberGetTypeID());
 
@@ -108,8 +108,8 @@ bool GetProxySetting(ServiceType sType, char *host, size_t 
hostSize, UInt16 *por
 // Proxy enabled -> get hostname
 if (result)
 {
-hostStr = (CFStringRef) CFDictionaryGetValue( proxyDict,
- proxiesProxy );
+hostStr = static_cast(CFDictionaryGetValue( proxyDict,
+ proxiesProxy ));
 
 result = (hostStr != NULL) && (CFGetTypeID(hostStr) == 
CFStringGetTypeID());
 }
@@ -120,8 +120,8 @@ bool GetProxySetting(ServiceType sType, char *host, size_t 
hostSize, UInt16 *por
 // Get proxy port
 if (result)
 {
-portNum = (CFNumberRef) CFDictionaryGetValue( proxyDict,
- proxiesPort );
+portNum = static_cast(CFDictionaryGetValue( proxyDict,
+ proxiesPort ));
 
 result = (portNum != NULL) && (CFGetTypeID(portNum) == 
CFNumberGetTypeID());
 }
@@ -401,13 +401,13 @@ css::uno::Any MacOSXBackend::getPropertyValue(
 if (!rProxyDict)
 rExceptionsList = 0;
 else
-rExceptionsList = (CFArrayRef) CFDictionaryGetValue(rProxyDict, 
kSCPropNetProxiesExceptionsList);
+rExceptionsList = 
static_cast(CFDictionaryGetValue(rProxyDict, 
kSCPropNetProxiesExceptionsList));
 
 if (rExceptionsList)
 {
 for (CFIndex idx = 0; idx < CFArrayGetCount(rExceptionsList); 
idx++)
 {
-CFStringRef rException = (CFStringRef) 
CFArrayGetValueAtIndex(rExceptionsList, idx);
+CFStringRef rException = 
static_cast(CFArrayGetValueAtIndex(rExceptionsList, idx));
 
 if (idx>0)
 aProxyBypassList += rtl::OUString(";");
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sal/osl

2015-03-29 Thread Tor Lillqvist
 sal/osl/unx/file_url.cxx |7 ++-
 1 file changed, 2 insertions(+), 5 deletions(-)

New commits:
commit da1d01a432e160031abbf445b4efe879a664bbfa
Author: Tor Lillqvist 
Date:   Sun Mar 29 10:12:37 2015 +0300

Minor simplification

Change-Id: Idcf9158d0446107ec783fd8691078791d7b25e31

diff --git a/sal/osl/unx/file_url.cxx b/sal/osl/unx/file_url.cxx
index 30c03ba..742b3f5 100644
--- a/sal/osl/unx/file_url.cxx
+++ b/sal/osl/unx/file_url.cxx
@@ -697,11 +697,8 @@ oslFileError osl_searchFileURL(rtl_uString* ustrFilePath, 
rtl_uString* ustrSearc
 
 if (osl::realpath(result, resolved))
 {
-#if OSL_DEBUG_LEVEL > 0
-oslFileError osl_error =
-#endif
-osl_getFileURLFromSystemPath(resolved.pData, pustrURL);
-OSL_ASSERT(osl_File_E_None == osl_error);
+oslFileError osl_error = 
osl_getFileURLFromSystemPath(resolved.pData, pustrURL);
+SAL_WARN_IF(osl_File_E_None != osl_error, "sal.file", 
"osl_getFileURLFromSystemPath failed");
 bfound = true;
 }
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: connectivity/source

2015-03-29 Thread Stephan Bergmann
 connectivity/source/drivers/macab/MacabAddressBook.cxx   |2 
 connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx  |2 
 connectivity/source/drivers/macab/MacabDriver.cxx|2 
 connectivity/source/drivers/macab/MacabGroup.cxx |6 -
 connectivity/source/drivers/macab/MacabHeader.cxx|6 -
 connectivity/source/drivers/macab/MacabPreparedStatement.cxx |2 
 connectivity/source/drivers/macab/MacabRecord.cxx|   24 ++--
 connectivity/source/drivers/macab/MacabRecords.cxx   |   58 +--
 connectivity/source/drivers/macab/MacabResultSet.cxx |   24 ++--
 9 files changed, 63 insertions(+), 63 deletions(-)

New commits:
commit b9446cd44397ef09db75eb2f2425421d2baaf9b3
Author: Stephan Bergmann 
Date:   Sun Mar 29 21:28:27 2015 +0200

loplugin:cstylecast

Change-Id: I20b7936d2bb11363a701ca649deba31d53c76868

diff --git a/connectivity/source/drivers/macab/MacabAddressBook.cxx 
b/connectivity/source/drivers/macab/MacabAddressBook.cxx
index 47b35b1..9a34dd1 100644
--- a/connectivity/source/drivers/macab/MacabAddressBook.cxx
+++ b/connectivity/source/drivers/macab/MacabAddressBook.cxx
@@ -140,7 +140,7 @@ MacabRecords *MacabAddressBook::getMacabRecordsMatch(const 
OUString& _tableName)
 /* Go through each group and create a MacabGroup out of it. */
 for(i = 0; i < nGroups; i++)
 {
-xGroup = (ABGroupRef) CFArrayGetValueAtIndex(allGroups, i);
+xGroup = static_cast(const_cast(CFArrayGetValueAtIndex(allGroups, i)));
 m_xMacabGroups[i] = new MacabGroup(m_aAddressBook, 
m_xMacabRecords, xGroup);
 }
 
diff --git a/connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx 
b/connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx
index 499626a..c079854 100644
--- a/connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx
+++ b/connectivity/source/drivers/macab/MacabDatabaseMetaData.cxx
@@ -910,7 +910,7 @@ Reference< XResultSet > SAL_CALL 
MacabDatabaseMetaData::getColumns(
 ++aField, ++nPosition)
 {
 
-sName = CFStringToOUString((CFStringRef) (*aField)->value);
+sName = 
CFStringToOUString(static_cast((*aField)->value));
 if (match(columnNamePattern, sName, '\0'))
 {
 aRow[4] = new ORowSetValueDecorator(sName);
diff --git a/connectivity/source/drivers/macab/MacabDriver.cxx 
b/connectivity/source/drivers/macab/MacabDriver.cxx
index 290e3e4..b601e75 100644
--- a/connectivity/source/drivers/macab/MacabDriver.cxx
+++ b/connectivity/source/drivers/macab/MacabDriver.cxx
@@ -66,7 +66,7 @@ namespace
 {
 
 const OUString sSymbolName = OUString::createFromAscii( 
_pAsciiSymbolName );
-_rFunction = (FUNCTION)( osl_getSymbol( _rModule, 
sSymbolName.pData ) );
+_rFunction = reinterpret_cast( osl_getSymbol( _rModule, 
sSymbolName.pData ) );
 
 if ( !_rFunction )
 {   // did not find the symbol
diff --git a/connectivity/source/drivers/macab/MacabGroup.cxx 
b/connectivity/source/drivers/macab/MacabGroup.cxx
index cfd9825..715896c 100644
--- a/connectivity/source/drivers/macab/MacabGroup.cxx
+++ b/connectivity/source/drivers/macab/MacabGroup.cxx
@@ -43,7 +43,7 @@ MacabGroup::MacabGroup(const ABAddressBookRef _addressBook, 
const MacabRecords *
 
 // Set the group's name (stored in MacabRecords as m_sName)
 CFStringRef sGroupName;
-sGroupName = (CFStringRef) ABRecordCopyValue(_xGroup, 
kABGroupNameProperty);
+sGroupName = static_cast(ABRecordCopyValue(_xGroup, 
kABGroupNameProperty));
 m_sName = CFStringToOUString(sGroupName);
 CFRelease(sGroupName);
 
@@ -60,10 +60,10 @@ MacabGroup::MacabGroup(const ABAddressBookRef _addressBook, 
const MacabRecords *
 nAllRecordsSize = _allRecords->size();
 for(i = 0; i < recordsSize; i++)
 {
-xPerson = (ABPersonRef) CFArrayGetValueAtIndex(xGroupMembers,i);
+xPerson = static_cast(const_cast(CFArrayGetValueAtIndex(xGroupMembers,i)));
 if(xPerson != NULL)
 {
-sGroupMemberUID = (CFStringRef) ABRecordCopyValue(xPerson, 
kABUIDProperty);
+sGroupMemberUID = 
static_cast(ABRecordCopyValue(xPerson, kABUIDProperty));
 if(sGroupMemberUID != NULL)
 {
 bFound = false;
diff --git a/connectivity/source/drivers/macab/MacabHeader.cxx 
b/connectivity/source/drivers/macab/MacabHeader.cxx
index e4c1d38..a639c4a 100644
--- a/connectivity/source/drivers/macab/MacabHeader.cxx
+++ b/connectivity/source/drivers/macab/MacabHeader.cxx
@@ -150,7 +150,7 @@ OUString MacabHeader::getString(const sal_Int32 i) const
 return OUString();
 try
 {
-nRet = CFStringToOUString( (CFStringRef) fields[i]->value);
+nRet = 
CFStringToOUString(static_cast(fields[i]->value));
 }
 catch(...){ }
 }
@@ -256,8 +256,8 @@ sal_I

[Libreoffice-commits] core.git: avmedia/source

2015-03-29 Thread Stephan Bergmann
 avmedia/source/macavf/player.mm  |2 +-
 avmedia/source/quicktime/framegrabber.mm |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 1fca9d18937d41c411cb165f2ce5ecf82619ea02
Author: Stephan Bergmann 
Date:   Sun Mar 29 20:55:40 2015 +0200

loplugin:cstylecast

Change-Id: Idcc1b71c55d6cfd983ad78e8c0cccf2e2242a659

diff --git a/avmedia/source/macavf/player.mm b/avmedia/source/macavf/player.mm
index 2c89239..6a4a984 100644
--- a/avmedia/source/macavf/player.mm
+++ b/avmedia/source/macavf/player.mm
@@ -32,7 +32,7 @@ using namespace ::com::sun::star;
 (void) pObject;
 NSString* pDictStr = [NSString stringWithFormat:@"%@", pChangeDict];
 OSL_TRACE( "MacAVObserver::onKeyChange k=\"%s\" c=%s", [pKeyPath 
UTF8String], [pDictStr UTF8String]);
-avmedia::macavf::MacAVObserverHandler* pHandler = 
(avmedia::macavf::MacAVObserverHandler*)pContext;
+avmedia::macavf::MacAVObserverHandler* pHandler = 
static_cast(pContext);
 pHandler->handleObservation( pKeyPath );
 }
 
diff --git a/avmedia/source/quicktime/framegrabber.mm 
b/avmedia/source/quicktime/framegrabber.mm
index 79da62e..a13d98a 100644
--- a/avmedia/source/quicktime/framegrabber.mm
+++ b/avmedia/source/quicktime/framegrabber.mm
@@ -97,7 +97,7 @@ uno::Reference< graphic::XGraphic > SAL_CALL 
FrameGrabber::grabFrame( double fMe
 NSData *pBitmap = [pImage TIFFRepresentation];
 long nSize = [pBitmap length];
 const void* pBitmapData = [pBitmap bytes];
-SvMemoryStream  aMemStm( (char *)pBitmapData, nSize, StreamMode::READ | 
StreamMode::WRITE );
+SvMemoryStream  aMemStm( const_cast(pBitmapData), nSize, 
StreamMode::READ | StreamMode::WRITE );
 Graphic aGraphic;
 if ( GraphicConverter::Import( aMemStm, aGraphic, CVT_TIF ) == 
ERRCODE_NONE )
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: connectivity/source

2015-03-29 Thread Julien Nabet
 connectivity/source/commontools/propertyids.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 79fb95b857d986f40ec0b8acacf7f35c6a96ff84
Author: Julien Nabet 
Date:   Sun Mar 29 20:36:27 2015 +0200

cppcheck: redundantAssignInSwitch

Change-Id: I78fdbcde76d01c332430f63393936ab38ee13de5

diff --git a/connectivity/source/commontools/propertyids.cxx 
b/connectivity/source/commontools/propertyids.cxx
index b9d976d..2a5322dd 100644
--- a/connectivity/source/commontools/propertyids.cxx
+++ b/connectivity/source/commontools/propertyids.cxx
@@ -53,7 +53,7 @@ namespace dbtools
 case PROPERTY_ID_NAME:  pStr = "Name"; 
break;
 case PROPERTY_ID_TYPE:  pStr = "Type"; 
break;
 case PROPERTY_ID_TYPENAME:  pStr = "TypeName"; 
break;
-case PROPERTY_ID_PRECISION: pStr = "Precision";
+case PROPERTY_ID_PRECISION: pStr = 
"Precision"; break;
 case PROPERTY_ID_SCALE: pStr = "Scale"; 
break;
 case PROPERTY_ID_ISNULLABLE:pStr = 
"IsNullable"; break;
 case PROPERTY_ID_ISAUTOINCREMENT:   pStr = 
"IsAutoIncrement"; break;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: config_host/config_liblangtag.h.in i18nlangtag/source

2015-03-29 Thread Stephan Bergmann
 config_host/config_liblangtag.h.in |2 +-
 i18nlangtag/source/languagetag/languagetag.cxx |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d6567a7d27ede35b649c1f50d35a9570635f177a
Author: Stephan Bergmann 
Date:   Sun Mar 29 20:36:55 2015 +0200

loplugin:checkconfigmacros

Change-Id: I2948340c8c0be50543a898f07b125e7eaccc8909

diff --git a/config_host/config_liblangtag.h.in 
b/config_host/config_liblangtag.h.in
index 40077d9..f639fb7 100644
--- a/config_host/config_liblangtag.h.in
+++ b/config_host/config_liblangtag.h.in
@@ -1,6 +1,6 @@
 #ifndef CONFIG_LIBLANGTAG_H
 #define CONFIG_LIBLANGTAG_H
 
-#undef LIBLANGTAG_INLINE_FIX
+#define LIBLANGTAG_INLINE_FIX 0
 
 #endif
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx 
b/i18nlangtag/source/languagetag/languagetag.cxx
index 5501376..2ac7ca4 100644
--- a/i18nlangtag/source/languagetag/languagetag.cxx
+++ b/i18nlangtag/source/languagetag/languagetag.cxx
@@ -25,7 +25,7 @@
 //#define erDEBUG
 
 #if defined(ENABLE_LIBLANGTAG)
-#if defined(LIBLANGTAG_INLINE_FIX)
+#if LIBLANGTAG_INLINE_FIX
 #define LT_HAVE_INLINE
 #endif
 #include 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: 2 commits - vcl/osx vcl/qa vcl/quartz vcl/source

2015-03-29 Thread Stephan Bergmann
 vcl/osx/salframe.cxx  |4 ++--
 vcl/qa/cppunit/BitmapTest.cxx |5 +
 vcl/quartz/CTRunData.cxx  |   12 ++--
 vcl/quartz/ctfonts.cxx|   26 +-
 vcl/quartz/ctlayout.cxx   |   14 +++---
 vcl/quartz/salgdicommon.cxx   |2 +-
 vcl/quartz/salvd.cxx  |4 ++--
 vcl/source/outdev/text.cxx|4 ++--
 8 files changed, 38 insertions(+), 33 deletions(-)

New commits:
commit fec207b77aadd6fa8f8411c5918c99af95dea786
Author: Stephan Bergmann 
Date:   Sun Mar 29 20:30:53 2015 +0200

Fix test on non-Linux

Change-Id: I0852c732d580d85ebad629ca26c28ede1576b957

diff --git a/vcl/qa/cppunit/BitmapTest.cxx b/vcl/qa/cppunit/BitmapTest.cxx
index dc2070d..74e7e89 100644
--- a/vcl/qa/cppunit/BitmapTest.cxx
+++ b/vcl/qa/cppunit/BitmapTest.cxx
@@ -57,9 +57,14 @@ void BitmapTest::testConvert()
 CPPUNIT_ASSERT_EQUAL(sal_uInt16(24), aBitmap.GetBitCount());
 {
 Bitmap::ScopedReadAccess pReadAccess(aBitmap);
+#if defined LINUX
 // 24 bit Bitmap on SVP backend uses 32bit BGRX format
 CPPUNIT_ASSERT_EQUAL(static_cast(32), 
pReadAccess->GetBitCount());
 CPPUNIT_ASSERT_EQUAL(sal_uLong(40), pReadAccess->GetScanlineSize());
+#else
+CPPUNIT_ASSERT_EQUAL(static_cast(24), 
pReadAccess->GetBitCount());
+CPPUNIT_ASSERT_EQUAL(sal_uLong(30), pReadAccess->GetScanlineSize());
+#endif
 CPPUNIT_ASSERT(!pReadAccess->HasPalette());
 Color aColor = pReadAccess->GetPixel(0, 0);
 CPPUNIT_ASSERT_EQUAL(sal_Int32(204), sal_Int32(aColor.GetRed()));
commit 4cc067434059858762276d44e4e91b1e0ffaf7c7
Author: Stephan Bergmann 
Date:   Sun Mar 29 20:04:58 2015 +0200

loplugin:cstylecast

Change-Id: I999ec56219a7d9a9dc8c1e9310cc74dccd0ac099

diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx
index 226f539..d177aa2 100644
--- a/vcl/osx/salframe.cxx
+++ b/vcl/osx/salframe.cxx
@@ -1033,7 +1033,7 @@ static void getAppleScrollBarVariant(StyleSettings 
&rSettings)
 CFStringRef AppleScrollBarType = CFSTR("AppleScrollBarVariant");
 if( AppleScrollBarType )
 {
-CFStringRef ScrollBarVariant = 
((CFStringRef)CFPreferencesCopyAppValue( AppleScrollBarType, 
kCFPreferencesCurrentApplication ));
+CFStringRef ScrollBarVariant = 
static_cast(CFPreferencesCopyAppValue( AppleScrollBarType, 
kCFPreferencesCurrentApplication ));
 if( ScrollBarVariant )
 {
 if( CFGetTypeID( ScrollBarVariant ) == CFStringGetTypeID() )
@@ -1059,7 +1059,7 @@ static void getAppleScrollBarVariant(StyleSettings 
&rSettings)
 CFStringRef jumpScroll = CFSTR("AppleScrollerPagingBehavior");
 if( jumpScroll )
 {
-CFBooleanRef jumpStr = ((CFBooleanRef)CFPreferencesCopyAppValue( 
jumpScroll, kCFPreferencesCurrentApplication ));
+CFBooleanRef jumpStr = 
static_cast(CFPreferencesCopyAppValue( jumpScroll, 
kCFPreferencesCurrentApplication ));
 if( jumpStr )
 {
 if( CFGetTypeID( jumpStr ) == CFBooleanGetTypeID() )
diff --git a/vcl/quartz/CTRunData.cxx b/vcl/quartz/CTRunData.cxx
index 2bb5ed3..930f6d17 100644
--- a/vcl/quartz/CTRunData.cxx
+++ b/vcl/quartz/CTRunData.cxx
@@ -22,7 +22,7 @@ CTRunData::CTRunData( CTRunRef pRun, int start)
 assert(pRun);
 
 CFDictionaryRef pRunAttributes = CTRunGetAttributes( m_pRun );
-m_pFont = (CTFontRef)CFDictionaryGetValue( pRunAttributes, 
kCTFontAttributeName );
+m_pFont = static_cast(CFDictionaryGetValue( pRunAttributes, 
kCTFontAttributeName ));
 
 m_nGlyphs = CTRunGetGlyphCount(m_pRun);
 m_EndPos = m_StartPos + m_nGlyphs;
@@ -33,7 +33,7 @@ CTRunData::CTRunData( CTRunRef pRun, int start)
 {
 m_pAdvances = new CGSize[m_nGlyphs];
 ownership_flags |= CTRUNDATA_F_OWN_ADVANCES;
-CTRunGetAdvances( pRun, aAll, (CGSize*)m_pAdvances );
+CTRunGetAdvances( pRun, aAll, const_cast(m_pAdvances) );
 }
 
 m_pGlyphs = CTRunGetGlyphsPtr( m_pRun );
@@ -41,7 +41,7 @@ CTRunData::CTRunData( CTRunRef pRun, int start)
 {
 m_pGlyphs = new CGGlyph[m_nGlyphs];
 ownership_flags |= CTRUNDATA_F_OWN_GLYPHS;
-CTRunGetGlyphs( pRun, aAll, (CGGlyph*)m_pGlyphs);
+CTRunGetGlyphs( pRun, aAll, const_cast(m_pGlyphs));
 }
 
 m_pStringIndices = CTRunGetStringIndicesPtr( pRun );
@@ -49,15 +49,15 @@ CTRunData::CTRunData( CTRunRef pRun, int start)
 {
 m_pStringIndices = new CFIndex[m_nGlyphs];
 ownership_flags |= CTRUNDATA_F_OWN_INDICES;
-CTRunGetStringIndices( pRun, aAll, (CFIndex*)m_pStringIndices );
+CTRunGetStringIndices( pRun, aAll, 
const_cast(m_pStringIndices) );
 }
 
-m_pPositions = (CGPoint*)CTRunGetPositionsPtr( pRun );
+m_pPositions = CTRunGetPositionsPtr( pRun );
 if( !m_pPositions )
 {
 m_pPositions = new CGPoint[m_nGlyphs];
 ownership_flags |= CTRUNDATA_F_OWN_POSITIONS;
-CTRunGetPositions( pRun, aAll, (CGPoint*)m_pPositions )

[Libreoffice-commits] core.git: config_host/config_liblangtag.h.in configure.ac i18nlangtag/source

2015-03-29 Thread David Tardon
 config_host/config_liblangtag.h.in |6 ++
 configure.ac   |5 +
 i18nlangtag/source/languagetag/languagetag.cxx |6 +++---
 3 files changed, 14 insertions(+), 3 deletions(-)

New commits:
commit c75a575752dd53d4333dd8b937de774a85d00806
Author: David Tardon 
Date:   Sun Mar 29 19:52:50 2015 +0200

WaE: macro "LT_HAVE_INLINE" is not used

Change-Id: I375449ac3068927f525881b0022721130c9c63d6

diff --git a/config_host/config_liblangtag.h.in 
b/config_host/config_liblangtag.h.in
new file mode 100644
index 000..40077d9
--- /dev/null
+++ b/config_host/config_liblangtag.h.in
@@ -0,0 +1,6 @@
+#ifndef CONFIG_LIBLANGTAG_H
+#define CONFIG_LIBLANGTAG_H
+
+#undef LIBLANGTAG_INLINE_FIX
+
+#endif
diff --git a/configure.ac b/configure.ac
index 1edf101..f5c27f8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11831,12 +11831,16 @@ if test "$enable_liblangtag" = "yes" -o \( 
"$enable_liblangtag" = "" -a $_os !=
 SYSTEM_LIBLANGTAG=TRUE
 AC_MSG_RESULT([yes])
 PKG_CHECK_MODULES( LIBLANGTAG, liblangtag >= 0.4.0)
+dnl cf.  
"Fix a build issue with inline keyword"
+PKG_CHECK_EXISTS([liblangtag >= 0.5.5], [], 
[AC_DEFINE([LIBLANGTAG_INLINE_FIX])])
 LIBLANGTAG_CFLAGS=$(printf '%s' "$LIBLANGTAG_CFLAGS" | sed -e 
"s/-I/${ISYSTEM?}/g")
 libo_MINGW_CHECK_DLL([liblangtag])
 else
 SYSTEM_LIBLANGTAG=
 AC_MSG_RESULT([no])
 BUILD_TYPE="$BUILD_TYPE LIBLANGTAG"
+dnl TODO: remove when liblangtag is updated to 0.5.5
+AC_DEFINE([LIBLANGTAG_INLINE_FIX])
 if test "$COM" = "MSC"; then
 
LIBLANGTAG_LIBS="${WORKDIR}/UnpackedTarball/langtag/liblangtag/.libs/liblangtag.lib"
 else
@@ -12929,6 +12933,7 @@ AC_CONFIG_HEADERS([config_host/config_gcc.h])
 AC_CONFIG_HEADERS([config_host/config_global.h])
 AC_CONFIG_HEADERS([config_host/config_graphite.h])
 AC_CONFIG_HEADERS([config_host/config_lgpl.h])
+AC_CONFIG_HEADERS([config_host/config_liblangtag.h])
 AC_CONFIG_HEADERS([config_host/config_locales.h])
 AC_CONFIG_HEADERS([config_host/config_mpl.h])
 AC_CONFIG_HEADERS([config_host/config_orcus.h])
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx 
b/i18nlangtag/source/languagetag/languagetag.cxx
index d346148..5501376 100644
--- a/i18nlangtag/source/languagetag/languagetag.cxx
+++ b/i18nlangtag/source/languagetag/languagetag.cxx
@@ -8,6 +8,7 @@
  */
 
 #include 
+#include 
 
 #include "i18nlangtag/languagetag.hxx"
 #include "i18nlangtag/applelangid.hxx"
@@ -24,10 +25,9 @@
 //#define erDEBUG
 
 #if defined(ENABLE_LIBLANGTAG)
+#if defined(LIBLANGTAG_INLINE_FIX)
 #define LT_HAVE_INLINE
-// TODO: remove above line again for liblangtag >= 0.5.5, cf.
-//  "Fix a
-// build issue with inline keyword"
+#endif
 #include 
 #else
 /* Replacement code for LGPL phobic and Android systems.
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: icon-themes/breeze

2015-03-29 Thread andreas_k
 icon-themes/breeze/cmd/lc_closepreview.png  |binary
 icon-themes/breeze/cmd/lc_insertrows.png|binary
 icon-themes/breeze/cmd/lc_linespacing.png   |binary
 icon-themes/breeze/cmd/sc_alignframemenu.png|binary
 icon-themes/breeze/cmd/sc_anchormenu.png|binary
 icon-themes/breeze/cmd/sc_arrangeframemenu.png  |binary
 icon-themes/breeze/cmd/sc_arrangemenu.png   |binary
 icon-themes/breeze/cmd/sc_closepreview.png  |binary
 icon-themes/breeze/cmd/sc_graphicdialog.png |binary
 icon-themes/breeze/cmd/sc_insertcolumndialog.png|binary
 icon-themes/breeze/cmd/sc_insertcolumns.png |binary
 icon-themes/breeze/cmd/sc_insertrowdialog.png   |binary
 icon-themes/breeze/cmd/sc_insertrows.png|binary
 icon-themes/breeze/cmd/sc_linespacing.png   |binary
 icon-themes/breeze/cmd/sc_mirrorhorz.png|binary
 icon-themes/breeze/cmd/sc_mirrorvert.png|binary
 icon-themes/breeze/cmd/sc_newdoc.png|binary
 icon-themes/breeze/cmd/sc_numberformattime.png  |binary
 icon-themes/breeze/cmd/sc_objectbackone.png |binary
 icon-themes/breeze/cmd/sc_objectforwardone.png  |binary
 icon-themes/breeze/cmd/sc_removetableof.png |binary
 icon-themes/breeze/cmd/sc_savegraphic.png   |binary
 icon-themes/breeze/cmd/sc_templatemenu.png  |binary
 icon-themes/breeze/cmd/sc_updatecurindex.png|binary
 icon-themes/breeze/cmd/sc_wrapmenu.png  |binary
 icon-themes/breeze/svx/res/cd02.png |binary
 icon-themes/breeze/svx/res/cd025.png|binary
 icon-themes/breeze/svx/res/cd026.png|binary
 icon-themes/breeze/svx/res/galdefl.png  |binary
 icon-themes/breeze/svx/res/galdefs.png  |binary
 icon-themes/breeze/svx/res/galnorl.png  |binary
 icon-themes/breeze/svx/res/galnors.png  |binary
 icon-themes/breeze/svx/res/galrdol.png  |binary
 icon-themes/breeze/svx/res/galrdos.png  |binary
 icon-themes/breeze/svx/res/symphony/last_custom_common.png  |binary
 icon-themes/breeze/svx/res/symphony/last_custom_common_grey.png |binary
 36 files changed

New commits:
commit 591a22f41f26335076ef7c53b3d51ecf5b57158b
Author: andreas_k 
Date:   Sun Mar 29 16:40:04 2015 +0200

Breeze: update svx and icons for 4.4 from links.txt galaxy

Change-Id: I752f2a6cf9456e8d09b2db253aae6ba12601b156
Reviewed-on: https://gerrit.libreoffice.org/15055
Reviewed-by: Adolfo Jayme Barrientos 
Tested-by: Adolfo Jayme Barrientos 

diff --git a/icon-themes/breeze/cmd/lc_closepreview.png 
b/icon-themes/breeze/cmd/lc_closepreview.png
new file mode 100644
index 000..c59f292
Binary files /dev/null and b/icon-themes/breeze/cmd/lc_closepreview.png differ
diff --git a/icon-themes/breeze/cmd/lc_insertrows.png 
b/icon-themes/breeze/cmd/lc_insertrows.png
index 1088ffd5..5580fc3 100644
Binary files a/icon-themes/breeze/cmd/lc_insertrows.png and 
b/icon-themes/breeze/cmd/lc_insertrows.png differ
diff --git a/icon-themes/breeze/cmd/lc_linespacing.png 
b/icon-themes/breeze/cmd/lc_linespacing.png
new file mode 100644
index 000..cdcdc1a
Binary files /dev/null and b/icon-themes/breeze/cmd/lc_linespacing.png differ
diff --git a/icon-themes/breeze/cmd/sc_alignframemenu.png 
b/icon-themes/breeze/cmd/sc_alignframemenu.png
new file mode 100644
index 000..2a1c29a
Binary files /dev/null and b/icon-themes/breeze/cmd/sc_alignframemenu.png differ
diff --git a/icon-themes/breeze/cmd/sc_anchormenu.png 
b/icon-themes/breeze/cmd/sc_anchormenu.png
new file mode 100644
index 000..d9e72e5
Binary files /dev/null and b/icon-themes/breeze/cmd/sc_anchormenu.png differ
diff --git a/icon-themes/breeze/cmd/sc_arrangeframemenu.png 
b/icon-themes/breeze/cmd/sc_arrangeframemenu.png
new file mode 100644
index 000..31dd0b8
Binary files /dev/null and b/icon-themes/breeze/cmd/sc_arrangeframemenu.png 
differ
diff --git a/icon-themes/breeze/cmd/sc_arrangemenu.png 
b/icon-themes/breeze/cmd/sc_arrangemenu.png
new file mode 100644
index 000..31dd0b8
Binary files /dev/null and b/icon-themes/breeze/cmd/sc_arrangemenu.png differ
diff --git a/icon-themes/breeze/cmd/sc_closepreview.png 
b/icon-themes/breeze/cmd/sc_closepreview.png
new file mode 100644
index 000..f56cb29
Binary files /dev/null and b/icon-themes/breeze/cmd/sc_closepreview.png differ
diff --git a/icon-themes/breeze/cmd/sc_graphicdialog.png 
b/icon-themes/breeze/cmd/sc_graphicdialog.png
new file mode 100644
index 000..1561c3d

Matthew Nicholls license statement

2015-03-29 Thread Matthew Nicholls

All of my past & future contributions to LibreOffice may be
licensed under the MPLv2/LGPLv3+ dual license.

Matthew.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: icon-themes/galaxy

2015-03-29 Thread andreas_k
 icon-themes/galaxy/links.txt |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 32b40fc6412220a07094f19313f76f6f70f7d4b3
Author: andreas_k 
Date:   Sun Mar 29 16:42:09 2015 +0200

Galaxy: wront icon name in links.txt sc_sc_

Change-Id: I60e51eef75bd999d903d66e986e7de13a17dd799
Reviewed-on: https://gerrit.libreoffice.org/15056
Tested-by: Yousuf Philips 
Reviewed-by: Yousuf Philips 

diff --git a/icon-themes/galaxy/links.txt b/icon-themes/galaxy/links.txt
index c6336ad..2507229 100644
--- a/icon-themes/galaxy/links.txt
+++ b/icon-themes/galaxy/links.txt
@@ -44,5 +44,5 @@ cmd/sc_savegraphic.png cmd/sc_save.png
 cmd/sc_arrangemenu.png cmd/sc_bringtofront.png
 
 # writer table of context context menu
-cmd/sc_updatecurindex.png cmd/sc_sc_reload.png
-cmd/sc_removetableof.png cmd/sc_sc_cancel.png
+cmd/sc_updatecurindex.png cmd/sc_reload.png
+cmd/sc_removetableof.png cmd/sc_cancel.png
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: 2 commits - icon-themes/breeze

2015-03-29 Thread andreas_k
 icon-themes/breeze/cmd/lc_decrementindent.png  |binary
 icon-themes/breeze/cmd/lc_decrementlevel.png   |binary
 icon-themes/breeze/cmd/lc_decrementsublevels.png   |binary
 icon-themes/breeze/cmd/lc_paraspacedecrease.png|binary
 icon-themes/breeze/cmd/sc_decrementindent.png  |binary
 icon-themes/breeze/cmd/sc_decrementlevel.png   |binary
 icon-themes/breeze/cmd/sc_decrementsublevels.png   |binary
 icon-themes/breeze/cmd/sc_paraspacedecrease.png|binary
 icon-themes/breeze/svx/res/symphony/Indent2.png|binary
 icon-themes/breeze/svx/res/symphony/Indent3.png|binary
 icon-themes/breeze/svx/res/symphony/Indent4.png|binary
 icon-themes/breeze/svx/res/symphony/Indent_Hanging.png |binary
 icon-themes/breeze/svx/res/symphony/spacing1.png   |binary
 icon-themes/breeze/svx/res/symphony/spacing2.png   |binary
 icon-themes/breeze/svx/res/symphony/spacing3.png   |binary
 15 files changed

New commits:
commit 73321bf2ab0ad3bc8ed9a8c19b2c2cd206614522
Author: andreas_k 
Date:   Sun Mar 29 15:30:57 2015 +0200

Breeze: decrement icons now look like increment

Change-Id: I189528b2ea0afaf596be31f79fb895b278c2
Reviewed-on: https://gerrit.libreoffice.org/15054
Reviewed-by: Adolfo Jayme Barrientos 
Tested-by: Adolfo Jayme Barrientos 

diff --git a/icon-themes/breeze/cmd/lc_decrementindent.png 
b/icon-themes/breeze/cmd/lc_decrementindent.png
index f675aa3..26171ab 100644
Binary files a/icon-themes/breeze/cmd/lc_decrementindent.png and 
b/icon-themes/breeze/cmd/lc_decrementindent.png differ
diff --git a/icon-themes/breeze/cmd/lc_decrementlevel.png 
b/icon-themes/breeze/cmd/lc_decrementlevel.png
index 10592e6..f1b7c50 100644
Binary files a/icon-themes/breeze/cmd/lc_decrementlevel.png and 
b/icon-themes/breeze/cmd/lc_decrementlevel.png differ
diff --git a/icon-themes/breeze/cmd/lc_decrementsublevels.png 
b/icon-themes/breeze/cmd/lc_decrementsublevels.png
index 27abec1..1a17095 100644
Binary files a/icon-themes/breeze/cmd/lc_decrementsublevels.png and 
b/icon-themes/breeze/cmd/lc_decrementsublevels.png differ
diff --git a/icon-themes/breeze/cmd/lc_paraspacedecrease.png 
b/icon-themes/breeze/cmd/lc_paraspacedecrease.png
index ce0f26f..bef8476 100644
Binary files a/icon-themes/breeze/cmd/lc_paraspacedecrease.png and 
b/icon-themes/breeze/cmd/lc_paraspacedecrease.png differ
diff --git a/icon-themes/breeze/cmd/sc_decrementindent.png 
b/icon-themes/breeze/cmd/sc_decrementindent.png
index 10f220b..927d41e 100644
Binary files a/icon-themes/breeze/cmd/sc_decrementindent.png and 
b/icon-themes/breeze/cmd/sc_decrementindent.png differ
diff --git a/icon-themes/breeze/cmd/sc_decrementlevel.png 
b/icon-themes/breeze/cmd/sc_decrementlevel.png
index d70401e..a0333d2 100644
Binary files a/icon-themes/breeze/cmd/sc_decrementlevel.png and 
b/icon-themes/breeze/cmd/sc_decrementlevel.png differ
diff --git a/icon-themes/breeze/cmd/sc_decrementsublevels.png 
b/icon-themes/breeze/cmd/sc_decrementsublevels.png
index c16c8a4..9772f7c 100644
Binary files a/icon-themes/breeze/cmd/sc_decrementsublevels.png and 
b/icon-themes/breeze/cmd/sc_decrementsublevels.png differ
diff --git a/icon-themes/breeze/cmd/sc_paraspacedecrease.png 
b/icon-themes/breeze/cmd/sc_paraspacedecrease.png
index 6670958..07d0f86 100644
Binary files a/icon-themes/breeze/cmd/sc_paraspacedecrease.png and 
b/icon-themes/breeze/cmd/sc_paraspacedecrease.png differ
commit 451a78f9f26981eeedd65a3d18dc0bbcad06f816
Author: andreas_k 
Date:   Sun Mar 29 15:24:17 2015 +0200

Breeze: Properties Spacing and Indent Sidebar

Change-Id: I453bd52682ff02ddcbfbf3c06290f232aac750c1
Reviewed-on: https://gerrit.libreoffice.org/15053
Reviewed-by: Adolfo Jayme Barrientos 
Tested-by: Adolfo Jayme Barrientos 

diff --git a/icon-themes/breeze/svx/res/symphony/Indent2.png 
b/icon-themes/breeze/svx/res/symphony/Indent2.png
new file mode 100644
index 000..2b74e08
Binary files /dev/null and b/icon-themes/breeze/svx/res/symphony/Indent2.png 
differ
diff --git a/icon-themes/breeze/svx/res/symphony/Indent3.png 
b/icon-themes/breeze/svx/res/symphony/Indent3.png
new file mode 100644
index 000..f1e1c20f
Binary files /dev/null and b/icon-themes/breeze/svx/res/symphony/Indent3.png 
differ
diff --git a/icon-themes/breeze/svx/res/symphony/Indent4.png 
b/icon-themes/breeze/svx/res/symphony/Indent4.png
new file mode 100644
index 000..3d88420
Binary files /dev/null and b/icon-themes/breeze/svx/res/symphony/Indent4.png 
differ
diff --git a/icon-themes/breeze/svx/res/symphony/Indent_Hanging.png 
b/icon-themes/breeze/svx/res/symphony/Indent_Hanging.png
new file mode 100644
index 000..24b46c2
Binary files /dev/null and 
b/icon-themes/breeze/svx/res/symphony/Indent_Hanging.png differ
diff --git a/icon-themes/breeze/svx/res/symphony/spacing1.png 
b/icon-themes/breeze/svx/res/symphony/spacing1.png
new file mode 100644
index 000..77ad6dd
Binary files /dev/null and b/icon-themes/bree

[Libreoffice-commits] core.git: icon-themes/breeze

2015-03-29 Thread andreas_k
 icon-themes/breeze/sfx2/res/128x128_calc_doc-p.png|binary
 icon-themes/breeze/sfx2/res/128x128_draw_doc-p.png|binary
 icon-themes/breeze/sfx2/res/128x128_impress_doc-p.png |binary
 icon-themes/breeze/sfx2/res/128x128_math_doc-p.png|binary
 icon-themes/breeze/sfx2/res/128x128_writer_doc-p.png  |binary
 5 files changed

New commits:
commit 8d1b73ee3365a021bd8a8da83f9d69a7636b793d
Author: andreas_k 
Date:   Sun Mar 29 14:48:11 2015 +0200

Breeze: sfx2/res locked files icons

Change-Id: I282c265d20f9fd760f66a8bb0a87b407d9f3f78e
Reviewed-on: https://gerrit.libreoffice.org/15052
Reviewed-by: Adolfo Jayme Barrientos 
Tested-by: Adolfo Jayme Barrientos 

diff --git a/icon-themes/breeze/sfx2/res/128x128_calc_doc-p.png 
b/icon-themes/breeze/sfx2/res/128x128_calc_doc-p.png
new file mode 100644
index 000..f084977
Binary files /dev/null and b/icon-themes/breeze/sfx2/res/128x128_calc_doc-p.png 
differ
diff --git a/icon-themes/breeze/sfx2/res/128x128_draw_doc-p.png 
b/icon-themes/breeze/sfx2/res/128x128_draw_doc-p.png
new file mode 100644
index 000..6f85195
Binary files /dev/null and b/icon-themes/breeze/sfx2/res/128x128_draw_doc-p.png 
differ
diff --git a/icon-themes/breeze/sfx2/res/128x128_impress_doc-p.png 
b/icon-themes/breeze/sfx2/res/128x128_impress_doc-p.png
new file mode 100644
index 000..e2d3425
Binary files /dev/null and 
b/icon-themes/breeze/sfx2/res/128x128_impress_doc-p.png differ
diff --git a/icon-themes/breeze/sfx2/res/128x128_math_doc-p.png 
b/icon-themes/breeze/sfx2/res/128x128_math_doc-p.png
new file mode 100644
index 000..b540d10
Binary files /dev/null and b/icon-themes/breeze/sfx2/res/128x128_math_doc-p.png 
differ
diff --git a/icon-themes/breeze/sfx2/res/128x128_writer_doc-p.png 
b/icon-themes/breeze/sfx2/res/128x128_writer_doc-p.png
new file mode 100644
index 000..0c58bf1
Binary files /dev/null and 
b/icon-themes/breeze/sfx2/res/128x128_writer_doc-p.png differ
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: 2 commits - avmedia/source basebmp/source basic/source compilerplugins/clang connectivity/source cpputools/source extensions/source include/basebmp include/cppu include

2015-03-29 Thread Stephan Bergmann
 avmedia/source/vlc/wrapper/SymbolLoader.hxx  |4 ++--
 basebmp/source/bitmapdevice.cxx  |2 +-
 basic/source/comp/codegen.cxx|8 
 compilerplugins/clang/cstylecast.cxx |4 
 connectivity/source/drivers/evoab2/EApi.cxx  |4 ++--
 connectivity/source/drivers/firebird/ResultSet.cxx   |2 +-
 connectivity/source/drivers/kab/KDriver.cxx  |2 +-
 cpputools/source/unoexe/unoexe.cxx   |2 +-
 extensions/source/propctrlr/stringrepresentation.cxx |2 +-
 include/basebmp/accessorfunctors.hxx |8 
 include/basebmp/rgbmaskpixelformats.hxx  |   18 +-
 include/cppu/Map.hxx |4 ++--
 include/dbaccess/genericcontroller.hxx   |2 +-
 include/svx/ofaitem.hxx  |2 +-
 include/tools/link.hxx   |2 +-
 io/source/acceptor/acc_socket.cxx|2 +-
 io/source/connector/connector.hxx|2 +-
 mysqlc/source/mysqlc_preparedstatement.cxx   |2 +-
 sc/inc/stlalgorithm.hxx  |2 +-
 sc/source/core/data/compressedarray.cxx  |8 
 sc/source/core/opencl/formulagroupcl.cxx |   14 +++---
 sc/source/ui/inc/ChildWindowWrapper.hxx  |2 +-
 sc/source/ui/unoobj/cellsuno.cxx |2 +-
 toolkit/source/awt/scrollabledialog.cxx  |2 +-
 xmloff/source/text/XMLPropertyBackpatcher.cxx|4 ++--
 25 files changed, 51 insertions(+), 55 deletions(-)

New commits:
commit a52cf476e7cec9d0c70dd4ee93cbd328b66479ad
Author: Stephan Bergmann 
Date:   Sun Mar 29 15:13:23 2015 +0200

Clean up template-parameter-dependent C-style casts

Change-Id: Ia1ab134a0afbeeb3ae40264bd4233a47df26b734

diff --git a/avmedia/source/vlc/wrapper/SymbolLoader.hxx 
b/avmedia/source/vlc/wrapper/SymbolLoader.hxx
index 3f90895..dce28f6 100644
--- a/avmedia/source/vlc/wrapper/SymbolLoader.hxx
+++ b/avmedia/source/vlc/wrapper/SymbolLoader.hxx
@@ -73,8 +73,8 @@ namespace
 {
 for (size_t i = 0; i < N; ++i)
 {
-SymbolFunc aMethod = ( SymbolFunc )osl_getFunctionSymbol
-( aModule, OUString::createFromAscii( pMap[ i ].symName 
).pData );
+SymbolFunc aMethod = 
reinterpret_cast(osl_getFunctionSymbol
+( aModule, OUString::createFromAscii( pMap[ i ].symName 
).pData ));
 if ( !aMethod )
 {
 SAL_WARN("avmedia", "Cannot load method " << pMap[ i 
].symName);
diff --git a/basebmp/source/bitmapdevice.cxx b/basebmp/source/bitmapdevice.cxx
index 71a2e85..0e2e004 100644
--- a/basebmp/source/bitmapdevice.cxx
+++ b/basebmp/source/bitmapdevice.cxx
@@ -762,7 +762,7 @@ namespace
 sal_Int32 nDestX = rDstRect.getMinX();
 sal_Int32 nDestY = rDstRect.getMinY();
 
-char* dstBuf =  (char*)getBuffer().get();
+char* dstBuf =  reinterpret_cast(getBuffer().get());
 char* srcBuf =  
reinterpret_cast(rSrcBitmap->getBuffer().get());
 sal_Int32 dstStride =  getScanlineStride();
 sal_Int32 srcStride =  rSrcBitmap->getScanlineStride();
diff --git a/basic/source/comp/codegen.cxx b/basic/source/comp/codegen.cxx
index 8d4abe7..8b199c4 100644
--- a/basic/source/comp/codegen.cxx
+++ b/basic/source/comp/codegen.cxx
@@ -520,7 +520,7 @@ public:
 break;
 
 }
-m_ConvertedBuf += (S)nOp1;
+m_ConvertedBuf += static_cast(nOp1);
 }
 virtual void processOpCode2( SbiOpcode eOp, T nOp1, T nOp2 )
 {
@@ -528,8 +528,8 @@ public:
 if ( eOp == _CASEIS )
 if ( nOp1 )
 nOp1 = static_cast( convertBufferOffSet(m_pStart, nOp1) 
);
-m_ConvertedBuf += (S)nOp1;
-m_ConvertedBuf += (S)nOp2;
+m_ConvertedBuf += static_cast(nOp1);
+m_ConvertedBuf += static_cast(nOp2);
 
 }
 virtual bool processParams(){ return true; }
@@ -569,7 +569,7 @@ PCodeBuffConvertor::convert()
 PCodeBufferWalker< T > aBuf( m_pStart, m_nSize );
 BufferTransformer< T, S > aTrnsfrmer;
 aBuf.visitBuffer( aTrnsfrmer );
-m_pCnvtdBuf = (sal_uInt8*)aTrnsfrmer.buffer().GetBuffer();
+m_pCnvtdBuf = 
reinterpret_cast(aTrnsfrmer.buffer().GetBuffer());
 m_nCnvtdSize = static_cast( aTrnsfrmer.buffer().GetSize() );
 }
 
diff --git a/compilerplugins/clang/cstylecast.cxx 
b/compilerplugins/clang/cstylecast.cxx
index 47e8d17..d34e729 100644
--- a/compilerplugins/clang/cstylecast.cxx
+++ b/compilerplugins/clang/cstylecast.cxx
@@ -120,10 +120,6 @@ bool CStyleCast::VisitCStyleCastExpr(const CStyleCastExpr 
* expr) {
 incompTo = "incomplete ";
 }
 }
-// ignore stuff from inside templates for now
-if( expr->getCastKind() == CK_Dependen

[Libreoffice-commits] core.git: bridges/source

2015-03-29 Thread Stephan Bergmann
 bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.cxx |4 ++--
 bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx   |6 +++---
 bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx|4 ++--
 bridges/source/cpp_uno/gcc3_macosx_x86-64/uno2cpp.cxx   |8 
 4 files changed, 11 insertions(+), 11 deletions(-)

New commits:
commit 66f0c17d244cdc8d5a96ca3fe97aef68b45ad0cc
Author: Stephan Bergmann 
Date:   Sun Mar 29 14:48:05 2015 +0200

loplugin:cstylecast

Change-Id: I7fd4ec85eac0693ae6a61ba0b854dd6091bdc6ef

diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.cxx 
b/bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.cxx
index 7b49e23..86a81dc 100644
--- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.cxx
+++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.cxx
@@ -75,7 +75,7 @@ void CPPU_CURRENT_NAMESPACE::callVirtualMethod(
 data.nFPR = nFPR;
 
 // Get pointer to method
-sal_uInt64 pMethod = *((sal_uInt64 *)pThis);
+sal_uInt64 pMethod = *static_cast(pThis);
 pMethod += 8 * nVtableIndex;
 data.pMethod = *reinterpret_cast(pMethod);
 
@@ -84,7 +84,7 @@ void CPPU_CURRENT_NAMESPACE::callVirtualMethod(
 {
 // 16-bytes aligned
 sal_uInt32 nStackBytes = ( ( nStack + 1 ) >> 1 ) * 16;
-sal_uInt64 *pCallStack = (sal_uInt64 *) __builtin_alloca( nStackBytes 
);
+sal_uInt64 *pCallStack = static_cast(__builtin_alloca( 
nStackBytes ));
 std::memcpy( pCallStack, pStack, nStackBytes );
 }
 
diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx 
b/bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx
index 259aff7..ae877ac 100644
--- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx
+++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx
@@ -94,12 +94,12 @@ static typelib_TypeClass cpp2uno_call(
 
 // stack space
 // parameters
-void ** pUnoArgs = (void **)alloca( 4 * sizeof(void *) * nParams );
+void ** pUnoArgs = static_cast(alloca( 4 * sizeof(void *) * 
nParams ));
 void ** pCppArgs = pUnoArgs + nParams;
 // indices of values this have to be converted (interface conversion 
cpp<=>uno)
-sal_Int32 * pTempIndices = (sal_Int32 *)(pUnoArgs + (2 * nParams));
+sal_Int32 * pTempIndices = reinterpret_cast(pUnoArgs + (2 * 
nParams));
 // type descriptions for reconversions
-typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription 
**)(pUnoArgs + (3 * nParams));
+typelib_TypeDescription ** ppTempParamTypeDescr = 
reinterpret_cast(pUnoArgs + (3 * nParams));
 
 sal_Int32 nTempIndices = 0;
 
diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx 
b/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx
index 7132c46..34ab8fe 100644
--- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx
@@ -193,7 +193,7 @@ std::type_info * RTTI::getRTTI( 
typelib_CompoundTypeDescription *pTypeDescr )
 buf.append( 'E' );
 
 OString symName( buf.makeStringAndClear() );
-rtti = (std::type_info *)dlsym( m_hApp, symName.getStr() );
+rtti = static_cast(dlsym( m_hApp, symName.getStr() 
));
 
 if (rtti)
 {
@@ -254,7 +254,7 @@ std::type_info * RTTI::getRTTI( 
typelib_CompoundTypeDescription *pTypeDescr )
 
 static void deleteException( void * pExc )
 {
-__cxa_exception const * header = ((__cxa_exception const *)pExc - 1);
+__cxa_exception const * header = static_cast<__cxa_exception const 
*>(pExc) - 1;
 typelib_TypeDescription * pTD = 0;
 OUString unoName( toUNOname( header->exceptionType->name() ) );
 ::typelib_typedescription_getByName( &pTD, unoName.pData );
diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/uno2cpp.cxx 
b/bridges/source/cpp_uno/gcc3_macosx_x86-64/uno2cpp.cxx
index a90d030..1e3e118 100644
--- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/uno2cpp.cxx
+++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/uno2cpp.cxx
@@ -100,7 +100,7 @@ static void cpp_call(
 {
 // Maxium space for [complex ret ptr], values | ptr ...
 // (but will be used less - some of the values will be in pGPR and pFPR)
-  sal_uInt64 *pStack = (sal_uInt64 *)__builtin_alloca( (nParams + 3) * 
sizeof(sal_uInt64) );
+  sal_uInt64 *pStack = static_cast(__builtin_alloca( 
(nParams + 3) * sizeof(sal_uInt64) ));
   sal_uInt64 *pStackStart = pStack;
 
 sal_uInt64 pGPR[x86_64::MAX_GPR_REGS];
@@ -138,11 +138,11 @@ static void cpp_call(
 INSERT_INT64( &pAdjustedThisPtr, nGPR, pGPR, pStack );
 
 // Args
-void ** pCppArgs = (void **)alloca( 3 * sizeof(void *) * nParams );
+void ** pCppArgs = static_cast(alloca( 3 * sizeof(void *) * 
nParams ));
 // Indices of values this have to be converted (interface conversion 
cpp<=>uno)
-sal_Int32 * pTempIndices = (sal_Int32 *)(pCppArgs + nParams);
+sal_Int32 * pTempIndices = reinterp

[Libreoffice-commits] core.git: icon-themes/breeze

2015-03-29 Thread andreas_k
 icon-themes/breeze/sc/res/icon-set-grayarrows-down.png  |binary
 icon-themes/breeze/sc/res/icon-set-grayarrows-same.png  |binary
 icon-themes/breeze/sc/res/icon-set-grayarrows-slightly-down.png |binary
 icon-themes/breeze/sc/res/icon-set-grayarrows-slightly-up.png   |binary
 icon-themes/breeze/sc/res/icon-set-grayarrows-up.png|binary
 5 files changed

New commits:
commit ec0e0809af73e49e46c66f2349cbbf13362b3120
Author: andreas_k 
Date:   Sun Mar 29 13:56:20 2015 +0200

Breeze: missing sc icons

Change-Id: Id021902948c6a07413383c197fc86d2000f01873
Reviewed-on: https://gerrit.libreoffice.org/15050
Reviewed-by: Adolfo Jayme Barrientos 
Tested-by: Adolfo Jayme Barrientos 

diff --git a/icon-themes/breeze/sc/res/icon-set-grayarrows-down.png 
b/icon-themes/breeze/sc/res/icon-set-grayarrows-down.png
index 6bc7fb7..7e5b37f 100644
Binary files a/icon-themes/breeze/sc/res/icon-set-grayarrows-down.png and 
b/icon-themes/breeze/sc/res/icon-set-grayarrows-down.png differ
diff --git a/icon-themes/breeze/sc/res/icon-set-grayarrows-same.png 
b/icon-themes/breeze/sc/res/icon-set-grayarrows-same.png
index f23ff6a..86cba26 100644
Binary files a/icon-themes/breeze/sc/res/icon-set-grayarrows-same.png and 
b/icon-themes/breeze/sc/res/icon-set-grayarrows-same.png differ
diff --git a/icon-themes/breeze/sc/res/icon-set-grayarrows-slightly-down.png 
b/icon-themes/breeze/sc/res/icon-set-grayarrows-slightly-down.png
index 0d042f5..6be149ed 100644
Binary files a/icon-themes/breeze/sc/res/icon-set-grayarrows-slightly-down.png 
and b/icon-themes/breeze/sc/res/icon-set-grayarrows-slightly-down.png differ
diff --git a/icon-themes/breeze/sc/res/icon-set-grayarrows-slightly-up.png 
b/icon-themes/breeze/sc/res/icon-set-grayarrows-slightly-up.png
index 5b977cb..f004ddc 100644
Binary files a/icon-themes/breeze/sc/res/icon-set-grayarrows-slightly-up.png 
and b/icon-themes/breeze/sc/res/icon-set-grayarrows-slightly-up.png differ
diff --git a/icon-themes/breeze/sc/res/icon-set-grayarrows-up.png 
b/icon-themes/breeze/sc/res/icon-set-grayarrows-up.png
index 0391d3b..a5388eb 100644
Binary files a/icon-themes/breeze/sc/res/icon-set-grayarrows-up.png and 
b/icon-themes/breeze/sc/res/icon-set-grayarrows-up.png differ
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: icon-themes/breeze

2015-03-29 Thread andreas_k
 icon-themes/breeze/sc/res/icon-set-bars-empty.png|binary
 icon-themes/breeze/sc/res/icon-set-bars-full.png |binary
 icon-themes/breeze/sc/res/icon-set-bars-half.png |binary
 icon-themes/breeze/sc/res/icon-set-bars-one-quarter.png  |binary
 icon-themes/breeze/sc/res/icon-set-bars-three-quarters.png   |binary
 icon-themes/breeze/sc/res/icon-set-circles1-gray.png |binary
 icon-themes/breeze/sc/res/icon-set-circles1-green.png|binary
 icon-themes/breeze/sc/res/icon-set-circles1-red.png  |binary
 icon-themes/breeze/sc/res/icon-set-circles1-yellow.png   |binary
 icon-themes/breeze/sc/res/icon-set-circles2-dark-gray.png|binary
 icon-themes/breeze/sc/res/icon-set-circles2-dark-red.png |binary
 icon-themes/breeze/sc/res/icon-set-circles2-light-gray.png   |binary
 icon-themes/breeze/sc/res/icon-set-circles2-light-red.png|binary
 icon-themes/breeze/sc/res/icon-set-colorarrows-down.png  |binary
 icon-themes/breeze/sc/res/icon-set-colorarrows-same.png  |binary
 icon-themes/breeze/sc/res/icon-set-colorarrows-slightly-down.png |binary
 icon-themes/breeze/sc/res/icon-set-colorarrows-slightly-up.png   |binary
 icon-themes/breeze/sc/res/icon-set-colorarrows-up.png|binary
 icon-themes/breeze/sc/res/icon-set-flags-green.png   |binary
 icon-themes/breeze/sc/res/icon-set-flags-red.png |binary
 icon-themes/breeze/sc/res/icon-set-flags-yellow.png  |binary
 icon-themes/breeze/sc/res/icon-set-grayarrows-down.png   |binary
 icon-themes/breeze/sc/res/icon-set-grayarrows-same.png   |binary
 icon-themes/breeze/sc/res/icon-set-grayarrows-slightly-down.png  |binary
 icon-themes/breeze/sc/res/icon-set-grayarrows-slightly-up.png|binary
 icon-themes/breeze/sc/res/icon-set-grayarrows-up.png |binary
 icon-themes/breeze/sc/res/icon-set-negative-red-smilie.png   |binary
 icon-themes/breeze/sc/res/icon-set-negative-yellow-smilie.png|binary
 icon-themes/breeze/sc/res/icon-set-neutral-yellow-smilie.png |binary
 icon-themes/breeze/sc/res/icon-set-pies-empty.png|binary
 icon-themes/breeze/sc/res/icon-set-pies-full.png |binary
 icon-themes/breeze/sc/res/icon-set-pies-half.png |binary
 icon-themes/breeze/sc/res/icon-set-pies-one-quarter.png  |binary
 icon-themes/breeze/sc/res/icon-set-pies-three-quarters.png   |binary
 icon-themes/breeze/sc/res/icon-set-positive-green-smilie.png |binary
 icon-themes/breeze/sc/res/icon-set-positive-yellow-smilie.png|binary
 icon-themes/breeze/sc/res/icon-set-shapes-circle.png |binary
 icon-themes/breeze/sc/res/icon-set-shapes-diamond.png|binary
 icon-themes/breeze/sc/res/icon-set-shapes-triangle.png   |binary
 icon-themes/breeze/sc/res/icon-set-squares-empty.png |binary
 icon-themes/breeze/sc/res/icon-set-squares-full.png  |binary
 icon-themes/breeze/sc/res/icon-set-squares-half.png  |binary
 icon-themes/breeze/sc/res/icon-set-squares-one-quarter.png   |binary
 icon-themes/breeze/sc/res/icon-set-squares-three-quarters.png|binary
 icon-themes/breeze/sc/res/icon-set-stars-empty.png   |binary
 icon-themes/breeze/sc/res/icon-set-stars-full.png|binary
 icon-themes/breeze/sc/res/icon-set-stars-half.png|binary
 icon-themes/breeze/sc/res/icon-set-symbols1-check.png|binary
 icon-themes/breeze/sc/res/icon-set-symbols1-cross.png|binary
 icon-themes/breeze/sc/res/icon-set-symbols1-exclamation-mark.png |binary
 icon-themes/breeze/sc/res/icon-set-trafficlights-green.png   |binary
 icon-themes/breeze/sc/res/icon-set-trafficlights-red.png |binary
 icon-themes/breeze/sc/res/icon-set-trafficlights-yellow.png  |binary
 icon-themes/breeze/sc/res/icon-set-triangles-down.png|binary
 icon-themes/breeze/sc/res/icon-set-triangles-same.png|binary
 icon-themes/breeze/sc/res/icon-set-triangles-up.png  |binary
 icon-themes/breeze/sc/res/xml_element.png|binary
 icon-themes/breeze/sc/res/xml_element_repeat.png |binary
 58 files changed

New commits:
commit 58067b5bd18df963a1096f79e68c5bf1e5785a1e
Author: andreas_k 
Date:   Sun Mar 29 13:52:03 2015 +0200

Breeze: missing icons from sc/res folder

Change-Id: If18e44a7dbdd4361fbbe6886447fe9c5266adab1
Reviewed-on: https://gerrit.libreoffice.org/15049
Reviewed-by: Adolfo Jayme Barrientos 
Tested-by: Adolfo Jayme Barrientos 

diff --git a/icon-themes/breeze/sc/res/icon-set-bars-empty.png 
b/icon-themes/breeze/sc/res/icon-set-bars-empty.png
new file mode 100644
index 000..6052ea7
Binary files /dev/null and b/icon-themes/breeze/sc/res/icon-set-bars-empty.png 
differ
diff --git a/icon-themes/breeze/sc/res/icon-set-bars-full.png 
b/icon-themes/

[Libreoffice-commits] core.git: icon-themes/breeze

2015-03-29 Thread andreas_k
 icon-themes/breeze/res/sc0.png  |binary
 icon-themes/breeze/sfx2/res/styfam1.png |binary
 icon-themes/breeze/sfx2/res/styfam2.png |binary
 icon-themes/breeze/sfx2/res/styfam4.png |binary
 icon-themes/breeze/sw/imglst/sf01.png   |binary
 icon-themes/breeze/sw/imglst/sf02.png   |binary
 icon-themes/breeze/sw/imglst/sf03.png   |binary
 icon-themes/breeze/sw/imglst/sf04.png   |binary
 icon-themes/breeze/sw/imglst/sf05.png   |binary
 icon-themes/breeze/sw/res/styfamnu.png  |binary
 10 files changed

New commits:
commit 4c90ee8a9c9b9a3841986aeeff859783eca6b77a
Author: andreas_k 
Date:   Sun Mar 29 14:32:19 2015 +0200

Breeze: Style and Formatting sidebar

Change-Id: Iae087b246ddc0ac2ade4582770447f0624c85318
Reviewed-on: https://gerrit.libreoffice.org/15051
Reviewed-by: Adolfo Jayme Barrientos 
Tested-by: Adolfo Jayme Barrientos 

diff --git a/icon-themes/breeze/res/sc0.png 
b/icon-themes/breeze/res/sc0.png
new file mode 100644
index 000..aa5ffcb
Binary files /dev/null and b/icon-themes/breeze/res/sc0.png differ
diff --git a/icon-themes/breeze/sfx2/res/styfam1.png 
b/icon-themes/breeze/sfx2/res/styfam1.png
new file mode 100644
index 000..5b5ba8b
Binary files /dev/null and b/icon-themes/breeze/sfx2/res/styfam1.png differ
diff --git a/icon-themes/breeze/sfx2/res/styfam2.png 
b/icon-themes/breeze/sfx2/res/styfam2.png
new file mode 100644
index 000..2eb4bcb
Binary files /dev/null and b/icon-themes/breeze/sfx2/res/styfam2.png differ
diff --git a/icon-themes/breeze/sfx2/res/styfam4.png 
b/icon-themes/breeze/sfx2/res/styfam4.png
new file mode 100644
index 000..f822131
Binary files /dev/null and b/icon-themes/breeze/sfx2/res/styfam4.png differ
diff --git a/icon-themes/breeze/sw/imglst/sf01.png 
b/icon-themes/breeze/sw/imglst/sf01.png
new file mode 100644
index 000..2eb4bcb
Binary files /dev/null and b/icon-themes/breeze/sw/imglst/sf01.png differ
diff --git a/icon-themes/breeze/sw/imglst/sf02.png 
b/icon-themes/breeze/sw/imglst/sf02.png
new file mode 100644
index 000..5b5ba8b
Binary files /dev/null and b/icon-themes/breeze/sw/imglst/sf02.png differ
diff --git a/icon-themes/breeze/sw/imglst/sf03.png 
b/icon-themes/breeze/sw/imglst/sf03.png
new file mode 100644
index 000..a5c82ce
Binary files /dev/null and b/icon-themes/breeze/sw/imglst/sf03.png differ
diff --git a/icon-themes/breeze/sw/imglst/sf04.png 
b/icon-themes/breeze/sw/imglst/sf04.png
new file mode 100644
index 000..f822131
Binary files /dev/null and b/icon-themes/breeze/sw/imglst/sf04.png differ
diff --git a/icon-themes/breeze/sw/imglst/sf05.png 
b/icon-themes/breeze/sw/imglst/sf05.png
new file mode 100644
index 000..da97fed
Binary files /dev/null and b/icon-themes/breeze/sw/imglst/sf05.png differ
diff --git a/icon-themes/breeze/sw/res/styfamnu.png 
b/icon-themes/breeze/sw/res/styfamnu.png
new file mode 100644
index 000..da97fed
Binary files /dev/null and b/icon-themes/breeze/sw/res/styfamnu.png differ
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: sal/osl

2015-03-29 Thread Stephan Bergmann
 sal/osl/unx/osxlocale.cxx |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 59722bbb7c9eda0b8e23340eda2ce3029b627542
Author: Stephan Bergmann 
Date:   Sun Mar 29 14:27:21 2015 +0200

loplugin:cstylecast

Change-Id: Iec37e09d0da181f6af268fa0c8c43a2e1fef5dbe

diff --git a/sal/osl/unx/osxlocale.cxx b/sal/osl/unx/osxlocale.cxx
index 3fb9664..f8b0054 100644
--- a/sal/osl/unx/osxlocale.cxx
+++ b/sal/osl/unx/osxlocale.cxx
@@ -57,7 +57,7 @@ namespace
 if (pref == NULL) // return fallback value 'en_US'
  return CFStringCreateWithCString(kCFAllocatorDefault, "en_US", 
kCFStringEncodingASCII);
 
-CFStringRef sref = (CFGetTypeID(pref) == CFArrayGetTypeID()) ? 
(CFStringRef)CFArrayGetValueAtIndex((CFArrayRef)pref, 0) : (CFStringRef)pref;
+CFStringRef sref = (CFGetTypeID(pref) == CFArrayGetTypeID()) ? 
static_cast(CFArrayGetValueAtIndex(static_cast(pref), 
0)) : static_cast(pref);
 
 return 
CFLocaleCreateCanonicalLocaleIdentifierFromString(kCFAllocatorDefault, sref);
 }
@@ -84,14 +84,14 @@ rtl::OUString macosx_getLocale()
 CFArrayGuard arrGuard(subs);
 
 rtl::OUStringBuffer buf;
-append(buf, (CFStringRef)CFArrayGetValueAtIndex(subs, 0));
+append(buf, static_cast(CFArrayGetValueAtIndex(subs, 0)));
 
 // country also available? Assumption: if the array contains more than one
 // value the second value is always the country!
 if (CFArrayGetCount(subs) > 1)
 {
 buf.append("_");
-append(buf, (CFStringRef)CFArrayGetValueAtIndex(subs, 1));
+append(buf, static_cast(CFArrayGetValueAtIndex(subs, 1)));
 }
 // Append 'UTF-8' to the locale because the Mac OS X file
 // system interface is UTF-8 based and sal tries to determine
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: icon-themes/breeze

2015-03-29 Thread andreas_k
 dev/null  
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorder.png  
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_005.png 
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_110.png 
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_250.png 
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_260.png 
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_400.png 
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_450.png 
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_500.png 
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_505.png 
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_750.png 
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorder_All_18x18.png
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorder_Bottom_18x18.png 
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorder_Bottom_Double_18x18.png  
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorder_Bottom_Thick_18x18.png   
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorder_Empty_18x18.png  
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorder_FourBorders_18x18.png
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorder_FourBorders_Thick_18x18.png  
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorder_LeftAndRight_18x18.png   
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorder_LeftDiagonal_18x18.png   
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorder_Left_18x18.png   
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorder_RightDiagonal_18x18.png  
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorder_Right_18x18.png  
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorder_TopAndBottom_18x18.png   
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorder_TopSingle_BottomDouble_18x18.png 
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorder_TopThin_BottomThick_18x18.png
|binary
 icon-themes/breeze/sc/res/sidebar/CellBorder_Top_18x18.png
|binary
 27 files changed

New commits:
commit 4aad7e6330d1a49f17c3362dcd593b00bcdd3523
Author: andreas_k 
Date:   Sun Mar 29 12:03:03 2015 +0200

Breeze: CellBorder icons

Change-Id: I43a0e70fa9d99649115140e2cc030771da752853
Reviewed-on: https://gerrit.libreoffice.org/15048
Tested-by: Yousuf Philips 
Reviewed-by: Yousuf Philips 

diff --git a/icon-themes/breeze/sc/res/sidebar/CellBorder.png 
b/icon-themes/breeze/sc/res/sidebar/CellBorder.png
new file mode 100644
index 000..c430602
Binary files /dev/null and b/icon-themes/breeze/sc/res/sidebar/CellBorder.png 
differ
diff --git a/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_005.png 
b/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_005.png
new file mode 100644
index 000..51d7a9e
Binary files /dev/null and 
b/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_005.png differ
diff --git a/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_110.png 
b/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_110.png
new file mode 100644
index 000..ce5df86
Binary files /dev/null and 
b/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_110.png differ
diff --git a/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_250.png 
b/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_250.png
new file mode 100644
index 000..85dc633
Binary files /dev/null and 
b/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_250.png differ
diff --git a/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_260.png 
b/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_260.png
new file mode 100644
index 000..2d5d1f7
Binary files /dev/null and 
b/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_260.png differ
diff --git a/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_400.png 
b/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_400.png
new file mode 100644
index 000..e1d7478
Binary files /dev/null and 
b/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_400.png differ
diff --git a/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_450.png 
b/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_450.png
new file mode 100644
index 000..7f988d8
Binary files /dev/null and 
b/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_450.png differ
diff --git a/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_500.png 
b/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_500.png
new file mode 100644
index 000..226b987
Binary files /dev/null and 
b/icon-themes/breeze/sc/res/sidebar/CellBorderLineStyle_500.png differ
diff --git a/icon-themes/breeze/sc/res/sidebar/Ce

[Libreoffice-commits] core.git: writerfilter/source

2015-03-29 Thread Miklos Vajna
 writerfilter/source/rtftok/rtfcontrolwords.cxx|   90 +-
 writerfilter/source/rtftok/rtfcontrolwords.hxx|  276 
 writerfilter/source/rtftok/rtfdocumentimpl.cxx|  716 +++---
 writerfilter/source/rtftok/rtfdocumentimpl.hxx|6 
 writerfilter/source/rtftok/rtflistener.hxx|4 
 writerfilter/source/rtftok/rtflookahead.cxx   |6 
 writerfilter/source/rtftok/rtflookahead.hxx   |4 
 writerfilter/source/rtftok/rtfskipdestination.cxx |2 
 writerfilter/source/rtftok/rtftokenizer.cxx   |2 
 9 files changed, 555 insertions(+), 551 deletions(-)

New commits:
commit c395a894a6d9e7a4b7f2586718ef0bf86ef6730f
Author: Miklos Vajna 
Date:   Sun Mar 29 12:33:32 2015 +0200

writerfilter: turn RTFDestinationState into a C++11 scoped enumeration

Change-Id: I5d3c0ab5869f415b3a435e5f931613a188e43173

diff --git a/writerfilter/source/rtftok/rtfcontrolwords.cxx 
b/writerfilter/source/rtftok/rtfcontrolwords.cxx
index 044116c..e25aa4c 100644
--- a/writerfilter/source/rtftok/rtfcontrolwords.cxx
+++ b/writerfilter/source/rtftok/rtfcontrolwords.cxx
@@ -1856,51 +1856,51 @@ bool RTFSymbol::operator<(const RTFSymbol& rOther) const
 RTFMathSymbol aRTFMathControlWords[] =
 {
 // eKeyword nToken eDestination
-{RTF_MOMATH, M_TOKEN(oMath), DESTINATION_MOMATH},
-{RTF_MF, M_TOKEN(f), DESTINATION_MF},
-{RTF_MFPR, M_TOKEN(fPr), DESTINATION_MFPR},
-{RTF_MCTRLPR, M_TOKEN(ctrlPr), DESTINATION_MCTRLPR},
-{RTF_MNUM, M_TOKEN(num), DESTINATION_MNUM},
-{RTF_MDEN, M_TOKEN(den), DESTINATION_MDEN},
-{RTF_MACC, M_TOKEN(acc), DESTINATION_MACC},
-{RTF_MACCPR, M_TOKEN(accPr), DESTINATION_MACCPR},
-{RTF_MBAR, M_TOKEN(bar), DESTINATION_MBAR},
-{RTF_MBARPR, M_TOKEN(barPr), DESTINATION_MBARPR},
-{RTF_ME, M_TOKEN(e), DESTINATION_ME},
-{RTF_MD, M_TOKEN(d), DESTINATION_MD},
-{RTF_MDPR, M_TOKEN(dPr), DESTINATION_MDPR},
-{RTF_MFUNC, M_TOKEN(func), DESTINATION_MFUNC},
-{RTF_MFUNCPR, M_TOKEN(funcPr), DESTINATION_MFUNCPR},
-{RTF_MFNAME, M_TOKEN(fName), DESTINATION_MFNAME},
-{RTF_MLIMLOW, M_TOKEN(limLow), DESTINATION_MLIMLOW},
-{RTF_MLIMLOWPR, M_TOKEN(limLowPr), DESTINATION_MLIMLOWPR},
-{RTF_MLIM, M_TOKEN(lim), DESTINATION_MLIM},
-{RTF_MM, M_TOKEN(m), DESTINATION_MM},
-{RTF_MMPR, M_TOKEN(mPr), DESTINATION_MMPR},
-{RTF_MMR, M_TOKEN(mr), DESTINATION_MMR},
-{RTF_MNARY, M_TOKEN(nary), DESTINATION_MNARY},
-{RTF_MNARYPR, M_TOKEN(naryPr), DESTINATION_MNARYPR},
-{RTF_MSUB, M_TOKEN(sub), DESTINATION_MSUB},
-{RTF_MSUP, M_TOKEN(sup), DESTINATION_MSUP},
-{RTF_MLIMUPP, M_TOKEN(limUpp), DESTINATION_MLIMUPP},
-{RTF_MLIMUPPPR, M_TOKEN(limUppPr), DESTINATION_MLIMUPPPR},
-{RTF_MGROUPCHR, M_TOKEN(groupChr), DESTINATION_MGROUPCHR},
-{RTF_MGROUPCHRPR, M_TOKEN(groupChrPr), DESTINATION_MGROUPCHRPR},
-{RTF_MBORDERBOX, M_TOKEN(borderBox), DESTINATION_MBORDERBOX},
-{RTF_MBORDERBOXPR, M_TOKEN(borderBoxPr), DESTINATION_MBORDERBOXPR},
-{RTF_MRAD, M_TOKEN(rad), DESTINATION_MRAD},
-{RTF_MRADPR, M_TOKEN(radPr), DESTINATION_MRADPR},
-{RTF_MDEG, M_TOKEN(deg), DESTINATION_MDEG},
-{RTF_MSSUB, M_TOKEN(sSub), DESTINATION_MSSUB},
-{RTF_MSSUBPR, M_TOKEN(sSubPr), DESTINATION_MSSUBPR},
-{RTF_MSSUP, M_TOKEN(sSup), DESTINATION_MSSUP},
-{RTF_MSSUPPR, M_TOKEN(sSupPr), DESTINATION_MSSUPPR},
-{RTF_MSSUBSUP, M_TOKEN(sSubSup), DESTINATION_MSSUBSUP},
-{RTF_MSSUBSUPPR, M_TOKEN(sSubSupPr), DESTINATION_MSSUBSUPPR},
-{RTF_MSPRE, M_TOKEN(sPre), DESTINATION_MSPRE},
-{RTF_MSPREPR, M_TOKEN(sPrePr), DESTINATION_MSPREPR},
-{RTF_MBOX, M_TOKEN(box), DESTINATION_MBOX},
-{RTF_MEQARR, M_TOKEN(eqArr), DESTINATION_MEQARR},
+{RTF_MOMATH, M_TOKEN(oMath), Destination::MOMATH},
+{RTF_MF, M_TOKEN(f), Destination::MF},
+{RTF_MFPR, M_TOKEN(fPr), Destination::MFPR},
+{RTF_MCTRLPR, M_TOKEN(ctrlPr), Destination::MCTRLPR},
+{RTF_MNUM, M_TOKEN(num), Destination::MNUM},
+{RTF_MDEN, M_TOKEN(den), Destination::MDEN},
+{RTF_MACC, M_TOKEN(acc), Destination::MACC},
+{RTF_MACCPR, M_TOKEN(accPr), Destination::MACCPR},
+{RTF_MBAR, M_TOKEN(bar), Destination::MBAR},
+{RTF_MBARPR, M_TOKEN(barPr), Destination::MBARPR},
+{RTF_ME, M_TOKEN(e), Destination::ME},
+{RTF_MD, M_TOKEN(d), Destination::MD},
+{RTF_MDPR, M_TOKEN(dPr), Destination::MDPR},
+{RTF_MFUNC, M_TOKEN(func), Destination::MFUNC},
+{RTF_MFUNCPR, M_TOKEN(funcPr), Destination::MFUNCPR},
+{RTF_MFNAME, M_TOKEN(fName), Destination::MFNAME},
+{RTF_MLIMLOW, M_TOKEN(limLow), Destination::MLIMLOW},
+{RTF_MLIMLOWPR, M_TOKEN(limLowPr), Destination::MLIMLOWPR},
+{RTF_MLIM, M_TOKEN(lim), Destination::MLIM},
+{RTF_MM, M_TOKEN(m), Destination::MM},
+{RTF_MMPR, M_TOKEN(mPr), Destination::MMPR},
+{RTF_MMR, M_TOKEN(mr), Destination::MMR},
+{RTF_MNARY, M_TOKEN(nary), Destination::MNARY},
+{RTF_MNARYPR, M_TOKEN(naryPr), Destination::MNARYPR},
+{RTF_MSUB, M_TO

New Defects reported by Coverity Scan for LibreOffice

2015-03-29 Thread scan-admin

Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found 
with Coverity Scan.

4 new defect(s) introduced to LibreOffice found with Coverity Scan.
4 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent 
build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 4 of 4 defect(s)


** CID 1292224:  Control flow issues  (DEADCODE)
/vcl/source/window/btndlg.cxx: 308 in 
ButtonDialog::AddButton(StandardButtonType, unsigned short, unsigned short, 
long)()



*** CID 1292224:  Control flow issues  (DEADCODE)
/vcl/source/window/btndlg.cxx: 308 in 
ButtonDialog::AddButton(StandardButtonType, unsigned short, unsigned short, 
long)()
302 nBtnFlags |= BUTTONDIALOG_HELPBUTTON;
303 else if ( (eType == StandardButtonType::Cancel) || (eType == 
StandardButtonType::Close) )
304 nBtnFlags |= BUTTONDIALOG_CANCELBUTTON;
305 pItem->mpPushButton = ImplCreatePushButton( nBtnFlags );
306 
307 // Standard-Buttons have the right text already
>>> CID 1292224:  Control flow issues  (DEADCODE)
>>> Execution cannot reach the expression "pItem->mpPushButton->GetType() 
>>> == 328" inside this statement: "if (!(eType == StandardButt...".
308 if ( !((eType == StandardButtonType::OK) && 
(pItem->mpPushButton->GetType() == WINDOW_OKBUTTON)) ||
309  !((eType == StandardButtonType::Cancel) && 
(pItem->mpPushButton->GetType() == WINDOW_CANCELBUTTON)) ||
310  !((eType == StandardButtonType::Help)   && 
(pItem->mpPushButton->GetType() == WINDOW_HELPBUTTON)) )
311 {
312 pItem->mpPushButton->SetText( Button::GetStandardText( eType ) 
);
313 }



To view the defects in Coverity Scan visit, 
https://scan.coverity.com/projects/211?tab=overview

To manage Coverity Scan email notifications for 
"libreoffice@lists.freedesktop.org", click 
https://scan.coverity.com/subscriptions/edit?email=libreoffice%40lists.freedesktop.org&token=d6481d718a775246b2340f282ebe5939
 .

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: How many degrees of headlessness do we need?

2015-03-29 Thread Riccardo Magliocchetti

Il 29/03/2015 08:21, Tor Lillqvist ha scritto:

As far as I see, we have the following command-line options or other ways to
avoid display of GUI elements:

[snip]

- The --invisible switch. Not much used? Exact semantics unknown. What is the
intended interaction with existing LibreOffice instances, is there the normal
IPC pipe thing going on, so that only one LO instance runs per user session?


Looking at the code there's quite a lot of if that avoid calling 
OfficeIPCThread::ExecuteCmdLineRequests when libo is invoked with --invisible

Telepathy has some knowledge of it for some reason.


- The --headless switch. Perhaps newer than --invisible? Not sure why a separate
one is needed and what the exact intended semantics are. Again, how is it
supposed to affect the interaction with other LibreOffice instances?

On Linux (and other X11-using Unixes), --headless is tightly coupled to the
'vclplug' concept, as there used to be a 'headless' (actually called 'svp')
vclplug that was used (instead of a "generic" X11, GTK or KDE one) in headless
mode. Nowadays the 'svp' code is not technically a vclplug any more, but that is
just an implementation detail. On Windows and OS X, --headless support is
presumably broken to some degree.


[snip]


This is a mess and needs clarification. There are five modes of headlessness. Do
these modes form a hierarchy? Or is it possible, and meaningful, to have a
LibreOffice instance that is headless but not invisible, for instance? Could we
at least finally kill the quick start concept, which surely is outdated by now?


I've googled a bit on libreoffice headless and invisible options usage on forums 
in the context of document conversion. Found just once occurence of invisible 
used alone at stack overflow, most of the time it's headless alone or headless 
and invisible together. So i'd just make it an alias of headless to avoid 
breaking scripts and mark it as deprecated in the help.


thanks

--
Riccardo Magliocchetti
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: icon-themes/breeze

2015-03-29 Thread andreas_k
 icon-themes/breeze/chart2/selectrange.png   |binary
 icon-themes/breeze/chart2/typearea_16.png   |binary
 icon-themes/breeze/chart2/typebar_16.png|binary
 icon-themes/breeze/chart2/typebubble_16.png |binary
 icon-themes/breeze/chart2/typecolumn_16.png |binary
 icon-themes/breeze/chart2/typecolumnline_16.png |binary
 icon-themes/breeze/chart2/typegl3dbar_16.png|binary
 icon-themes/breeze/chart2/typenet_16.png|binary
 icon-themes/breeze/chart2/typepie_16.png|binary
 icon-themes/breeze/chart2/typepointline_16.png  |binary
 icon-themes/breeze/chart2/typestock_16.png  |binary
 icon-themes/breeze/chart2/typexy_16.png |binary
 12 files changed

New commits:
commit 645030d03afb0acd5f0eaa8f166d984fd5926c49
Author: andreas_k 
Date:   Sat Mar 28 01:09:05 2015 +0100

Breeze: Calc ChartWizard icons

Change-Id: Ifb93591c4fef810656ad3dca0ed0803bdee0de15
Reviewed-on: https://gerrit.libreoffice.org/15037
Reviewed-by: Adolfo Jayme Barrientos 
Tested-by: Adolfo Jayme Barrientos 

diff --git a/icon-themes/breeze/chart2/selectrange.png 
b/icon-themes/breeze/chart2/selectrange.png
new file mode 100644
index 000..1bc5ada
Binary files /dev/null and b/icon-themes/breeze/chart2/selectrange.png differ
diff --git a/icon-themes/breeze/chart2/typearea_16.png 
b/icon-themes/breeze/chart2/typearea_16.png
new file mode 100644
index 000..ccf8d21
Binary files /dev/null and b/icon-themes/breeze/chart2/typearea_16.png differ
diff --git a/icon-themes/breeze/chart2/typebar_16.png 
b/icon-themes/breeze/chart2/typebar_16.png
new file mode 100644
index 000..d8215f8
Binary files /dev/null and b/icon-themes/breeze/chart2/typebar_16.png differ
diff --git a/icon-themes/breeze/chart2/typebubble_16.png 
b/icon-themes/breeze/chart2/typebubble_16.png
new file mode 100644
index 000..302984f
Binary files /dev/null and b/icon-themes/breeze/chart2/typebubble_16.png differ
diff --git a/icon-themes/breeze/chart2/typecolumn_16.png 
b/icon-themes/breeze/chart2/typecolumn_16.png
new file mode 100644
index 000..d2e911b
Binary files /dev/null and b/icon-themes/breeze/chart2/typecolumn_16.png differ
diff --git a/icon-themes/breeze/chart2/typecolumnline_16.png 
b/icon-themes/breeze/chart2/typecolumnline_16.png
new file mode 100644
index 000..a60ca79
Binary files /dev/null and b/icon-themes/breeze/chart2/typecolumnline_16.png 
differ
diff --git a/icon-themes/breeze/chart2/typegl3dbar_16.png 
b/icon-themes/breeze/chart2/typegl3dbar_16.png
new file mode 100644
index 000..e43f56e
Binary files /dev/null and b/icon-themes/breeze/chart2/typegl3dbar_16.png differ
diff --git a/icon-themes/breeze/chart2/typenet_16.png 
b/icon-themes/breeze/chart2/typenet_16.png
new file mode 100644
index 000..733d9cd
Binary files /dev/null and b/icon-themes/breeze/chart2/typenet_16.png differ
diff --git a/icon-themes/breeze/chart2/typepie_16.png 
b/icon-themes/breeze/chart2/typepie_16.png
new file mode 100644
index 000..5715445
Binary files /dev/null and b/icon-themes/breeze/chart2/typepie_16.png differ
diff --git a/icon-themes/breeze/chart2/typepointline_16.png 
b/icon-themes/breeze/chart2/typepointline_16.png
new file mode 100644
index 000..5c510a0
Binary files /dev/null and b/icon-themes/breeze/chart2/typepointline_16.png 
differ
diff --git a/icon-themes/breeze/chart2/typestock_16.png 
b/icon-themes/breeze/chart2/typestock_16.png
new file mode 100644
index 000..8cc7d18
Binary files /dev/null and b/icon-themes/breeze/chart2/typestock_16.png differ
diff --git a/icon-themes/breeze/chart2/typexy_16.png 
b/icon-themes/breeze/chart2/typexy_16.png
new file mode 100644
index 000..4dc94dc
Binary files /dev/null and b/icon-themes/breeze/chart2/typexy_16.png differ
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: 3 commits - include/vcl vcl/qa vcl/source

2015-03-29 Thread Tomaž Vajngerl
 include/vcl/bitmap.hxx|7 -
 include/vcl/pngread.hxx   |   48 +--
 vcl/qa/cppunit/BitmapTest.cxx |   36 
 vcl/source/gdi/bitmap.cxx |   43 --
 vcl/source/gdi/bitmap3.cxx|  179 +-
 vcl/source/gdi/pngread.cxx|   74 -
 6 files changed, 213 insertions(+), 174 deletions(-)

New commits:
commit 85d549adccb0d5942aca34f6836bf5e69bc0c736
Author: Tomaž Vajngerl 
Date:   Sun Mar 29 18:23:28 2015 +0900

vcl: add ScopedInfoAccess to Bitmap

Change-Id: I57292ef47ecec98d2faeff9689702e07050dde1b

diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx
index 25842c6..37f9954 100644
--- a/include/vcl/bitmap.hxx
+++ b/include/vcl/bitmap.hxx
@@ -862,10 +862,9 @@ public:
 BitmapWriteAccess*  AcquireWriteAccess();
 voidReleaseAccess( BitmapInfoAccess* pAccess );
 
-typedef vcl::ScopedBitmapAccess< BitmapReadAccess, Bitmap, 
&Bitmap::AcquireReadAccess >
-ScopedReadAccess;
-typedef vcl::ScopedBitmapAccess< BitmapWriteAccess, Bitmap, 
&Bitmap::AcquireWriteAccess >
-ScopedWriteAccess;
+typedef vcl::ScopedBitmapAccess ScopedReadAccess;
+typedef vcl::ScopedBitmapAccess ScopedWriteAccess;
+typedef vcl::ScopedBitmapAccess ScopedInfoAccess;
 
 private:
 
commit 2fb8cf7cdc48aa97eabf14a51c2a141823368de3
Author: Tomaž Vajngerl 
Date:   Sun Mar 29 17:50:40 2015 +0900

vcl: cleanup pngreader, use unique_ptr for pImpl

Change-Id: I36fb35338d8635e4bf1ac7c60e0f09da401406db

diff --git a/include/vcl/pngread.hxx b/include/vcl/pngread.hxx
index 8513a1a..3954f5c 100644
--- a/include/vcl/pngread.hxx
+++ b/include/vcl/pngread.hxx
@@ -24,40 +24,38 @@
 #include 
 #include 
 
-
-// - PNGReader -
-
-
 namespace vcl
 {
-class PNGReaderImpl;
 
-class VCL_DLLPUBLIC PNGReader
-{
-PNGReaderImpl*  mpImpl;
+class PNGReaderImpl;
 
-public:
+class VCL_DLLPUBLIC PNGReader
+{
+std::unique_ptr mpImpl;
 
-/* the PNG chunks are read within the c'tor, so the stream will
-be positioned at the end of the PNG */
-explicit PNGReader( SvStream& rStm );
-~PNGReader();
+public:
 
-/* an empty preview size hint (=default) will read the whole image
-*/
-BitmapExRead( const Size& i_rPreviewHint = 
Size() );
+/* the PNG chunks are read within the c'tor, so the stream will
+be positioned at the end of the PNG */
+explicit PNGReader(SvStream& rStream);
+~PNGReader();
 
-// retrieve every chunk that resides inside the PNG
-struct ChunkData
-{
-sal_uInt32  nType;
-std::vector< sal_uInt8 >aData;
-};
-const std::vector< ChunkData >& GetChunks() const;
+/* an empty preview size hint (=default) will read the whole image
+*/
+BitmapEx Read(const Size& i_rPreviewHint = Size());
 
-void SetIgnoreGammaChunk( bool b );
+// retrieve every chunk that resides inside the PNG
+struct ChunkData
+{
+sal_uInt32 nType;
+std::vector aData;
 };
-}
+const std::vector& GetChunks() const;
+
+void SetIgnoreGammaChunk(bool bIgnoreGammaChunk);
+};
+
+} // end namespace vcl
 
 #endif // INCLUDED_VCL_PNGREAD_HXX
 
diff --git a/vcl/source/gdi/pngread.cxx b/vcl/source/gdi/pngread.cxx
index 38a5bd7..62fc45f 100644
--- a/vcl/source/gdi/pngread.cxx
+++ b/vcl/source/gdi/pngread.cxx
@@ -29,6 +29,9 @@
 #include 
 #include 
 
+namespace vcl
+{
+
 #define PNGCHUNK_IHDR   0x49484452
 #define PNGCHUNK_PLTE   0x504c5445
 #define PNGCHUNK_IDAT   0x49444154
@@ -41,8 +44,6 @@
 #define VIEWING_GAMMA   2.35
 #define DISPLAY_GAMMA   1.0
 
-namespace vcl
-{
 
 static const sal_uInt8 mpDefaultColorTable[ 256 ] =
 {   0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 
0x0c, 0x0d, 0x0e, 0x0f,
@@ -69,9 +70,9 @@ private:
 SvStream&   mrPNGStream;
 SvStreamEndian  mnOrigStreamMode;
 
-std::vector< vcl::PNGReader::ChunkData >maChunkSeq;
-std::vector< vcl::PNGReader::ChunkData >::iterator maChunkIter;
-std::vector< sal_uInt8 >::iterator  maDataIter;
+std::vector maChunkSeq;
+std::vector::iterator maChunkIter;
+std::vector::iterator maDataIter;
 
 Bitmap* mpBmp;
 BitmapWriteAccess*  mpAcc;
@@ -79,11 +80,11 @@ private:
 AlphaMask*  mpAlphaMask;
 BitmapWriteAccess*  mpMaskAcc;
 ZCodec  mpZCodec;
-sal_uInt8*  mpInflateInBuf; // as big as the size of a 
scanline + alphachannel + 1
-sal_uInt8*  mpScanPrior;// pointer to the latest scanline
-sal_uInt8*  mpTransTab; // for transparency in images with 
palette colortype
-sal_uInt8*  mpScanCurrent;  // pointer into the current 
scanline
-sal_uInt8*  mpColorTable;
+sal_uInt8*  mpI

[Libreoffice-commits] core.git: basic/source compilerplugins/clang forms/source idlc/source include/vcl pyuno/source sot/source stoc/source sw/source xmloff/source

2015-03-29 Thread Stephan Bergmann
 basic/source/classes/sbunoobj.cxx   |2 +-
 compilerplugins/clang/cstylecast.cxx|3 ---
 forms/source/component/DatabaseForm.cxx |4 ++--
 idlc/source/astdump.cxx |6 +++---
 idlc/source/astenum.cxx |2 +-
 idlc/source/astinterface.cxx|2 +-
 idlc/source/aststruct.cxx   |2 +-
 include/vcl/cmdevt.hxx  |2 +-
 include/vcl/event.hxx   |4 ++--
 pyuno/source/module/pyuno.cxx   |4 ++--
 pyuno/source/module/pyuno_runtime.cxx   |4 ++--
 sot/source/sdstor/stgstrms.cxx  |2 +-
 stoc/source/corereflection/base.hxx |2 +-
 stoc/source/corereflection/criface.cxx  |8 
 sw/source/core/txtnode/fntcache.cxx |2 +-
 sw/source/core/txtnode/swfntcch.cxx |2 +-
 xmloff/source/style/impastpl.cxx|2 +-
 17 files changed, 25 insertions(+), 28 deletions(-)

New commits:
commit 0bd502af47b53bc4340df7874bd726361e3bbad9
Author: Stephan Bergmann 
Date:   Sun Mar 29 09:17:00 2015 +0200

Clean up remaining C-style casts among void pointers

Change-Id: I1b49c020d597b569e330482f4dbf20c15ccdae3f

diff --git a/basic/source/classes/sbunoobj.cxx 
b/basic/source/classes/sbunoobj.cxx
index 7a73a45..2e527d4 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -4799,7 +4799,7 @@ bool StructRefInfo::setValue( const Any& rValue )
 {
 return uno_type_assignData( getInst(),
maType.getTypeLibType(),
-   (void*)rValue.getValue(),
+   const_cast(rValue.getValue()),
rValue.getValueTypeRef(),
reinterpret_cast< uno_QueryInterfaceFunc >(cpp_queryInterface),
reinterpret_cast< uno_AcquireFunc >(cpp_acquire),
diff --git a/compilerplugins/clang/cstylecast.cxx 
b/compilerplugins/clang/cstylecast.cxx
index fcc1fc82..47e8d17 100644
--- a/compilerplugins/clang/cstylecast.cxx
+++ b/compilerplugins/clang/cstylecast.cxx
@@ -95,9 +95,6 @@ bool CStyleCast::VisitCStyleCastExpr(const CStyleCastExpr * 
expr) {
 if (t1->isPointerType() && t2->isPointerType()) {
 t1 = t1->getAs()->getPointeeType();
 t2 = t2->getAs()->getPointeeType();
-if (t2->isVoidType()) {
-return true;
-}
 } else if (t1->isLValueReferenceType() && t2->isLValueReferenceType()) 
{
 t1 = t1->getAs()->getPointeeType();
 t2 = t2->getAs()->getPointeeType();
diff --git a/forms/source/component/DatabaseForm.cxx 
b/forms/source/component/DatabaseForm.cxx
index 82a6d78..672e7c4 100644
--- a/forms/source/component/DatabaseForm.cxx
+++ b/forms/source/component/DatabaseForm.cxx
@@ -569,11 +569,11 @@ Sequence 
ODatabaseForm::GetDataMultiPartEncoded(const Reference(static_cast(pData), nLen);
+return Sequence(static_cast(pData), nLen);
 }
 
 
diff --git a/idlc/source/astdump.cxx b/idlc/source/astdump.cxx
index e0f786b..5b6938c 100644
--- a/idlc/source/astdump.cxx
+++ b/idlc/source/astdump.cxx
@@ -87,7 +87,7 @@ bool AstModule::dump(RegistryKey& rKey)
 void const * pBlob = aBlob.getBlob(&aBlobSize);
 
 if (localKey.setValue(emptyStr, RG_VALUETYPE_BINARY,
-(RegValue)pBlob, aBlobSize))
+const_cast(pBlob), aBlobSize))
 {
 fprintf(stderr, "%s: warning, could not set value of key \"%s\" in 
%s\n",
 idlc()->getOptions()->getProgramName().getStr(),
@@ -112,7 +112,7 @@ bool AstModule::dump(RegistryKey& rKey)
 if ( getNodeType() != NT_root )
 {
 if (localKey.setValue(emptyStr, RG_VALUETYPE_BINARY,
-(RegValue)pBlob, aBlobSize))
+const_cast(pBlob), aBlobSize))
 {
 fprintf(stderr, "%s: warning, could not set value of key 
\"%s\" in %s\n",
 idlc()->getOptions()->getProgramName().getStr(),
@@ -152,7 +152,7 @@ bool AstTypeDef::dump(RegistryKey& rKey)
 sal_uInt32 aBlobSize;
 void const * pBlob = aBlob.getBlob(&aBlobSize);
 
-if (localKey.setValue(emptyStr, RG_VALUETYPE_BINARY, (RegValue)pBlob, 
aBlobSize))
+if (localKey.setValue(emptyStr, RG_VALUETYPE_BINARY, 
const_cast(pBlob), aBlobSize))
 {
 fprintf(stderr, "%s: warning, could not set value of key \"%s\" in 
%s\n",
 idlc()->getOptions()->getProgramName().getStr(),
diff --git a/idlc/source/astenum.cxx b/idlc/source/astenum.cxx
index 32f8138..51a48f0 100644
--- a/idlc/source/astenum.cxx
+++ b/idlc/source/astenum.cxx
@@ -92,7 +92,7 @@ bool AstEnum::dump(RegistryKey& rKey)
 void const * pBlob = aBlob.getBlob(&aBlobSize);
 
 if (localKey.setValue(emptyStr, RG_VALUETYPE_BINARY,
-(RegValue)pBlob, aBlobSize))
+const_cast(pBlob), aBlobSize))
 {
 fprintf(stderr, "%s: warning, could not set value