About fix for tdf#82744: on gerritt, need help

2015-07-16 Thread Giuseppe Castagno

Hi all,

I pushed the preliminary version of the fix, I have trouble with the 
build on Windows, I build in Linux only, and being the fault in Windows 
in an entirely different code area, I fail to see where the culprit lies.


I said preliminary because there is still something that's nagging me on 
a couple of occasions:


- when a file is first created and the lock is put on the null resource,
an operation the RFC4918 allows;

- when you operate on a web site that has has no lock functionality 
available.


The two question are related to each other, both already work, but 
locking at the net log, there seems to be something I need to check more 
thoroughly.


Thanks

--
Kind Regards,
Giuseppe Castagno aka beppec56
Acca Esse http://www.acca-esse.eu
giuseppe.castagno at acca-esse.eu
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Approximating a missing platform with gerrit

2015-07-16 Thread Stephan Bergmann
Our gerrit/jenkins setup is fine in detecting change requests that would 
break the build.  But when you try to (mis-)use it to modify a change 
request until it passes on all platforms (because you don't have direct 
access to one of the platforms, say), the situation is not that ideal. 
As I recently experienced when I tried to get 
 "Make content of OSL_ASSERT, 
DBG_ASSERT, etc. visiblie in non-debug builds" to build on Windows---and 
ultimately resorted to a local Windows build anyway, to speed things up.


I do understand that this may be issues in the design of the setup that 
are hard to overcome, but wanted to dump this food for thought anyway:


* Once two of the three platforms are known to compile a give change 
fine, it would be nice if one could requests builds of new versions of 
the change for only one specific platform (esp. when then newly made 
modifications are in platform-specific code, so should not affect the 
already-good platforms anyway).  Could save time and reduce (real-world) 
waste.


* Sometimes, a build fails for spurious reasons midway through, and you 
need to start another build.  But the only way to re-trigger a build is 
to rebase the change.  (The downsides are: disrupts the history of the 
change's revisions; the rebased-upon master revision itself may be 
broken; and there just might not be a new master revision to rebase 
against yet at all)  It would be nice if one could force rebuilds of 
already built change request vesions.  (In my example, this happend at 
patch sets 6 -> 7.)


* In cases like in my example, where the change breaks platform-specific 
code in various places in the code base, it can be tedious and wasteful 
to find all those places incrementally, one place per new build.  It 
would be nice if one could trigger builds that employ "make -k".

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


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

2015-07-16 Thread Caolán McNamara
 unotools/source/config/lingucfg.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 91f41ac71a773e2016f2f53e08e85c5fc065999d
Author: Caolán McNamara 
Date:   Thu Jul 16 08:48:30 2015 +0100

WaE: -Wmaybe-uninitialized

Change-Id: Ie49c6a8067c5223bbe3c86505aa909c2bd5d3c93

diff --git a/unotools/source/config/lingucfg.cxx 
b/unotools/source/config/lingucfg.cxx
index 2439cd4..5bda4e6 100644
--- a/unotools/source/config/lingucfg.cxx
+++ b/unotools/source/config/lingucfg.cxx
@@ -569,7 +569,7 @@ bool SvtLinguConfigItem::LoadOptions( const uno::Sequence< 
OUString > &rProperyN
 for (sal_Int32 i = 0;  i < nProps;  ++i)
 {
 const uno::Any &rVal = pValue[i];
-sal_Int32 nPropertyHandle;
+sal_Int32 nPropertyHandle(0);
 GetHdlByName( nPropertyHandle, pProperyNames[i], true );
 switch ( nPropertyHandle )
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: svgio/inc svgio/source

2015-07-16 Thread Noel Grandin
 svgio/inc/svgio/svgreader/svgcharacternode.hxx   |3 ---
 svgio/inc/svgio/svgreader/svgdocument.hxx|1 -
 svgio/inc/svgio/svgreader/svgstyleattributes.hxx |7 ---
 svgio/inc/svgio/svgreader/svgsvgnode.hxx |1 -
 svgio/inc/svgio/svgreader/svgsymbolnode.hxx  |2 --
 svgio/inc/svgio/svgreader/svgtextpathnode.hxx|2 --
 svgio/inc/svgio/svgreader/svgtools.hxx   |1 -
 svgio/inc/svgio/svgreader/svgusenode.hxx |2 --
 svgio/source/svgreader/svgcharacternode.cxx  |3 +--
 9 files changed, 1 insertion(+), 21 deletions(-)

New commits:
commit ee79541aa892ff218e1dc3f869a3ac11b6f296ba
Author: Noel Grandin 
Date:   Wed Jul 15 15:28:37 2015 +0200

loplugin:unusedmethods svgio

Change-Id: I0dd601429b70dc09780e31079a6f7c0570652fe9
Reviewed-on: https://gerrit.libreoffice.org/17114
Reviewed-by: Noel Grandin 
Tested-by: Noel Grandin 

diff --git a/svgio/inc/svgio/svgreader/svgcharacternode.hxx 
b/svgio/inc/svgio/svgreader/svgcharacternode.hxx
index 192f24d..23d7809 100644
--- a/svgio/inc/svgio/svgreader/svgcharacternode.hxx
+++ b/svgio/inc/svgio/svgreader/svgcharacternode.hxx
@@ -101,7 +101,6 @@ namespace svgio
 /// bitfield
 boolmbLengthAdjust : 1; // true = spacing, 
false = spacingAndGlyphs
 boolmbAbsoluteX : 1;
-boolmbAbsoluteY : 1;
 
 public:
 SvgTextPosition(
@@ -112,11 +111,9 @@ namespace svgio
 // data read access
 const SvgTextPosition* getParent() const { return mpParent; }
 const ::std::vector< double >& getX() const { return maX; }
-const ::std::vector< double >& getY() const { return maY; }
 double getTextLength() const { return mfTextLength; }
 bool getLengthAdjust() const { return mbLengthAdjust; }
 bool getAbsoluteX() const { return mbAbsoluteX; }
-bool getAbsoluteY() const { return mbAbsoluteY; }
 
 // get/set absolute, current, advancing position
 const basegfx::B2DPoint& getPosition() const { return maPosition; }
diff --git a/svgio/inc/svgio/svgreader/svgdocument.hxx 
b/svgio/inc/svgio/svgreader/svgdocument.hxx
index e0d0141..46aee7a 100644
--- a/svgio/inc/svgio/svgreader/svgdocument.hxx
+++ b/svgio/inc/svgio/svgreader/svgdocument.hxx
@@ -61,7 +61,6 @@ namespace svgio
 void removeSvgNodeFromMapper(const OUString& rStr);
 
 /// find a node by its Id
-bool hasSvgNodesById() const { return 
!maIdTokenMapperList.empty(); }
 const SvgNode* findSvgNodeById(const OUString& rStr) const;
 
 /// add/remove styles to mapper
diff --git a/svgio/inc/svgio/svgreader/svgstyleattributes.hxx 
b/svgio/inc/svgio/svgreader/svgstyleattributes.hxx
index 5a67aa1..cb1982d 100644
--- a/svgio/inc/svgio/svgreader/svgstyleattributes.hxx
+++ b/svgio/inc/svgio/svgreader/svgstyleattributes.hxx
@@ -335,7 +335,6 @@ namespace svgio
 
 /// fill rule content
 FillRule getFillRule() const;
-void setFillRule(const FillRule aFillRule = FillRule_notset) { 
maFillRule = aFillRule; }
 
 /// fill StrokeDasharray content
 const SvgNumberVector& getStrokeDasharray() const;
@@ -382,7 +381,6 @@ namespace svgio
 void setFontStyle(const FontStyle aFontStyle = FontStyle_notset) { 
maFontStyle = aFontStyle; }
 
 /// FontVariant content
-FontVariant getFontVariant() const;
 void setFontVariant(const FontVariant aFontVariant = 
FontVariant_notset) { maFontVariant = aFontVariant; }
 
 /// FontWeight content
@@ -427,26 +425,21 @@ namespace svgio
 
 // ClipPathXLink content
 const OUString getClipPathXLink() const { return maClipPathXLink; }
-void setClipPathXLink(const OUString& rNew) { maClipPathXLink = 
rNew; }
 
 // MaskXLink content
 const OUString getMaskXLink() const { return maMaskXLink; }
-void setMaskXLink(const OUString& rNew) { maMaskXLink = rNew; }
 
 // MarkerStartXLink content
 OUString getMarkerStartXLink() const;
 const SvgMarkerNode* accessMarkerStartXLink() const;
-void setMarkerStartXLink(const OUString& rNew) { 
maMarkerStartXLink = rNew; }
 
 // MarkerMidXLink content
 OUString getMarkerMidXLink() const;
 const SvgMarkerNode* accessMarkerMidXLink() const;
-void setMarkerMidXLink(const OUString& rNew) { maMarkerMidXLink = 
rNew; }
 
 // MarkerEndXLink content
 OUString getMarkerEndXLink() const;
 const SvgMarkerNode* accessMarkerEndXLink() const;
-void setMarkerEndXLink(const OUString& rNew) { maMarkerEndXLink = 
rNew; }
 
 // BaselineShift
 void setBaselineShift(const Baselin

[Libreoffice-commits] core.git: 92 commits - fpicker/Library_fps_office.mk fpicker/source framework/inc framework/Library_fwk.mk framework/source framework/util icon-themes/breeze icon-themes/tango in

2015-07-16 Thread Szymon Kłos
 fpicker/Library_fps_office.mk   |1 
 fpicker/source/office/OfficeFilePicker.cxx  |   79 
 fpicker/source/office/OfficeFilePicker.hxx  |   39 
 fpicker/source/office/OfficeFolderPicker.cxx|2 
 fpicker/source/office/OfficeFolderPicker.hxx|2 
 fpicker/source/office/RemoteFilesDialog.cxx |  980 
++
 fpicker/source/office/RemoteFilesDialog.hxx |  171 +
 fpicker/source/office/commonpicker.hxx  |8 
 fpicker/source/office/fpdialogbase.hxx  |  113 +
 fpicker/source/office/fps_office.component  |3 
 fpicker/source/office/fps_office.cxx|6 
 fpicker/source/office/iodlg.cxx |4 
 fpicker/source/office/iodlg.hxx |   41 
 framework/Library_fwk.mk|1 
 framework/inc/classes/resource.hrc  |2 
 framework/source/classes/resource.src   |   10 
 framework/source/uielement/recentfilesmenucontroller.cxx|   20 
 framework/source/uielement/saveasmenucontroller.cxx |  192 +
 framework/util/fwk.component|4 
 icon-themes/breeze/links.txt|2 
 icon-themes/tango/links.txt |2 
 include/sfx2/app.hxx|1 
 include/sfx2/filedlghelper.hxx  |1 
 include/sfx2/sfxsids.hrc|3 
 include/sfx2/tbxctrl.hxx|   15 
 include/svtools/PlaceEditDialog.hxx |8 
 include/svtools/ServerDetailsControls.hxx   |   12 
 include/svtools/breadcrumb.hxx  |   64 
 include/svtools/foldertree.hxx  |   56 
 include/ucbhelper/simpleauthenticationrequest.hxx   |8 
 officecfg/registry/data/org/openoffice/Office/Common.xcu|   21 
 officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu   |8 
 officecfg/registry/data/org/openoffice/Office/UI/Controller.xcu |   11 
 officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu |8 
 officecfg/registry/data/org/openoffice/Setup.xcu|1 
 officecfg/registry/schema/org/openoffice/Office/Common.xcs  |5 
 sc/source/ui/app/scdll.cxx  |1 
 sc/uiconfig/scalc/toolbar/standardbar.xml   |3 
 sfx2/sdi/docslots.sdi   |9 
 sfx2/sdi/sfx.sdi|   51 
 sfx2/source/appl/appopen.cxx|   10 
 sfx2/source/appl/appuno.cxx |2 
 sfx2/source/dialog/backingwindow.cxx|   12 
 sfx2/source/dialog/backingwindow.hxx|1 
 sfx2/source/dialog/filedlghelper.cxx|2 
 sfx2/source/doc/guisaveas.cxx   |   47 
 sfx2/source/doc/objserv.cxx |6 
 sfx2/source/toolbox/tbxitem.cxx |   50 
 sfx2/uiconfig/ui/startcenter.ui |   44 
 svtools/Library_svt.mk  |2 
 svtools/UIConfig_svt.mk |1 
 svtools/source/contnr/foldertree.cxx|  116 +
 svtools/source/control/breadcrumb.cxx   |  225 ++
 svtools/source/dialogs/PlaceEditDialog.cxx  |   99 -
 svtools/source/dialogs/ServerDetailsControls.cxx|  107 -
 svtools/uiconfig/ui/placeedit.ui|  826 
+++-
 svtools/uiconfig/ui/remotefilesdialog.ui|  241 ++
 sw/source/uibase/app/swmodule.cxx   |1 
 sw/uiconfig/swriter/toolbar/standardbar.xml |3 
 ucb/source/ucp/cmis/auth_provider.cxx   |2 
 ucb/source/ucp/cmis/cmis_content.cxx|9 
 ucb/source/ucp/cmis/cmis_repo_content.cxx   |5 
 ucbhelper/source/provider/simpleauthenticationrequest.cxx   |   32 
 63 files changed, 3159 insertions(+), 652 deletions(-)

New commits:
commit c09512c30bdaede606547a246d755cda0154cf33

[Libreoffice-commits] core.git: include/sfx2

2015-07-16 Thread Stephan Bergmann
 include/sfx2/event.hxx |   19 ---
 1 file changed, 19 deletions(-)

New commits:
commit f013178f078d2670b5d7d677ab17edd115de53d7
Author: Stephan Bergmann 
Date:   Thu Jul 16 10:02:08 2015 +0200

Remove unused SfxViewEventHint

Change-Id: I42200260b98f90978d2c214fd9ea77376ab8cd8d

diff --git a/include/sfx2/event.hxx b/include/sfx2/event.hxx
index e3a01c8..0eb1d5d 100644
--- a/include/sfx2/event.hxx
+++ b/include/sfx2/event.hxx
@@ -79,25 +79,6 @@ public:
 { return xViewController; }
 };
 
-
-
-class SfxNamedHint : public SfxHint
-{
-OUString_aEventName;
-OUString_aArgs;
-
-public:
-SfxNamedHint( const OUString& rName,
-  const OUString& rArgs  )
-:   _aEventName( rName ),
-_aArgs( rArgs )
-{}
-
-SfxNamedHint( const OUString& rName )
-:   _aEventName( rName )
-{}
-};
-
 class Printer;
 
 class SfxPrintingHint : public SfxViewEventHint
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'feature/gsoc15-open-remote-files-dialog' - 3289 commits - accessibility/inc accessibility/source android/Bootstrap android/CustomTarget_android_desktop.mk andro

2015-07-16 Thread Szymon Kłos
Rebased ref, commits from common ancestor:
commit c09512c30bdaede606547a246d755cda0154cf33
Author: Szymon Kłos 
Date:   Tue Jul 14 20:55:52 2015 +0200

question about overwriting the file only in the save mode

Change-Id: Iabb3bc12a8efae65a1c3d221a31c2214de8f6c90

diff --git a/fpicker/source/office/RemoteFilesDialog.cxx 
b/fpicker/source/office/RemoteFilesDialog.cxx
index 6c200ae..ec34e96 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -777,11 +777,14 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, OkHdl )
 
 if ( bExists )
 {
-OUString sMsg = ResId( STR_SVT_ALREADYEXISTOVERWRITE, 
*ResMgrHolder::getOrCreate() );
-sMsg = sMsg.replaceFirst( "$filename$", sName );
-ScopedVclPtrInstance< MessageDialog > aBox( this, sMsg, 
VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO );
-if( aBox->Execute() != RET_YES )
-return 0;
+if( m_eMode == REMOTEDLG_MODE_SAVE )
+{
+OUString sMsg = ResId( STR_SVT_ALREADYEXISTOVERWRITE, 
*ResMgrHolder::getOrCreate() );
+sMsg = sMsg.replaceFirst( "$filename$", sName );
+ScopedVclPtrInstance< MessageDialog > aBox( this, sMsg, 
VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO );
+if( aBox->Execute() != RET_YES )
+return 0;
+}
 }
 else
 {
commit 84e8159ada9a63ac4fd690406e4295860912ebea
Author: Szymon Kłos 
Date:   Tue Jul 14 16:16:06 2015 +0200

FilePickerLastService as a string, not string-list 2

Change-Id: If100617ef968fde94178528327135e15f64c1542

diff --git a/fpicker/source/office/RemoteFilesDialog.cxx 
b/fpicker/source/office/RemoteFilesDialog.cxx
index 5ea0658..6c200ae 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -227,10 +227,7 @@ void RemoteFilesDialog::dispose()
 
 std::shared_ptr< comphelper::ConfigurationChanges > batch( 
comphelper::ConfigurationChanges::create( m_context ) );
 
-Sequence< OUString > lastService( 1 );
-lastService[0] = m_sLastServiceUrl;
-
-officecfg::Office::Common::Misc::FilePickerLastService::set( lastService, 
batch );
+officecfg::Office::Common::Misc::FilePickerLastService::set( 
m_sLastServiceUrl, batch );
 
 if( m_bIsUpdated )
 {
@@ -324,10 +321,8 @@ void RemoteFilesDialog::FillServicesListbox()
 
 unsigned int nPos = 0;
 unsigned int i = 0;
-Sequence< OUString > lastService( 
officecfg::Office::Common::Misc::FilePickerLastService::get( m_context ) );
 
-if( lastService.getLength() > 0 )
-m_sLastServiceUrl = lastService[0];
+m_sLastServiceUrl = 
officecfg::Office::Common::Misc::FilePickerLastService::get( m_context );
 
 for( sal_Int32 nPlace = 0; nPlace < placesUrlsList.getLength() && nPlace < 
placesNamesList.getLength(); ++nPlace )
 {
commit f587314d8d03cc6ac6e112955b401f098e231223
Author: Szymon Kłos 
Date:   Tue Jul 14 16:02:02 2015 +0200

FilePickerLastService as a string, not string-list

Change-Id: I7c379e797250be2f61791f5f3260d23ad24d26b3

diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs 
b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
index 5109e66..220a989 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
@@ -5828,7 +5828,7 @@
   List of names of the places the user bookmarked in the file 
picker dialog.
 
   
-  
+  
 
   URL of the last used service in the remote file picker.
 
commit 84d266fa838a3df1cedbcde5ab98c8a8b23f6b48
Author: Szymon Kłos 
Date:   Tue Jul 14 13:10:53 2015 +0200

RemoteFilesDialog: remember last used service

Change-Id: I494b1d43d28d8e6c37ce9d391b37580be6a9be31

diff --git a/fpicker/source/office/RemoteFilesDialog.cxx 
b/fpicker/source/office/RemoteFilesDialog.cxx
index 533940d..5ea0658 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -225,6 +225,13 @@ void RemoteFilesDialog::dispose()
 {
 m_pFileView->SetSelectHdl( Link<>() );
 
+std::shared_ptr< comphelper::ConfigurationChanges > batch( 
comphelper::ConfigurationChanges::create( m_context ) );
+
+Sequence< OUString > lastService( 1 );
+lastService[0] = m_sLastServiceUrl;
+
+officecfg::Office::Common::Misc::FilePickerLastService::set( lastService, 
batch );
+
 if( m_bIsUpdated )
 {
 Sequence< OUString > placesUrlsList( m_aServices.size() );
@@ -238,12 +245,12 @@ void RemoteFilesDialog::dispose()
 ++i;
 }
 
-std::shared_ptr< comphelper::ConfigurationChanges > batch( 
comphelper::ConfigurationChanges::create( m_context ) );
 officecfg::Office::Common::Misc::FilePickerPlacesUrls::set( 
placesUrlsList, batch );
 officecfg::Office::Common::Misc::FilePickerPlacesNames::set( 
placesNamesList, batch );

[Libreoffice-commits] core.git: include/svtools

2015-07-16 Thread Stephan Bergmann
 include/svtools/ServerDetailsControls.hxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e373d3cd63dc0728aed0c16782a49754658e5e72
Author: Stephan Bergmann 
Date:   Thu Jul 16 10:06:26 2015 +0200

-Werror,-Winconsistent-missing-override

Change-Id: Ic26b03153d856f460a2e6c90b64a670541ec5af0

diff --git a/include/svtools/ServerDetailsControls.hxx 
b/include/svtools/ServerDetailsControls.hxx
index 29c951a..5df8a36 100644
--- a/include/svtools/ServerDetailsControls.hxx
+++ b/include/svtools/ServerDetailsControls.hxx
@@ -130,7 +130,7 @@ class CmisDetailsContainer : public DetailsContainer
 CmisDetailsContainer( VclBuilderContainer* pBuilder, OUString sBinding 
);
 virtual ~CmisDetailsContainer( ) { };
 
-virtual void show( bool bShow = true );
+virtual void show( bool bShow = true ) SAL_OVERRIDE;
 virtual INetURLObject getUrl( ) SAL_OVERRIDE;
 virtual bool setUrl( const INetURLObject& rUrl ) SAL_OVERRIDE;
 virtual void setUsername( const OUString& rUsername ) SAL_OVERRIDE;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: Howto build a viewer to compare differences using tiles?

2015-07-16 Thread Michel Renon

Hi Stef,

Le 15/07/2015 18:52, Stef Bon a écrit :

Hi,

I'm building backup/version system, using sqlite, btrfs and FUSE for
the user. It's comparable to snapper, but that's more a tool to
backup/snapshot the system. Fuse-backup is a tool for the user, he/she
can assign a directory to backup easily, and view versions of files
with a simple mouseclick.

[...]

Now I've spoken with Michael Meeks in Den Hage begin May at the
OpenSuse conference. I asked him howto build a tool to view the
differences between versions. He suggested me to look at the
libreofficekit, and especially the lokdocview, to view pages as tiles.

Now can someone describe globally howto write an app using qt 5,
showing the pages as tiles, the page of the current version left and
the previous version right?




I'm also interested by creating a Qt+QML app with LOKit : I would like 
to use it for making UX prototypes :-)


We are not alone : Canonical just announced that they start to integrate 
LOKit as a plugin of their DocViewer app [1].

It seems Bjoern is involved in this project ?

I found the code of the plugin [2], but I have no knowledge how to use 
it to create a standard basic app.


Hope this helps,

Michel





[1] 
https://lists.ubuntu.com/archives/ubuntu-community-team/2015-June/000649.html


[2] 
http://bazaar.launchpad.net/~verzegnassi-stefano/ubuntu-docviewer-app/lo-plugin-prototype/files

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


[Libreoffice-commits] core.git: 7 commits - include/svtools svtools/source

2015-07-16 Thread Stephan Bergmann
 include/svtools/ServerDetailsControls.hxx|2 +-
 include/svtools/breadcrumb.hxx   |4 ++--
 include/svtools/foldertree.hxx   |4 ++--
 svtools/source/contnr/foldertree.cxx |4 ++--
 svtools/source/control/breadcrumb.cxx|6 +++---
 svtools/source/dialogs/ServerDetailsControls.cxx |2 +-
 6 files changed, 11 insertions(+), 11 deletions(-)

New commits:
commit f1fbd6af4f796c53667fbf56b8b5e5dcbcabe45f
Author: Stephan Bergmann 
Date:   Thu Jul 16 10:13:45 2015 +0200

loplugin:stringconstant

Change-Id: Ifd9517672252cdbf4957cd23dbd9177aed8631da

diff --git a/svtools/source/control/breadcrumb.cxx 
b/svtools/source/control/breadcrumb.cxx
index 3685c1a..564c968 100644
--- a/svtools/source/control/breadcrumb.cxx
+++ b/svtools/source/control/breadcrumb.cxx
@@ -149,7 +149,7 @@ void Breadcrumb::SetURL( const OUString& rURL )
 {
 unsigned int nIndex = nSegments + i;
 
-if( m_aLinks[nIndex]->GetText() == "" )
+if( m_aLinks[nIndex]->GetText().isEmpty() )
 {
 bRight = false;
 }
commit 21b8cb7ff4907c6ff4d79d892d10feec7557ed34
Author: Stephan Bergmann 
Date:   Thu Jul 16 10:13:14 2015 +0200

loplugin:loopvartoosmall

Change-Id: Ia314ea7e924b2096c121d9cfda2c64e6d523a987

diff --git a/svtools/source/control/breadcrumb.cxx 
b/svtools/source/control/breadcrumb.cxx
index 8b43fa1..3685c1a 100644
--- a/svtools/source/control/breadcrumb.cxx
+++ b/svtools/source/control/breadcrumb.cxx
@@ -23,7 +23,7 @@ Breadcrumb::~Breadcrumb()
 
 void Breadcrumb::dispose()
 {
-for( unsigned int i = 0; i < m_aLinks.size(); i++ )
+for( std::vector>::size_type i = 0; i < 
m_aLinks.size(); i++ )
 {
 m_aSeparators[i].disposeAndClear();
 m_aLinks[i].disposeAndClear();
@@ -93,7 +93,7 @@ void Breadcrumb::SetURL( const OUString& rURL )
 
 // clear unused fields
 
-for( unsigned int i = nSegments + 1; i < m_aLinks.size(); i++ )
+for( std::vector>::size_type i = nSegments + 1; i < 
m_aLinks.size(); i++ )
 {
 if( bClear )
 m_aLinks[i]->SetText( "" );
commit 97a3ea0a2d9194003d67fb3f6bb6f1a5c145440b
Author: Stephan Bergmann 
Date:   Thu Jul 16 10:12:09 2015 +0200

loplugin:saloverride

Change-Id: Ia3f3fbc7a0cd936b9cb6e89a15dd08fb4b73332e

diff --git a/include/svtools/breadcrumb.hxx b/include/svtools/breadcrumb.hxx
index ff08994..6e6ac5f 100644
--- a/include/svtools/breadcrumb.hxx
+++ b/include/svtools/breadcrumb.hxx
@@ -47,9 +47,9 @@ class SVT_DLLPUBLIC Breadcrumb : public VclHBox
 
 public:
 Breadcrumb( vcl::Window* pParent, WinBits nWinStyle = 0 );
-~Breadcrumb();
+virtual ~Breadcrumb();
 
-void dispose();
+void dispose() SAL_OVERRIDE;
 
 void SetClickHdl( const Link<>& rLink );
 OUString GetHdlURL();
commit 109ca5b630018dad9ad4001724abd410886974cd
Author: Stephan Bergmann 
Date:   Thu Jul 16 10:11:22 2015 +0200

loplugin:loopvartoosmall

Change-Id: Iaeb3e12f9e83328c9ffd4718e7907bd7c7a39910

diff --git a/svtools/source/contnr/foldertree.cxx 
b/svtools/source/contnr/foldertree.cxx
index c1e038d..5c8ee46 100644
--- a/svtools/source/contnr/foldertree.cxx
+++ b/svtools/source/contnr/foldertree.cxx
@@ -50,7 +50,7 @@ void FolderTree::FillTreeEntry( SvTreeListEntry* pEntry )
 
 if ( SUCCESS == eResult )
 {
-for( unsigned int i = 0; i < aContent.size(); i++ )
+for( std::vector::size_type i = 0; i < 
aContent.size(); i++ )
 {
 if( aContent[i]->mbIsFolder )
 {
commit a9c4476cbb1babdc45695601e92e98ca5ac072a2
Author: Stephan Bergmann 
Date:   Thu Jul 16 10:10:30 2015 +0200

loplugin:saloverride

Change-Id: Id6e434c0261dbba88b1ec1b98534e4f63db6dcda

diff --git a/include/svtools/foldertree.hxx b/include/svtools/foldertree.hxx
index bd066d7..e430072 100644
--- a/include/svtools/foldertree.hxx
+++ b/include/svtools/foldertree.hxx
@@ -44,7 +44,7 @@ private:
 public:
 FolderTree( vcl::Window* pParent, WinBits nBits );
 
-virtual void RequestingChildren( SvTreeListEntry* pEntry );
+virtual void RequestingChildren( SvTreeListEntry* pEntry ) SAL_OVERRIDE;
 
 void FillTreeEntry( SvTreeListEntry* pEntry );
 void SetTreePath( OUString const & sUrl );
commit ef6d7c50e05e09fc33f50a876e709a7587df4ff0
Author: Stephan Bergmann 
Date:   Thu Jul 16 10:09:57 2015 +0200

loplugin:passstuffbyref

Change-Id: Iddd06dcc2bf4744ae9d70b54e4c58a9a468c1461

diff --git a/include/svtools/foldertree.hxx b/include/svtools/foldertree.hxx
index 213c254..bd066d7 100644
--- a/include/svtools/foldertree.hxx
+++ b/include/svtools/foldertree.hxx
@@ -47,7 +47,7 @@ public:
 virtual void RequestingChildren( SvTreeListEntry* pEntry );
 
 void FillTreeEntry( SvTreeListEntry* pEntry );
-void SetTreePath( OUString sUrl );

[Libreoffice-commits] core.git: include/sfx2

2015-07-16 Thread Stephan Bergmann
 include/sfx2/sfxhelp.hxx  |2 --
 include/sfx2/templateviewitem.hxx |2 --
 2 files changed, 4 deletions(-)

New commits:
commit c6d73d24a7092512cbc60c255d0f20e7f9f29cf3
Author: Stephan Bergmann 
Date:   Thu Jul 16 10:15:30 2015 +0200

-Werror,-Wunused-private-field

Change-Id: I14e28c966a0d792eeaff9012616bd83de87f2abd

diff --git a/include/sfx2/sfxhelp.hxx b/include/sfx2/sfxhelp.hxx
index 5ff4361..8cbeed5 100644
--- a/include/sfx2/sfxhelp.hxx
+++ b/include/sfx2/sfxhelp.hxx
@@ -29,8 +29,6 @@ class SfxHelp_Impl;
 class SfxFrame;
 class SFX2_DLLPUBLIC SfxHelp : public Help
 {
-OUStringaTicket;// for Plugins
-OUStringaUser;
 boolbIsDebug;
 SfxHelp_Impl*   pImp;
 
diff --git a/include/sfx2/templateviewitem.hxx 
b/include/sfx2/templateviewitem.hxx
index 9ed06ca..f35d281 100644
--- a/include/sfx2/templateviewitem.hxx
+++ b/include/sfx2/templateviewitem.hxx
@@ -39,8 +39,6 @@ public:
 private:
 
 OUString maPath;
-OUString maAuthor;
-OUString maKeywords;
 OUString maSubTitle;
 
 Point maSubTitlePos;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2015-07-16 Thread Stephan Bergmann
 framework/source/uielement/saveasmenucontroller.cxx |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b3ade2609d3ddde225eddb10cbcb477729baba7c
Author: Stephan Bergmann 
Date:   Thu Jul 16 10:18:27 2015 +0200

loplugin:cstylecast

Change-Id: I365b43f0327219f5ccd74984ec907088a8769785

diff --git a/framework/source/uielement/saveasmenucontroller.cxx 
b/framework/source/uielement/saveasmenucontroller.cxx
index 6460013..f02d849 100644
--- a/framework/source/uielement/saveasmenucontroller.cxx
+++ b/framework/source/uielement/saveasmenucontroller.cxx
@@ -125,14 +125,14 @@ void SaveAsMenuController::fillPopupMenu( Reference< 
css::awt::XPopupMenu >& rPo
 // XEventListener
 void SAL_CALL SaveAsMenuController::disposing( const EventObject& ) throw ( 
RuntimeException, std::exception )
 {
-Reference< css::awt::XMenuListener > xHolder(( OWeakObject *)this, 
UNO_QUERY );
+Reference< css::awt::XMenuListener > xHolder(static_cast(this), UNO_QUERY );
 
 osl::MutexGuard aLock( m_aMutex );
 m_xFrame.clear();
 m_xDispatch.clear();
 
 if ( m_xPopupMenu.is() )
-m_xPopupMenu->removeMenuListener( Reference< css::awt::XMenuListener 
>(( OWeakObject *)this, UNO_QUERY ));
+m_xPopupMenu->removeMenuListener( Reference< css::awt::XMenuListener 
>(static_cast(this), UNO_QUERY ));
 m_xPopupMenu.clear();
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: svtools/source vcl/source

2015-07-16 Thread Michael Meeks
 svtools/source/misc/dialogcontrolling.cxx |   18 ++
 vcl/source/window/event.cxx   |6 --
 2 files changed, 14 insertions(+), 10 deletions(-)

New commits:
commit 9e2e8bb5e6c5a7df376f6ada90703f59c95f19d6
Author: Michael Meeks 
Date:   Tue Jul 14 12:51:04 2015 +0100

tdf#92706 - avoid dbaccess wizard crash.

Hold a VclPtr on the window, make reset cleaner, and don't crash
removing listeners from disposed windows.

Change-Id: I3efb71117fc45562d5c740578f5e33dabb2684fe
Reviewed-on: https://gerrit.libreoffice.org/17037
Reviewed-by: Julien Nabet 
Tested-by: Julien Nabet 

diff --git a/svtools/source/misc/dialogcontrolling.cxx 
b/svtools/source/misc/dialogcontrolling.cxx
index b381c43..ca62804 100644
--- a/svtools/source/misc/dialogcontrolling.cxx
+++ b/svtools/source/misc/dialogcontrolling.cxx
@@ -49,13 +49,13 @@ namespace svt
 
 struct DialogController_Data
 {
-vcl::Window& rInstigator;
-::std::vector< VclPtr >aConcernedWindows;
+VclPtr  xInstigator;
+::std::vector< VclPtr > aConcernedWindows;
 PWindowEventFilter  pEventFilter;
 PWindowOperator pOperator;
 
-DialogController_Data( vcl::Window& _rInstigator, const 
PWindowEventFilter _pEventFilter, const PWindowOperator _pOperator )
-:rInstigator( _rInstigator )
+DialogController_Data( vcl::Window& _xInstigator, const 
PWindowEventFilter _pEventFilter, const PWindowOperator _pOperator )
+:xInstigator( &_xInstigator )
 ,pEventFilter( _pEventFilter )
 ,pOperator( _pOperator )
 {
@@ -66,14 +66,14 @@ namespace svt
 //= DialogController
 
 
-DialogController::DialogController( vcl::Window& _rInstigator, const 
PWindowEventFilter& _pEventFilter,
+DialogController::DialogController( vcl::Window& _xInstigator, const 
PWindowEventFilter& _pEventFilter,
 const PWindowOperator& _pOperator )
-:m_pImpl( new DialogController_Data( _rInstigator, _pEventFilter, 
_pOperator ) )
+:m_pImpl( new DialogController_Data( _xInstigator, _pEventFilter, 
_pOperator ) )
 {
 DBG_ASSERT( m_pImpl->pEventFilter.get() && m_pImpl->pOperator.get(),
 "DialogController::DialogController: invalid filter and/or 
operator!" );
 
-m_pImpl->rInstigator.AddEventListener( LINK( this, DialogController, 
OnWindowEvent ) );
+m_pImpl->xInstigator->AddEventListener( LINK( this, DialogController, 
OnWindowEvent ) );
 }
 
 
@@ -85,7 +85,9 @@ namespace svt
 
 void DialogController::reset()
 {
-m_pImpl->rInstigator.RemoveEventListener( LINK( this, 
DialogController, OnWindowEvent ) );
+if (m_pImpl->xInstigator)
+m_pImpl->xInstigator->RemoveEventListener( LINK( this, 
DialogController, OnWindowEvent ) );
+m_pImpl->xInstigator.clear();
 m_pImpl->aConcernedWindows.clear();
 m_pImpl->pEventFilter.reset();
 m_pImpl->pOperator.reset();
diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx
index ec6a9b6..b736141 100644
--- a/vcl/source/window/event.cxx
+++ b/vcl/source/window/event.cxx
@@ -249,7 +249,8 @@ void Window::AddEventListener( const Link<>& rEventListener 
)
 
 void Window::RemoveEventListener( const Link<>& rEventListener )
 {
-mpWindowImpl->maEventListeners.removeListener( rEventListener );
+if (mpWindowImpl)
+mpWindowImpl->maEventListeners.removeListener( rEventListener );
 }
 
 void Window::AddChildEventListener( const Link<>& rEventListener )
@@ -259,7 +260,8 @@ void Window::AddChildEventListener( const Link<>& 
rEventListener )
 
 void Window::RemoveChildEventListener( const Link<>& rEventListener )
 {
-mpWindowImpl->maChildEventListeners.removeListener( rEventListener );
+if (mpWindowImpl)
+mpWindowImpl->maChildEventListeners.removeListener( rEventListener );
 }
 
 ImplSVEvent * Window::PostUserEvent( const Link<>& rLink, void* pCaller, bool 
bReferenceLink )
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Experimental functions but not the visual math editor?

2015-07-16 Thread Jean-Baptiste Faure
Hi,

For "QA in real life" purpose I want to enable experimental features but
not the visual math editor. Is there a mean to do that? I did not find
any key doing that in the expert configuration tool.

Best regards.
JBF
-- 
Seuls des formats ouverts peuvent assurer la pérennité de vos documents.
Disclaimer: my Internet Provider being located in France, each of our
exchanges over Internet will be scanned by French spying services.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: 5 commits - fpicker/source

2015-07-16 Thread Stephan Bergmann
 fpicker/source/office/RemoteFilesDialog.cxx |   14 +++
 fpicker/source/office/RemoteFilesDialog.hxx |   52 ++--
 fpicker/source/office/iodlg.hxx |   42 +++---
 3 files changed, 54 insertions(+), 54 deletions(-)

New commits:
commit 795ac5bc53f6c15f2ab4634201747eb1c3e3331f
Author: Stephan Bergmann 
Date:   Thu Jul 16 10:29:28 2015 +0200

loplugin:stringconstant

Change-Id: I59da081fc90ffb96c438ed755266f5a69fbd199d

diff --git a/fpicker/source/office/RemoteFilesDialog.cxx 
b/fpicker/source/office/RemoteFilesDialog.cxx
index 765ec4b..d59c9bd 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -640,7 +640,7 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, SelectHdl )
 }
 else
 {
-m_sPath = "";
+m_sPath.clear();
 m_pName_ed->SetText( "" );
 }
 
@@ -739,8 +739,8 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, OkHdl )
 bool bFileDlg = ( m_eType == REMOTEDLG_TYPE_FILEDLG );
 bool bSelected = ( m_pFileView->GetSelectionCount() > 0 );
 
-if( !sCurrentPath.endsWith( OUString( "/" ) ) )
-sCurrentPath += OUString( "/" );
+if( !sCurrentPath.endsWith("/") )
+sCurrentPath += "/";
 
 if( !bSelected )
 {
commit 78d73a51bf40c6f69347bbc90b955696c86a022d
Author: Stephan Bergmann 
Date:   Thu Jul 16 10:28:37 2015 +0200

loplugin:vclwidgets

Change-Id: I8671f8540da2e86eedb4cdc7a248ebb1d6caa376

diff --git a/fpicker/source/office/RemoteFilesDialog.cxx 
b/fpicker/source/office/RemoteFilesDialog.cxx
index 2ae54aa..765ec4b 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -17,7 +17,7 @@ class FileViewContainer : public vcl::Window
 VclPtr< Splitter > m_pSplitter;
 
 int m_nCurrentFocus;
-vcl::Window* m_pFocusWidgets[4];
+VclPtr m_pFocusWidgets[4];
 
 public:
 FileViewContainer( vcl::Window *pParent )
commit 79dafc7af0189935f81544dc8300b730b98db88f
Author: Stephan Bergmann 
Date:   Thu Jul 16 10:27:42 2015 +0200

loplugin:simplifybool

Change-Id: Id079a6cc2841f42b0dc10ed2be596cc8f7db4e25

diff --git a/fpicker/source/office/RemoteFilesDialog.cxx 
b/fpicker/source/office/RemoteFilesDialog.cxx
index 0d1fc8f..2ae54aa 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -141,7 +141,7 @@ RemoteFilesDialog::RemoteFilesDialog( vcl::Window* pParent, 
WinBits nBits )
 
 m_eMode = ( nBits & WB_SAVEAS ) ? REMOTEDLG_MODE_SAVE : 
REMOTEDLG_MODE_OPEN;
 m_eType = ( nBits & WB_PATH ) ? REMOTEDLG_TYPE_PATHDLG : 
REMOTEDLG_TYPE_FILEDLG;
-m_bMultiselection = ( nBits & SFXWB_MULTISELECTION ) ? true : false;
+m_bMultiselection = ( nBits & SFXWB_MULTISELECTION ) != 0;
 m_bIsUpdated = false;
 m_bIsConnected = false;
 m_nCurrentFilter = LISTBOX_ENTRY_NOTFOUND;
commit 53bf91d66e28b636af468fe0c4b00738436732b3
Author: Stephan Bergmann 
Date:   Thu Jul 16 10:26:57 2015 +0200

loplugin:passstuffbyref

Change-Id: I37c254bd1fdb3cfb05d513f87fa4f4a468466bb0

diff --git a/fpicker/source/office/RemoteFilesDialog.cxx 
b/fpicker/source/office/RemoteFilesDialog.cxx
index 15a249f..0d1fc8f 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -395,7 +395,7 @@ OUString RemoteFilesDialog::GetPath() const
 return m_sPath;
 }
 
-FileViewResult RemoteFilesDialog::OpenURL( OUString sURL )
+FileViewResult RemoteFilesDialog::OpenURL( OUString const & sURL )
 {
 FileViewResult eResult = eFailure;
 
diff --git a/fpicker/source/office/RemoteFilesDialog.hxx 
b/fpicker/source/office/RemoteFilesDialog.hxx
index df9106e..ba48b8e 100644
--- a/fpicker/source/office/RemoteFilesDialog.hxx
+++ b/fpicker/source/office/RemoteFilesDialog.hxx
@@ -140,7 +140,7 @@ private:
 /* If failure returns < 0 */
 int GetSelectedServicePos();
 
-FileViewResult OpenURL( OUString sURL );
+FileViewResult OpenURL( OUString const & sURL );
 
 void AddFileExtension();
 
commit 5e090212b1a33a9ff2b1d0fd65909dad2f87758a
Author: Stephan Bergmann 
Date:   Thu Jul 16 10:26:07 2015 +0200

-Werror,-Winconsistent-missing-override

Change-Id: I5f7ab4c7eb106fc7bc0d93abc78ab9168c6867a6

diff --git a/fpicker/source/office/RemoteFilesDialog.cxx 
b/fpicker/source/office/RemoteFilesDialog.cxx
index ec34e96..15a249f 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -109,7 +109,7 @@ class FileViewContainer : public vcl::Window
 m_pFocusWidgets[m_nCurrentFocus]->GrabFocus();
 }
 
-virtual bool Notify( NotifyEvent& rNEvt )
+virtual bool Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE
 {
 if( rNEvt.GetType() == MouseNotifyEvent::KEYINPUT )
 {
diff --git a/fpicker/source/office/RemoteFilesDialog.hxx 
b/fpicker/source/office/RemoteFilesDialog.hxx
index 05f9ca1..df9

[Libreoffice-commits] core.git: cui/source editeng/source include/editeng

2015-07-16 Thread Noel Grandin
 cui/source/factory/dlgfact.cxx |   20 ---
 cui/source/factory/dlgfact.hxx |4 -
 editeng/source/accessibility/AccessibleParaManager.cxx |   10 ---
 editeng/source/editeng/editdoc.hxx |   37 ++---
 editeng/source/editeng/editeng.cxx |4 -
 editeng/source/editeng/editstt2.hxx|7 --
 editeng/source/editeng/editundo.hxx|3 -
 editeng/source/editeng/edtspell.cxx|   30 --
 editeng/source/editeng/edtspell.hxx|4 -
 editeng/source/editeng/eertfpar.hxx|8 --
 editeng/source/editeng/impedit.hxx |   47 +++--
 editeng/source/items/paraitem.cxx  |   17 --
 editeng/source/misc/splwrap.cxx|   17 --
 editeng/source/misc/svxacorr.cxx   |   40 --
 editeng/source/outliner/outleeng.cxx   |5 -
 editeng/source/outliner/outleeng.hxx   |1 
 editeng/source/outliner/paralist.hxx   |1 
 include/editeng/AccessibleEditableTextPara.hxx |3 -
 include/editeng/AccessibleParaManager.hxx  |2 
 include/editeng/acorrcfg.hxx   |4 -
 include/editeng/borderline.hxx |4 -
 include/editeng/charsetcoloritem.hxx   |1 
 include/editeng/cmapitem.hxx   |2 
 include/editeng/crossedoutitem.hxx |2 
 include/editeng/editeng.hxx|3 -
 include/editeng/editstat.hxx   |4 -
 include/editeng/editview.hxx   |4 -
 include/editeng/edtdlg.hxx |4 -
 include/editeng/emphasismarkitem.hxx   |2 
 include/editeng/flditem.hxx|   11 ---
 include/editeng/formatbreakitem.hxx|6 --
 include/editeng/fwdtitem.hxx   |7 --
 include/editeng/langitem.hxx   |2 
 include/editeng/lrspitem.hxx   |5 -
 include/editeng/measfld.hxx|1 
 include/editeng/numitem.hxx|7 --
 include/editeng/outliner.hxx   |   24 
 include/editeng/pmdlitem.hxx   |1 
 include/editeng/postitem.hxx   |2 
 include/editeng/scripttypeitem.hxx |5 -
 include/editeng/splwrap.hxx|   17 --
 include/editeng/svxacorr.hxx   |5 -
 include/editeng/svxrtf.hxx |   18 --
 include/editeng/tstpitem.hxx   |4 -
 include/editeng/txtrange.hxx   |2 
 include/editeng/unofield.hxx   |1 
 include/editeng/unoforou.hxx   |4 -
 include/editeng/unoipset.hxx   |3 -
 include/editeng/unopracc.hxx   |3 -
 include/editeng/unotext.hxx|1 
 include/editeng/wghtitem.hxx   |2 
 51 files changed, 32 insertions(+), 389 deletions(-)

New commits:
commit 7ab881a57d01e58eebcc2608ae8dd61af4552ae8
Author: Noel Grandin 
Date:   Thu Jul 16 08:11:27 2015 +0200

loplugin:unusedmethods editeng

Change-Id: I15b2be5a9cd6e72447b674a65eabe9f89cb6ff12
Reviewed-on: https://gerrit.libreoffice.org/17115
Tested-by: Jenkins 
Reviewed-by: Noel Grandin 

diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx
index deb061e..b481e00 100644
--- a/cui/source/factory/dlgfact.cxx
+++ b/cui/source/factory/dlgfact.cxx
@@ -342,26 +342,6 @@ OUString AbstractThesaurusDialog_Impl::GetWord()
 return pDlg->GetWord();
 };
 
-sal_uInt16 AbstractThesaurusDialog_Impl::GetLanguage() const
-{
-return pDlg->GetLanguage();
-};
-
-vcl::Window* AbstractThesaurusDialog_Impl::GetWindow()
-{
-return pDlg;
-}
-
-void AbstractHyphenWordDialog_Impl::SelLeft()
-{
-pDlg->SelLeft();
-}
-
-void AbstractHyphenWordDialog_Impl::SelRight()
-{
-pDlg->SelRight();
-}
-
 vcl::Window* AbstractHyphenWordDialog_Impl::GetWindow()
 {
 return pDlg;
diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx
index dd10939..8e86679 100644
--- a/cui/source/factory/dlgfact.hxx
+++ b/cui/source/factory/dlgfact.hxx
@@ -166,15 +166,11 @@ class AbstractThesaurusDialog_Impl : public 
AbstractThesaurusDialog
 {
 DECL_ABSTDLG_BASE(AbstractThesaurusDialog_Impl,SvxThesaurusDialog)
 virtual OUStringGetWord() SAL_OVERRIDE;
-virtual sal_uInt16  GetLanguage() const SAL_OVERRIDE;
-virtual vcl::Window* GetWindow() SAL_OVERRIDE;
 };
 

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

2015-07-16 Thread Stephan Bergmann
 svx/source/tbxctrls/lboxctrl.cxx |2 --
 1 file changed, 2 deletions(-)

New commits:
commit 379e07eae784a0af5b20c4006c0ee6c7a3d29c1c
Author: Stephan Bergmann 
Date:   Thu Jul 16 10:44:06 2015 +0200

-Werror,-Wunused-private-field

Change-Id: I16094fbe0f6455f373ae7ed300563a94df6436dc

diff --git a/svx/source/tbxctrls/lboxctrl.cxx b/svx/source/tbxctrls/lboxctrl.cxx
index 820494c..9c275ca 100644
--- a/svx/source/tbxctrls/lboxctrl.cxx
+++ b/svx/source/tbxctrls/lboxctrl.cxx
@@ -58,7 +58,6 @@ class SvxPopupWindowListBox: public SfxPopupWindow
 ToolBox &   rToolBox;
 boolbUserSel;
 sal_uInt16  nTbxId;
-OUStringmaCommandURL;
 
 public:
 SvxPopupWindowListBox( sal_uInt16 nSlotId, const OUString& rCommandURL, 
sal_uInt16 nTbxId, ToolBox& rTbx );
@@ -82,7 +81,6 @@ SvxPopupWindowListBox::SvxPopupWindowListBox(sal_uInt16 
nSlotId, const OUString&
 , rToolBox(rTbx)
 , bUserSel(false)
 , nTbxId(nId)
-, maCommandURL(rCommandURL)
 {
 DBG_ASSERT( nSlotId == GetId(), "id mismatch" );
 get(m_pListBox, "treeview");
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - filter/qa filter/source

2015-07-16 Thread Caolán McNamara
 filter/qa/cppunit/data/dxf/fail/hang-1.dxf|1 
 filter/qa/cppunit/data/dxf/pass/pyramid.dxf   |25008 ++
 filter/source/graphicfilter/idxf/dxfgrprd.cxx |3 
 3 files changed, 25010 insertions(+), 2 deletions(-)

New commits:
commit e25cbe0c47d1fbd57bb83856a750a8748fdce6bc
Author: Caolán McNamara 
Date:   Wed Jul 15 17:10:24 2015 +0100

don't hang if at end of stream

Change-Id: I497a30041ec667237c2aa64963dcefb67753e87c
(cherry picked from commit 5c8325325868753d2891556400c91651bce58402)
Reviewed-on: https://gerrit.libreoffice.org/17116
Reviewed-by: Michael Meeks 
Tested-by: Michael Meeks 

diff --git a/filter/qa/cppunit/data/dxf/fail/hang-1.dxf 
b/filter/qa/cppunit/data/dxf/fail/hang-1.dxf
new file mode 100644
index 000..d97edbb29
--- /dev/null
+++ b/filter/qa/cppunit/data/dxf/fail/hang-1.dxf
@@ -0,0 +1 @@
+99
\ No newline at end of file
diff --git a/filter/qa/cppunit/data/dxf/pass/pyramid.dxf 
b/filter/qa/cppunit/data/dxf/pass/pyramid.dxf
new file mode 100644
index 000..65cd5f83
--- /dev/null
+++ b/filter/qa/cppunit/data/dxf/pass/pyramid.dxf
@@ -0,0 +1,25008 @@
+0
+SECTION
+2
+HEADER
+9
+$ACADVER
+1
+AC1014
+9
+$ACADMAINTVER
+70
+8
+9
+$DWGCODEPAGE
+3
+ANSI_1252
+9
+$INSBASE
+10
+0.0
+20
+0.0
+30
+0.0
+9
+$EXTMIN
+10
+1.00E+20
+20
+1.00E+20
+30
+1.00E+20
+9
+$EXTMAX
+10
+-1.00E+20
+20
+-1.00E+20
+30
+-1.00E+20
+9
+$LIMMIN
+10
+0.0
+20
+0.0
+9
+$LIMMAX
+10
+12.0
+20
+9.0
+9
+$ORTHOMODE
+70
+0
+9
+$REGENMODE
+70
+1
+9
+$FILLMODE
+70
+1
+9
+$QTEXTMODE
+70
+0
+9
+$MIRRTEXT
+70
+1
+9
+$DRAGMODE
+70
+2
+9
+$LTSCALE
+40
+1.0
+9
+$OSMODE
+70
+0
+9
+$ATTMODE
+70
+1
+9
+$TEXTSIZE
+40
+0.2
+9
+$TRACEWID
+40
+0.05
+9
+$TEXTSTYLE
+7
+STANDARD
+9
+$CLAYER
+8
+0
+9
+$CELTYPE
+6
+BYLAYER
+9
+$CECOLOR
+62
+256
+9
+$CELTSCALE
+40
+1.0
+9
+$DELOBJ
+70
+1
+9
+$DISPSILH
+70
+0
+9
+$DIMSCALE
+40
+1.0
+9
+$DIMASZ
+40
+0.18
+9
+$DIMEXO
+40
+0.0625
+9
+$DIMDLI
+40
+0.38
+9
+$DIMRND
+40
+0.0
+9
+$DIMDLE
+40
+0.0
+9
+$DIMEXE
+40
+0.18
+9
+$DIMTP
+40
+0.0
+9
+$DIMTM
+40
+0.0
+9
+$DIMTXT
+40
+0.18
+9
+$DIMCEN
+40
+0.09
+9
+$DIMTSZ
+40
+0.0
+9
+$DIMTOL
+70
+0
+9
+$DIMLIM
+70
+0
+9
+$DIMTIH
+70
+1
+9
+$DIMTOH
+70
+1
+9
+$DIMSE1
+70
+0
+9
+$DIMSE2
+70
+0
+9
+$DIMTAD
+70
+0
+9
+$DIMZIN
+70
+0
+9
+$DIMBLK
+1
+
+9
+$DIMASO
+70
+1
+9
+$DIMSHO
+70
+1
+9
+$DIMPOST
+1
+
+9
+$DIMAPOST
+1
+
+9
+$DIMALT
+70
+0
+9
+$DIMALTD
+70
+2
+9
+$DIMALTF
+40
+25.4
+9
+$DIMLFAC
+40
+1.0
+9
+$DIMTOFL
+70
+0
+9
+$DIMTVP
+40
+0.0
+9
+$DIMTIX
+70
+0
+9
+$DIMSOXD
+70
+0
+9
+$DIMSAH
+70
+0
+9
+$DIMBLK1
+1
+
+9
+$DIMBLK2
+1
+
+9
+$DIMSTYLE
+2
+STANDARD
+9
+$DIMCLRD
+70
+0
+9
+$DIMCLRE
+70
+0
+9
+$DIMCLRT
+70
+0
+9
+$DIMTFAC
+40
+1.0
+9
+$DIMGAP
+40
+0.09
+9
+$DIMJUST
+70
+0
+9
+$DIMSD1
+70
+0
+9
+$DIMSD2
+70
+0
+9
+$DIMTOLJ
+70
+1
+9
+$DIMTZIN
+70
+0
+9
+$DIMALTZ
+70
+0
+9
+$DIMALTTZ
+70
+0
+9
+$DIMFIT
+70
+3
+9
+$DIMUPT
+70
+0
+9
+$DIMUNIT
+70
+2
+9
+$DIMDEC
+70
+4
+9
+$DIMTDEC
+70
+4
+9
+$DIMALTU
+70
+2
+9
+$DIMALTTD
+70
+2
+9
+$DIMTXSTY
+7
+STANDARD
+9
+$DIMAUNIT
+70
+0
+9
+$LUNITS
+70
+2
+9
+$LUPREC
+70
+4
+9
+$SKETCHINC
+40
+0.1
+9
+$FILLETRAD
+40
+0.5
+9
+$AUNITS
+70
+0
+9
+$AUPREC
+70
+0
+9
+$MENU
+1
+.
+9
+$ELEVATION
+40
+0.0
+9
+$PELEVATION
+40
+0.0
+9
+$THICKNESS
+40
+0.0
+9
+$LIMCHECK
+70
+0
+9
+$BLIPMODE
+70
+0
+9
+$CHAMFERA
+40
+0.5
+9
+$CHAMFERB
+40
+0.5
+9
+$CHAMFERC
+40
+1.0
+9
+$CHAMFERD
+40
+0.0
+9
+$SKPOLY
+70
+1
+9
+$TDCREATE
+40
+2451008.519973958
+9
+$TDUPDATE
+40
+2451008.523538426
+9
+$TDINDWG
+40
+0.002406
+9
+$TDUSRTIMER
+40
+0.002406
+9
+$USRTIMER
+70
+1
+9
+$ANGBASE
+50
+0.0
+9
+$ANGDIR
+70
+0
+9
+$PDMODE
+70
+0
+9
+$PDSIZE
+40
+0.0
+9
+$PLINEWID
+40
+0.0
+9
+$COORDS
+70
+1
+9
+$SPLFRAME
+70
+0
+9
+$SPLINETYPE
+70
+6
+9
+$SPLINESEGS
+70
+8
+9
+$ATTDIA
+70
+0
+9
+$ATTREQ
+70
+1
+9
+$HANDLING
+70
+1
+9
+$HANDSEED
+5
+5B
+9
+$SURFTAB1
+70
+6
+9
+$SURFTAB2
+70
+6
+9
+$SURFTYPE
+70
+6
+9
+$SURFU
+70
+6
+9
+$SURFV
+70
+6
+9
+$UCSNAME
+2
+
+9
+$UCSORG
+10
+0.0
+20
+0.0
+30
+0.0
+9
+$UCSXDIR
+10
+1.0
+20
+0.0
+30
+0.0
+9
+$UCSYDIR
+10
+0.0
+20
+1.0
+30
+0.0
+9
+$PUCSNAME
+2
+
+9
+$PUCSORG
+10
+0.0
+20
+0.0
+30
+0.0
+9
+$PUCSXDIR
+10
+1.0
+20
+0.0
+30
+0.0
+9
+$PUCSYDIR
+10
+0.0
+20
+1.0
+30
+0.0
+9
+$USERI1
+70
+0
+9
+$USERI2
+70
+0
+9
+$USERI3
+70
+0
+9
+$USERI4
+70
+0
+9
+$USERI5
+70
+0
+9
+$USERR1
+40
+0.0
+9
+$USERR2
+40
+0.0
+9
+$USERR3
+40
+0.0
+9
+$USERR4
+40
+0.0
+9
+$USERR5
+40
+0.0
+9
+$WORLDVIEW
+70
+1
+9
+$SHADEDGE
+70
+3
+9
+$SHADEDIF
+70
+70
+9
+$TILEMODE
+70
+1
+9
+$MAXACTVP
+70
+48
+9
+$PINSBASE
+10
+0.0
+20
+0.0
+30
+0.0
+9
+$PLIMCHECK
+70
+0
+9
+$PEXTMIN
+10
+1.00E+20
+20
+1.00E+20
+30
+1.00E+20
+9
+$PEXTMAX
+10
+-1.00E+20
+20
+-1.00E+20
+30
+-1.00E+20
+9
+$PLIMMIN
+10
+0.0
+20
+0.0
+9
+$PLIMMAX
+10
+12.0
+20
+9.0
+9
+$UNITMODE
+70
+0
+9
+$VISRETAIN
+70
+1
+9
+$PLINEGEN
+70
+0
+9
+$PSLTSCALE
+70
+1
+9
+$TREEDEPTH
+70
+3020
+9
+$PICKSTYLE
+70
+1
+9
+$CMLSTYLE
+2
+STANDARD
+9
+$CMLJUST
+70
+0
+9
+$CMLSCALE

[Libreoffice-commits] core.git: 2 commits - chart2/source

2015-07-16 Thread Stephan Bergmann
 chart2/source/controller/sidebar/ChartElementsPanel.cxx |   11 ++-
 chart2/source/controller/sidebar/ChartElementsPanel.hxx |1 -
 2 files changed, 2 insertions(+), 10 deletions(-)

New commits:
commit 4439e5f689c8564a092cf40337ead04e1d024f03
Author: Stephan Bergmann 
Date:   Thu Jul 16 10:54:10 2015 +0200

loplugin:vclwidgets

Change-Id: I43f8530026261138585eb530b2bc83d3d9be704f

diff --git a/chart2/source/controller/sidebar/ChartElementsPanel.cxx 
b/chart2/source/controller/sidebar/ChartElementsPanel.cxx
index db58221..42f88db 100644
--- a/chart2/source/controller/sidebar/ChartElementsPanel.cxx
+++ b/chart2/source/controller/sidebar/ChartElementsPanel.cxx
@@ -83,7 +83,7 @@ public:
 throw (::css::uno::RuntimeException, ::std::exception) SAL_OVERRIDE;
 
 private:
-ChartElementsPanel* mpParent;
+VclPtr mpParent;
 };
 
 ChartSidebarModifyListener::ChartSidebarModifyListener(ChartElementsPanel* 
pParent):
commit 9edaebe651a341bf449e366ff54830556f32292d
Author: Stephan Bergmann 
Date:   Thu Jul 16 10:52:54 2015 +0200

Remove unused modelInvalid

Change-Id: I18701b367dcca36afb8e6f28645453294881683f

diff --git a/chart2/source/controller/sidebar/ChartElementsPanel.cxx 
b/chart2/source/controller/sidebar/ChartElementsPanel.cxx
index e26c65a..db58221 100644
--- a/chart2/source/controller/sidebar/ChartElementsPanel.cxx
+++ b/chart2/source/controller/sidebar/ChartElementsPanel.cxx
@@ -103,9 +103,7 @@ void ChartSidebarModifyListener::modified(const 
css::lang::EventObject& /*rEvent
 
 void ChartSidebarModifyListener::disposing(const css::lang::EventObject& 
/*rEvent*/)
 throw (::css::uno::RuntimeException, ::std::exception)
-{
-mpParent->modelInvalid();
-}
+{}
 
 ChartModel* getChartModel(css::uno::Reference xModel)
 {
@@ -488,11 +486,6 @@ void ChartElementsPanel::NotifyItemUpdate(
 {
 }
 
-void ChartElementsPanel::modelInvalid()
-{
-
-}
-
 IMPL_LINK(ChartElementsPanel, CheckBoxHdl, CheckBox*, pCheckBox)
 {
 bool bChecked = pCheckBox->IsChecked();
diff --git a/chart2/source/controller/sidebar/ChartElementsPanel.hxx 
b/chart2/source/controller/sidebar/ChartElementsPanel.hxx
index 6bf1642..51e7e49 100644
--- a/chart2/source/controller/sidebar/ChartElementsPanel.hxx
+++ b/chart2/source/controller/sidebar/ChartElementsPanel.hxx
@@ -68,7 +68,6 @@ public:
 virtual void dispose() SAL_OVERRIDE;
 
 void updateData();
-void modelInvalid();
 
 private:
 //ui controls
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - extras/source

2015-07-16 Thread László Németh
 extras/source/autocorr/lang/af-ZA/DocumentList.xml |   19 
 extras/source/autocorr/lang/bg/DocumentList.xml| 1153 +++
 extras/source/autocorr/lang/ca/DocumentList.xml|  658 ++
 extras/source/autocorr/lang/cs/DocumentList.xml|   85 
 extras/source/autocorr/lang/da/DocumentList.xml|  844 
 extras/source/autocorr/lang/de/DocumentList.xml| 1154 +++
 extras/source/autocorr/lang/en-AU/DocumentList.xml | 2164 +
 extras/source/autocorr/lang/en-GB/DocumentList.xml | 1163 +++
 extras/source/autocorr/lang/en-US/DocumentList.xml | 2057 ++-
 extras/source/autocorr/lang/en-ZA/DocumentList.xml |   19 
 extras/source/autocorr/lang/es/DocumentList.xml| 1054 ++
 extras/source/autocorr/lang/fa/DocumentList.xml|   19 
 extras/source/autocorr/lang/fi/DocumentList.xml| 1156 +++
 extras/source/autocorr/lang/fr/DocumentList.xml|  954 +
 extras/source/autocorr/lang/ga-IE/DocumentList.xml |   19 
 extras/source/autocorr/lang/hr/DocumentList.xml|  294 ++
 extras/source/autocorr/lang/hu/DocumentList.xml| 2050 ++-
 extras/source/autocorr/lang/it/DocumentList.xml|  565 +
 extras/source/autocorr/lang/ja/DocumentList.xml|   19 
 extras/source/autocorr/lang/ko/DocumentList.xml|  146 +
 extras/source/autocorr/lang/lb-LU/DocumentList.xml |   19 
 extras/source/autocorr/lang/lt/DocumentList.xml|  285 ++
 extras/source/autocorr/lang/mn/DocumentList.xml|   19 
 extras/source/autocorr/lang/nl-BE/DocumentList.xml | 1126 ++
 extras/source/autocorr/lang/nl/DocumentList.xml| 1126 ++
 extras/source/autocorr/lang/pl/DocumentList.xml|   19 
 extras/source/autocorr/lang/pt-BR/DocumentList.xml |  955 +
 extras/source/autocorr/lang/pt/DocumentList.xml| 1140 +++
 extras/source/autocorr/lang/ro/DocumentList.xml|  243 ++
 extras/source/autocorr/lang/ru/DocumentList.xml|  472 
 extras/source/autocorr/lang/sk/DocumentList.xml|   83 
 extras/source/autocorr/lang/sv/DocumentList.xml|  125 +
 extras/source/autocorr/lang/tr/DocumentList.xml|   19 
 extras/source/autocorr/lang/vi/DocumentList.xml|   19 
 extras/source/autocorr/lang/zh-CN/DocumentList.xml |  111 +
 extras/source/autocorr/lang/zh-TW/DocumentList.xml |   81 
 36 files changed, 19560 insertions(+), 1874 deletions(-)

New commits:
commit 08a30cce9d877dd884fdd8ca5b1e74003d244585
Author: László Németh 
Date:   Thu Jul 16 04:07:16 2015 +0200

add localized Emoji short names

Change-Id: I023dc4200f93f61cb58f96931a8073ad3838d3d9
Reviewed-on: https://gerrit.libreoffice.org/17112
Tested-by: Jenkins 
Reviewed-by: Michael Meeks 
Tested-by: Michael Meeks 

diff --git a/extras/source/autocorr/lang/af-ZA/DocumentList.xml 
b/extras/source/autocorr/lang/af-ZA/DocumentList.xml
index 67a7f41..099a307 100644
--- a/extras/source/autocorr/lang/af-ZA/DocumentList.xml
+++ b/extras/source/autocorr/lang/af-ZA/DocumentList.xml
@@ -114,4 +114,23 @@
   
   
   
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
 
diff --git a/extras/source/autocorr/lang/bg/DocumentList.xml 
b/extras/source/autocorr/lang/bg/DocumentList.xml
index 3593f5b..474d4bd 100644
--- a/extras/source/autocorr/lang/bg/DocumentList.xml
+++ b/extras/source/autocorr/lang/bg/DocumentList.xml
@@ -16,4 +16,1157 @@
   
   
   
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  

[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - forms/source

2015-07-16 Thread Zolnai Tamás
 forms/source/component/clickableimage.cxx |   21 +
 forms/source/component/clickableimage.hxx |5 +
 2 files changed, 26 insertions(+)

New commits:
commit 3d9b62a40947dbb25360f32a6b330519be6f04ea
Author: Zolnai Tamás 
Date:   Wed Jul 15 23:23:48 2015 +0200

tdf#47832: Pictures on buttons, created in forms, gone after reopening form

When image is set to a Button control the correspoding graphic object
lives only temporarily, after the graphic is copied from the graphic
object it's destroyed so save can't find it by graphic ID.
Use the same solution which works for ImageControls: use a graphic object
member for the control, so save can find it.

(cherry picked from commit 70f152983f3425a77df2f65b4798417640d47b76)

fix windows build (from Noel Grandin)

(cherry picked from commit 4c5498ec5ee478e27fd62bdcf9de1208c692422c)

Conflicts:
forms/source/component/clickableimage.cxx

Change-Id: If99a3efc4727a07df9d2daaefbdacc9565920005
Reviewed-on: https://gerrit.libreoffice.org/17092
Reviewed-by: Michael Meeks 
Tested-by: Michael Meeks 

diff --git a/forms/source/component/clickableimage.cxx 
b/forms/source/component/clickableimage.cxx
index 71ad12e..fe5bcde 100644
--- a/forms/source/component/clickableimage.cxx
+++ b/forms/source/component/clickableimage.cxx
@@ -31,6 +31,8 @@
 #include 
 #include 
 #include 
+#include 
+#include 
 #include 
 #include 
 #include 
@@ -62,6 +64,7 @@ namespace frm
 using namespace ::com::sun::star::util;
 using namespace ::com::sun::star::frame;
 using namespace ::com::sun::star::form::submission;
+using namespace ::com::sun::star::graphic;
 using ::com::sun::star::awt::MouseEvent;
 using ::com::sun::star::task::XInteractionHandler;
 
@@ -451,6 +454,7 @@ namespace frm
 const OUString& rDefault )
 :OControlModel( _rxFactory, _rUnoControlModelTypeName, rDefault )
 ,OPropertyChangeListener(m_aMutex)
+,m_xGraphicObject()
 ,m_pMedium(NULL)
 ,m_pProducer( NULL )
 ,m_bDispatchUrlInternal(false)
@@ -465,6 +469,7 @@ namespace frm
 OClickableImageBaseModel::OClickableImageBaseModel( const 
OClickableImageBaseModel* _pOriginal, const Reference& 
_rxFactory )
 :OControlModel( _pOriginal, _rxFactory )
 ,OPropertyChangeListener( m_aMutex )
+,m_xGraphicObject( _pOriginal->m_xGraphicObject )
 ,m_pMedium( NULL )
 ,m_pProducer( NULL )
 ,m_bDispatchUrlInternal(false)
@@ -497,6 +502,7 @@ namespace frm
 void OClickableImageBaseModel::implConstruct()
 {
 m_pProducer = new ImageProducer;
+m_pProducer->SetDoneHdl( LINK( this, OClickableImageBaseModel, 
OnImageImportDone ) );
 increment( m_refCount );
 {
 m_xProducer = m_pProducer;
@@ -852,6 +858,21 @@ namespace frm
 }
 }
 
+IMPL_LINK( OClickableImageBaseModel, OnImageImportDone, Graphic*, 
i_pGraphic )
+{
+const Reference< XGraphic > xGraphic( i_pGraphic != NULL ? 
Graphic(i_pGraphic->GetBitmapEx()).GetXGraphic() : NULL );
+if ( !xGraphic.is() )
+{
+m_xGraphicObject.clear();
+}
+else
+{
+m_xGraphicObject = css::graphic::GraphicObject::create( m_xContext 
);
+m_xGraphicObject->setGraphic( xGraphic );
+}
+return 1L;
+}
+
 
 // OImageProducerThread_Impl
 
diff --git a/forms/source/component/clickableimage.hxx 
b/forms/source/component/clickableimage.hxx
index 60f03b8..f3d34ca 100644
--- a/forms/source/component/clickableimage.hxx
+++ b/forms/source/component/clickableimage.hxx
@@ -33,6 +33,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 
@@ -64,6 +65,8 @@ namespace frm
 
 // ImageProducer stuff
 ::com::sun::star::uno::Reference< 
::com::sun::star::awt::XImageProducer>m_xProducer;
+// Store the image in a graphic object to make it accesible via 
graphic cache using graphic ID.
+::com::sun::star::uno::Reference< 
::com::sun::star::graphic::XGraphicObject > m_xGraphicObject;
 SfxMedium*  m_pMedium; // Download 
medium
 ImageProducer*  m_pProducer;
 boolm_bDispatchUrlInternal; // 
property: is not allowed to set : 1
@@ -143,6 +146,8 @@ namespace frm
 
 // to be called from within the cloning-ctor of your derived class
 void implInitializeImageURL( );
+
+DECL_LINK( OnImageImportDone, ::Graphic* );
 };
 
 class ImageModelMethodGuard : public ::osl::MutexGuard
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - filter/qa filter/source

2015-07-16 Thread Caolán McNamara
 dev/null|binary
 filter/qa/cppunit/data/ras/fail/CVE-2008-1097-1.ras |binary
 filter/source/graphicfilter/iras/iras.cxx   |   24 +++-
 3 files changed, 14 insertions(+), 10 deletions(-)

New commits:
commit a1fb6c1344f7e21ff6c8bf24c14e729c7ce69c71
Author: Caolán McNamara 
Date:   Wed Jul 15 11:31:18 2015 +0100

check stream state more often for failures

Change-Id: Ie45d858021c3123ec21829cbf4742cf30ce46665
(cherry picked from commit adfa89b5ffc3589b3a19a32e707a134cee232429)
Reviewed-on: https://gerrit.libreoffice.org/17071
Tested-by: Jenkins 
Reviewed-by: Michael Meeks 
Tested-by: Michael Meeks 

diff --git a/filter/qa/cppunit/data/ras/pass/CVE-2008-1097-1.ras 
b/filter/qa/cppunit/data/ras/fail/CVE-2008-1097-1.ras
similarity index 100%
rename from filter/qa/cppunit/data/ras/pass/CVE-2008-1097-1.ras
rename to filter/qa/cppunit/data/ras/fail/CVE-2008-1097-1.ras
diff --git a/filter/source/graphicfilter/iras/iras.cxx 
b/filter/source/graphicfilter/iras/iras.cxx
index 6916daa..5877fa2 100644
--- a/filter/source/graphicfilter/iras/iras.cxx
+++ b/filter/source/graphicfilter/iras/iras.cxx
@@ -54,7 +54,7 @@ private:
 
 boolImplReadBody(BitmapWriteAccess * pAcc);
 boolImplReadHeader();
-sal_uInt8   ImplGetByte();
+sal_uInt8   ImplGetByte();
 
 public:
 RASReader(SvStream &rRAS);
@@ -174,13 +174,11 @@ bool RASReader::ReadRAS(Graphic & rGraphic)
 return mbStatus;
 }
 
-
-
 bool RASReader::ImplReadHeader()
 {
 
m_rRAS.ReadInt32(mnWidth).ReadInt32(mnHeight).ReadInt32(mnDepth).ReadInt32(mnImageDatSize).ReadInt32(mnType).ReadInt32(mnColorMapType).ReadInt32(mnColorMapSize);
 
-if ( mnWidth <= 0 || mnHeight <= 0 || mnImageDatSize <= 0 )
+if (mnWidth <= 0 || mnHeight <= 0 || mnImageDatSize <= 0 || !m_rRAS.good())
 mbStatus = false;
 
 switch ( mnDepth )
@@ -222,7 +220,7 @@ bool RASReader::ImplReadBody(BitmapWriteAccess * pAcc)
 switch ( mnDstBitsPerPix )
 {
 case 1 :
-for ( y = 0; y < mnHeight; y++ )
+for (y = 0; y < mnHeight && mbStatus; ++y)
 {
 for ( x = 0; x < mnWidth; x++ )
 {
@@ -233,11 +231,13 @@ bool RASReader::ImplReadBody(BitmapWriteAccess * pAcc)
 nDat >> ( ( x & 7 ) ^ 7 )) );
 }
 if (!( ( x - 1 ) & 0x8 ) ) ImplGetByte();   // WORD 
ALIGNMENT ???
+if (!m_rRAS.good())
+mbStatus = false;
 }
 break;
 
 case 8 :
-for ( y = 0; y < mnHeight; y++ )
+for (y = 0; y < mnHeight && mbStatus; ++y)
 {
 for ( x = 0; x < mnWidth; x++ )
 {
@@ -245,6 +245,8 @@ bool RASReader::ImplReadBody(BitmapWriteAccess * pAcc)
 pAcc->SetPixelIndex( y, x, nDat );
 }
 if ( x & 1 ) ImplGetByte(); // WORD 
ALIGNMENT ???
+if (!m_rRAS.good())
+mbStatus = false;
 }
 break;
 
@@ -253,7 +255,7 @@ bool RASReader::ImplReadBody(BitmapWriteAccess * pAcc)
 {
 
 case 24 :
-for ( y = 0; y < mnHeight; y++ )
+for (y = 0; y < mnHeight && mbStatus; ++y)
 {
 for ( x = 0; x < mnWidth; x++ )
 {
@@ -272,11 +274,13 @@ bool RASReader::ImplReadBody(BitmapWriteAccess * pAcc)
 pAcc->SetPixel ( y, x, BitmapColor( nRed, nGreen, 
nBlue ) );
 }
 if ( x & 1 ) ImplGetByte(); // 
WORD ALIGNMENT ???
+if (!m_rRAS.good())
+mbStatus = false;
 }
 break;
 
 case 32 :
-for ( y = 0; y < mnHeight; y++ )
+for (y = 0; y < mnHeight && mbStatus; ++y)
 {
 for ( x = 0; x < mnWidth; x++ )
 {
@@ -295,6 +299,8 @@ bool RASReader::ImplReadBody(BitmapWriteAccess * pAcc)
 }
 pAcc->SetPixel ( y, x, BitmapColor( nRed, nGreen, 
nBlue ) );
 }
+if (!m_rRAS.good())
+mbStatus = false;
 }
 break;
 }
@@ -307,8 +313,6 @@ bool RASReader::ImplReadBody(BitmapWriteAccess * pAcc)
 return mbStatus;
 }
 
-
-
 sal_uInt8 RASReader::ImplGetByte()
 {
 sal_uInt8 nRetVal;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - filter/qa filter/source

2015-07-16 Thread Caolán McNamara
 dev/null|binary
 filter/qa/cppunit/data/ras/fail/CVE-2008-1097-1.ras |binary
 filter/source/graphicfilter/iras/iras.cxx   |   24 +++-
 3 files changed, 14 insertions(+), 10 deletions(-)

New commits:
commit 2be3b3ee4b94f2b0f25985db931f8981699e784c
Author: Caolán McNamara 
Date:   Wed Jul 15 11:31:18 2015 +0100

check stream state more often for failures

Change-Id: Ie45d858021c3123ec21829cbf4742cf30ce46665
(cherry picked from commit adfa89b5ffc3589b3a19a32e707a134cee232429)
Reviewed-on: https://gerrit.libreoffice.org/17072
Reviewed-by: Michael Meeks 
Tested-by: Michael Meeks 

diff --git a/filter/qa/cppunit/data/ras/pass/CVE-2008-1097-1.ras 
b/filter/qa/cppunit/data/ras/fail/CVE-2008-1097-1.ras
similarity index 100%
rename from filter/qa/cppunit/data/ras/pass/CVE-2008-1097-1.ras
rename to filter/qa/cppunit/data/ras/fail/CVE-2008-1097-1.ras
diff --git a/filter/source/graphicfilter/iras/iras.cxx 
b/filter/source/graphicfilter/iras/iras.cxx
index 2f441cf..61d5128 100644
--- a/filter/source/graphicfilter/iras/iras.cxx
+++ b/filter/source/graphicfilter/iras/iras.cxx
@@ -54,7 +54,7 @@ private:
 
 boolImplReadBody(BitmapWriteAccess * pAcc);
 boolImplReadHeader();
-sal_uInt8   ImplGetByte();
+sal_uInt8   ImplGetByte();
 
 public:
 RASReader(SvStream &rRAS);
@@ -174,13 +174,11 @@ bool RASReader::ReadRAS(Graphic & rGraphic)
 return mbStatus;
 }
 
-
-
 bool RASReader::ImplReadHeader()
 {
 
m_rRAS.ReadInt32(mnWidth).ReadInt32(mnHeight).ReadInt32(mnDepth).ReadInt32(mnImageDatSize).ReadInt32(mnType).ReadInt32(mnColorMapType).ReadInt32(mnColorMapSize);
 
-if ( mnWidth <= 0 || mnHeight <= 0 || mnImageDatSize <= 0 )
+if (mnWidth <= 0 || mnHeight <= 0 || mnImageDatSize <= 0 || !m_rRAS.good())
 mbStatus = false;
 
 switch ( mnDepth )
@@ -222,7 +220,7 @@ bool RASReader::ImplReadBody(BitmapWriteAccess * pAcc)
 switch ( mnDstBitsPerPix )
 {
 case 1 :
-for ( y = 0; y < mnHeight; y++ )
+for (y = 0; y < mnHeight && mbStatus; ++y)
 {
 for ( x = 0; x < mnWidth; x++ )
 {
@@ -233,11 +231,13 @@ bool RASReader::ImplReadBody(BitmapWriteAccess * pAcc)
 nDat >> ( ( x & 7 ) ^ 7 )) );
 }
 if (!( ( x - 1 ) & 0x8 ) ) ImplGetByte();   // WORD 
ALIGNMENT ???
+if (!m_rRAS.good())
+mbStatus = false;
 }
 break;
 
 case 8 :
-for ( y = 0; y < mnHeight; y++ )
+for (y = 0; y < mnHeight && mbStatus; ++y)
 {
 for ( x = 0; x < mnWidth; x++ )
 {
@@ -245,6 +245,8 @@ bool RASReader::ImplReadBody(BitmapWriteAccess * pAcc)
 pAcc->SetPixelIndex( y, x, nDat );
 }
 if ( x & 1 ) ImplGetByte(); // WORD 
ALIGNMENT ???
+if (!m_rRAS.good())
+mbStatus = false;
 }
 break;
 
@@ -253,7 +255,7 @@ bool RASReader::ImplReadBody(BitmapWriteAccess * pAcc)
 {
 
 case 24 :
-for ( y = 0; y < mnHeight; y++ )
+for (y = 0; y < mnHeight && mbStatus; ++y)
 {
 for ( x = 0; x < mnWidth; x++ )
 {
@@ -272,11 +274,13 @@ bool RASReader::ImplReadBody(BitmapWriteAccess * pAcc)
 pAcc->SetPixel ( y, x, BitmapColor( nRed, nGreen, 
nBlue ) );
 }
 if ( x & 1 ) ImplGetByte(); // 
WORD ALIGNMENT ???
+if (!m_rRAS.good())
+mbStatus = false;
 }
 break;
 
 case 32 :
-for ( y = 0; y < mnHeight; y++ )
+for (y = 0; y < mnHeight && mbStatus; ++y)
 {
 for ( x = 0; x < mnWidth; x++ )
 {
@@ -295,6 +299,8 @@ bool RASReader::ImplReadBody(BitmapWriteAccess * pAcc)
 }
 pAcc->SetPixel ( y, x, BitmapColor( nRed, nGreen, 
nBlue ) );
 }
+if (!m_rRAS.good())
+mbStatus = false;
 }
 break;
 }
@@ -307,8 +313,6 @@ bool RASReader::ImplReadBody(BitmapWriteAccess * pAcc)
 return mbStatus;
 }
 
-
-
 sal_uInt8 RASReader::ImplGetByte()
 {
 sal_uInt8 nRetVal;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - sw/source

2015-07-16 Thread Caolán McNamara
 sw/source/core/access/accnotextframe.cxx |3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 03e115e51e5102ffd9c8498f865ed9e768f4f490
Author: Caolán McNamara 
Date:   Mon Jul 13 12:38:18 2015 +0100

fix a11y crash seen on close of tdf#92573

its not the reported crash, which has "gone away" which might
be a duplicate of tdf#90502

the switch only handled RES_TITLE_CHANGED and RES_DESCRIPTION_CHANGED so if 
its
anything else, e.g. OBJ_DYING, then don't attempt GetNoTextNode

(cherry picked from commit 7de992bcc66c973bb6b247184cac38f01cd1104a)

Change-Id: I642beb66613481cbc7ee18647f0204a67d670a84
Reviewed-on: https://gerrit.libreoffice.org/16991
Reviewed-by: Michael Meeks 
Tested-by: Michael Meeks 

diff --git a/sw/source/core/access/accnotextframe.cxx 
b/sw/source/core/access/accnotextframe.cxx
index 9e92a91..8d06a70 100644
--- a/sw/source/core/access/accnotextframe.cxx
+++ b/sw/source/core/access/accnotextframe.cxx
@@ -102,6 +102,9 @@ void SwAccessibleNoTextFrame::Modify( const SfxPoolItem* 
pOld, const SfxPoolItem
 return; // probably was deleted - avoid doing anything
 }
 
+if (nWhich != RES_TITLE_CHANGED || nWhich != RES_DESCRIPTION_CHANGED)
+return;
+
 const SwNoTxtNode *pNd = GetNoTxtNode();
 OSL_ENSURE( pNd == aDepend.GetRegisteredIn(), "invalid frame" );
 switch( nWhich )
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - sw/source

2015-07-16 Thread Caolán McNamara
 sw/source/core/access/accnotextframe.cxx |3 +++
 1 file changed, 3 insertions(+)

New commits:
commit c7d2270f86b2bd1f3c764d8461a40c903780ee56
Author: Caolán McNamara 
Date:   Mon Jul 13 12:38:18 2015 +0100

fix a11y crash seen on close of tdf#92573

its not the reported crash, which has "gone away" which might
be a duplicate of tdf#90502

the switch only handled RES_TITLE_CHANGED and RES_DESCRIPTION_CHANGED so if 
its
anything else, e.g. OBJ_DYING, then don't attempt GetNoTextNode

Change-Id: I642beb66613481cbc7ee18647f0204a67d670a84
(cherry picked from commit 7de992bcc66c973bb6b247184cac38f01cd1104a)
Reviewed-on: https://gerrit.libreoffice.org/16989
Tested-by: Jenkins 
Reviewed-by: Michael Meeks 

diff --git a/sw/source/core/access/accnotextframe.cxx 
b/sw/source/core/access/accnotextframe.cxx
index cee5edb..bcf5031 100644
--- a/sw/source/core/access/accnotextframe.cxx
+++ b/sw/source/core/access/accnotextframe.cxx
@@ -102,6 +102,9 @@ void SwAccessibleNoTextFrame::Modify( const SfxPoolItem* 
pOld, const SfxPoolItem
 return; // probably was deleted - avoid doing anything
 }
 
+if (nWhich != RES_TITLE_CHANGED || nWhich != RES_DESCRIPTION_CHANGED)
+return;
+
 const SwNoTextNode *pNd = GetNoTextNode();
 OSL_ENSURE( pNd == aDepend.GetRegisteredIn(), "invalid frame" );
 switch( nWhich )
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - svx/source

2015-07-16 Thread Caolán McNamara
 svx/source/sdr/contact/viewcontactofsdrpathobj.cxx |   71 +++--
 1 file changed, 53 insertions(+), 18 deletions(-)

New commits:
commit f794f6501bcf18e5430d57128699fc579251f900
Author: Caolán McNamara 
Date:   Wed Jul 15 10:09:16 2015 +0100

Resolves: tdf#63955 clip 19km long line to some sane limit

Change-Id: If9757a5fa2bb93b56b9cf9f566972f687a4a3a45
Reviewed-on: https://gerrit.libreoffice.org/17036
Reviewed-by: Thorsten Behrens 
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 
(cherry picked from commit d1046e7c3f66e5f3384ee1ef534ef28346702fc6)

refactor ensuring polygon has at least a line in it

just split that out into a standalone function, no logic
change

Change-Id: I061d5d716b3fc2a9fb6385e7fb249ce300752130
(cherry picked from commit 83b3349bb94d4c48db4da8fe5f8fdb9b19e633b9)
Reviewed-on: https://gerrit.libreoffice.org/17074
Reviewed-by: Michael Meeks 
Tested-by: Michael Meeks 

diff --git a/svx/source/sdr/contact/viewcontactofsdrpathobj.cxx 
b/svx/source/sdr/contact/viewcontactofsdrpathobj.cxx
index 7004342..c44c6a2 100644
--- a/svx/source/sdr/contact/viewcontactofsdrpathobj.cxx
+++ b/svx/source/sdr/contact/viewcontactofsdrpathobj.cxx
@@ -20,13 +20,14 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
+#include 
 #include 
 #include 
 
 
-
 namespace sdr
 {
 namespace contact
@@ -40,26 +41,14 @@ namespace sdr
 {
 }
 
-drawinglayer::primitive2d::Primitive2DSequence 
ViewContactOfSdrPathObj::createViewIndependentPrimitive2DSequence() const
+static sal_uInt32 ensureGeometry(basegfx::B2DPolyPolygon& 
rUnitPolyPolygon)
 {
-const SfxItemSet& rItemSet = GetPathObj().GetMergedItemSet();
-const drawinglayer::attribute::SdrLineFillShadowTextAttribute 
aAttribute(
-
drawinglayer::primitive2d::createNewSdrLineFillShadowTextAttribute(
-rItemSet,
-GetPathObj().getText(0),
-false));
-basegfx::B2DPolyPolygon 
aUnitPolyPolygon(GetPathObj().GetPathPoly());
-Point aGridOff = GetPathObj().GetGridOffset();
-// Hack for calc, transform position of object according
-// to current zoom so as objects relative position to grid
-// appears stable
-aUnitPolyPolygon.transform( 
basegfx::tools::createTranslateB2DHomMatrix( aGridOff.X(), aGridOff.Y() ) );
-sal_uInt32 nPolyCount(aUnitPolyPolygon.count());
+sal_uInt32 nPolyCount(rUnitPolyPolygon.count());
 sal_uInt32 nPointCount(0);
 
 for(sal_uInt32 a(0); a < nPolyCount; a++)
 {
-nPointCount += aUnitPolyPolygon.getB2DPolygon(a).count();
+nPointCount += rUnitPolyPolygon.getB2DPolygon(a).count();
 }
 
 if(!nPointCount)
@@ -68,20 +57,66 @@ namespace sdr
 basegfx::B2DPolygon aFallbackLine;
 aFallbackLine.append(basegfx::B2DPoint(0.0, 0.0));
 aFallbackLine.append(basegfx::B2DPoint(1000.0, 1000.0));
-aUnitPolyPolygon = basegfx::B2DPolyPolygon(aFallbackLine);
+rUnitPolyPolygon = basegfx::B2DPolyPolygon(aFallbackLine);
 
 nPolyCount = 1;
 }
 
+return nPolyCount;
+}
+
+drawinglayer::primitive2d::Primitive2DSequence 
ViewContactOfSdrPathObj::createViewIndependentPrimitive2DSequence() const
+{
+const SfxItemSet& rItemSet = GetPathObj().GetMergedItemSet();
+const drawinglayer::attribute::SdrLineFillShadowTextAttribute 
aAttribute(
+
drawinglayer::primitive2d::createNewSdrLineFillShadowTextAttribute(
+rItemSet,
+GetPathObj().getText(0),
+false));
+basegfx::B2DPolyPolygon 
aUnitPolyPolygon(GetPathObj().GetPathPoly());
+Point aGridOff = GetPathObj().GetGridOffset();
+// Hack for calc, transform position of object according
+// to current zoom so as objects relative position to grid
+// appears stable
+aUnitPolyPolygon.transform( 
basegfx::tools::createTranslateB2DHomMatrix( aGridOff.X(), aGridOff.Y() ) );
+sal_uInt32 nPolyCount(ensureGeometry(aUnitPolyPolygon));
+
 // prepare object transformation and unit polygon (direct model 
data)
 basegfx::B2DHomMatrix aObjectMatrix;
-const bool bIsLine(
+bool bIsLine(
 !aUnitPolyPolygon.areControlPointsUsed()
 && 1 == nPolyCount
 && 2 == aUnitPolyPolygon.getB2DPolygon(0).count());
 
 if(bIsLine)
 {
+const SdrPage* pPage = GetPathObj().GetPage();
+if (pPage)
+{
+//tdf#63955 if we have an extremely long line then

[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - filter/qa filter/source

2015-07-16 Thread Caolán McNamara
 filter/qa/cppunit/data/met/fail/crash-1.met |binary
 filter/source/graphicfilter/ios2met/ios2met.cxx |7 ---
 2 files changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 8840f5c2d7739e751e29b88224b416b20e3cd26a
Author: Caolán McNamara 
Date:   Wed Jul 15 12:25:35 2015 +0100

bump size type

Change-Id: I2c32c253499a3efb22a3312ed1f0a608649ce124
(cherry picked from commit dc71a72753202d29544845cfd58992bac63c6837)
Reviewed-on: https://gerrit.libreoffice.org/17090
Reviewed-by: Michael Meeks 
Tested-by: Michael Meeks 

diff --git a/filter/qa/cppunit/data/met/fail/crash-1.met 
b/filter/qa/cppunit/data/met/fail/crash-1.met
new file mode 100644
index 000..c46b4a9
Binary files /dev/null and b/filter/qa/cppunit/data/met/fail/crash-1.met differ
diff --git a/filter/source/graphicfilter/ios2met/ios2met.cxx 
b/filter/source/graphicfilter/ios2met/ios2met.cxx
index 6b38be4..d86657d 100644
--- a/filter/source/graphicfilter/ios2met/ios2met.cxx
+++ b/filter/source/graphicfilter/ios2met/ios2met.cxx
@@ -208,7 +208,7 @@ enum PenStyle { PEN_NULL, PEN_SOLID, PEN_DOT, PEN_DASH, 
PEN_DASHDOT };
 struct OSPalette {
 OSPalette * pSucc;
 sal_uInt32 * p0RGB; // May be NULL!
-sal_uInt16 nSize;
+size_t nSize;
 };
 
 struct OSArea {
@@ -743,12 +743,13 @@ void OS2METReader::SetPalette0RGB(sal_uInt16 nIndex, 
sal_uLong nCol)
 }
 if (pPaletteStack->p0RGB==NULL || nIndex>=pPaletteStack->nSize) {
 sal_uInt32 * pOld0RGB=pPaletteStack->p0RGB;
-sal_uInt16 i,nOldSize=pPaletteStack->nSize;
+size_t nOldSize = pPaletteStack->nSize;
 if (pOld0RGB==NULL) nOldSize=0;
 pPaletteStack->nSize=2*(nIndex+1);
 if (pPaletteStack->nSize<256) pPaletteStack->nSize=256;
 pPaletteStack->p0RGB = new sal_uInt32[pPaletteStack->nSize];
-for (i=0; inSize; i++) {
+for (size_t i=0; i < pPaletteStack->nSize; ++i)
+{
 if (ip0RGB[i]=pOld0RGB[i];
 else if (i==0) pPaletteStack->p0RGB[i]=0x00ff;
 else pPaletteStack->p0RGB[i]=0;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - filter/qa filter/source

2015-07-16 Thread Caolán McNamara
 filter/qa/cppunit/data/met/fail/crash-1.met |binary
 filter/source/graphicfilter/ios2met/ios2met.cxx |7 ---
 2 files changed, 4 insertions(+), 3 deletions(-)

New commits:
commit e39e26533cba5be4445bdb39884bb1bc32083bbb
Author: Caolán McNamara 
Date:   Wed Jul 15 12:25:35 2015 +0100

bump size type

Change-Id: I2c32c253499a3efb22a3312ed1f0a608649ce124
(cherry picked from commit dc71a72753202d29544845cfd58992bac63c6837)
Reviewed-on: https://gerrit.libreoffice.org/17088
Reviewed-by: Michael Meeks 
Tested-by: Michael Meeks 

diff --git a/filter/qa/cppunit/data/met/fail/crash-1.met 
b/filter/qa/cppunit/data/met/fail/crash-1.met
new file mode 100644
index 000..c46b4a9
Binary files /dev/null and b/filter/qa/cppunit/data/met/fail/crash-1.met differ
diff --git a/filter/source/graphicfilter/ios2met/ios2met.cxx 
b/filter/source/graphicfilter/ios2met/ios2met.cxx
index 7b024ae..944dab3 100644
--- a/filter/source/graphicfilter/ios2met/ios2met.cxx
+++ b/filter/source/graphicfilter/ios2met/ios2met.cxx
@@ -208,7 +208,7 @@ enum PenStyle { PEN_NULL, PEN_SOLID, PEN_DOT, PEN_DASH, 
PEN_DASHDOT };
 struct OSPalette {
 OSPalette * pSucc;
 sal_uInt32 * p0RGB; // May be NULL!
-sal_uInt16 nSize;
+size_t nSize;
 };
 
 struct OSArea {
@@ -733,12 +733,13 @@ void OS2METReader::SetPalette0RGB(sal_uInt16 nIndex, 
sal_uLong nCol)
 }
 if (pPaletteStack->p0RGB==NULL || nIndex>=pPaletteStack->nSize) {
 sal_uInt32 * pOld0RGB=pPaletteStack->p0RGB;
-sal_uInt16 i,nOldSize=pPaletteStack->nSize;
+size_t nOldSize = pPaletteStack->nSize;
 if (pOld0RGB==NULL) nOldSize=0;
 pPaletteStack->nSize=2*(nIndex+1);
 if (pPaletteStack->nSize<256) pPaletteStack->nSize=256;
 pPaletteStack->p0RGB = new sal_uInt32[pPaletteStack->nSize];
-for (i=0; inSize; i++) {
+for (size_t i=0; i < pPaletteStack->nSize; ++i)
+{
 if (ip0RGB[i]=pOld0RGB[i];
 else if (i==0) pPaletteStack->p0RGB[i]=0x00ff;
 else pPaletteStack->p0RGB[i]=0;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - filter/qa filter/source

2015-07-16 Thread Caolán McNamara
 filter/qa/cppunit/data/pbm/fail/hang-1.pbm  |binary
 filter/qa/cppunit/data/pbm/indeterminate/.gitignore |1 +
 filter/qa/cppunit/data/pbm/pass/rhbz160429-1.pbm|binary
 filter/qa/cppunit/filters-ppm-test.cxx  |4 
 filter/source/graphicfilter/ipbm/ipbm.cxx   |2 +-
 5 files changed, 6 insertions(+), 1 deletion(-)

New commits:
commit c48004eb562a9c4b377cf31a09a04cb03abdc58e
Author: Caolán McNamara 
Date:   Wed Jul 15 14:01:46 2015 +0100

avoid hang in short pbm

Change-Id: I9b7f0832a4dc231e1e8f963858c155e3cd392667
(cherry picked from commit b8637e67d6d39e47d22cfce496000288f0dc58d8)
Reviewed-on: https://gerrit.libreoffice.org/17083
Tested-by: Jenkins 
Reviewed-by: Michael Meeks 

diff --git a/filter/qa/cppunit/data/pbm/fail/.gitignore 
b/filter/qa/cppunit/data/pbm/fail/.gitignore
new file mode 100644
index 000..e69de29
diff --git a/filter/qa/cppunit/data/pbm/fail/hang-1.pbm 
b/filter/qa/cppunit/data/pbm/fail/hang-1.pbm
new file mode 100644
index 000..21742d2
Binary files /dev/null and b/filter/qa/cppunit/data/pbm/fail/hang-1.pbm differ
diff --git a/filter/qa/cppunit/data/pbm/indeterminate/.gitignore 
b/filter/qa/cppunit/data/pbm/indeterminate/.gitignore
new file mode 100644
index 000..e9c5b17
--- /dev/null
+++ b/filter/qa/cppunit/data/pbm/indeterminate/.gitignore
@@ -0,0 +1 @@
+*.ppm-*
diff --git a/filter/qa/cppunit/data/pbm/pass/.gitignore 
b/filter/qa/cppunit/data/pbm/pass/.gitignore
new file mode 100644
index 000..e69de29
diff --git a/filter/qa/cppunit/data/pbm/pass/rhbz160429-1.pbm 
b/filter/qa/cppunit/data/pbm/pass/rhbz160429-1.pbm
new file mode 100644
index 000..d6e3fc6
Binary files /dev/null and b/filter/qa/cppunit/data/pbm/pass/rhbz160429-1.pbm 
differ
diff --git a/filter/qa/cppunit/filters-ppm-test.cxx 
b/filter/qa/cppunit/filters-ppm-test.cxx
index e98ce6f..10f2658 100644
--- a/filter/qa/cppunit/filters-ppm-test.cxx
+++ b/filter/qa/cppunit/filters-ppm-test.cxx
@@ -62,6 +62,10 @@ void PpmFilterTest::testCVEs()
 testDir(OUString(),
 getURLFromSrc("/filter/qa/cppunit/data/ppm/"),
 OUString());
+
+testDir(OUString(),
+getURLFromSrc("/filter/qa/cppunit/data/pbm/"),
+OUString());
 }
 
 CPPUNIT_TEST_SUITE_REGISTRATION(PpmFilterTest);
diff --git a/filter/source/graphicfilter/ipbm/ipbm.cxx 
b/filter/source/graphicfilter/ipbm/ipbm.cxx
index 248d4df..e545334 100644
--- a/filter/source/graphicfilter/ipbm/ipbm.cxx
+++ b/filter/source/graphicfilter/ipbm/ipbm.cxx
@@ -179,7 +179,7 @@ bool PBMReader::ImplReadHeader()
 }
 while ( !bFinished )
 {
-if ( mrPBM.GetError() )
+if (!mrPBM.good())
 return false;
 
 mrPBM.ReadUChar( nDat );
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2015-07-16 Thread Matthew Pottage
 writerfilter/source/dmapper/DomainMapper.cxx|   34 
 writerfilter/source/dmapper/DomainMapper_Impl.cxx   |  364 -
 writerfilter/source/dmapper/DomainMapper_Impl.hxx   |7 
 writerfilter/source/dmapper/GraphicHelpers.cxx  |6 
 writerfilter/source/dmapper/GraphicImport.cxx   |   91 +-
 writerfilter/source/dmapper/ModelEventListener.cxx  |6 
 writerfilter/source/dmapper/NumberingManager.cxx|   34 
 writerfilter/source/dmapper/OLEHandler.cxx  |6 
 writerfilter/source/dmapper/PropertyIds.cxx |  761 +---
 writerfilter/source/dmapper/PropertyIds.hxx |   15 
 writerfilter/source/dmapper/PropertyMap.cxx |   88 --
 writerfilter/source/dmapper/StyleSheetTable.cxx |   36 
 writerfilter/source/dmapper/TrackChangesHandler.cxx |   18 
 13 files changed, 669 insertions(+), 797 deletions(-)

New commits:
commit 091f6c382394390206f784a5ec79842709e0f3bc
Author: Matthew Pottage 
Date:   Wed Jul 1 16:51:45 2015 +0100

Removed singleton PropertyNameSupplier and replaced it with single function.

Measurements showed that the "optimisation" of caching PropertyIds and their
string equivalent leads to an increase of approx. 6 times in the total 
overall
time spent in PropertyNameSupplier::getName(eId), when running the unit 
tests.

PropertyNameSupplier was the only PropertyNameSupplier (no derived classes).
This means that getPropertyName can easily provide the same functionality.

Change-Id: I933b67c11d4cc35395a0c70e15f1c24ac9842ab0
Reviewed-on: https://gerrit.libreoffice.org/16665
Tested-by: Jenkins 
Reviewed-by: Noel Grandin 

diff --git a/writerfilter/source/dmapper/DomainMapper.cxx 
b/writerfilter/source/dmapper/DomainMapper.cxx
index becde28..8a875ae 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -104,13 +104,13 @@ DomainMapper::DomainMapper( const uno::Reference< 
uno::XComponentContext >& xCon
 {
 // #i24363# tab stops relative to indent
 m_pImpl->SetDocumentSettingsProperty(
-PropertyNameSupplier::GetPropertyNameSupplier().GetName( 
PROP_TABS_RELATIVE_TO_INDENT ),
+getPropertyName( PROP_TABS_RELATIVE_TO_INDENT ),
 uno::makeAny( false ) );
 m_pImpl->SetDocumentSettingsProperty(
-PropertyNameSupplier::GetPropertyNameSupplier().GetName( 
PROP_SURROUND_TEXT_WRAP_SMALL ),
+getPropertyName( PROP_SURROUND_TEXT_WRAP_SMALL ),
 uno::makeAny( true ) );
 m_pImpl->SetDocumentSettingsProperty(
-PropertyNameSupplier::GetPropertyNameSupplier().GetName( 
PROP_APPLY_PARAGRAPH_MARK_FORMAT_TO_NUMBERING ),
+getPropertyName( PROP_APPLY_PARAGRAPH_MARK_FORMAT_TO_NUMBERING ),
 uno::makeAny( true ) );
 
 // Don't load the default style definitions to avoid weird mix
@@ -271,7 +271,7 @@ void DomainMapper::lcl_attribute(Id nName, Value & val)
 {
 uno::Reference< beans::XPropertySet > xAnchorProps( 
m_pImpl->GetTopContext()->GetFootnote()->getAnchor(), uno::UNO_QUERY );
 xAnchorProps->setPropertyValue(
-PropertyNameSupplier::GetPropertyNameSupplier().GetName( 
PROP_CHAR_FONT_NAME),
+getPropertyName( PROP_CHAR_FONT_NAME),
 uno::makeAny( sStringValue ));
 }
 else //a real symbol
@@ -1166,7 +1166,6 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, 
PropertyMapPtr rContext )
 Value::Pointer_t pValue = rSprm.getValue();
 sal_Int32 nIntValue = pValue->getInt();
 const OUString sStringValue = pValue->getString();
-PropertyNameSupplier& rPropNameSupplier = 
PropertyNameSupplier::GetPropertyNameSupplier();
 
 switch(nSprmId)
 {
@@ -1525,7 +1524,7 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, 
PropertyMapPtr rContext )
 
 uno::Reference 
xCharStyle(m_pImpl->GetCurrentNumberingCharStyle());
 if (xCharStyle.is())
-
xCharStyle->setPropertyValue(rPropNameSupplier.GetName(PROP_CHAR_WEIGHT), 
aBold);
+
xCharStyle->setPropertyValue(getPropertyName(PROP_CHAR_WEIGHT), aBold);
 if (nSprmId == NS_ooxml::LN_EG_RPrBase_b)
 m_pImpl->appendGrabBag(m_pImpl->m_aInteropGrabBag, 
"b", OUString::number(nIntValue));
 else if (nSprmId == NS_ooxml::LN_EG_RPrBase_bCs)
@@ -1605,7 +1604,7 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, 
PropertyMapPtr rContext )
 
 uno::Reference 
xCharStyle(m_pImpl->GetCurrentNumberingCharStyle());
 if (xCharStyle.is())
-
xCharStyle->setPropertyValue(rPropNameSupplier.GetName(PROP_CHAR_HEIGHT), aVal);
+
xCharStyle->setPropertyValue(getPropertyName(PROP_CHAR_HEIGHT), aVal);
 }
 }
 // Make sure char sizes defined in the styleshe

[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - filter/qa filter/source

2015-07-16 Thread Caolán McNamara
 filter/qa/cppunit/data/met/fail/hang-1.met  |binary
 filter/source/graphicfilter/ios2met/ios2met.cxx |   12 +---
 2 files changed, 9 insertions(+), 3 deletions(-)

New commits:
commit 66744837834e86ea0b7227a704cd0f82f8bdc223
Author: Caolán McNamara 
Date:   Wed Jul 15 12:18:10 2015 +0100

don't hang with 0 len causing no progression

Change-Id: Ie553dab291c7bfbde033d89b84159aff6b42a160
(cherry picked from commit 15dfcb7f461893f83abcf28bfe01a4164209a160)
Reviewed-on: https://gerrit.libreoffice.org/17084
Reviewed-by: Michael Meeks 
Tested-by: Michael Meeks 

diff --git a/filter/qa/cppunit/data/met/fail/hang-1.met 
b/filter/qa/cppunit/data/met/fail/hang-1.met
new file mode 100644
index 000..c1a095d
Binary files /dev/null and b/filter/qa/cppunit/data/met/fail/hang-1.met differ
diff --git a/filter/source/graphicfilter/ios2met/ios2met.cxx 
b/filter/source/graphicfilter/ios2met/ios2met.cxx
index 944dab3..0553d1f 100644
--- a/filter/source/graphicfilter/ios2met/ios2met.cxx
+++ b/filter/source/graphicfilter/ios2met/ios2met.cxx
@@ -2240,7 +2240,6 @@ void OS2METReader::ReadImageData(sal_uInt16 nDataID, 
sal_uInt16 nDataLen)
 void OS2METReader::ReadFont(sal_uInt16 nFieldSize)
 {
 sal_uLong nPos, nMaxPos;
-sal_uInt16 nLen;
 sal_uInt8 nByte, nTripType, nTripType2;
 OSFont * pF=new OSFont;
 pF->pSucc=pFontList; pFontList=pF;
@@ -2252,7 +2251,13 @@ void OS2METReader::ReadFont(sal_uInt16 nFieldSize)
 nMaxPos=nPos+(sal_uLong)nFieldSize;
 pOS2MET->SeekRel(2); nPos+=2;
 while (nPosGetError()==0) {
-pOS2MET->ReadUChar( nByte ); nLen =((sal_uInt16)nByte) & 0x00ff;
+pOS2MET->ReadUChar( nByte );
+sal_uInt16 nLen = ((sal_uInt16)nByte) & 0x00ff;
+if (nLen == 0)
+{
+pOS2MET->SetError(SVSTREAM_FILEFORMAT_ERROR);
+ErrorCode=4;
+}
 pOS2MET->ReadUChar( nTripType );
 switch (nTripType) {
 case 0x02:
@@ -2304,7 +2309,8 @@ void OS2METReader::ReadFont(sal_uInt16 nFieldSize)
 break;
 }
 }
-nPos+=nLen; pOS2MET->Seek(nPos);
+nPos+=nLen;
+pOS2MET->Seek(nPos);
 }
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - filter/qa filter/source

2015-07-16 Thread Caolán McNamara
 filter/qa/cppunit/data/met/fail/hang-1.met  |binary
 filter/source/graphicfilter/ios2met/ios2met.cxx |   12 +---
 2 files changed, 9 insertions(+), 3 deletions(-)

New commits:
commit a16acd70c711626e8826887ed8ac1052048a0dfa
Author: Caolán McNamara 
Date:   Wed Jul 15 12:18:10 2015 +0100

don't hang with 0 len causing no progression

Change-Id: Ie553dab291c7bfbde033d89b84159aff6b42a160
(cherry picked from commit 15dfcb7f461893f83abcf28bfe01a4164209a160)
Reviewed-on: https://gerrit.libreoffice.org/17086
Reviewed-by: Michael Meeks 
Tested-by: Michael Meeks 

diff --git a/filter/qa/cppunit/data/met/fail/hang-1.met 
b/filter/qa/cppunit/data/met/fail/hang-1.met
new file mode 100644
index 000..c1a095d
Binary files /dev/null and b/filter/qa/cppunit/data/met/fail/hang-1.met differ
diff --git a/filter/source/graphicfilter/ios2met/ios2met.cxx 
b/filter/source/graphicfilter/ios2met/ios2met.cxx
index d86657d..946d68f 100644
--- a/filter/source/graphicfilter/ios2met/ios2met.cxx
+++ b/filter/source/graphicfilter/ios2met/ios2met.cxx
@@ -2258,7 +2258,6 @@ void OS2METReader::ReadImageData(sal_uInt16 nDataID, 
sal_uInt16 nDataLen)
 void OS2METReader::ReadFont(sal_uInt16 nFieldSize)
 {
 sal_uLong nPos, nMaxPos;
-sal_uInt16 nLen;
 sal_uInt8 nByte, nTripType, nTripType2;
 OSFont * pF=new OSFont;
 pF->pSucc=pFontList; pFontList=pF;
@@ -2270,7 +2269,13 @@ void OS2METReader::ReadFont(sal_uInt16 nFieldSize)
 nMaxPos=nPos+(sal_uLong)nFieldSize;
 pOS2MET->SeekRel(2); nPos+=2;
 while (nPosGetError()==0) {
-pOS2MET->ReadUChar( nByte ); nLen =((sal_uInt16)nByte) & 0x00ff;
+pOS2MET->ReadUChar( nByte );
+sal_uInt16 nLen = ((sal_uInt16)nByte) & 0x00ff;
+if (nLen == 0)
+{
+pOS2MET->SetError(SVSTREAM_FILEFORMAT_ERROR);
+ErrorCode=4;
+}
 pOS2MET->ReadUChar( nTripType );
 switch (nTripType) {
 case 0x02:
@@ -2322,7 +2327,8 @@ void OS2METReader::ReadFont(sal_uInt16 nFieldSize)
 break;
 }
 }
-nPos+=nLen; pOS2MET->Seek(nPos);
+nPos+=nLen;
+pOS2MET->Seek(nPos);
 }
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - filter/qa filter/source

2015-07-16 Thread Caolán McNamara
 filter/qa/cppunit/data/met/pass/hang-2.met  |binary
 filter/source/graphicfilter/ios2met/ios2met.cxx |   33 ++--
 2 files changed, 26 insertions(+), 7 deletions(-)

New commits:
commit 62d88405e4c9fc3dfc6ea960f9b5f9c594e8bcf8
Author: Caolán McNamara 
Date:   Wed Jul 15 12:59:55 2015 +0100

tools polygons limited to 16bit indexes

(cherry picked from commit 89857aacac98f0f8e5dca4718affec493951f904)

WaE: C2220

(cherry picked from commit 8547c336b3253d90daae1c79a2b1a57996a39102)

Change-Id: Ib0f727a3681492c15b807ca159d8bf7675ee8f29
Reviewed-on: https://gerrit.libreoffice.org/17089
Reviewed-by: Michael Meeks 
Tested-by: Michael Meeks 

diff --git a/filter/qa/cppunit/data/met/pass/hang-2.met 
b/filter/qa/cppunit/data/met/pass/hang-2.met
new file mode 100644
index 000..84b432e
Binary files /dev/null and b/filter/qa/cppunit/data/met/pass/hang-2.met differ
diff --git a/filter/source/graphicfilter/ios2met/ios2met.cxx 
b/filter/source/graphicfilter/ios2met/ios2met.cxx
index 946d68f..ce19c4d 100644
--- a/filter/source/graphicfilter/ios2met/ios2met.cxx
+++ b/filter/source/graphicfilter/ios2met/ios2met.cxx
@@ -1191,18 +1191,37 @@ void OS2METReader::ReadPartialArc(bool bGivenPos, 
sal_uInt16 nOrderSize)
 
 void OS2METReader::ReadPolygons()
 {
-sal_uInt32 i,j,nNumPolys, nNumPoints;
 tools::PolyPolygon aPolyPoly;
 Polygon aPoly;
 Point aPoint;
-sal_uInt8 nFlags;
 
-pOS2MET->ReadUChar( nFlags ).ReadUInt32( nNumPolys );
-for (i=0; iReadUInt32( nNumPoints );
-if (i==0) nNumPoints++;
+sal_uInt8 nFlags(0);
+sal_uInt32 nNumPolys(0);
+pOS2MET->ReadUChar(nFlags).ReadUInt32(nNumPolys);
+
+if (nNumPolys > SAL_MAX_UINT16)
+{
+pOS2MET->SetError(SVSTREAM_FILEFORMAT_ERROR);
+ErrorCode=11;
+return;
+}
+
+for (sal_uInt32 i=0; iReadUInt32(nNumPoints);
+sal_uInt32 nLimit = SAL_MAX_UINT16;
+if (i==0) --nLimit;
+if (nNumPoints > nLimit)
+{
+pOS2MET->SetError(SVSTREAM_FILEFORMAT_ERROR);
+ErrorCode=11;
+return;
+}
+if (i==0) ++nNumPoints;
 aPoly.SetSize((short)nNumPoints);
-for (j=0; j___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - filter/qa filter/source

2015-07-16 Thread Caolán McNamara
 filter/qa/cppunit/data/met/pass/hang-2.met  |binary
 filter/source/graphicfilter/ios2met/ios2met.cxx |   33 ++--
 2 files changed, 26 insertions(+), 7 deletions(-)

New commits:
commit fdc0b506538560e13127a44a7de817412c13035b
Author: Caolán McNamara 
Date:   Wed Jul 15 12:59:55 2015 +0100

tools polygons limited to 16bit indexes

Change-Id: Ib0f727a3681492c15b807ca159d8bf7675ee8f29
(cherry picked from commit 89857aacac98f0f8e5dca4718affec493951f904)

WaE: C2220

Change-Id: Ibf9fa7ffc3beb237a470952c265fb1bce313a08a
(cherry picked from commit 8547c336b3253d90daae1c79a2b1a57996a39102)
Reviewed-on: https://gerrit.libreoffice.org/17091
Tested-by: Jenkins 
Reviewed-by: Michael Meeks 

diff --git a/filter/qa/cppunit/data/met/pass/hang-2.met 
b/filter/qa/cppunit/data/met/pass/hang-2.met
new file mode 100644
index 000..84b432e
Binary files /dev/null and b/filter/qa/cppunit/data/met/pass/hang-2.met differ
diff --git a/filter/source/graphicfilter/ios2met/ios2met.cxx 
b/filter/source/graphicfilter/ios2met/ios2met.cxx
index 0553d1f..2ff00f6 100644
--- a/filter/source/graphicfilter/ios2met/ios2met.cxx
+++ b/filter/source/graphicfilter/ios2met/ios2met.cxx
@@ -1173,18 +1173,37 @@ void OS2METReader::ReadPartialArc(bool bGivenPos, 
sal_uInt16 nOrderSize)
 
 void OS2METReader::ReadPolygons()
 {
-sal_uInt32 i,j,nNumPolys, nNumPoints;
 tools::PolyPolygon aPolyPoly;
 Polygon aPoly;
 Point aPoint;
-sal_uInt8 nFlags;
 
-pOS2MET->ReadUChar( nFlags ).ReadUInt32( nNumPolys );
-for (i=0; iReadUInt32( nNumPoints );
-if (i==0) nNumPoints++;
+sal_uInt8 nFlags(0);
+sal_uInt32 nNumPolys(0);
+pOS2MET->ReadUChar(nFlags).ReadUInt32(nNumPolys);
+
+if (nNumPolys > SAL_MAX_UINT16)
+{
+pOS2MET->SetError(SVSTREAM_FILEFORMAT_ERROR);
+ErrorCode=11;
+return;
+}
+
+for (sal_uInt32 i=0; iReadUInt32(nNumPoints);
+sal_uInt32 nLimit = SAL_MAX_UINT16;
+if (i==0) --nLimit;
+if (nNumPoints > nLimit)
+{
+pOS2MET->SetError(SVSTREAM_FILEFORMAT_ERROR);
+ErrorCode=11;
+return;
+}
+if (i==0) ++nNumPoints;
 aPoly.SetSize((short)nNumPoints);
-for (j=0; j___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - filter/qa filter/source

2015-07-16 Thread Caolán McNamara
 filter/qa/cppunit/data/pbm/fail/hang-1.pbm  |binary
 filter/qa/cppunit/data/pbm/indeterminate/.gitignore |1 +
 filter/qa/cppunit/data/pbm/pass/rhbz160429-1.pbm|binary
 filter/qa/cppunit/filters-ppm-test.cxx  |4 
 filter/source/graphicfilter/ipbm/ipbm.cxx   |2 +-
 5 files changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 1cf6e5d1afa7f89d7cfc595ba3dacb9633abde87
Author: Caolán McNamara 
Date:   Wed Jul 15 14:01:46 2015 +0100

avoid hang in short pbm

Change-Id: I9b7f0832a4dc231e1e8f963858c155e3cd392667
(cherry picked from commit b8637e67d6d39e47d22cfce496000288f0dc58d8)
Reviewed-on: https://gerrit.libreoffice.org/17085
Reviewed-by: Michael Meeks 
Tested-by: Michael Meeks 

diff --git a/filter/qa/cppunit/data/pbm/fail/.gitignore 
b/filter/qa/cppunit/data/pbm/fail/.gitignore
new file mode 100644
index 000..e69de29
diff --git a/filter/qa/cppunit/data/pbm/fail/hang-1.pbm 
b/filter/qa/cppunit/data/pbm/fail/hang-1.pbm
new file mode 100644
index 000..21742d2
Binary files /dev/null and b/filter/qa/cppunit/data/pbm/fail/hang-1.pbm differ
diff --git a/filter/qa/cppunit/data/pbm/indeterminate/.gitignore 
b/filter/qa/cppunit/data/pbm/indeterminate/.gitignore
new file mode 100644
index 000..e9c5b17
--- /dev/null
+++ b/filter/qa/cppunit/data/pbm/indeterminate/.gitignore
@@ -0,0 +1 @@
+*.ppm-*
diff --git a/filter/qa/cppunit/data/pbm/pass/.gitignore 
b/filter/qa/cppunit/data/pbm/pass/.gitignore
new file mode 100644
index 000..e69de29
diff --git a/filter/qa/cppunit/data/pbm/pass/rhbz160429-1.pbm 
b/filter/qa/cppunit/data/pbm/pass/rhbz160429-1.pbm
new file mode 100644
index 000..d6e3fc6
Binary files /dev/null and b/filter/qa/cppunit/data/pbm/pass/rhbz160429-1.pbm 
differ
diff --git a/filter/qa/cppunit/filters-ppm-test.cxx 
b/filter/qa/cppunit/filters-ppm-test.cxx
index 9b281ab..e8bef14 100644
--- a/filter/qa/cppunit/filters-ppm-test.cxx
+++ b/filter/qa/cppunit/filters-ppm-test.cxx
@@ -62,6 +62,10 @@ void PpmFilterTest::testCVEs()
 testDir(OUString(),
 getURLFromSrc("/filter/qa/cppunit/data/ppm/"),
 OUString());
+
+testDir(OUString(),
+getURLFromSrc("/filter/qa/cppunit/data/pbm/"),
+OUString());
 }
 
 CPPUNIT_TEST_SUITE_REGISTRATION(PpmFilterTest);
diff --git a/filter/source/graphicfilter/ipbm/ipbm.cxx 
b/filter/source/graphicfilter/ipbm/ipbm.cxx
index 63a8b09..720bc9f 100644
--- a/filter/source/graphicfilter/ipbm/ipbm.cxx
+++ b/filter/source/graphicfilter/ipbm/ipbm.cxx
@@ -195,7 +195,7 @@ bool PBMReader::ImplReadHeader()
 }
 while ( bFinished == false )
 {
-if ( mrPBM.GetError() )
+if (!mrPBM.good())
 return false;
 
 mrPBM.ReadUChar( nDat );
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - svtools/source vcl/source

2015-07-16 Thread Michael Meeks
 svtools/source/misc/dialogcontrolling.cxx |   18 ++
 vcl/source/window/event.cxx   |6 --
 2 files changed, 14 insertions(+), 10 deletions(-)

New commits:
commit fe1e767e3397da41051a20ae6c80be5e123d07ba
Author: Michael Meeks 
Date:   Tue Jul 14 12:51:04 2015 +0100

tdf#92706 - avoid dbaccess wizard crash.

Hold a VclPtr on the window, make reset cleaner, and don't crash
removing listeners from disposed windows.

Change-Id: I3efb71117fc45562d5c740578f5e33dabb2684fe
Reviewed-on: https://gerrit.libreoffice.org/17038
Tested-by: Jenkins 
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/svtools/source/misc/dialogcontrolling.cxx 
b/svtools/source/misc/dialogcontrolling.cxx
index b381c43..ca62804 100644
--- a/svtools/source/misc/dialogcontrolling.cxx
+++ b/svtools/source/misc/dialogcontrolling.cxx
@@ -49,13 +49,13 @@ namespace svt
 
 struct DialogController_Data
 {
-vcl::Window& rInstigator;
-::std::vector< VclPtr >aConcernedWindows;
+VclPtr  xInstigator;
+::std::vector< VclPtr > aConcernedWindows;
 PWindowEventFilter  pEventFilter;
 PWindowOperator pOperator;
 
-DialogController_Data( vcl::Window& _rInstigator, const 
PWindowEventFilter _pEventFilter, const PWindowOperator _pOperator )
-:rInstigator( _rInstigator )
+DialogController_Data( vcl::Window& _xInstigator, const 
PWindowEventFilter _pEventFilter, const PWindowOperator _pOperator )
+:xInstigator( &_xInstigator )
 ,pEventFilter( _pEventFilter )
 ,pOperator( _pOperator )
 {
@@ -66,14 +66,14 @@ namespace svt
 //= DialogController
 
 
-DialogController::DialogController( vcl::Window& _rInstigator, const 
PWindowEventFilter& _pEventFilter,
+DialogController::DialogController( vcl::Window& _xInstigator, const 
PWindowEventFilter& _pEventFilter,
 const PWindowOperator& _pOperator )
-:m_pImpl( new DialogController_Data( _rInstigator, _pEventFilter, 
_pOperator ) )
+:m_pImpl( new DialogController_Data( _xInstigator, _pEventFilter, 
_pOperator ) )
 {
 DBG_ASSERT( m_pImpl->pEventFilter.get() && m_pImpl->pOperator.get(),
 "DialogController::DialogController: invalid filter and/or 
operator!" );
 
-m_pImpl->rInstigator.AddEventListener( LINK( this, DialogController, 
OnWindowEvent ) );
+m_pImpl->xInstigator->AddEventListener( LINK( this, DialogController, 
OnWindowEvent ) );
 }
 
 
@@ -85,7 +85,9 @@ namespace svt
 
 void DialogController::reset()
 {
-m_pImpl->rInstigator.RemoveEventListener( LINK( this, 
DialogController, OnWindowEvent ) );
+if (m_pImpl->xInstigator)
+m_pImpl->xInstigator->RemoveEventListener( LINK( this, 
DialogController, OnWindowEvent ) );
+m_pImpl->xInstigator.clear();
 m_pImpl->aConcernedWindows.clear();
 m_pImpl->pEventFilter.reset();
 m_pImpl->pOperator.reset();
diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx
index 61c11ab..852cc0c 100644
--- a/vcl/source/window/event.cxx
+++ b/vcl/source/window/event.cxx
@@ -249,7 +249,8 @@ void Window::AddEventListener( const Link<>& rEventListener 
)
 
 void Window::RemoveEventListener( const Link<>& rEventListener )
 {
-mpWindowImpl->maEventListeners.removeListener( rEventListener );
+if (mpWindowImpl)
+mpWindowImpl->maEventListeners.removeListener( rEventListener );
 }
 
 void Window::AddChildEventListener( const Link<>& rEventListener )
@@ -259,7 +260,8 @@ void Window::AddChildEventListener( const Link<>& 
rEventListener )
 
 void Window::RemoveChildEventListener( const Link<>& rEventListener )
 {
-mpWindowImpl->maChildEventListeners.removeListener( rEventListener );
+if (mpWindowImpl)
+mpWindowImpl->maChildEventListeners.removeListener( rEventListener );
 }
 
 ImplSVEvent * Window::PostUserEvent( const Link<>& rLink, void* pCaller, bool 
bReferenceLink )
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-4-4-5' - sc/source

2015-07-16 Thread Eike Rathke
 sc/source/core/data/document.cxx |   63 +++
 1 file changed, 63 insertions(+)

New commits:
commit a9c9c387a37282732b3082517f1af943a598718e
Author: Eike Rathke 
Date:   Tue Jul 7 23:36:02 2015 +0200

end/restart group listening in DeleteSelection(), similar to DeleteArea()

Reproducer:
* in A1 enter =SUM(B1:C4)
* copy A1 to clipboard
* paste to A2 and A3
* formula in A2 is =SUM(B2:C5)  A3 is =SUM(B3:C6)
* select A2:A3
* hit Del key to delete the two cells
* enter any numeric value in B2
  => formula result in A1 is not updated
  Shift+Ctrl+F9 hard recalc updates

Change-Id: I55e55b8cfe69e9273170ceaea4e6c046b3d4f7b7
(cherry picked from commit a49b8af4cf03ae08cb7a28f66e24368a7b08ae3f)
Reviewed-on: https://gerrit.libreoffice.org/16843
Reviewed-by: Caolán McNamara 
Reviewed-by: Michael Meeks 
Reviewed-by: Adolfo Jayme Barrientos 
Tested-by: Adolfo Jayme Barrientos 

diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 4a4f0004..59fef65 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -5611,18 +5611,81 @@ void ScDocument::ClearSelectionItems( const sal_uInt16* 
pWhich, const ScMarkData
 
 void ScDocument::DeleteSelection( InsertDeleteFlags nDelFlag, const 
ScMarkData& rMark, bool bBroadcast )
 {
+sc::AutoCalcSwitch aACSwitch(*this, false);
+
+std::vector aGroupPos;
+// Destroy and reconstruct listeners only if content is affected.
+bool bDelContent = ((nDelFlag & ~IDF_CONTENTS) != nDelFlag);
+if (bDelContent)
+{
+// Record the positions of top and/or bottom formula groups that
+// intersect the area borders.
+sc::EndListeningContext aCxt(*this);
+ScRangeList aRangeList;
+rMark.FillRangeListWithMarks( &aRangeList, false);
+for (size_t i = 0; i < aRangeList.size(); ++i)
+{
+const ScRange* pRange = aRangeList[i];
+if (pRange)
+EndListeningIntersectedGroups( aCxt, *pRange, &aGroupPos);
+}
+aCxt.purgeEmptyBroadcasters();
+}
+
 SCTAB nMax = static_cast(maTabs.size());
 ScMarkData::const_iterator itr = rMark.begin(), itrEnd = rMark.end();
 for (; itr != itrEnd && *itr < nMax; ++itr)
 if (maTabs[*itr])
 maTabs[*itr]->DeleteSelection(nDelFlag, rMark, bBroadcast);
+
+if (bDelContent)
+{
+// Re-start listeners on those top bottom groups that have been split.
+SetNeedsListeningGroups(aGroupPos);
+StartNeededListeners();
+}
 }
 
 void ScDocument::DeleteSelectionTab(
 SCTAB nTab, InsertDeleteFlags nDelFlag, const ScMarkData& rMark, bool 
bBroadcast )
 {
 if (ValidTab(nTab) && nTab < static_cast(maTabs.size()) && 
maTabs[nTab])
+{
+sc::AutoCalcSwitch aACSwitch(*this, false);
+
+std::vector aGroupPos;
+// Destroy and reconstruct listeners only if content is affected.
+bool bDelContent = ((nDelFlag & ~IDF_CONTENTS) != nDelFlag);
+if (bDelContent)
+{
+// Record the positions of top and/or bottom formula groups that
+// intersect the area borders.
+sc::EndListeningContext aCxt(*this);
+ScRangeList aRangeList;
+rMark.FillRangeListWithMarks( &aRangeList, false);
+for (size_t i = 0; i < aRangeList.size(); ++i)
+{
+const ScRange* pRange = aRangeList[i];
+if (pRange && pRange->aStart.Tab() <= nTab && nTab <= 
pRange->aEnd.Tab())
+{
+ScRange aRange( *pRange);
+aRange.aStart.SetTab( nTab);
+aRange.aEnd.SetTab( nTab);
+EndListeningIntersectedGroups( aCxt, aRange, &aGroupPos);
+}
+}
+aCxt.purgeEmptyBroadcasters();
+}
+
 maTabs[nTab]->DeleteSelection(nDelFlag, rMark, bBroadcast);
+
+if (bDelContent)
+{
+// Re-start listeners on those top bottom groups that have been 
split.
+SetNeedsListeningGroups(aGroupPos);
+StartNeededListeners();
+}
+}
 else
 {
 OSL_FAIL("wrong table");
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - external/jfreereport

2015-07-16 Thread Lionel Elie Mamane
 external/jfreereport/UnpackedTarball_jfreereport_flow_engine.mk  |1 
 external/jfreereport/UnpackedTarball_jfreereport_libformula.mk   |1 
 external/jfreereport/patches/flow-engine_date_is_datetime.patch.1|   13 

 external/jfreereport/patches/libformula-datevalue_truncation.patch.1 |   29 
++
 4 files changed, 44 insertions(+)

New commits:
commit 9c20406420966ae8cdc866a8d4fef2b949529a07
Author: Lionel Elie Mamane 
Date:   Tue Jul 14 17:49:44 2015 +0200

tdf#92654 a "Date" can contain a Time, so don't loose date by default

also fix DATEVALUE() function that was relying on this dataloss

Change-Id: I6030505a762df3ecbfe9a8331267846d3de817e8
Reviewed-on: https://gerrit.libreoffice.org/17049
Tested-by: Jenkins 
Reviewed-by: Michael Meeks 
Tested-by: Michael Meeks 

diff --git a/external/jfreereport/UnpackedTarball_jfreereport_flow_engine.mk 
b/external/jfreereport/UnpackedTarball_jfreereport_flow_engine.mk
index f6640e4..e0d309a 100644
--- a/external/jfreereport/UnpackedTarball_jfreereport_flow_engine.mk
+++ b/external/jfreereport/UnpackedTarball_jfreereport_flow_engine.mk
@@ -17,6 +17,7 @@ $(eval $(call 
gb_UnpackedTarball_fix_end_of_line,jfreereport_flow_engine,\
 
 $(eval $(call gb_UnpackedTarball_add_patches,jfreereport_flow_engine,\
external/jfreereport/patches/flow-engine.patch \
+   external/jfreereport/patches/flow-engine_date_is_datetime.patch.1 \
 ))
 
 # vim: set noet sw=4 ts=4:
diff --git a/external/jfreereport/UnpackedTarball_jfreereport_libformula.mk 
b/external/jfreereport/UnpackedTarball_jfreereport_libformula.mk
index bb78966..ec9d29d 100644
--- a/external/jfreereport/UnpackedTarball_jfreereport_libformula.mk
+++ b/external/jfreereport/UnpackedTarball_jfreereport_libformula.mk
@@ -19,6 +19,7 @@ $(eval $(call 
gb_UnpackedTarball_add_patches,jfreereport_libformula,\
external/jfreereport/patches/common_build.patch \
external/jfreereport/patches/libformula-time-notz.patch \
external/jfreereport/patches/libformula-minutes_truncation.patch.1 \
+   external/jfreereport/patches/libformula-datevalue_truncation.patch.1 \
 ))
 
 # vim: set noet sw=4 ts=4:
diff --git a/external/jfreereport/patches/flow-engine_date_is_datetime.patch.1 
b/external/jfreereport/patches/flow-engine_date_is_datetime.patch.1
new file mode 100644
index 000..3ed23ee
--- /dev/null
+++ b/external/jfreereport/patches/flow-engine_date_is_datetime.patch.1
@@ -0,0 +1,13 @@
+diff -ur 
jfreereport_flow_engine.org/source/org/jfree/report/expressions/ReportFormulaContext.java
 
jfreereport_flow_engine/source/org/jfree/report/expressions/ReportFormulaContext.java
+--- 
jfreereport_flow_engine.org/source/org/jfree/report/expressions/ReportFormulaContext.java
  2015-07-14 17:24:51.924156060 +0200
 
jfreereport_flow_engine/source/org/jfree/report/expressions/ReportFormulaContext.java
  2015-07-14 17:27:56.669270298 +0200
+@@ -120,7 +120,7 @@
+   {
+ if (flags.isDate())
+ {
+-  return DateTimeType.DATE_TYPE;
++  return DateTimeType.DATETIME_TYPE;
+ }
+ if (flags.isNumeric())
+ {
+Only in jfreereport_flow_engine/source/org/jfree/report/expressions: 
ReportFormulaContext.java~
diff --git 
a/external/jfreereport/patches/libformula-datevalue_truncation.patch.1 
b/external/jfreereport/patches/libformula-datevalue_truncation.patch.1
new file mode 100644
index 000..069c667
--- /dev/null
+++ b/external/jfreereport/patches/libformula-datevalue_truncation.patch.1
@@ -0,0 +1,29 @@
+diff -ur 
jfreereport_libformula.org/source/org/pentaho/reporting/libraries/formula/function/datetime/DateValueFunction.java
 
jfreereport_libformula/source/org/pentaho/reporting/libraries/formula/function/datetime/DateValueFunction.java
+--- 
jfreereport_libformula.org/source/org/pentaho/reporting/libraries/formula/function/datetime/DateValueFunction.java
 2010-06-01 17:15:50.0 +0200
 
jfreereport_libformula/source/org/pentaho/reporting/libraries/formula/function/datetime/DateValueFunction.java
 2015-07-14 17:24:42.503895240 +0200
+@@ -18,6 +18,7 @@
+ package org.pentaho.reporting.libraries.formula.function.datetime;
+ 
+ import java.util.Date;
++import java.util.Calendar;
+ 
+ import org.pentaho.reporting.libraries.formula.EvaluationException;
+ import org.pentaho.reporting.libraries.formula.FormulaContext;
+@@ -28,6 +29,7 @@
+ import org.pentaho.reporting.libraries.formula.typing.Type;
+ import org.pentaho.reporting.libraries.formula.typing.TypeRegistry;
+ import org.pentaho.reporting.libraries.formula.typing.coretypes.DateTimeType;
++import org.pentaho.reporting.libraries.formula.util.DateUtil;
+ 
+ /**
+  * This function returns
+@@ -61,7 +63,8 @@
+ final Object value = parameters.getValue(0);
+ 
+ final Date date1 = typeRegistry.convertToDate(type, value);
+-return new TypeValuePair(DateTimeType.DATE_TYPE, date1);
++final Date date  = DateUtil.normalizeDate(

[Libreoffice-commits] core.git: filter/qa filter/source

2015-07-16 Thread Caolán McNamara
 filter/qa/cppunit/data/pict/fail/exception-1.pct |binary
 filter/source/graphicfilter/ipict/ipict.cxx  |5 +
 2 files changed, 5 insertions(+)

New commits:
commit cf4159e16c13a13d0bedccebb50bb08f1662bc1c
Author: Caolán McNamara 
Date:   Thu Jul 16 10:01:24 2015 +0100

exception on div by 0

Change-Id: Id33d6a5e3df5812babd28ebfc65b95ce97219ad3

diff --git a/filter/qa/cppunit/data/pict/fail/exception-1.pct 
b/filter/qa/cppunit/data/pict/fail/exception-1.pct
new file mode 100644
index 000..f9cd85a
Binary files /dev/null and b/filter/qa/cppunit/data/pict/fail/exception-1.pct 
differ
diff --git a/filter/source/graphicfilter/ipict/ipict.cxx 
b/filter/source/graphicfilter/ipict/ipict.cxx
index e6b7fd0..0c1960b 100644
--- a/filter/source/graphicfilter/ipict/ipict.cxx
+++ b/filter/source/graphicfilter/ipict/ipict.cxx
@@ -1859,6 +1859,7 @@ sal_uLong PictReader::ReadData(sal_uInt16 nOpcode)
 
 void PictReader::ReadPict( SvStream & rStreamPict, GDIMetaFile & rGDIMetaFile )
 {
+try {
 sal_uInt16  nOpcode;
 sal_uInt8   nOneByteOpcode;
 sal_uLong   nSize, nPercent, nLastPercent;
@@ -1950,6 +1951,10 @@ void PictReader::ReadPict( SvStream & rStreamPict, 
GDIMetaFile & rGDIMetaFile )
 pPict->SetEndian(nOrigNumberFormat);
 
 if (pPict->GetError()) pPict->Seek(nOrigPos);
+} catch (...)
+{
+rStreamPict.SetError(SVSTREAM_FILEFORMAT_ERROR);
+}
 }
 
 namespace pict {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2015-07-16 Thread Noel Grandin
 sfx2/source/doc/guisaveas.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b70acbc198fdd570785bc6d4dec992d8474024dc
Author: Noel Grandin 
Date:   Thu Jul 16 11:40:44 2015 +0200

fix windows build

warning C4245: '=' : conversion from 'int' to 'sal_uInt8',
signed/unsigned mismatch

Change-Id: I4856a096a647ef47cdb208211f588f98fab71290

diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx
index 6a204fa..3d98457 100644
--- a/sfx2/source/doc/guisaveas.cxx
+++ b/sfx2/source/doc/guisaveas.cxx
@@ -161,7 +161,7 @@ static sal_uInt8 getStoreModeFromSlotName( const OUString& 
aSlotName )
 else if ( aSlotName == "SaveAs" )
 nResult = SAVEAS_REQUESTED;
 else if ( aSlotName == "SaveAsRemote" )
-nResult = SAVEASREMOTE_REQUESTED;
+nResult = static_cast(SAVEASREMOTE_REQUESTED);
 else
 throw task::ErrorCodeIOException(
 ("getStoreModeFromSlotName(\"" + aSlotName
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: Experimental functions but not the visual math editor?

2015-07-16 Thread Adolfo Jayme Barrientos
What is the exact thing you’re trying to achieve with that?
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: configure.ac download.lst external/liblangtag

2015-07-16 Thread Eike Rathke
 configure.ac   
|2 
 download.lst   
|2 
 external/liblangtag/UnpackedTarball_langtag.mk 
|   20 
 
external/liblangtag/liblangtag-0.5.1-include-last-record-in-language-subtag-registry.patch
 |   49 --
 external/liblangtag/liblangtag-0.5.1-msvc-snprintf.patch   
|   25 -
 external/liblangtag/liblangtag-0.5.1-msvc-ssize_t.patch
|   12 --
 external/liblangtag/liblangtag-0.5.1-msvc-strtoull.patch   
|   15 ---
 external/liblangtag/liblangtag-0.5.1-msvc-warning.patch
|   21 
 external/liblangtag/liblangtag-0.5.1-scope-declaration.patch   
|   13 --
 external/liblangtag/liblangtag-0.5.1-undefined-have-sys-param-h.patch  
|   14 --
 external/liblangtag/liblangtag-0.5.1-unistd.patch  
|   12 --
 external/liblangtag/liblangtag-0.5.1-vsnprintf.patch   
|   18 ---
 
external/liblangtag/liblangtag-0.5.1-windows-do-not-prepend-dir-separator.patch 
   |   16 ---
 external/liblangtag/liblangtag-leak.patch.0
|   10 --
 14 files changed, 5 insertions(+), 224 deletions(-)

New commits:
commit 67bded9f0b63f722ff44bd2e653841cce389119b
Author: Eike Rathke 
Date:   Wed Jul 15 16:54:41 2015 +0200

update to liblangtag-0.5.7

Change-Id: I46bf74efb52435313eb17e0db8b1cf103a329004
Reviewed-on: https://gerrit.libreoffice.org/17078
Tested-by: Jenkins 
Reviewed-by: Eike Rathke 

diff --git a/configure.ac b/configure.ac
index 87d7990..e7f6872 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12047,8 +12047,6 @@ if test "$enable_liblangtag" = "yes" -o \( 
"$enable_liblangtag" = "" -a $_os !=
 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
diff --git a/download.lst b/download.lst
index 07959ae..ceee956 100644
--- a/download.lst
+++ b/download.lst
@@ -95,7 +95,7 @@ export LIBEOT_TARBALL := libeot-0.01.tar.bz2
 export LIBEXTTEXTCAT_TARBALL := 
10d61fbaa6a06348823651b1bd7940fe-libexttextcat-3.4.4.tar.bz2
 export LIBGLTF_MD5SUM := d63a9f47ab048f5009d90693d6aa6424
 export LIBGLTF_TARBALL := libgltf-0.0.2.tar.bz2
-export LIBLANGTAG_TARBALL := 
36271d3fa0d9dec1632029b6d7aac925-liblangtag-0.5.1.tar.bz2
+export LIBLANGTAG_TARBALL := 
80d063d6db4c010e18c606af8aed6231-liblangtag-0.5.7.tar.bz2
 export LIBXMLSEC_TARBALL := 
1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz
 export LIBXML_TARBALL := 9c0cfef285d5c4a5c80d00904ddab380-libxml2-2.9.1.tar.gz
 export LIBXSLT_TARBALL := 
9667bf6f9310b957254fdcf6596600b7-libxslt-1.1.28.tar.gz
diff --git a/external/liblangtag/UnpackedTarball_langtag.mk 
b/external/liblangtag/UnpackedTarball_langtag.mk
index 2951368..541baa3 100644
--- a/external/liblangtag/UnpackedTarball_langtag.mk
+++ b/external/liblangtag/UnpackedTarball_langtag.mk
@@ -15,22 +15,10 @@ $(eval $(call gb_UnpackedTarball_set_pre_action,langtag,\
$(GNUTAR) -x -j -f 
$(gb_UnpackedTarget_TARFILE_LOCATION)/$(LANGTAGREG_TARBALL) \
 ))
 
-# external/liblangtag/liblangtag-leak.patch.0 upstream:
-#  
-$(eval $(call gb_UnpackedTarball_add_patches,langtag,\
-   external/liblangtag/liblangtag-0.5.1-msvc-warning.patch \
-   external/liblangtag/liblangtag-0.5.1-vsnprintf.patch \
-   external/liblangtag/liblangtag-0.5.1-msvc-ssize_t.patch \
-   external/liblangtag/liblangtag-0.5.1-msvc-snprintf.patch \
-   external/liblangtag/liblangtag-0.5.1-msvc-strtoull.patch \
-   external/liblangtag/liblangtag-0.5.1-scope-declaration.patch \
-   external/liblangtag/liblangtag-0.5.1-redefinition-of-typedef.patch \
-   external/liblangtag/liblangtag-0.5.1-undefined-have-sys-param-h.patch \
-   
external/liblangtag/liblangtag-0.5.1-windows-do-not-prepend-dir-separator.patch 
\
-   external/liblangtag/liblangtag-0.5.1-unistd.patch \
-   
external/liblangtag/liblangtag-0.5.1-include-last-record-in-language-subtag-registry.patch
 \
-   external/liblangtag/liblangtag-leak.patch.0 \
-))
+# Currently no patches applied, if there were it would be:
+#$(eval $(call gb_UnpackedTarball_add_patches,langtag,\
+#  external/liblangtag/your-modification.patch \
+#))
 
 ifeq ($(OS),WNT)
 ifeq ($(COM),GCC)
diff --git 
a/external/liblangtag/liblangtag-0.5.1-include-last-record-in-language-subtag-

[Libreoffice-commits] online.git: 8 commits - loleaflet/debug loleaflet/dist loleaflet/README loleaflet/src loolwsd/LOOLSession.cpp loolwsd/protocol.txt

2015-07-16 Thread Mihai Varga
 loleaflet/README  |   60 
 loleaflet/debug/document/document_simple_example.html |8 
 loleaflet/dist/dialog/vex-theme-plain.css |  183 +
 loleaflet/dist/dialog/vex.combined.min.js |2 
 loleaflet/dist/dialog/vex.css |  248 ++
 loleaflet/dist/images/save.png|binary
 loleaflet/dist/images/saveas.png  |binary
 loleaflet/src/control/Buttons.js  |   13 
 loleaflet/src/control/Control.Buttons.js  |   31 ++
 loleaflet/src/layer/tile/TileLayer.js |4 
 loleaflet/src/map/Map.js  |4 
 loolwsd/LOOLSession.cpp   |   20 +
 loolwsd/protocol.txt  |2 
 13 files changed, 559 insertions(+), 16 deletions(-)

New commits:
commit 606ef3679ec515332fc98da265b8249453078e7b
Author: Mihai Varga 
Date:   Thu Jul 16 12:50:53 2015 +0300

loleaflet: saveas icon and dialog

diff --git a/loleaflet/dist/images/saveas.png b/loleaflet/dist/images/saveas.png
new file mode 100644
index 000..03d78c9
Binary files /dev/null and b/loleaflet/dist/images/saveas.png differ
diff --git a/loleaflet/src/control/Control.Buttons.js 
b/loleaflet/src/control/Control.Buttons.js
index e25532c..432dfa0 100644
--- a/loleaflet/src/control/Control.Buttons.js
+++ b/loleaflet/src/control/Control.Buttons.js
@@ -20,7 +20,8 @@ L.Control.Buttons = L.Control.extend({
'aligncenter':   {title: 'Center horizontaly', uno: 
'AlignCenter', iconName: 'aligncenter.png'},
'alignright':{title: 'Align right',uno: 
'AlignRight',  iconName: 'alignright.png'},
'alignblock':{title: 'Justified',  uno: 
'AlignBlock',  iconName: 'alignblock.png'},
-   'save':  {title: 'Save',   uno: 
'Save',iconName: 'save.png'}
+   'save':  {title: 'Save',   uno: 
'Save',iconName: 'save.png'},
+   'saveas':{title: 'Save As',uno: '', 
   iconName: 'saveas.png'},
};
for (var key in this._buttons) {
var button = this._buttons[key];
@@ -52,7 +53,16 @@ L.Control.Buttons = L.Control.extend({
_onButtonClick: function (e) {
var id = e.target.id;
var button = this._buttons[id];
-   this._map.toggleCommandState(button.uno);
+   if (id === 'saveas') {
+   vex.dialog.open({
+   message: 'Save as:',
+   input: this._getDialogHTML(),
+   callback: L.bind(this._onSaveAs, this)
+   });
+   }
+   else {
+   this._map.toggleCommandState(button.uno);
+   }
},
 
_onStateChange: function (e) {
@@ -69,6 +79,22 @@ L.Control.Buttons = L.Control.extend({
}
}
}
+   },
+
+   _getDialogHTML: function () {
+   return (
+   'URL' +
+   '' +
+   'Format' +
+   '' +
+   'Options' +
+   '');
+   },
+
+   _onSaveAs: function (e) {
+   if (e !== false) {
+   this._map.saveAs(e.url, e.format, e.options);
+   }
}
 });
 
commit 1c16fd89f3021e5e7ad2f8f5861b920325cc890f
Author: Mihai Varga 
Date:   Thu Jul 16 12:50:08 2015 +0300

loleaflet: saveAs API

diff --git a/loleaflet/README b/loleaflet/README
index b6b90b0..6a5729c 100644
--- a/loleaflet/README
+++ b/loleaflet/README
@@ -105,6 +105,10 @@ Statusindicator (when the document is loading):
 + e.value == a value from 0 to 100 indicating the status
   if the statusType is 'setvalue
 
+Save:
+- API:
+map.saveAs(url, [format, options])
+
 Contributing
 
 
diff --git a/loleaflet/src/control/Buttons.js b/loleaflet/src/control/Buttons.js
index 07a37e2..1ce0c98 100644
--- a/loleaflet/src/control/Buttons.js
+++ b/loleaflet/src/control/Buttons.js
@@ -6,5 +6,18 @@ L.Map.include({
if (this._docLayer._permission === 'edit') {
this.socket.send('uno .uno:' + unoState);
}
+   },
+
+   saveAs: function (url, format, options) {
+   if (format === undefined || format === null) {
+   format = '';
+   }
+   if (options === undefined || options === null) {
+   options = '';
+   }
+   this.socket.send('saveas ' +
+   'url=' + url + ' ' +
+ 

Unicode 8.0?

2015-07-16 Thread Viktor Kovács
I would like to ask when will be adopted Old Hungarian fonts. It is defined
in the UNICODE 8.0, central-europe subgroup, and it must be typed right to
left writing.

Thanks!
Kovács Viktor (name written by Hungarian name order)
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: external/liblangtag

2015-07-16 Thread Eike Rathke
 external/liblangtag/liblangtag-0.5.1-redefinition-of-typedef.patch |   31 
--
 1 file changed, 31 deletions(-)

New commits:
commit 43cf7b9abf1262011b22a7b1a355569585f76b16
Author: Eike Rathke 
Date:   Thu Jul 16 11:50:27 2015 +0200

rm unused patch

Change-Id: Ie33bc6a6ef5c1a638a138e4989bd885b6b678ab4

diff --git a/external/liblangtag/liblangtag-0.5.1-redefinition-of-typedef.patch 
b/external/liblangtag/liblangtag-0.5.1-redefinition-of-typedef.patch
deleted file mode 100644
index 1c9ac14..000
--- a/external/liblangtag/liblangtag-0.5.1-redefinition-of-typedef.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-diff -ru langtag.orig/liblangtag/lt-trie.c langtag/liblangtag/lt-trie.c
 UnpackedTarball/langtag.orig/liblangtag/lt-trie.c  2013-04-30 
04:37:30.0 +0200
-+++ UnpackedTarball/langtag/liblangtag/lt-trie.c   2013-04-30 
14:57:50.777932196 +0200
-@@ -33,11 +33,6 @@
-   lt_iter_tmpl_t  parent;
-   lt_trie_node_t *root;
- };
--typedef struct _lt_trie_iter_t {
--  lt_iter_tparent;
--  lt_list_t   *stack;
--  lt_string_t *pos_str;
--} lt_trie_iter_t;
- 
- /*< private >*/
- static lt_trie_node_t *
-diff -ru langtag.orig/liblangtag/lt-trie.h langtag/liblangtag/lt-trie.h
 UnpackedTarball/langtag.orig/liblangtag/lt-trie.h  2013-04-30 
04:44:36.0 +0200
-+++ UnpackedTarball/langtag/liblangtag/lt-trie.h   2013-04-30 
14:57:57.746969291 +0200
-@@ -21,7 +21,11 @@
- LT_BEGIN_DECLS
- 
- typedef struct _lt_trie_t lt_trie_t;
--typedef struct _lt_trie_iter_t  lt_trie_iter_t;
-+typedef struct _lt_trie_iter_t {
-+  lt_iter_tparent;
-+  lt_list_t   *stack;
-+  lt_string_t *pos_str;
-+} lt_trie_iter_t;
- 
- lt_trie_t  *lt_trie_new(void);
- lt_trie_t  *lt_trie_ref(lt_trie_t *trie);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Gerrit Windows build: what configure should I use at home?

2015-07-16 Thread Giuseppe Castagno

Hi all,

I'd like to prepare home a Win7 machine to build LibO with a configure 
script as the one used by gerrit builds.


What will it be the most current configure to use?

Looking at the log available, it seems that a prepared set of shell 
variable is used, what configure generated it?



Thanks

--
Kind Regards,
Giuseppe Castagno aka beppec56
Acca Esse http://www.acca-esse.eu
giuseppe.castagno at acca-esse.eu
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Experimental functions but not the visual math editor?

2015-07-16 Thread Jean-Baptiste Faure
Le 16/07/2015 11:43, Adolfo Jayme Barrientos a écrit :
> What is the exact thing you’re trying to achieve with that?
> 
From my point of view the visual math editor in its current state is not
usable for a daily work, I prefer the good old text editor.
Currently I can't test other experimental features without having the
visual editor.

Best regards.
JBF

-- 
Seuls des formats ouverts peuvent assurer la pérennité de vos documents.
Disclaimer: my Internet Provider being located in France, each of our
exchanges over Internet will be scanned by French spying services.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: Branch 'feature/gsoc15-open-remote-files-dialog' - 26 commits - chart2/source configure.ac cui/source download.lst editeng/source external/liblangtag filter/qa filter/s

2015-07-16 Thread Eike Rathke
 chart2/source/controller/sidebar/ChartElementsPanel.cxx
|   11 
 chart2/source/controller/sidebar/ChartElementsPanel.hxx
|1 
 configure.ac   
|2 
 cui/source/factory/dlgfact.cxx 
|   20 
 cui/source/factory/dlgfact.hxx 
|4 
 download.lst   
|2 
 editeng/source/accessibility/AccessibleParaManager.cxx 
|   10 
 editeng/source/editeng/editdoc.hxx 
|   37 
 editeng/source/editeng/editeng.cxx 
|4 
 editeng/source/editeng/editstt2.hxx
|7 
 editeng/source/editeng/editundo.hxx
|3 
 editeng/source/editeng/edtspell.cxx
|   30 
 editeng/source/editeng/edtspell.hxx
|4 
 editeng/source/editeng/eertfpar.hxx
|8 
 editeng/source/editeng/impedit.hxx 
|   47 
 editeng/source/items/paraitem.cxx  
|   17 
 editeng/source/misc/splwrap.cxx
|   17 
 editeng/source/misc/svxacorr.cxx   
|   40 
 editeng/source/outliner/outleeng.cxx   
|5 
 editeng/source/outliner/outleeng.hxx   
|1 
 editeng/source/outliner/paralist.hxx   
|1 
 external/liblangtag/UnpackedTarball_langtag.mk 
|   20 
 
external/liblangtag/liblangtag-0.5.1-include-last-record-in-language-subtag-registry.patch
 |   49 
 external/liblangtag/liblangtag-0.5.1-msvc-snprintf.patch   
|   25 
 external/liblangtag/liblangtag-0.5.1-msvc-ssize_t.patch
|   12 
 external/liblangtag/liblangtag-0.5.1-msvc-strtoull.patch   
|   15 
 external/liblangtag/liblangtag-0.5.1-msvc-warning.patch
|   21 
 external/liblangtag/liblangtag-0.5.1-redefinition-of-typedef.patch 
|   31 
 external/liblangtag/liblangtag-0.5.1-scope-declaration.patch   
|   13 
 external/liblangtag/liblangtag-0.5.1-undefined-have-sys-param-h.patch  
|   14 
 external/liblangtag/liblangtag-0.5.1-unistd.patch  
|   12 
 external/liblangtag/liblangtag-0.5.1-vsnprintf.patch   
|   18 
 
external/liblangtag/liblangtag-0.5.1-windows-do-not-prepend-dir-separator.patch 
   |   16 
 external/liblangtag/liblangtag-leak.patch.0
|   10 
 filter/qa/cppunit/data/pict/fail/exception-1.pct   
|binary
 filter/source/graphicfilter/ipict/ipict.cxx
|5 
 fpicker/source/office/RemoteFilesDialog.cxx
|   14 
 fpicker/source/office/RemoteFilesDialog.hxx
|   52 
 fpicker/source/office/iodlg.hxx
|   42 
 framework/source/uielement/saveasmenucontroller.cxx
|4 
 include/editeng/AccessibleEditableTextPara.hxx 
|3 
 include/editeng/AccessibleParaManager.hxx  
|2 
 include/editeng/acorrcfg.hxx   
|4 
 include/editeng/borderline.hxx 
|4 
 include/editeng/charsetcoloritem.hxx   
|1 
 include/editeng/cmapitem.hxx   
|2 
 include/editeng/crossedoutitem.hxx 
|2 
 include/editeng/editeng.hxx
|3 
 include/editeng/editstat.hxx   
|4 
 include/editeng/editview.hxx   

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

2015-07-16 Thread Jihui Choi
 hwpfilter/source/drawdef.h |6 
 hwpfilter/source/formula.cxx   |2 
 hwpfilter/source/hbox.cxx  |   34 ++--
 hwpfilter/source/hbox.h|   30 ++--
 hwpfilter/source/hcode.cxx |   66 -
 hwpfilter/source/hinfo.cxx |   56 
 hwpfilter/source/hiodev.h  |4 
 hwpfilter/source/hpara.cxx |4 
 hwpfilter/source/hpara.h   |   14 +-
 hwpfilter/source/hwpeq.cxx |   44 +++---
 hwpfilter/source/hwpfile.cxx   |2 
 hwpfilter/source/hwpread.cxx   |   76 +--
 hwpfilter/source/hwpreader.cxx |  279 -
 13 files changed, 308 insertions(+), 309 deletions(-)

New commits:
commit 188208d93a5d95e1f5eb39294c5e467d6d53edef
Author: Jihui Choi 
Date:   Mon Jun 22 12:56:10 2015 +0200

tdf#91067: Translate Korean comments

Change-Id: Idbee9cb5a1745bb2cc3c4cb1238773da7ff2a0a3
Signed-off-by: Andrea Gelmini 

diff --git a/hwpfilter/source/drawdef.h b/hwpfilter/source/drawdef.h
index b80c18b..c6be198 100644
--- a/hwpfilter/source/drawdef.h
+++ b/hwpfilter/source/drawdef.h
@@ -119,9 +119,9 @@ struct RotationProperty
  */
 struct HWPDOProperty
 {
-int line_pstyle; /* 선 중간 모양 */
-int line_hstyle; /* 끝 화살표 모양 */
-int line_tstyle; /* 시작 모양 */
+int line_pstyle; /* Style of the middle of line */
+int line_hstyle; /* Style of the end of line */
+int line_tstyle; /* Style of the start of line */
 unsigned int line_color;
 hunit line_width;
 unsigned int fill_color;
diff --git a/hwpfilter/source/formula.cxx b/hwpfilter/source/formula.cxx
index bb48aef..6478811 100644
--- a/hwpfilter/source/formula.cxx
+++ b/hwpfilter/source/formula.cxx
@@ -383,7 +383,7 @@ void Formula::makeDecoration(Node *res)
  else
   fprintf(stderr,"\n");
 #else
- /* accent는 언제 true이고, 언제, false인지 모르겠다. */
+ /* FIXME: no idea when 'accent' is true or false. */
  if( isover ){
   padd("accent","CDATA","true");
   rstartEl("math:mover", rList);
diff --git a/hwpfilter/source/hbox.cxx b/hwpfilter/source/hbox.cxx
index 4ef9cbf..c026ca4 100644
--- a/hwpfilter/source/hbox.cxx
+++ b/hwpfilter/source/hbox.cxx
@@ -451,7 +451,7 @@ Footnote::~Footnote()
 // auto number(18)
 // new number(19)
 // show page number (20)
-// 홀수쪽시작/감추기 (21)
+// Start/Hide odd-numbered side (21)
 
 // mail merge(22)
 hchar_string MailMerge::GetString()
@@ -597,9 +597,9 @@ static void getOutlineNumStr(int style, int level, int num, 
hchar * hstr)
 enum
 { OUTLINE_ON, OUTLINE_NUM };
 
-/*  level 은 0부터 시작. 즉 1.1.1. 의 레벨은 2이다.
-number는 값이 그대로 들어가 있다. 즉, 1.2.1에는 1,2,1이 
들어가 있다.
-style 은 1부터 값이 들어가 있다. hbox.h에 정의된 데로..
+/* level starts from zero. ex) '1.1.1.' is the level 2.
+   number has the value. ex) '1.2.1' has '1,2,1'
+   style has the value which starts from 1 according to the definition in 
hbox.h
  */
 hchar_string Outline::GetUnicode() const
 {
@@ -658,17 +658,17 @@ hchar_string Outline::GetUnicode() const
 if( deco[i][0] ){
 buffer[l++] = deco[i][0];
 }
-/*  level 은 0부터 시작. 즉 1.1.1. 의 레벨은 2이다.
-number는 값이 그대로 들어가 있다. 즉, 1.2.1에는 1,2,1이 
들어가 있다.
-style 은 1부터 값이 들어가 있다. hbox.h에 정의된 데로..
+/* level starts from zero. ex) '1.1.1.' is the level 2.
+   number has the value. ex) '1.2.1' has '1,2,1'
+   style has the value which starts from 1 according to the definition in 
hbox.h
  */
 switch( user_shape[i] )
 {
 case 0:
 buffer[l++] = '1' + number[i] - 1;
 break;
-case 1: /* 대문자로마 */
-case 2: /* 소문자로마 */
+case 1: /* Uppercase Roman */
+case 2: /* Lowercase Roman */
 num2roman(number[i], dest);
 if( user_shape[i] == 1 ){
 char *ptr = dest;
@@ -693,22 +693,22 @@ hchar_string Outline::GetUnicode() const
 case 6:
 buffer[l++] = olHanglJaso(number[i] -1, 
OL_HANGL_JASO);
 break;
-case 7: /* 한자 숫자 : 일반 숫자로 표현 */
+case 7: /* Chinese numbers: the number represented by 
the general */
 buffer[l++] = '1' + number[i] -1;
 break;
-case 8: /* 원숫자 */
+case 8: /* Circled numbers */
 buffer[l++] = 0x2e00 + number[i];
 break;
-case 9: /* ì›

[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - configure.ac

2015-07-16 Thread Andrzej Hunt
 configure.ac |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8c0ace56528cfd469d55c17a6e9b32c33e715ec0
Author: Andrzej Hunt 
Date:   Thu Jun 4 14:02:05 2015 +0100

Fix using /opt/lo/bin/nasm on windows/cygwin

Change-Id: Ib3755598bfccffc2efd67816ae5fa5dc8903553e
Reviewed-on: https://gerrit.libreoffice.org/16083
Tested-by: Jenkins 
Reviewed-by: Michael Stahl 
(cherry picked from commit a3afa22ba4069212213009fc7304adc3c339b68b)
Reviewed-on: https://gerrit.libreoffice.org/17124
Reviewed-by: David Ostrovsky 
Tested-by: Katarina Behrens 

diff --git a/configure.ac b/configure.ac
index 90b13c8..cf63d27 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7459,7 +7459,7 @@ else
 if test -z "$NASM" -a "$build_os" = "cygwin"; then
 if test -n "$LODE_HOME" -a -x "$LODE_HOME/opt/bin/nasm"; then
 NASM="$LODE_HOME/opt/bin/nasm"
-elif -x "/opt/lo/bin/nasm"; then
+elif test -x "/opt/lo/bin/nasm"; then
 NASM="/opt/lo/bin/nasm"
 fi
 fi
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: 3 commits - loleaflet/build loleaflet/src

2015-07-16 Thread Mihai Varga
 loleaflet/build/deps.js   |1 
 loleaflet/src/control/Buttons.js  |4 +-
 loleaflet/src/control/Parts.js|   16 +-
 loleaflet/src/control/Search.js   |2 -
 loleaflet/src/core/Log.js |   53 ++
 loleaflet/src/layer/tile/GridLayer.js |   18 +--
 loleaflet/src/layer/tile/TileLayer.js |   29 --
 7 files changed, 94 insertions(+), 29 deletions(-)

New commits:
commit 71ff6dca641072b3f5d05d0d917bc48d402e555d
Author: Mihai Varga 
Date:   Thu Jul 16 14:02:49 2015 +0300

loleaflet: log server - client communication

diff --git a/loleaflet/src/layer/tile/TileLayer.js 
b/loleaflet/src/layer/tile/TileLayer.js
index b52d7df..b5c9e64 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -272,6 +272,11 @@ L.TileLayer = L.GridLayer.extend({
textMsg = String.fromCharCode.apply(null, 
bytes.subarray(0, index));
}
 
+   if (!textMsg.startsWith('tile:')) {
+   // log the tile msg separately as we need the tile 
coordinates
+   L.Log.log(textMsg, L.INCOMING);
+   }
+
if (textMsg.startsWith('cursorvisible:')) {
var command = textMsg.match('cursorvisible: true');
this._isCursorVisible = command ? true : false;
@@ -459,6 +464,7 @@ L.TileLayer = L.GridLayer.extend({
if (this._pendingTilesCount > 0) {
this._pendingTilesCount -= 1;
}
+   L.Log.log(textMsg, L.INCOMING, key);
}
else if (textMsg.startsWith('textselection:')) {
strTwips = textMsg.match(/\d+/g);
@@ -527,6 +533,7 @@ L.TileLayer = L.GridLayer.extend({
},
 
sendMessage: function (msg, coords) {
+   L.Log.log(msg, L.OUTGOING, coords);
this._map.socket.send(msg);
},
 
commit 51592a4c53f462385f418a671900920a1db0a5c7
Author: Mihai Varga 
Date:   Thu Jul 16 13:55:53 2015 +0300

loleaflet: log utility

It's used to log communication between the server and the client
It can print or download a csv formated file

diff --git a/loleaflet/build/deps.js b/loleaflet/build/deps.js
index 7f22db1..c5927ba 100644
--- a/loleaflet/build/deps.js
+++ b/loleaflet/build/deps.js
@@ -1,6 +1,7 @@
 var deps = {
Core: {
src: ['Leaflet.js',
+ 'core/Log.js',
  'core/Util.js',
  'core/Class.js',
  'core/Events.js',
diff --git a/loleaflet/src/core/Log.js b/loleaflet/src/core/Log.js
new file mode 100644
index 000..e2a1355
--- /dev/null
+++ b/loleaflet/src/core/Log.js
@@ -0,0 +1,53 @@
+/*
+ * L.Log contains methods for logging the activity
+ */
+
+L.Log = {
+   log: function (msg, direction, tileCoords) {
+   var time = Date.now();
+   if (!this._logs) {
+   this._logs = [];
+   }
+   msg = msg.replace(/(\r\n|\n|\r)/gm,' ');
+   this._logs.push({msg : msg, direction : direction,
+   coords : tileCoords, time : time});
+   },
+
+   _getEntries: function () {
+   this._logs.sort(function (a, b) {
+   if (a.time < b.time) { return -1; }
+   if (a.time > b.time) { return 1; }
+   return 0;
+   });
+   var data = '';
+   for (var i = 0; i < this._logs.length; i++) {
+   data += this._logs[i].time + '.' + 
this._logs[i].direction + '.' +
+   this._logs[i].msg + '.' + 
this._logs[i].coords;
+   data += '\n';
+   }
+   return data;
+   },
+
+   print: function () {
+   console.log(this._getEntries());
+   },
+
+   save: function () {
+   var blob = new Blob([this._getEntries()], {type: 'text/csv'}),
+   e = document.createEvent('MouseEvents'),
+   a = document.createElement('a');
+
+   a.download = Date.now() + '.csv';
+   a.href = window.URL.createObjectURL(blob);
+   a.dataset.downloadurl =  ['text/csv', a.download, 
a.href].join(':');
+   e.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, 
false, false, false, false, 0, null);
+   a.dispatchEvent(e);
+   },
+
+   clear: function () {
+   this._logs = [];
+   }
+};
+
+L.INCOMING = 'INCOMING';
+L.OUTGOING = 'OUTGOING';
commit d5f9250bd874d050b2e56d029c133ef045df1288
Author: Mihai Varga 
Date:   Thu Jul 16 13:20:11 2015 +0300

loleaflet: sendMessage method to replace map.socket.send

diff --git a/loleaflet/src/control/Buttons.j

[Libreoffice-commits] core.git: Changes to 'feature/sidebar'

2015-07-16 Thread Markus Mohrhard
New branch 'feature/sidebar' available with the following commits:
commit e826eb09eb36164218f889dabbdbad48c55e497b
Author: Markus Mohrhard 
Date:   Thu Jul 16 13:23:09 2015 +0200

make chart elements panel beautiful

Change-Id: I9e76f9b314dce6b4392d43fee4d5e05a450aac84

___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - vcl/unx

2015-07-16 Thread Caolán McNamara
 vcl/unx/gtk/window/gtksalframe.cxx |   14 ++
 1 file changed, 10 insertions(+), 4 deletions(-)

New commits:
commit baea35b431e03819406199ed6001d3cbbe650b9c
Author: Caolán McNamara 
Date:   Mon Jul 13 16:18:41 2015 +0100

Resolves: tdf#92671 union each monitor workarea to find best screen workarea

Change-Id: Ia77063f7008f960373861b8b59710abe9918865c
(cherry picked from commit 74f9d9808fce14f015d56a2aaa4ec5616ed7aa3e)
Reviewed-on: https://gerrit.libreoffice.org/17015
Tested-by: Jenkins 
Reviewed-by: Michael Meeks 
Tested-by: Michael Meeks 

diff --git a/vcl/unx/gtk/window/gtksalframe.cxx 
b/vcl/unx/gtk/window/gtksalframe.cxx
index 3bee994..ce2918f 100644
--- a/vcl/unx/gtk/window/gtksalframe.cxx
+++ b/vcl/unx/gtk/window/gtksalframe.cxx
@@ -2158,10 +2158,16 @@ void GtkSalFrame::GetWorkArea( Rectangle& rRect )
 rRect = GetGtkSalData()->GetGtkDisplay()->getWMAdaptor()->getWorkArea( 0 );
 #else
 GdkScreen  *pScreen = gtk_window_get_screen(GTK_WINDOW(m_pWindow));
-gint nMonitor = gdk_screen_get_monitor_at_window(pScreen, 
widget_get_window(m_pWindow));
-GdkRectangle aRect;
-gdk_screen_get_monitor_workarea(pScreen, nMonitor, &aRect);
-rRect = Rectangle(aRect.x, aRect.y, aRect.width, aRect.height);
+Rectangle aRetRect;
+int max = gdk_screen_get_n_monitors (pScreen);
+for (int i = 0; i < max; ++i)
+{
+GdkRectangle aRect;
+gdk_screen_get_monitor_workarea(pScreen, i, &aRect);
+Rectangle aMonitorRect(aRect.x, aRect.y, aRect.x+aRect.width, 
aRect.y+aRect.height);
+aRetRect.Union(aMonitorRect);
+}
+rRect = aRetRect;
 #endif
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: desktop/source include/tools svl/qa svtools/source tools/source

2015-07-16 Thread Michael Stahl
 desktop/source/deployment/manager/dp_manager.cxx  |5 
 desktop/source/deployment/registry/component/dp_component.cxx |   22 -
 desktop/source/deployment/registry/package/dp_package.cxx |   11 
 include/tools/inetmime.hxx|  163 +-
 svl/qa/unit/test_INetContentType.cxx  |   12 
 svtools/source/svhtml/parhtml.cxx |5 
 tools/source/inet/inetmime.cxx|   29 -
 7 files changed, 119 insertions(+), 128 deletions(-)

New commits:
commit 21834f14c97071c5bcf13ef02bf940dc1922663f
Author: Michael Stahl 
Date:   Wed Jul 15 23:17:20 2015 +0200

tools: replace boost::ptr_vector with std::unordered_map

Change-Id: I530c5f95dda9aa80654e3a2a20a2e236221e7305

diff --git a/desktop/source/deployment/manager/dp_manager.cxx 
b/desktop/source/deployment/manager/dp_manager.cxx
index 3392b54..d67f496 100644
--- a/desktop/source/deployment/manager/dp_manager.cxx
+++ b/desktop/source/deployment/manager/dp_manager.cxx
@@ -971,9 +971,8 @@ Reference 
PackageManagerImpl::getDeployedPackage_(
 INetContentTypeParameterList params;
 if (INetContentTypes::parse( data.mediaType, type, subType, ¶ms ))
 {
-INetContentTypeParameter const * param = params.find(
-OString("platform") );
-if (param != 0 && !platform_fits( param->m_sValue ))
+auto const iter = params.find(OString("platform"));
+if (iter != params.end() && !platform_fits(iter->second.m_sValue))
 throw lang::IllegalArgumentException(
 getResourceString(RID_STR_NO_SUCH_PACKAGE) + id,
 static_cast(this),
diff --git a/desktop/source/deployment/registry/component/dp_component.cxx 
b/desktop/source/deployment/registry/component/dp_component.cxx
index e17961f..9b2a2a7 100644
--- a/desktop/source/deployment/registry/component/dp_component.cxx
+++ b/desktop/source/deployment/registry/component/dp_component.cxx
@@ -670,21 +670,21 @@ Reference BackendImpl::bindPackage_(
 {
 // xxx todo: probe and evaluate component xml description
 
-INetContentTypeParameter const * param = 
params.find(OString("platform"));
-bool bPlatformFits(param == 0);
+auto const iter = params.find(OString("platform"));
+bool bPlatformFits(iter == params.end());
 OUString aPlatform;
 if (!bPlatformFits) // platform is specified, we have to check
 {
-aPlatform = param->m_sValue;
+aPlatform = iter->second.m_sValue;
 bPlatformFits = platform_fits(aPlatform);
 }
 // If the package is being removed, do not care whether
 // platform fits. We won't be using it anyway.
 if (bPlatformFits || bRemoved) {
-param = params.find(OString("type"));
-if (param != 0)
+auto const iterType = params.find(OString("type"));
+if (iterType != params.end())
 {
-OUString const & value = param->m_sValue;
+OUString const & value = iterType->second.m_sValue;
 if (value.equalsIgnoreAsciiCase("native")) {
 if (bPlatformFits)
 return new BackendImpl::ComponentPackageImpl(
@@ -713,8 +713,8 @@ Reference BackendImpl::bindPackage_(
 }
 else if 
(subType.equalsIgnoreAsciiCase("vnd.sun.star.uno-components"))
 {
-INetContentTypeParameter const * param = 
params.find(OString("platform"));
-if (param == 0 || platform_fits( param->m_sValue )) {
+auto const iter = params.find(OString("platform"));
+if (iter == params.end() || 
platform_fits(iter->second.m_sValue)) {
 return new BackendImpl::ComponentsPackageImpl(
 this, url, name, m_xComponentsTypeInfo, bRemoved,
 identifier);
@@ -722,9 +722,9 @@ Reference BackendImpl::bindPackage_(
 }
 else if (subType.equalsIgnoreAsciiCase( 
"vnd.sun.star.uno-typelibrary"))
 {
-INetContentTypeParameter const * param = 
params.find(OString("type"));
-if (param != 0) {
-OUString const & value = param->m_sValue;
+auto const iter = params.find(OString("type"));
+if (iter != params.end()) {
+OUString const & value = iter->second.m_sValue;
 if (value.equalsIgnoreAsciiCase("RDB"))
 {
 return new BackendImpl::TypelibraryPackageImpl(
diff --git a/desktop/source/deployment/registry/packag

[Bug 38837] Reduce power consumption: timers must end eventually

2015-07-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=38837

--- Comment #13 from Commit Notification 
 ---
Ashod Nakashian committed a patch related to this issue.
It has been pushed to "libreoffice-5-0":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=2113ee5491fa823b14b6c25b6d9a4f170452f9d3&h=libreoffice-5-0

tdf#38837 Reduce power consumption by minimizing idle timers

It will be available in 5.0.1.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.

-- 
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 'libreoffice-5-0' - sw/source

2015-07-16 Thread Ashod Nakashian
 sw/source/core/doc/DocumentStateManager.cxx |1 +
 sw/source/uibase/app/docsh.cxx  |2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 2113ee5491fa823b14b6c25b6d9a4f170452f9d3
Author: Ashod Nakashian 
Date:   Sun Jul 5 12:05:26 2015 -0400

tdf#38837 Reduce power consumption by minimizing idle timers

Both the document statistics- and state-manager have their
own modified flags. There is a cyclic dependency between the
the two in that updating the document's statistics also marks
the document as modified. Of course when a document is edited
the statistics modified flag is set to trigger an update.

To avoid a perpetual cycle, the statistics manager resets the
document's modified state to that before setting the new
statistics. However, this doesn't reset the statistics
modified flag, which was set when the document was modified
by setting the new statistics. Hence, the statistics thinks
there are modifications in the document when there isn't.

This patch is to make DocumentStateManager::ResetModified()
symmetrical to DocumentStateManager::SetModified() by
reseting the modified flag of the statistics manager.

The idle CPU drops to nil on unmodified documents after this.
However, for modified documents the statistics is recalculated
perpetually until the document is saved. This will need a
different patch to fix.

Change-Id: Ib5936bc1acbda34fcac6a00ec46eaa31e4363885
Reviewed-on: https://gerrit.libreoffice.org/16774
Tested-by: Jenkins 
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 
(cherry picked from commit b0fde7a912ff3aa370496802f20895b1158b072c)
Signed-off-by: Adolfo Jayme Barrientos 

diff --git a/sw/source/core/doc/DocumentStateManager.cxx 
b/sw/source/core/doc/DocumentStateManager.cxx
index 6015250..ede8ef9 100644
--- a/sw/source/core/doc/DocumentStateManager.cxx
+++ b/sw/source/core/doc/DocumentStateManager.cxx
@@ -65,6 +65,7 @@ void DocumentStateManager::ResetModified()
 //  Bit 1:  -> new state
 sal_IntPtr nCall = mbModified ? 1 : 0;
 mbModified = false;
+m_rDoc.GetDocumentStatisticsManager().GetDocStat().bModified = false;
 m_rDoc.GetIDocumentUndoRedo().SetUndoNoModifiedPosition();
 if( nCall && m_rDoc.GetOle2Link().IsSet() )
 {
diff --git a/sw/source/uibase/app/docsh.cxx b/sw/source/uibase/app/docsh.cxx
index 0b66f31..6655f04 100644
--- a/sw/source/uibase/app/docsh.cxx
+++ b/sw/source/uibase/app/docsh.cxx
@@ -458,7 +458,7 @@ bool SwDocShell::SaveAs( SfxMedium& rMedium )
 
 // Remember and preserve Modified-Flag without calling the Link
 // (for OLE; after Statement from MM)
-bool bIsModified = m_pDoc->getIDocumentState().IsModified();
+const bool bIsModified = m_pDoc->getIDocumentState().IsModified();
 m_pDoc->GetIDocumentUndoRedo().LockUndoNoModifiedPosition();
 Link<> aOldOLELnk( m_pDoc->GetOle2Link() );
 m_pDoc->SetOle2Link( Link<>() );
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Bug 38837] Reduce power consumption: timers must end eventually

2015-07-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=38837

Commit Notification  changed:

   What|Removed |Added

 Whiteboard|EasyHack DifficultyBeginner |EasyHack DifficultyBeginner
   |SkillCpp target:4.1.0   |SkillCpp target:4.1.0
   |target:4.5.0 target:4.4.2   |target:4.5.0 target:4.4.2
   |target:5.1.0|target:5.1.0 target:5.0.1

-- 
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: Gerrit Windows build: what configure should I use at home?

2015-07-16 Thread Ashod Nakashian
You are looking for autogen.sh.

Look at a log on Jenkins (not Gerrit) and find the parameters passed to
autogen.sh. You'd need to customize a couple of them (junit and ant, which
you must download and place somewhere on your system and give the path to
autogen.sh).

For reference, here is mine (it's called from a config.sh a directory above
'libo' which is the root of the code). This will build full debug and will
generate ~27GB:

DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
$DIR/libo/autogen.sh --with-junit=$DIR/junit-4.10.jar
--with-ant-home=$DIR/apache-ant-1.9.4 --with-visual-studio=2013
--with-parallelism=24 --enable-sal-log --enable-dbgutil --enable-debug
--disable-odk --enable-pch --disable-ccache

On Thu, Jul 16, 2015 at 5:55 AM, Giuseppe Castagno <
giuseppe.casta...@acca-esse.eu> wrote:

> Hi all,
>
> I'd like to prepare home a Win7 machine to build LibO with a configure
> script as the one used by gerrit builds.
>
> What will it be the most current configure to use?
>
> Looking at the log available, it seems that a prepared set of shell
> variable is used, what configure generated it?
>
>
> Thanks
>
> --
> Kind Regards,
> Giuseppe Castagno aka beppec56
> Acca Esse http://www.acca-esse.eu
> giuseppe.castagno at acca-esse.eu
> ___
> LibreOffice mailing list
> LibreOffice@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
>
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: 32 commits - basic/source bridges/source comphelper/source connectivity/source cui/source dbaccess/source desktop/source extensions/source forms/source framework/source

2015-07-16 Thread Stephan Bergmann
 basic/source/runtime/methods.cxx |   18 ++--
 bridges/source/jni_uno/jni_java2uno.cxx  |2 -
 bridges/source/jni_uno/jni_uno2java.cxx  |6 ++--
 comphelper/source/misc/anytostring.cxx   |2 -
 connectivity/source/drivers/dbase/DResultSet.cxx |2 -
 connectivity/source/drivers/evoab2/NResultSet.cxx|2 -
 connectivity/source/drivers/file/FResultSet.cxx  |   12 
 cui/source/dialogs/scriptdlg.cxx |6 ++--
 dbaccess/source/filter/xml/xmlDataSource.cxx |   18 ++--
 dbaccess/source/filter/xml/xmlLogin.cxx  |4 +-
 dbaccess/source/ui/misc/DExport.cxx  |2 -
 desktop/source/deployment/misc/dp_descriptioninfoset.cxx |2 -
 extensions/source/update/check/updatecheckconfig.cxx |4 +-
 forms/source/component/FormComponent.cxx |4 +-
 forms/source/richtext/attributedispatcher.cxx|2 -
 forms/source/xforms/namedcollection.hxx  |2 -
 framework/source/helper/ocomponentenumeration.cxx|2 -
 framework/source/services/frame.cxx  |5 ---
 include/tools/inetmime.hxx   |2 -
 jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx |2 -
 jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx  |2 -
 jvmfwk/plugins/sunmajor/pluginlib/util.cxx   |4 +-
 jvmfwk/source/framework.cxx  |4 +-
 mysqlc/source/mysqlc_connection.cxx  |2 -
 mysqlc/source/mysqlc_databasemetadata.cxx|4 +-
 mysqlc/source/mysqlc_resultset.cxx   |   22 +++
 mysqlc/source/mysqlc_resultsetmetadata.cxx   |   14 -
 oox/source/ppt/timenodelistcontext.cxx   |2 -
 registry/source/regkey.cxx   |2 -
 reportdesign/source/core/api/Section.cxx |2 -
 reportdesign/source/ui/report/ReportController.cxx   |2 -
 sal/qa/osl/file/osl_File.cxx |2 -
 scripting/source/provider/MasterScriptProvider.cxx   |4 +-
 scripting/source/vbaevents/eventhelper.cxx   |2 -
 sd/source/core/EffectMigration.cxx   |2 -
 sd/source/core/annotations/AnnotationEnumeration.cxx |2 -
 sd/source/core/stlfamily.cxx |2 -
 sd/source/core/stlsheet.cxx  |4 +-
 sd/source/filter/html/pubdlg.cxx |4 +-
 sd/source/filter/ppt/pptinanimations.cxx |4 +-
 sd/source/ui/animations/CustomAnimationPane.cxx  |2 -
 sd/source/ui/slideshow/slideshowimpl.cxx |2 -
 sd/source/ui/unoidl/unopage.cxx  |2 -
 sfx2/source/doc/plugin.cxx   |2 -
 sfx2/source/doc/sfxbasemodel.cxx |6 ++--
 sfx2/source/view/sfxbasecontroller.cxx   |2 -
 shell/source/sessioninstall/SyncDbusSessionHelper.cxx|2 -
 sot/source/unoolestorage/xolesimplestorage.cxx   |4 +-
 stoc/source/invocation_adapterfactory/iafactory.cxx  |4 +-
 stoc/source/javavm/javavm.cxx|2 -
 svtools/source/uno/treecontrolpeer.cxx   |   12 
 svtools/source/uno/unoiface.cxx  |8 ++---
 svx/source/fmcomp/fmgridif.cxx   |2 -
 svx/source/fmcomp/gridcell.cxx   |2 -
 svx/source/table/cellcursor.cxx  |2 -
 svx/source/table/propertyset.cxx |2 -
 svx/source/table/tabledesign.cxx |4 +-
 svx/source/tbxctrls/tbxdrctl.cxx |2 -
 svx/source/toolbars/extrusionbar.cxx |2 -
 sw/source/ui/vba/vbaselection.cxx|8 ++---
 test/source/sheet/xprintareas.cxx|4 +-
 toolkit/source/awt/vclxmenu.cxx  |4 +-
 toolkit/source/awt/vclxwindows.cxx   |   12 
 toolkit/source/controls/unocontrol.cxx   |2 -
 toolkit/source/controls/unocontrols.cxx  |2 -
 ucb/source/core/ucbcmds.cxx  |2 -
 ucb/source/ucp/webdav-neon/webdavcontent.cxx |2 -
 unoxml/source/rdf/librdf_repository.cxx  |3 --
 vbahelper/source/msforms/vbacheckbox.cxx |2 -
 vbahelper/source/msforms/vbaradiobutton.cxx  |2 -
 xmloff/source/draw/ximppage.cxx  |2 -
 xmloff/source/style/impastpl.cxx |2 -
 72 files changed, 146 insertions(+), 150 deletions(-)

New commits:
commit

Re: About fix for tdf#82744: on gerritt, need help

2015-07-16 Thread Ashod Nakashian
If you are referring to https://gerrit.libreoffice.org/#/c/17080/ it looks
like it's a unittest issue, not build.

This is the relevant part from the log:


paragraph-sdt.docx,911
W:  @×Å£¾šMÐUnknown node under /registry/extlang: deprecated
W:  
ó¶ÊExùŒsumUnknown node under /registry/grandfathered: comments
W:  ˆ¹½¶ˆE€€˜¾øÁ³¶ŠEØ€i-tayUnknown node under
/registry/grandfathered: comments
##Failure Location unknown## : Error
Test name: testEditTime::Import_Export_Import
An uncaught exception of type com.sun.star.task.ErrorCodeIOException


---

If you can build on Windows, you should be able to hook VS debugger.


The build log tells us how to debug unit-tests:


Error: a unit test failed, please do one of:

export CPPUNITTRACE=""[full path to devenv.exe]" /debugexe" # for
interactive debugging in Visual Studio
export CPPUNITTRACE="drmemory -free_max_frames 20"# for
memory checking (install Dr.Memory first, and put it to your PATH)

and retry using: make CppunitTest_sw_ooxmlfieldexport


---


Here is an example:


CPPUNITTRACE="\"C:/Program Files (x86)/Microsoft Visual Studio
12.0/Common7/IDE/devenv.exe\" /debugexe" /opt/lo/bin/make
CppunitTest_sw_ooxmlfieldexport


This will launch VS (if the path is correct) and run the unittest from
it. You should be able to set breakpoints and catch exceptions of your
choice, or all (from the Debug menu > Exceptions).


On Thu, Jul 16, 2015 at 3:13 AM, Giuseppe Castagno <
giuseppe.casta...@acca-esse.eu> wrote:

> Hi all,
>
> I pushed the preliminary version of the fix, I have trouble with the build
> on Windows, I build in Linux only, and being the fault in Windows in an
> entirely different code area, I fail to see where the culprit lies.
>
> I said preliminary because there is still something that's nagging me on a
> couple of occasions:
>
> - when a file is first created and the lock is put on the null resource,
> an operation the RFC4918 allows;
>
> - when you operate on a web site that has has no lock functionality
> available.
>
> The two question are related to each other, both already work, but locking
> at the net log, there seems to be something I need to check more thoroughly.
>
> Thanks
>
> --
> Kind Regards,
> Giuseppe Castagno aka beppec56
> Acca Esse http://www.acca-esse.eu
> giuseppe.castagno at acca-esse.eu
> ___
> LibreOffice mailing list
> LibreOffice@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
>
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: 3 commits - fpicker/source fpicker/uiconfig fpicker/UIConfig_fps.mk officecfg/registry svtools/uiconfig svtools/UIConfig_svt.mk

2015-07-16 Thread Maxim Monastirsky
 fpicker/UIConfig_fps.mk  |1 
 fpicker/source/office/RemoteFilesDialog.cxx  |5 
 fpicker/uiconfig/ui/remotefilesdialog.ui |  241 
++
 officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu|8 
 officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu |8 
 officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu  |8 
 svtools/UIConfig_svt.mk  |1 
 svtools/uiconfig/ui/remotefilesdialog.ui |  241 
--
 8 files changed, 253 insertions(+), 260 deletions(-)

New commits:
commit 383b75f4f516d6a5d256ffc08bc0e7836520447b
Author: Maxim Monastirsky 
Date:   Thu Jul 16 15:00:50 2015 +0300

Hopefully get the right dispose order

warn:legacy.osl:9070:1:vcl/source/window/window.cxx:281:
Window ( 17FileViewContainer()) with live children destroyed:
 11SvtFileView() 8Splitter() 10FolderTree()

Change-Id: I6be256337123fc1c3ff2651bcd9f695c8918bb8e

diff --git a/fpicker/source/office/RemoteFilesDialog.cxx 
b/fpicker/source/office/RemoteFilesDialog.cxx
index 9c37347..716c229 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -36,6 +36,7 @@ class FileViewContainer : public vcl::Window
 virtual void dispose() SAL_OVERRIDE
 {
 m_pFileView.clear();
+m_pTreeView.clear();
 m_pSplitter.clear();
 vcl::Window::dispose();
 }
@@ -248,10 +249,10 @@ void RemoteFilesDialog::dispose()
 
 batch->commit();
 
-m_pContainer.disposeAndClear(); // container must be first!
 m_pTreeView.disposeAndClear();
 m_pFileView.disposeAndClear();
 m_pSplitter.disposeAndClear();
+m_pContainer.disposeAndClear();
 m_pPath.disposeAndClear();
 
 m_pOk_btn.clear();
commit 85a1a264621a21590e328df735a0b03195b852fc
Author: Maxim Monastirsky 
Date:   Thu Jul 16 13:39:26 2015 +0300

Move OpenRemote to GenericCommands

Change-Id: I43599a484da8983a67d03fca568aa628e7475449

diff --git a/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu 
b/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
index 3221162..66566f1 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
@@ -1829,14 +1829,6 @@
   1
 
   
-  
-
-  ~Open Remote File...
-
-
-  1
-
-  
   
 
   Formula to Value
diff --git 
a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu 
b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
index 1f33ada..a8d5d1f 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
@@ -1964,6 +1964,14 @@
   1
 
   
+  
+
+  ~Open Remote File...
+
+
+  1
+
+  
   
 
   Circle Segment
diff --git 
a/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu 
b/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
index c8546eb..f9a866e 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
@@ -2317,14 +2317,6 @@
   1
 
   
-  
-
-  ~Open Remote File...
-
-
-  1
-
-  
 
 
   
commit eeed180959dc45b5be7facd8bdca5597f6c745b7
Author: Maxim Monastirsky 
Date:   Thu Jul 16 13:32:20 2015 +0300

Move remotefilesdialog.ui to where it belongs

Change-Id: I9afa6c8f7c9de8ed133f714a4726d3f2d01be1db

diff --git a/fpicker/UIConfig_fps.mk b/fpicker/UIConfig_fps.mk
index c558258..ee8fea5 100644
--- a/fpicker/UIConfig_fps.mk
+++ b/fpicker/UIConfig_fps.mk
@@ -12,6 +12,7 @@ $(eval $(call gb_UIConfig_UIConfig,fps))
 $(eval $(call gb_UIConfig_add_uifiles,fps,\
fpicker/uiconfig/ui/explorerfiledialog \
fpicker/uiconfig/ui/foldernamedialog \
+   fpicker/uiconfig/ui/remotefilesdialog \
 ))
 
 # vim: set noet sw=4 ts=4:
diff --git a/fpicker/source/office/RemoteFilesDialog.cxx 
b/fpicker/source/office/RemoteFilesDialog.cxx
index d59c9bd..9c37347 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -127,7 +127,7 @@ class FileViewContainer : public vcl::Window
 };
 
 RemoteFilesDialog::RemoteFilesDialog( vcl::Window* pParent, WinBits nBits )
-: SvtFileDialog_Base( pParent, "RemoteFilesDialog", 
"svt/ui/remotefilesdialog.ui" )
+: SvtFileDialog_Base( pParent, "RemoteFilesDialog", 
"fps/ui/remotefilesdialog.ui" )
 , m_context( comphelper::getProcessComponentContex

Scripting guide for javascript

2015-07-16 Thread Hristo Stoyanov
It's quite hard to find any scripting guides or resources whatsoever. Can
anyone link me to some? That and the api reference as well.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Approximating a missing platform with gerrit

2015-07-16 Thread Ashod Nakashian
One way to do this is to make gerrit build broken platforms until all pass,
then, when all pass but not the same commit hash, it rebuilds the ones
behind. So in the end they would all have been built on the latest (in case
something broke in the interim).

In this "build failed platforms only" mode, `make -k` could be utilized.

The above should solve all the issues you raised and doesn't require manual
intervention (which is error prone and potentially tedious).
Now for volunteers who know their way around gerrit/jenkins.

On Thu, Jul 16, 2015 at 3:26 AM, Stephan Bergmann 
wrote:

> Our gerrit/jenkins setup is fine in detecting change requests that would
> break the build.  But when you try to (mis-)use it to modify a change
> request until it passes on all platforms (because you don't have direct
> access to one of the platforms, say), the situation is not that ideal. As I
> recently experienced when I tried to get <
> https://gerrit.libreoffice.org/#/c/16880/> "Make content of OSL_ASSERT,
> DBG_ASSERT, etc. visiblie in non-debug builds" to build on Windows---and
> ultimately resorted to a local Windows build anyway, to speed things up.
>
> I do understand that this may be issues in the design of the setup that
> are hard to overcome, but wanted to dump this food for thought anyway:
>
> * Once two of the three platforms are known to compile a give change fine,
> it would be nice if one could requests builds of new versions of the change
> for only one specific platform (esp. when then newly made modifications are
> in platform-specific code, so should not affect the already-good platforms
> anyway).  Could save time and reduce (real-world) waste.
>
> * Sometimes, a build fails for spurious reasons midway through, and you
> need to start another build.  But the only way to re-trigger a build is to
> rebase the change.  (The downsides are: disrupts the history of the
> change's revisions; the rebased-upon master revision itself may be broken;
> and there just might not be a new master revision to rebase against yet at
> all)  It would be nice if one could force rebuilds of already built change
> request vesions.  (In my example, this happend at patch sets 6 -> 7.)
>
> * In cases like in my example, where the change breaks platform-specific
> code in various places in the code base, it can be tedious and wasteful to
> find all those places incrementally, one place per new build.  It would be
> nice if one could trigger builds that employ "make -k".
> ___
> LibreOffice mailing list
> LibreOffice@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
>
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: chart2/source include/svx sc/source sd/source svx/inc svx/source sw/inc sw/source

2015-07-16 Thread Noel Grandin
 chart2/source/controller/accessibility/AccessibleViewForwarder.cxx |   27 -
 chart2/source/controller/accessibility/AccessibleViewForwarder.hxx |3 
 include/svx/IAccessibleViewForwarder.hxx   |   30 -
 include/svx/ShapeTypeHandler.hxx   |   14 
 include/svx/charmap.hxx|4 
 include/svx/chrtitem.hxx   |7 
 include/svx/colrctrl.hxx   |3 
 include/svx/ctredlin.hxx   |   33 -
 include/svx/dlgctl3d.hxx   |3 
 include/svx/dlgctrl.hxx|4 
 include/svx/drawitem.hxx   |9 
 include/svx/fmtools.hxx|   14 
 include/svx/fontworkgallery.hxx|1 
 include/svx/frmdirlbox.hxx |2 
 include/svx/frmsel.hxx |3 
 include/svx/graphctl.hxx   |9 
 include/svx/gridctrl.hxx   |6 
 include/svx/hdft.hxx   |1 
 include/svx/imapdlg.hxx|1 
 include/svx/itemwin.hxx|3 
 include/svx/nbdtmg.hxx |1 
 include/svx/numfmtsh.hxx   |2 
 include/svx/numvset.hxx|6 
 include/svx/ofaitem.hxx|1 
 include/svx/orienthelper.hxx   |2 
 include/svx/pagectrl.hxx   |   22 
 include/svx/paraprev.hxx   |   42 -
 include/svx/relfld.hxx |1 
 include/svx/ruler.hxx  |   20 
 include/svx/sdr/overlay/overlayselection.hxx   |1 
 include/svx/sdr/table/tablecontroller.hxx  |3 
 include/svx/srchdlg.hxx|   17 
 include/svx/svdoole2.hxx   |1 
 include/svx/svdotable.hxx  |6 
 include/svx/svdouno.hxx|1 
 include/svx/tbxcolor.hxx   |4 
 include/svx/txencbox.hxx   |5 
 include/svx/unomaster.hxx  |2 
 include/svx/unoshape.hxx   |1 
 include/svx/xbitmap.hxx|2 
 sc/source/ui/Accessibility/AccessibleDocument.cxx  |   32 -
 sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx   |   32 -
 sc/source/ui/inc/AccessibleDocument.hxx|   31 -
 sd/source/ui/accessibility/AccessibleViewForwarder.cxx |   35 -
 sd/source/ui/inc/AccessibleViewForwarder.hxx   |   31 -
 sd/source/ui/unoidl/unoobj.cxx |8 
 sd/source/ui/unoidl/unoobj.hxx |2 
 svx/inc/sdr/primitive2d/sdrcaptionprimitive2d.hxx  |1 
 svx/inc/sdr/primitive2d/sdrellipseprimitive2d.hxx  |6 
 svx/inc/sdr/primitive2d/sdrrectangleprimitive2d.hxx|1 
 svx/inc/svdibrow.hxx   |5 
 svx/source/accessibility/GraphCtlAccessibleContext.cxx |   25 -
 svx/source/dialog/contimp.hxx  |3 
 svx/source/dialog/contwnd.hxx  |4 
 svx/source/dialog/imapwnd.hxx  |7 
 svx/source/dialog/svxruler.cxx |   17 
 svx/source/form/fmpgeimp.cxx   |1 
 svx/source/form/sdbdatacolumn.cxx  |  224 
--
 svx/source/inc/GraphCtlAccessibleContext.hxx   |3 
 svx/source/inc/datanavi.hxx|8 
 svx/source/inc/filtnav.hxx |3 
 svx/source/inc/fmcontrolbordermanager.hxx  |7 
 svx/source/inc/fm

[Libreoffice-commits] core.git: cui/source include/svx sc/inc sc/source sd/source svx/inc svx/source sw/inc sw/source

2015-07-16 Thread Noel Grandin
 cui/source/factory/dlgfact.cxx   |  139 ---
 cui/source/factory/dlgfact.hxx   |   28 --
 include/svx/EnhancedCustomShape2d.hxx|1 
 include/svx/camera3d.hxx |3 
 include/svx/cube3d.hxx   |2 
 include/svx/deflt3d.hxx  |   17 -
 include/svx/e3ditem.hxx  |4 
 include/svx/fmmodel.hxx  |1 
 include/svx/fmview.hxx   |1 
 include/svx/galctrl.hxx  |2 
 include/svx/gallery1.hxx |3 
 include/svx/galleryitem.hxx  |2 
 include/svx/galtheme.hxx |1 
 include/svx/ipolypolygoneditorcontroller.hxx |1 
 include/svx/langbox.hxx  |3 
 include/svx/obj3d.hxx|   57 
 include/svx/pageitem.hxx |1 
 include/svx/scene3d.hxx  |   70 -
 include/svx/sdasaitm.hxx |6 
 include/svx/sdr/contact/objectcontact.hxx|3 
 include/svx/sdr/contact/viewcontact.hxx  |9 
 include/svx/sdr/contact/viewobjectcontact.hxx|3 
 include/svx/sdr/overlay/overlaymanager.hxx   |3 
 include/svx/sdr/overlay/overlaypolypolygon.hxx   |1 
 include/svx/sdr/overlay/overlayprimitive2dsequenceobject.hxx |5 
 include/svx/sdrpaintwindow.hxx   |1 
 include/svx/svdcrtv.hxx  |5 
 include/svx/svddrag.hxx  |4 
 include/svx/svddrgmt.hxx |1 
 include/svx/svddrgv.hxx  |   16 -
 include/svx/svdedtv.hxx  |9 
 include/svx/svdedxv.hxx  |3 
 include/svx/svdetc.hxx   |2 
 include/svx/svdglev.hxx  |   11 
 include/svx/svdglue.hxx  |1 
 include/svx/svdhdl.hxx   |2 
 include/svx/svdhlpln.hxx |5 
 include/svx/svdlayer.hxx |   55 +---
 include/svx/svdmark.hxx  |   18 -
 include/svx/svdmodel.hxx |   66 -
 include/svx/svdmrkv.hxx  |   16 -
 include/svx/svdobj.hxx   |   11 
 include/svx/svdoedge.hxx |2 
 include/svx/svdogrp.hxx  |3 
 include/svx/svdopath.hxx |1 
 include/svx/svdotext.hxx |1 
 include/svx/svdpage.hxx  |   36 --
 include/svx/svdpagv.hxx  |2 
 include/svx/svdpntv.hxx  |   17 -
 include/svx/svdpoev.hxx  |1 
 include/svx/svdsnpv.hxx  |   16 -
 include/svx/svdtrans.hxx |4 
 include/svx/svdundo.hxx  |9 
 include/svx/svdview.hxx  |5 
 include/svx/svdxcgv.hxx  |1 
 include/svx/svxdlg.hxx   |   40 ---
 include/svx/view3d.hxx   |  120 -
 include/svx/viewpt3d.hxx |7 
 include/svx/xit.hxx  |1 
 include/svx/xpoly.hxx|1 
 include/svx/xtable.hxx   |1 
 sc/inc/drwlayer.hxx  |3 
 sc/source/core/data/drwlayer.cxx |   16 -
 sd/source/ui/animations/motionpathtag.cxx|5 
 sd/source/ui/animations/motionpathtag.hxx|1 
 svx/inc/dragmt3d.hxx |2 
 svx/inc/galbrws2.hxx |4 
 svx/inc/galobj.hxx   |1 
 svx/inc/sdr/contact/objectcontactofpageview.hxx  |3 
 svx/inc/sdr/contact/viewcontactofsdrpage.hxx |3 
 svx/inc/sdr/overlay/overlaymanagerbuffered.hxx

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

2015-07-16 Thread Phillip Sz
 sw/source/filter/xml/xmlexp.cxx  |2 +-
 sw/source/filter/xml/xmlfmte.cxx |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ea6261a9db25e8bf68ac5729ff04807f85536dca
Author: Phillip Sz 
Date:   Wed Jul 15 15:27:49 2015 +0200

tdf#39468 Translate German Comments - sw/source/filter/xml/

Change-Id: Ie637ef4258caf2519a77d596b76cc52570a182e8
Reviewed-on: https://gerrit.libreoffice.org/17077
Reviewed-by: Samuel Mehrbrodt 
Tested-by: Samuel Mehrbrodt 

diff --git a/sw/source/filter/xml/xmlexp.cxx b/sw/source/filter/xml/xmlexp.cxx
index f167e98..43125f9 100644
--- a/sw/source/filter/xml/xmlexp.cxx
+++ b/sw/source/filter/xml/xmlexp.cxx
@@ -233,7 +233,7 @@ sal_uInt32 SwXMLExport::exportDoc( enum XMLTokenEnum eClass 
)
 
 if( getExportFlags() & 
(SvXMLExportFlags::MASTERSTYLES|SvXMLExportFlags::CONTENT))
 {
-//Auf die Korrektheit der OrdNums sind wir schon angewiesen.
+//We depend on the correctness of OrdNums.
 SwDrawModel* pModel = 
pDoc->getIDocumentDrawModelAccess().GetDrawModel();
 if( pModel )
 pModel->GetPage( 0 )->RecalcObjOrdNums();
diff --git a/sw/source/filter/xml/xmlfmte.cxx b/sw/source/filter/xml/xmlfmte.cxx
index e9f72cf..e036570 100644
--- a/sw/source/filter/xml/xmlfmte.cxx
+++ b/sw/source/filter/xml/xmlfmte.cxx
@@ -69,7 +69,7 @@ void SwXMLExport::ExportFormat( const SwFormat& rFormat, enum 
XMLTokenEnum eFami
 #if OSL_DEBUG_LEVEL > 0
 // style:parent-style-name="..." (if its not the default only)
 const SwFormat* pParent = rFormat.DerivedFrom();
-// Parent-Namen nur uebernehmen, wenn kein Default
+// Only adopt parent name, if it's not the default
 OSL_ENSURE( !pParent || pParent->IsDefault(), "unexpected parent" );
 
 OSL_ENSURE( USHRT_MAX == rFormat.GetPoolFormatId(), "pool ids 
arent'supported" );
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Bug 39468] translate German comments, removing redundant ones

2015-07-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=39468

--- Comment #182 from Commit Notification 
 ---
Phillip Sz committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=ea6261a9db25e8bf68ac5729ff04807f85536dca

tdf#39468 Translate German Comments - sw/source/filter/xml/

It will be available in 5.1.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.

-- 
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] online.git: loleaflet/src

2015-07-16 Thread Mihai Varga
 loleaflet/src/layer/tile/TileLayer.js |  132 -
 loleaflet/src/map/handler/Map.Keyboard.js |  226 --
 2 files changed, 122 insertions(+), 236 deletions(-)

New commits:
commit 11063ea843869226fb94ae739cd098edc7df2061
Author: Mihai Varga 
Date:   Thu Jul 16 15:23:42 2015 +0300

loleaflet: moved keyboard handler from TileLayer.js -> Map.Keyboard.js

diff --git a/loleaflet/src/layer/tile/TileLayer.js 
b/loleaflet/src/layer/tile/TileLayer.js
index b5c9e64..e7af468 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -27,91 +27,6 @@ L.TileLayer = L.GridLayer.extend({
crossOrigin: false
},
 
-   keymap: {
-   8   : 1283, // backspace: BACKSPACE
-   9   : 1282, // tab  : TAB
-   13  : 1280, // enter: RETURN
-   16  : null, // shift: UNKOWN
-   17  : null, // ctrl : UNKOWN
-   18  : null, // alt  : UNKOWN
-   19  : null, // pause/break  : UNKOWN
-   20  : null, // caps lock: UNKOWN
-   27  : 1281, // escape   : ESCAPE
-   32  : 1284, // space: SPACE
-   33  : 1030, // page up  : PAGEUP
-   34  : 1031, // page down: PAGEDOWN
-   35  : 1029, // end  : END
-   36  : 1028, // home : HOME
-   37  : 1026, // left arrow   : LEFT
-   38  : 1025, // up arrow : UP
-   39  : 1027, // right arrow  : RIGHT
-   40  : 1024, // down arrow   : DOWN
-   45  : 1285, // insert   : INSERT
-   46  : 1286, // delete   : DELETE
-   91  : null, // left window key  : UNKOWN
-   92  : null, // right window key : UNKOWN
-   93  : null, // select key   : UNKOWN
-   96  : 256,  // numpad 0 : NUM0
-   97  : 257,  // numpad 1 : NUM1
-   98  : 258,  // numpad 2 : NUM2
-   99  : 259,  // numpad 3 : NUM3
-   100 : 260,  // numpad 4 : NUM4
-   101 : 261,  // numpad 5 : NUM5
-   102 : 262,  // numpad 6 : NUM6
-   103 : 263,  // numpad 7 : NUM7
-   104 : 264,  // numpad 8 : NUM8
-   105 : 265,  // numpad 9 : NUM9
-   106 : 1289, // multiply : MULTIPLY
-   107 : 1287, // add  : ADD
-   109 : 1288, // subtract : SUBTRACT
-   110 : 1309, // decimal point: DECIMAL
-   111 : 1290, // divide   : DIVIDE
-   112 : 768,  // f1   : F1
-   113 : 769,  // f2   : F2
-   114 : 770,  // f3   : F3
-   115 : 771,  // f4   : F4
-   116 : 772,  // f5   : F5
-   117 : 773,  // f6   : F6
-   118 : 774,  // f7   : F7
-   119 : 775,  // f8   : F8
-   120 : 776,  // f9   : F9
-   121 : 777,  // f10  : F10
-   122 : 778,  // f11  : F11
-   144 : 1313, // num lock : NUMLOCK
-   145 : 1314, // scroll lock  : SCROLLLOCK
-   186 : 1317, // semi-colon   : SEMICOLON
-   187 : 1295, // equal sign   : EQUAL
-   188 : 1292, // comma: COMMA
-   189 : 5,// dash : DASH
-   190 : null, // period   : UNKOWN
-   191 : null, // forward slash: UNKOWN
-   192 : null, // grave accent : UNKOWN
-   219 : null, // open bracket : UNKOWN
-   220 : null, // back slash   : UNKOWN
-   221 : null, // close bracket: UNKOWN
-   222 : null  // single quote : UNKOWN
-   },
-
-   handleOnKeyDown: {
-   // these keys need to be handled on keydown in order for them
-   // to work on chrome
-   8   : true, // backspace
-   9   : true, // tab
-   19  : true, // pause/break
-   20  : true, // caps lock
-   27  : true, // escape
-   33  : true, // page up
-   34  : true, // page down
-   35  : true, // end
-   36  : true, // home
-   37  : true, // left arrow
-   38  : true, // up arrow
-   39  : true, // right arrow
-   40  : true, // down arrow
-   45  : true, // insert
-   46  : true // delete
-   },
-
initialize: function (url, options)

Re: About fix for tdf#82744: on gerritt, need help

2015-07-16 Thread Michael Stahl
On 16.07.2015 09:13, Giuseppe Castagno wrote:
> Hi all,
> 
> I pushed the preliminary version of the fix, I have trouble with the 
> build on Windows, I build in Linux only, and being the fault in Windows 
> in an entirely different code area, I fail to see where the culprit lies.

take a good look at where the failure is, if the test doesn't use the
component you changed at all then it's just that you were unlucky and
hit a pre-existent, potentially platform dependent, potentially
intermittent, bug in the master that your patch is based on.

you can try to build again by clicking the "rebase" button in gerrit.


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


Re: Scripting guide for javascript

2015-07-16 Thread Michael Stahl
On 16.07.2015 14:14, Hristo Stoyanov wrote:
> It's quite hard to find any scripting guides or resources whatsoever.
> Can anyone link me to some? That and the api reference as well.

API reference:

http://api.libreoffice.org/docs/idl/ref/index.html

Development Guide:

https://wiki.openoffice.org/wiki/Documentation/DevGuide

probably there are no samples for JavaScript so you have to translate
the syntax while reading :)
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Bug 38837] Reduce power consumption: timers must end eventually

2015-07-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=38837

tommy27  changed:

   What|Removed |Added

 CC||ba...@quipo.it

--- Comment #14 from tommy27  ---
@Ashod
thanks for pushing it to 5.0.1 

I think this deserves to be listed in the 5.0 release notes if you will be able
to push it to 5.0.0 as well (another RC is scheduled before final release in
august)

https://wiki.documentfoundation.org/ReleaseNotes/5.0

-- 
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


[Bug 38837] Reduce power consumption: timers must end eventually

2015-07-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=38837

--- Comment #15 from tommy27  ---
what about the status of the issue? is the work done (so FIXED) or it has do be
tweaked again to solve residual issues (leaving it as NEW)?

-- 
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


Bugzilla: Temporarily reverting patch to Importance fields

2015-07-16 Thread Robinson Tryon
Hi all,

As we've run into some unintended side effects from our latest local
changes to Bugzilla, I've reverted our field-restriction patch for the
time being.

This means that everyone will once again be able to make changes to
the Severity and Priority fields, so please do keep a watchful eye out
for miscategorized bugs.

The upgrade to Bugzilla v4.4.9 appears to be fine, so I'm leaving
those patches in place.

Thanks,
--R

-- 
Robinson Tryon
QA Engineer - The Document Foundation
LibreOffice Community Outreach Herald
qu...@libreoffice.org
802-379-9482 | IRC: colonelqubit on Freenode
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: bugzilla: no ASSIGNED status anymore?

2015-07-16 Thread Robinson Tryon
On Wed, Jul 15, 2015 at 3:30 AM, David Tardon  wrote:>
> ...
> There is another gotcha related to this that I found a few days ago:

I've temporarily reverted the field-restricting patches until we have
time to dig deeper into the cause of these unintended side effects.
Please let me know if you see any further issues with Bugzilla,
field-weirdness, etc.

Thanks,
--R


-- 
Robinson Tryon
QA Engineer - The Document Foundation
LibreOffice Community Outreach Herald
qu...@libreoffice.org
802-379-9482 | IRC: colonelqubit on Freenode
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: include/unotools unotools/source

2015-07-16 Thread Caolán McNamara
 include/unotools/tempfile.hxx  |   15 ---
 unotools/source/ucbhelper/tempfile.cxx |   20 +++-
 2 files changed, 11 insertions(+), 24 deletions(-)

New commits:
commit 59bdafe4c8faecfadde11ecdd5904e655918160a
Author: Caolán McNamara 
Date:   Thu Jul 16 09:09:08 2015 +0100

why bring ucb into the tempfile story when its always a file://

Change-Id: I48d51cd24831072af647dd0172a2fd2e4a9ed2a5

diff --git a/include/unotools/tempfile.hxx b/include/unotools/tempfile.hxx
index 51d901a..7876c82 100644
--- a/include/unotools/tempfile.hxx
+++ b/include/unotools/tempfile.hxx
@@ -45,7 +45,6 @@ namespace utl
 class UNOTOOLS_DLLPUBLIC TempFile
 {
 OUStringaName;
-OUStringaURL;
 SvStream*   pStream;
 boolbIsDirectory;
 boolbKillingFileEnabled;
@@ -82,20 +81,14 @@ public:
 boolIsValid() const;
 
 /**
-Returns the "UCB compatible" URL of the tempfile object.
-If you want to have the "physical" file name, use the 
GetFileName() method of this object, because these
-method uses the UCB for the conversion, but never use any 
external conversion functions for URLs into
-"physical" names.
-If no UCP is available for the local file system, an empty 
URL is returned. In this case you can't access
-the file as a UCB content !
+Returns the URL of the tempfile object.
+If you want to have the system path file name, use the 
GetFileName() method of this object
 */
 OUStringGetURL();
 
 /**
-Returns the "physical" name of the tempfile in host 
notation ( should only be used for 3rd party code
-with file name interfaces ).
-If you want to have the URL, use the GetURL() method of 
this object, but never use any external
-conversion functions for "physical" names into URLs.
+Returns the system path name of the tempfile in host 
notation
+If you want to have the URL, use the GetURL() method of 
this object.
 */
 OUStringGetFileName() const;
 
diff --git a/unotools/source/ucbhelper/tempfile.cxx 
b/unotools/source/ucbhelper/tempfile.cxx
index acd15e5..4f6628d 100644
--- a/unotools/source/ucbhelper/tempfile.cxx
+++ b/unotools/source/ucbhelper/tempfile.cxx
@@ -362,30 +362,24 @@ bool TempFile::IsValid() const
 OUString TempFile::GetFileName() const
 {
 OUString aTmp;
-FileBase::getSystemPathFromFileURL( aName, aTmp );
+FileBase::getSystemPathFromFileURL(aName, aTmp);
 return aTmp;
 }
 
 OUString TempFile::GetURL()
 {
-if ( aURL.isEmpty() )
-{
-OUString const name(GetFileName());
-LocalFileHelper::ConvertPhysicalNameToURL(name, aURL);
-assert((name.isEmpty() || !aURL.isEmpty()) && "TempFile::GetURL 
failed: unit test is leaking temp files, add the ucpfile1 component!");
-}
-
-return aURL;
+assert(!aName.isEmpty() && "TempFile::GetURL failed: unit test is leaking 
temp files, add the ucpfile1 component!");
+return aName;
 }
 
 SvStream* TempFile::GetStream( StreamMode eMode )
 {
-if ( !pStream )
+if (!pStream)
 {
-if ( !GetURL().isEmpty() )
-pStream = UcbStreamHelper::CreateStream( aURL, eMode, true /* 
bFileExists */ );
+if (!aName.isEmpty())
+pStream = new SvFileStream(aName, eMode);
 else
-pStream = new SvMemoryStream( NULL, 0, eMode );
+pStream = new SvMemoryStream(NULL, 0, eMode);
 }
 
 return pStream;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: 2 commits - sfx2/source vcl/headless

2015-07-16 Thread Caolán McNamara
 sfx2/source/doc/guisaveas.cxx |6 +++---
 vcl/headless/svpgdi.cxx   |4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit d1419cf8ff4e9f502443012a4e8c31fa25532032
Author: Caolán McNamara 
Date:   Thu Jul 16 12:22:24 2015 +0100

need cairo >= 1.10.0 for these features

Change-Id: I8e1e45caadc6cc537f27a194851dd00b1f1d0e89

diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index 66d398a..3131410 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -107,7 +107,7 @@ namespace
 if (rBuffer->getScanlineFormat() != 
basebmp::Format::ThirtyTwoBitTcMaskBGRX)
 return false;
 
-#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 6, 0)
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 10, 0)
 basegfx::B2IVector size = rBuffer->getSize();
 sal_Int32 nStride = rBuffer->getScanlineStride();
 return (cairo_format_stride_for_width(CAIRO_FORMAT_RGB24, size.getX()) 
== nStride);
@@ -141,7 +141,7 @@ bool SvpSalGraphics::drawAlphaRect(long nX, long nY, long 
nWidth, long nHeight,
 bool bRet = false;
 (void)nX; (void)nY; (void)nWidth; (void)nHeight; (void)nTransparency;
 #if ENABLE_CAIRO_CANVAS
-#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 6, 0)
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 10, 0)
 if (m_bUseLineColor || !m_bUseFillColor)
 return bRet;
 
commit fa709289806801b04f34fb780b655e29fe193959
Author: Caolán McNamara 
Date:   Thu Jul 16 10:43:11 2015 +0100

this is assigned back to a sal_Int8 anyway

Change-Id: I3b1a4b30da3c538e347758e01dbe2f1cecc4a0e7

diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx
index 3d98457..306202f 100644
--- a/sfx2/source/doc/guisaveas.cxx
+++ b/sfx2/source/doc/guisaveas.cxx
@@ -147,9 +147,9 @@ static sal_uInt16 getSlotIDFromMode( sal_Int8 nStoreMode )
 }
 
 
-static sal_uInt8 getStoreModeFromSlotName( const OUString& aSlotName )
+static sal_Int8 getStoreModeFromSlotName( const OUString& aSlotName )
 {
-sal_uInt8 nResult = 0;
+sal_Int8 nResult = 0;
 if ( aSlotName == "ExportTo" )
 nResult = EXPORT_REQUESTED;
 else if ( aSlotName == "ExportToPDF" )
@@ -161,7 +161,7 @@ static sal_uInt8 getStoreModeFromSlotName( const OUString& 
aSlotName )
 else if ( aSlotName == "SaveAs" )
 nResult = SAVEAS_REQUESTED;
 else if ( aSlotName == "SaveAsRemote" )
-nResult = static_cast(SAVEASREMOTE_REQUESTED);
+nResult = SAVEASREMOTE_REQUESTED;
 else
 throw task::ErrorCodeIOException(
 ("getStoreModeFromSlotName(\"" + aSlotName
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - vcl/headless

2015-07-16 Thread Caolán McNamara
 vcl/headless/svpgdi.cxx |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 31b9e0386dfc17d659fc19f7b94fd53fcdae1ab5
Author: Caolán McNamara 
Date:   Thu Jul 16 12:22:24 2015 +0100

need cairo >= 1.10.0 for these features

Change-Id: I8e1e45caadc6cc537f27a194851dd00b1f1d0e89
(cherry picked from commit d1419cf8ff4e9f502443012a4e8c31fa25532032)

diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index be86a63..ed2fe18 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -108,7 +108,7 @@ namespace
 if (rBuffer->getScanlineFormat() != 
basebmp::FORMAT_THIRTYTWO_BIT_TC_MASK_BGRX)
 return false;
 
-#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 6, 0)
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 10, 0)
 basegfx::B2IVector size = rBuffer->getSize();
 sal_Int32 nStride = rBuffer->getScanlineStride();
 return (cairo_format_stride_for_width(CAIRO_FORMAT_RGB24, size.getX()) 
== nStride);
@@ -142,7 +142,7 @@ bool SvpSalGraphics::drawAlphaRect(long nX, long nY, long 
nWidth, long nHeight,
 bool bRet = false;
 (void)nX; (void)nY; (void)nWidth; (void)nHeight; (void)nTransparency;
 #if ENABLE_CAIRO_CANVAS
-#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 6, 0)
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 10, 0)
 if (m_bUseLineColor || !m_bUseFillColor)
 return bRet;
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-5-0-0' - 2 commits - bridges/source testtools/com testtools/source

2015-07-16 Thread Caolan McNamara
 bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx |6 +
 bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx |   77 +++-
 testtools/com/sun/star/comp/bridge/TestComponent.java   |4 
 testtools/source/bridgetest/bridgetest.cxx  |4 
 testtools/source/bridgetest/cli/cli_cs_testobj.cs   |5 +
 testtools/source/bridgetest/cppobj.cxx  |2 
 testtools/source/bridgetest/idl/bridgetest.idl  |6 +
 7 files changed, 61 insertions(+), 43 deletions(-)

New commits:
commit c6d575c8074595b489ef0d1ecf3065b9aec7d97a
Author: Caolan McNamara 
Date:   Fri Jul 10 16:36:41 2015 +0100

ppc64: using a fp register also consumes a gp register slot

Change-Id: Idf6f40081f4598c0fa9d1e10bdc208eae49e4cd1
Reviewed-on: https://gerrit.libreoffice.org/16936
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 
(cherry picked from commit e8ac3b5bd973054c6fd74db017bb448721e2c3e2)
Reviewed-on: https://gerrit.libreoffice.org/16946
Reviewed-by: David Tardon 
Tested-by: David Tardon 
(cherry picked from commit f31326f623b0be2392b3846f710df75ea8760446)

diff --git a/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx 
b/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx
index 6b58246..6ac003b 100644
--- a/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx
@@ -133,6 +133,12 @@ static typelib_TypeClass cpp2uno_call(
 }
 pCppArgs[nPos] = pUnoArgs[nPos] = fpreg++;
 nf++;
+
+if (ng < ppc64::MAX_GPR_REGS)
+{
+ng++;
+gpreg++;
+}
 }
 else
 {
diff --git a/bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx 
b/bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx
index 81d3d5c..28dfaf8 100644
--- a/bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_powerpc64/uno2cpp.cxx
@@ -229,16 +229,20 @@ static void callVirtualMethod(void * pThis, sal_uInt32 
nVtableIndex,
 
 // The value in %xmm register is already prepared to be retrieved as a float,
 // thus we treat float and double the same
-#define INSERT_FLOAT( pSV, nr, pFPR, pDS, bOverflow ) \
-if ( nr < ppc64::MAX_SSE_REGS ) \
+#define INSERT_FLOAT( pSV, nr, pFPR, nGPR, pDS, bOverflow ) \
+if ( nGPR < ppc64::MAX_GPR_REGS ) \
+++nGPR;   \
+if ( nr < ppc64::MAX_SSE_REGS )   \
 pFPR[nr++] = *reinterpret_cast( pSV ); \
 else \
 bOverflow = true; \
 if (bOverflow) \
 *pDS++ = *reinterpret_cast( pSV ); // verbatim!
 
-#define INSERT_DOUBLE( pSV, nr, pFPR, pDS, bOverflow ) \
-if ( nr < ppc64::MAX_SSE_REGS ) \
+#define INSERT_DOUBLE( pSV, nr, pFPR, nGPR, pDS, bOverflow ) \
+if ( nGPR < ppc64::MAX_GPR_REGS ) \
+++nGPR;   \
+if ( nr < ppc64::MAX_SSE_REGS )   \
 pFPR[nr++] = *reinterpret_cast( pSV ); \
 else \
 bOverflow = true; \
@@ -390,10 +394,10 @@ static void cpp_call(
 INSERT_INT8( pCppArgs[nPos], nGPR, pGPR, 
pStack, bOverflow );
 break;
 case typelib_TypeClass_FLOAT:
-INSERT_FLOAT( pCppArgs[nPos], nFPR, pFPR, 
pStack, bOverflow );
+INSERT_FLOAT( pCppArgs[nPos], nFPR, pFPR, 
nGPR, pStack, bOverflow );
 break;
 case typelib_TypeClass_DOUBLE:
-INSERT_DOUBLE( pCppArgs[nPos], nFPR, pFPR, 
pStack, bOverflow );
+INSERT_DOUBLE( pCppArgs[nPos], nFPR, pFPR, 
nGPR, pStack, bOverflow );
 break;
 default:
 break;
diff --git a/testtools/com/sun/star/comp/bridge/TestComponent.java 
b/testtools/com/sun/star/comp/bridge/TestComponent.java
index bf1524d..8e07d1a 100644
--- a/testtools/com/sun/star/comp/bridge/TestComponent.java
+++ b/testtools/com/sun/star/comp/bridge/TestComponent.java
@@ -498,6 +498,10 @@ public class TestComponent {
 return i2;
 }
 
+public int testPPC64Alignment( double d1, double d2, double d3, int i1 
) throws com.sun.star.uno.RuntimeException {
+return i1;
+}
+
 public double testTenDoubles( double d1, double d2, double d3, double 
d4, double d5, double d6, double d7, double d8, double d9, double d10 ) {
 return d1 + d2 + d3 + d4 + d5 + d6 + d7 + d8 + d9 + d10;
 }
diff --git a/testtools/source/bridgetest/bridgetest.cxx 
b/testtools/source/bridgetest/bridgetest.cxx
i

[Libreoffice-commits] online.git: loleaflet/build loleaflet/src

2015-07-16 Thread Mihai Varga
 loleaflet/build/deps.js|7 +
 loleaflet/src/layer/tile/TileLayer.js  |  109 ---
 loleaflet/src/map/handler/Map.Mouse.js |  131 +
 3 files changed, 137 insertions(+), 110 deletions(-)

New commits:
commit e8eedf3f258300bc54c0074cd56a26ee821d4ad9
Author: Mihai Varga 
Date:   Thu Jul 16 16:15:30 2015 +0300

loleaflet: moved mouse handler from TileLayer.js -> Map.Mouse.js

diff --git a/loleaflet/build/deps.js b/loleaflet/build/deps.js
index c5927ba..a3d0ee9 100644
--- a/loleaflet/build/deps.js
+++ b/loleaflet/build/deps.js
@@ -192,7 +192,12 @@ var deps = {
 
Keyboard: {
src: ['map/handler/Map.Keyboard.js'],
-   desc: 'Enables keyboard pan/zoom when the map is focused.'
+   desc: 'Handles keyboard interaction with the document.'
+   },
+
+   Mouse: {
+   src: ['map/handler/Map.Mouse.js'],
+   desc: 'Handles mouse interaction with the document.'
},
 
MarkerDrag: {
diff --git a/loleaflet/src/layer/tile/TileLayer.js 
b/loleaflet/src/layer/tile/TileLayer.js
index e7af468..ac74511 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -89,7 +89,6 @@ L.TileLayer = L.GridLayer.extend({
}),
draggable: true
});
-   this._mouseEventsQueue = [];
this._pendingTilesCount = 0;
this._textArea = L.DomUtil.get('clipboard');
this._textArea.focus();
@@ -110,8 +109,6 @@ L.TileLayer = L.GridLayer.extend({
this._map.on('clearselection', this._clearSelections, this);
this._map.on('drag', this._updateScrollOffset, this);
this._map.on('copy', this._onCopy, this);
-   this._map.on('mousedown mouseup mouseover mouseout mousemove 
dblclick',
-   this._onMouseEvent, this);
this._startMarker.on('drag dragend', 
this._onSelectionHandleDrag, this);
this._endMarker.on('drag dragend', this._onSelectionHandleDrag, 
this);
if (this.options.edit && !this.options.readOnly) {
@@ -679,113 +676,7 @@ L.TileLayer = L.GridLayer.extend({
' x=' + x + ' y=' + y);
},
 
-   _onMouseEvent: function (e) {
-   if (this._graphicMarker && this._graphicMarker.isDragged) {
-   return;
-   }
-
-   if (this._startMarker.isDragged === true || 
this._endMarker.isDragged === true) {
-   return;
-   }
-
-   if (e.type === 'mousedown') {
-   this._mouseDown = true;
-   if (this._holdMouseEvent) {
-   clearTimeout(this._holdMouseEvent);
-   }
-   var mousePos = this._latLngToTwips(e.latlng);
-   this._mouseEventsQueue.push(L.bind(function() {
-   this._postMouseEvent('buttondown', mousePos.x, 
mousePos.y, 1);}, this));
-   this._holdMouseEvent = 
setTimeout(L.bind(this._executeMouseEvents, this), 500);
-   }
-   else if (e.type === 'mouseup') {
-   this._mouseDown = false;
-   if (this._map.dragging.enabled()) {
-   if (this._mouseEventsQueue.length === 0) {
-   // mouse up after panning
-   return;
-   }
-   }
-   clearTimeout(this._holdMouseEvent);
-   this._holdMouseEvent = null;
-   if (this._clickTime && Date.now() - this._clickTime <= 
250) {
-   // double click, a click was sent already
-   this._mouseEventsQueue = [];
-   return;
-   }
-   else {
-   this._clickTime = Date.now();
-   mousePos = this._latLngToTwips(e.latlng);
-   var timeOut = 250;
-   if (this._permission === 'edit') {
-   timeOut = 0;
-   }
-   this._mouseEventsQueue.push(L.bind(function() {
-   // if it's a click or mouseup after 
selecting
-   if (this._mouseEventsQueue.length > 1) {
-   // it's a click, fire mousedown
-   this._mouseEventsQueue[0]();
-   if (this._permission === 
'view') {
- 

[Libreoffice-commits] core.git: chart2/uiconfig

2015-07-16 Thread Markus Mohrhard
 chart2/uiconfig/ui/sidebarelements.ui |  564 +++---
 1 file changed, 250 insertions(+), 314 deletions(-)

New commits:
commit f328d6e4ce68835aee5b562851f1e4ac38b7a4c7
Author: Markus Mohrhard 
Date:   Thu Jul 16 13:23:09 2015 +0200

make chart elements panel beautiful

Change-Id: I9e76f9b314dce6b4392d43fee4d5e05a450aac84

diff --git a/chart2/uiconfig/ui/sidebarelements.ui 
b/chart2/uiconfig/ui/sidebarelements.ui
index d682300..868be9a 100644
--- a/chart2/uiconfig/ui/sidebarelements.ui
+++ b/chart2/uiconfig/ui/sidebarelements.ui
@@ -5,32 +5,84 @@
   
 True
 False
-True
-True
 
-  
+  
 True
 False
-6
-vertical
-6
+immediate
+True
+True
+
+  
+Subtitle
+True
+True
+False
+0
+True
+  
+  
+1
+1
+  
+
+
+  
+X-Axis
+True
+True
+False
+0
+True
+  
+  
+0
+3
+  
+
+
+  
+True
+False
+0
+Axes
+  
+  
+0
+2
+  
+
+
+  
+Title
+True
+True
+False
+0
+True
+  
+  
+0
+1
+  
+
 
   
 True
 False
+0
 Title
 right
 end
   
   
-False
-True
-0
+0
+0
   
 
 
-  
-Title
+  
+X-axis title
 True
 True
 False
@@ -38,14 +90,13 @@
 True
   
   
-False
-True
-1
+1
+3
   
 
 
-  
-Subtitle
+  
+Y-Axis
 True
 True
 False
@@ -53,379 +104,264 @@
 True
   
   
-False
-True
-2
+0
+4
   
 
 
-  
+  
+Y-axis title
 True
-False
-Axes
+True
+False
+0
+True
   
   
-False
-True
-3
+1
+4
   
 
 
-  
+  
+Z-Axis
 True
-False
-
-  
-X-Axis
-True
-True
-False
-0
-True
-  
-  
-False
-True
-0
-  
-
-
-  
-X-axis 
title
-True
-True
-False
-0
-True
-  
-  
-False
-True
-1
-  
-
+True
+False
+0
+0.4798927116394
+True
   
   
-False
-True
-4
+0
+5
   
 
 
-  
+  
+Z-axis title
 True
-False
-
-  
-Y-Axis
-True
-True
-False
-0
-True
-  
-  
-False
-True
-0
-  
-
-
-  
-Y-axis 
title
-True
-True
-False
-0
-True
-  
-  
-False
-True
-1
-  
-
+True
+False
+0
+True
   
   
-False
-True
-5
+1
+5
   
 
 
-  
+  
+2nd X-axis 
title
 True
-False
-
-  
-Z-Axis
-True
-True
-False
-0
-0.4798927116394
-True
-  
-  
-False
-True
-0
-  
-
-
-  
-Z-axis 
ti

[Libreoffice-commits] online.git: loleaflet/src

2015-07-16 Thread Mihai Varga
 loleaflet/src/layer/tile/GridLayer.js |9 +++--
 1 file changed, 7 insertions(+), 2 deletions(-)

New commits:
commit fe06836afb1e710f8b9105ab2921f660713ae409
Author: Mihai Varga 
Date:   Thu Jul 16 16:51:44 2015 +0300

loleaflet: prefetch fewer tiles in while editing

diff --git a/loleaflet/src/layer/tile/GridLayer.js 
b/loleaflet/src/layer/tile/GridLayer.js
index 3016a78..f59a15d 100644
--- a/loleaflet/src/layer/tile/GridLayer.js
+++ b/loleaflet/src/layer/tile/GridLayer.js
@@ -795,6 +795,12 @@ L.GridLayer = L.Layer.extend({
}
var center = map.getCenter();
var zoom = map.getZoom();
+   var tilesToFetch = 10;
+   var maxBorderWidth = 5;
+   if (this._premission === 'edit') {
+   tilesToFetch = 2;
+   maxBorderWidth = 2;
+   }
 
if (!this._preFetchBorder) {
var pixelBounds = map.getPixelBounds(center, zoom),
@@ -807,14 +813,13 @@ L.GridLayer = L.Layer.extend({
var queue = [],
finalQueue = [],
visitedTiles = {},
-   tilesToFetch = 10,
borderWidth = 0;
// don't search on a border wider than 5 tiles because 
it will freeze the UI
 
while ((tileBorder.min.x >= 0 || tileBorder.min.y >= 0 ||
tileBorder.max.x * this._tileWidthTwips < 
this._docWidthTwips ||
 tileBorder.max.y * this._tileHeightTwips < 
this._docHeightTwips) &&
-   tilesToFetch > 0 && borderWidth < 5) {
+   tilesToFetch > 0 && borderWidth < 
maxBorderWidth) {
// while the bounds do not fully contain the document
 
for (var i = tileBorder.min.x; i <= tileBorder.max.x; 
i++) {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: include/sfx2

2015-07-16 Thread Julien Nabet
 include/sfx2/filedlghelper.hxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1f366b13f766e588e58ee6ebe67149fb8028f3ee
Author: Julien Nabet 
Date:   Thu Jul 16 15:59:16 2015 +0200

Typo: deprected->deprecated

Change-Id: I9e2e349f66a9d5bd7c45430ee9761330c792061c

diff --git a/include/sfx2/filedlghelper.hxx b/include/sfx2/filedlghelper.hxx
index 2e55cd9..abaaa73 100644
--- a/include/sfx2/filedlghelper.hxx
+++ b/include/sfx2/filedlghelper.hxx
@@ -140,7 +140,7 @@ public:
 voidSetTitle( const OUString&  rNewTitle );
 OUStringGetPath() const;
 
-/** @deprected: Don't use this method to retrieve the selected files
+/** @deprecated: Don't use this method to retrieve the selected files
 There are file picker which can provide multiple selected file which 
belong
 to different folders. As this method always provides the root folder 
for all selected
 files this cannot work.
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: loleaflet/dist loleaflet/src

2015-07-16 Thread Mihai Varga
 loleaflet/dist/leaflet.css   |   23 ---
 loleaflet/src/layer/marker/Cursor.js |   14 +-
 2 files changed, 17 insertions(+), 20 deletions(-)

New commits:
commit b159241e77e19ec7ec301da5e1a74c8b2b2ddd90
Author: Mihai Varga 
Date:   Thu Jul 16 17:33:18 2015 +0300

loleaflet: the cursor now has the same width (2px)

diff --git a/loleaflet/dist/leaflet.css b/loleaflet/dist/leaflet.css
index a3d1ca5..5cac88f 100644
--- a/loleaflet/dist/leaflet.css
+++ b/loleaflet/dist/leaflet.css
@@ -590,7 +590,8 @@ a.leaflet-control-buttons:hover {
 }
 
 .blinking-cursor {
-  color: #2E3D48;
+  background: black;
+  width: 2px;
   pointer-events: none;
   -webkit-animation: 1s blink step-end 0s infinite;
   -moz-animation: 1s blink step-end 0s infinite;
@@ -601,46 +602,46 @@ a.leaflet-control-buttons:hover {
 
 @keyframes "blink" {
   from, to {
-color: black;
+background: black;
   }
   50% {
-color: transparent;
+background: transparent;
   }
 }
 
 @-moz-keyframes blink {
   from, to {
-color: black;
+background: black;
   }
   50% {
-color: transparent;
+background: transparent;
   }
 }
 
 @-webkit-keyframes "blink" {
   from, to {
-color: black;
+background: black;
   }
   50% {
-color: transparent;
+background: transparent;
   }
 }
 
 @-ms-keyframes "blink" {
   from, to {
-color: black;
+background: black;
   }
   50% {
-color: transparent;
+background: transparent;
   }
 }
 
 @-o-keyframes "blink" {
   from, to {
-color: black;
+background: black;
   }
   50% {
-color: transparent;
+background: transparent;
   }
 }
 
diff --git a/loleaflet/src/layer/marker/Cursor.js 
b/loleaflet/src/layer/marker/Cursor.js
index cbe683d..b4cd5f1 100644
--- a/loleaflet/src/layer/marker/Cursor.js
+++ b/loleaflet/src/layer/marker/Cursor.js
@@ -49,13 +49,11 @@ L.Cursor = L.Layer.extend({
 
_initLayout: function () {
this._container = L.DomUtil.create('div', 'leaflet-cursor');
-
-   //|
-   this._span = L.DomUtil.create('span', 'blinking-cursor', 
this._container);
-   this._span.innerHTML = '|';
+   // a black rectangle
+   this._cursor = L.DomUtil.create('div', 'blinking-cursor', 
this._container);
 
L.DomEvent
-   .disableClickPropagation(this._span)
+   .disableClickPropagation(this._cursor)
.disableScrollPropagation(this._container);
 
if (this._container) {
@@ -84,10 +82,8 @@ L.Cursor = L.Layer.extend({
},
 
setSize: function (size) {
-   this._container.style.lineHeight = size.y + 'px';
-   this._span.style.fontSize = size.y - 2 + 'px';
-   this._container.style.left = '-' + (this._container.clientWidth 
- size.x)/2 + 'px';
-   this._container.style.top = '-' + (this._container.clientHeight 
- size.y - 2)/2 + 'px';
+   this._cursor.style.height = size.y + 'px';
+   this._container.style.top = '-' + (this._container.clientHeight 
- size.y - 2) / 2 + 'px';
}
 });
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: loleaflet/src

2015-07-16 Thread Mihai Varga
 loleaflet/src/geometry/PolyUtil.js|  141 +
 loleaflet/src/layer/tile/TileLayer.js |  143 --
 2 files changed, 142 insertions(+), 142 deletions(-)

New commits:
commit 8d22cb30899e747d7c6d2f5f8a4807d0c48eb927
Author: Mihai Varga 
Date:   Thu Jul 16 17:47:40 2015 +0300

loleaflet: moved 'rectanglesToPolygons' method to PolyUtils

diff --git a/loleaflet/src/geometry/PolyUtil.js 
b/loleaflet/src/geometry/PolyUtil.js
index f5afe08..f024159 100644
--- a/loleaflet/src/geometry/PolyUtil.js
+++ b/loleaflet/src/geometry/PolyUtil.js
@@ -51,3 +51,144 @@ L.PolyUtil.clipPolygon = function (points, bounds, round) {
 
return points;
 };
+
+L.PolyUtil.rectanglesToPolygons = function (rectangles, docLayer) {
+   // algorithm found here 
http://stackoverflow.com/questions/13746284/merging-multiple-adjacent-rectangles-into-one-polygon
+   var eps = 20;
+   // Glue rectangles if the space between them is less then eps
+   for (var i = 0; i < rectangles.length - 1; i++) {
+   for (var j = i + 1; j < rectangles.length; j++) {
+   for (var k = 0; k < rectangles[i].length; k++) {
+   for (var l = 0; l < rectangles[j].length; l++) {
+   if (Math.abs(rectangles[i][k].x - 
rectangles[j][l].x) < eps) {
+   rectangles[j][l].x = 
rectangles[i][k].x;
+   }
+   if (Math.abs(rectangles[i][k].y - 
rectangles[j][l].y) < eps) {
+   rectangles[j][l].y = 
rectangles[i][k].y;
+   }
+   }
+   }
+   }
+   }
+
+   var points = {};
+   for (i = 0; i < rectangles.length; i++) {
+   for (j = 0; j < rectangles[i].length; j++) {
+   if (points[rectangles[i][j]]) {
+   delete points[rectangles[i][j]];
+   }
+   else {
+   points[rectangles[i][j]] = rectangles[i][j];
+   }
+   }
+   }
+
+   function getKeys(points) {
+   var keys = [];
+   for (var key in points) {
+   if (points.hasOwnProperty(key)) {
+   keys.push(key);
+   }
+   }
+   return keys;
+   }
+
+   function xThenY(aStr, bStr) {
+   var a = aStr.match(/\d+/g);
+   a[0] = parseInt(a[0]);
+   a[1] = parseInt(a[1]);
+   var b = bStr.match(/\d+/g);
+   b[0] = parseInt(b[0]);
+   b[1] = parseInt(b[1]);
+
+   if (a[0] < b[0] || (a[0] === b[0] && a[1] < b[1])) {
+   return -1;
+   }
+   else if (a[0] === b[0] && a[1] === b[1]) {
+   return 0;
+   }
+   else {
+   return 1;
+   }
+   }
+
+   function yThenX(aStr, bStr) {
+   var a = aStr.match(/\d+/g);
+   a[0] = parseInt(a[0]);
+   a[1] = parseInt(a[1]);
+   var b = bStr.match(/\d+/g);
+   b[0] = parseInt(b[0]);
+   b[1] = parseInt(b[1]);
+
+   if (a[1] < b[1] || (a[1] === b[1] && a[0] < b[0])) {
+   return -1;
+   }
+   else if (a[0] === b[0] && a[1] === b[1]) {
+   return 0;
+   }
+   else {
+   return 1;
+   }
+   }
+
+   var sortX = getKeys(points).sort(xThenY);
+   var sortY = getKeys(points).sort(yThenX);
+
+   var edgesH = {};
+   var edgesV = {};
+
+   var len = getKeys(points).length;
+   i = 0;
+   while (i < len) {
+   var currY = points[sortY[i]].y;
+   while (i < len && points[sortY[i]].y === currY) {
+   edgesH[sortY[i]] = sortY[i + 1];
+   edgesH[sortY[i + 1]] = sortY[i];
+   i += 2;
+   }
+   }
+
+   i = 0;
+   while (i < len) {
+   var currX = points[sortX[i]].x;
+   while (i < len && points[sortX[i]].x === currX) {
+   edgesV[sortX[i]] = sortX[i + 1];
+   edgesV[sortX[i + 1]] = sortX[i];
+   i += 2;
+   }
+   }
+
+   var polygons = [];
+   var edgesHKeys = getKeys(edgesH);
+   while (edgesHKeys.length > 0) {
+   var p = [[edgesHKeys[0], 0]];
+   while (true) {
+   var curr = p[p.length - 1][0];
+   var e = p[p.length - 1][1];
+   if (e === 0) {
+  

Re: About fix for tdf#82744: on gerritt, need help

2015-07-16 Thread Giuseppe Castagno

On 07/16/2015 02:09 PM, Ashod Nakashian wrote:

If you are referring to https://gerrit.libreoffice.org/#/c/17080/ it
looks like it's a unittest issue, not build.

This is the relevant part from the log:


paragraph-sdt.docx,911
W:  @×Å£¾šMÐUnknown node under /registry/extlang: deprecated
W:  
ó¶ÊExùŒsumUnknown node under /registry/grandfathered: comments
W:  ˆ¹½¶ˆE€€˜¾øÁ³¶ŠEØ€i-tayUnknown node under 
/registry/grandfathered: comments
##Failure Location unknown## : Error
Test name: testEditTime::Import_Export_Import
An uncaught exception of type com.sun.star.task.ErrorCodeIOException


---

If you can build on Windows, you should be able to hook VS debugger.


The build log tells us how to debug unit-tests:


Error: a unit test failed, please do one of:

export CPPUNITTRACE=""[full path to devenv.exe]" /debugexe" # for interactive 
debugging in Visual Studio
export CPPUNITTRACE="drmemory -free_max_frames 20"# for memory 
checking (install Dr.Memory first, and put it to your PATH)

and retry using: make CppunitTest_sw_ooxmlfieldexport


---


Here is an example:


CPPUNITTRACE="\"C:/Program Files (x86)/Microsoft Visual Studio 
12.0/Common7/IDE/devenv.exe\" /debugexe" /opt/lo/bin/make
CppunitTest_sw_ooxmlfieldexport


This will launch VS (if the path is correct) and run the unittest from it. You 
should be able to set breakpoints and catch exceptions of your choice, or all 
(from the Debug menu > Exceptions).


thanks for the hints, I will have a look.

--
Kind Regards,
Giuseppe Castagno aka beppec56
Acca Esse http://www.acca-esse.eu
giuseppe.castagno at acca-esse.eu
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: About fix for tdf#82744: on gerritt, need help

2015-07-16 Thread Giuseppe Castagno

On 07/16/2015 02:26 PM, Michael Stahl wrote:

On 16.07.2015 09:13, Giuseppe Castagno wrote:

Hi all,

I pushed the preliminary version of the fix, I have trouble with the
build on Windows, I build in Linux only, and being the fault in Windows
in an entirely different code area, I fail to see where the culprit lies.


take a good look at where the failure is, if the test doesn't use the
component you changed at all then it's just that you were unlucky and
hit a pre-existent, potentially platform dependent, potentially
intermittent, bug in the master that your patch is based on.


I suppose I got unlucky, since I didn't touch anything directly in that 
area.


In any case I'm going to build on Win7 myself, to see what's going to 
happen.


Tnx

--
Kind Regards,
Giuseppe Castagno aka beppec56
Acca Esse http://www.acca-esse.eu
giuseppe.castagno at acca-esse.eu
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Gerrit Windows build: what configure should I use at home?

2015-07-16 Thread Giuseppe Castagno

On 07/16/2015 01:58 PM, Ashod Nakashian wrote:

You are looking for autogen.sh.

Look at a log on Jenkins (not Gerrit) and find the parameters passed to


unfortunately, on the build log that failed me, of which I couldn't tell 
why, the autogen.sh line is nowhere to be seen:


http://ci.libreoffice.org/job/lo_gerrit_master/4213/Gerrit=Gerrit,Platform=Windows/consoleFull


autogen.sh. You'd need to customize a couple of them (junit and ant,
which you must download and place somewhere on your system and give the
path to autogen.sh).


that, I did



For reference, here is mine (it's called from a config.sh a directory
above 'libo' which is the root of the code). This will build full debug
and will generate ~27GB:

DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
$DIR/libo/autogen.sh --with-junit=$DIR/junit-4.10.jar
--with-ant-home=$DIR/apache-ant-1.9.4 --with-visual-studio=2013
--with-parallelism=24 --enable-sal-log --enable-dbgutil --enable-debug
--disable-odk --enable-pch --disable-ccache


thanks, I used that without symbols or other debug settings, just to see 
how it goes.


--
Kind Regards,
Giuseppe Castagno aka beppec56
Acca Esse http://www.acca-esse.eu
giuseppe.castagno at acca-esse.eu
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Bug 38837] Reduce power consumption: timers must end eventually

2015-07-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=38837

--- Comment #16 from Ashod Nakashian  ---
(In reply to tommy27 from comment #15)
> what about the status of the issue? is the work done (so FIXED) or it has do
> be tweaked again to solve residual issues (leaving it as NEW)?

It's hard to tell if this concludes all cases, but there is one case that I'd
like to investigate further.

For now, I don't have any known cases to fix. We close it as fixed and reopen
for new cases, or leave it open as a general high idle cpu usage cases.

-- 
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] online.git: loleaflet/src

2015-07-16 Thread Mihai Varga
 loleaflet/src/control/Control.Buttons.js  |2 +-
 loleaflet/src/control/Control.Parts.js|   20 ++--
 loleaflet/src/control/Parts.js|4 ++--
 loleaflet/src/control/Permission.js   |1 -
 loleaflet/src/core/Log.js |2 +-
 loleaflet/src/layer/tile/GridLayer.js |   12 ++--
 loleaflet/src/layer/tile/TileLayer.js |8 
 loleaflet/src/map/handler/Map.Keyboard.js |2 +-
 loleaflet/src/map/handler/Map.Mouse.js|2 +-
 9 files changed, 26 insertions(+), 27 deletions(-)

New commits:
commit 4ceab5f09525eabca4f2f90b6adaf752580e6c98
Author: Mihai Varga 
Date:   Thu Jul 16 18:18:30 2015 +0300

loleaflet: fixed js errors detected by lint

diff --git a/loleaflet/src/control/Control.Buttons.js 
b/loleaflet/src/control/Control.Buttons.js
index 432dfa0..7297f86 100644
--- a/loleaflet/src/control/Control.Buttons.js
+++ b/loleaflet/src/control/Control.Buttons.js
@@ -21,7 +21,7 @@ L.Control.Buttons = L.Control.extend({
'alignright':{title: 'Align right',uno: 
'AlignRight',  iconName: 'alignright.png'},
'alignblock':{title: 'Justified',  uno: 
'AlignBlock',  iconName: 'alignblock.png'},
'save':  {title: 'Save',   uno: 
'Save',iconName: 'save.png'},
-   'saveas':{title: 'Save As',uno: '', 
   iconName: 'saveas.png'},
+   'saveas':{title: 'Save As',uno: '', 
   iconName: 'saveas.png'}
};
for (var key in this._buttons) {
var button = this._buttons[key];
diff --git a/loleaflet/src/control/Control.Parts.js 
b/loleaflet/src/control/Control.Parts.js
index 9a566f6..ca8d5e2 100644
--- a/loleaflet/src/control/Control.Parts.js
+++ b/loleaflet/src/control/Control.Parts.js
@@ -74,7 +74,7 @@ L.Control.Parts = L.Control.extend({
L.DomUtil.setStyle(docContainer, 'left', '200px');
setTimeout(L.bind(function () {
this._map.invalidateSize();
-   
$("#scroll-container").mCustomScrollbar('update');
+   
$('#scroll-container').mCustomScrollbar('update');
}, this), 500);
var container = L.DomUtil.get('parts-preview');
for (var i = 0; i < parts; i++) {
@@ -96,15 +96,15 @@ L.Control.Parts = L.Control.extend({
if (docType === 'spreadsheet') {
if (!this._tabsInitialized) {
// make room for the preview
-   var docContainer = 
L.DomUtil.get('document-container');
+   docContainer = 
L.DomUtil.get('document-container');
L.DomUtil.setStyle(docContainer, 'bottom', 
'20px');
setTimeout(L.bind(function () {
this._map.invalidateSize();
-   
$("#scroll-container").mCustomScrollbar('update');
+   
$('#scroll-container').mCustomScrollbar('update');
}, this), 500);
-   var container = 
L.DomUtil.get('spreadsheet-tab');
-   for (var i = 0; i < parts; i++) {
-   var id = 'spreadsheet-tab' + i;
+   container = L.DomUtil.get('spreadsheet-tab');
+   for (i = 0; i < parts; i++) {
+   id = 'spreadsheet-tab' + i;
var tab = L.DomUtil.create('li', '', 
container);
tab.innerHTML = 'Sheet ' + (i + 1);
tab.id = id;
@@ -117,11 +117,11 @@ L.Control.Parts = L.Control.extend({
}
this._tabsInitialized = true;
}
-   for (key in this._spreadsheetTabs) {
+   for (var key in this._spreadsheetTabs) {
var part =  parseInt(key.match(/\d+/g)[0]);
-   
L.DomUtil.removeClass(this._spreadsheetTabs[key], "selected");
+   
L.DomUtil.removeClass(this._spreadsheetTabs[key], 'selected');
if (part === currentPart) {
-   
L.DomUtil.addClass(this._spreadsheetTabs[key], "selected");
+   
L.DomUtil.addClass(this._spreadsheetTabs[key], 'selected');
}
}
}
@@ -144,7 +144,7 @@ L.Control.Parts = L.Control.extend({
   

Remote Files Dialog - bugs hunting

2015-07-16 Thread Szymon Kłos
Hi all!

Today I pushed to the master branch part of my GSoC project - Remote
Files Dialog.

I will be glad If someone could take a look and test it. Comment are
welcome!

It is available from the Start Center and standard toolbars. Using it
you can open/save files on online services.

Regards,
Szymon

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


[Libreoffice-commits] core.git: filter/qa filter/source

2015-07-16 Thread Caolán McNamara
 filter/qa/cppunit/data/eps/fail/short-1.eps |binary
 filter/source/graphicfilter/ieps/ieps.cxx   |   16 +---
 2 files changed, 9 insertions(+), 7 deletions(-)

New commits:
commit bf02304a0ea4771e01f39dd0032cbf276997ca00
Author: Caolán McNamara 
Date:   Thu Jul 16 10:50:58 2015 +0100

min size of eps for a preview is 32

Change-Id: Icb82d9dd0a3918f2bdc4cb768c566774cd0d8ac4

diff --git a/filter/qa/cppunit/data/eps/fail/short-1.eps 
b/filter/qa/cppunit/data/eps/fail/short-1.eps
new file mode 100644
index 000..4b38b78
Binary files /dev/null and b/filter/qa/cppunit/data/eps/fail/short-1.eps differ
diff --git a/filter/source/graphicfilter/ieps/ieps.cxx 
b/filter/source/graphicfilter/ieps/ieps.cxx
index 634983f..ddabfc7 100644
--- a/filter/source/graphicfilter/ieps/ieps.cxx
+++ b/filter/source/graphicfilter/ieps/ieps.cxx
@@ -69,7 +69,7 @@ static sal_uInt8* ImplSearchEntry( sal_uInt8* pSource, 
sal_uInt8 const * pDest,
 
 
 // SecurityCount is the buffersize of the buffer in which we will parse for a 
number
-static long ImplGetNumber( sal_uInt8 **pBuf, int& nSecurityCount )
+static long ImplGetNumber( sal_uInt8 **pBuf, sal_uInt32& nSecurityCount )
 {
 boolbValid = true;
 boolbNegative = false;
@@ -502,7 +502,7 @@ void MakePreview(sal_uInt8* pBuf, sal_uInt32 nBytesRead,
 if ( pDest )
 {
 pDest += 16;
-int nCount = 4;
+sal_uInt32 nCount = 4;
 long nNumber = ImplGetNumber( &pDest, nCount );
 if ( nCount && ( (sal_uInt32)nNumber < 10 ) )
 {
@@ -595,14 +595,16 @@ GraphicImport( SvStream & rStream, Graphic & rGraphic, 
FilterConfigItem* )
 rStream.Seek( nPSStreamPos );
 sal_uInt8* pBuf = new sal_uInt8[ nPSSize ];
 
-sal_uInt32  nBufStartPos = rStream.Tell();
-sal_uInt32  nBytesRead = rStream.Read( pBuf, nPSSize );
+sal_uInt32 nBufStartPos = rStream.Tell();
+sal_uInt32 nBytesRead = rStream.Read( pBuf, nPSSize );
 if ( nBytesRead == nPSSize )
 {
-int nSecurityCount = 32;
-if ( !bHasPreview ) // if there is no tiff/wmf preview, we 
will parse for an preview in the eps prolog
+sal_uInt32 nSecurityCount = 32;
+// if there is no tiff/wmf preview, we will parse for an preview in
+// the eps prolog
+if (!bHasPreview && nBytesRead >= nSecurityCount)
 {
-sal_uInt8* pDest = ImplSearchEntry( pBuf, 
reinterpret_cast("%%BeginPreview:"), nBytesRead - 32, 15 );
+sal_uInt8* pDest = ImplSearchEntry( pBuf, 
reinterpret_cast("%%BeginPreview:"), nBytesRead - 
nSecurityCount, 15 );
 if ( pDest  )
 {
 pDest += 15;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: 2 commits - sc/inc sc/source

2015-07-16 Thread Eike Rathke
 sc/inc/dbdata.hxx  |5 +
 sc/source/core/tool/dbdata.cxx |   21 +
 sc/source/ui/docshell/dbdocfun.cxx |3 +++
 sc/source/ui/view/cellsh2.cxx  |4 ++--
 4 files changed, 31 insertions(+), 2 deletions(-)

New commits:
commit 33255f974fc712b9e9e2965a350c65a2195a7ae6
Author: Eike Rathke 
Date:   Thu Jul 16 17:52:29 2015 +0200

Resolves: tdf#88402 remember sort "has headers" at anonymous database ranges

Change-Id: I4a126f40589fd401f3a63f74be5e86e3df947ef6

diff --git a/sc/inc/dbdata.hxx b/sc/inc/dbdata.hxx
index 4965e94..fdcf678 100644
--- a/sc/inc/dbdata.hxx
+++ b/sc/inc/dbdata.hxx
@@ -128,6 +128,10 @@ public:
 voidGetSortParam(ScSortParam& rSortParam) const;
 voidSetSortParam(const ScSortParam& rSortParam);
 
+/** Remember some more settings of ScSortParam, only to be called at
+anonymous DB ranges as it at least overwrites bHasHeader. */
+voidUpdateFromSortParam( const ScSortParam& rSortParam );
+
 SC_DLLPUBLIC void   GetQueryParam(ScQueryParam& rQueryParam) const;
 SC_DLLPUBLIC void   SetQueryParam(const ScQueryParam& rQueryParam);
 SC_DLLPUBLIC bool   GetAdvancedQuerySource(ScRange& rSource) const;
@@ -228,6 +232,7 @@ public:
 ScDBData* getByRange(const ScRange& rRange);
 void insert(ScDBData* p);
 bool empty() const;
+bool has( const ScDBData* p ) const;
 bool operator== (const AnonDBs& r) const;
 };
 
diff --git a/sc/source/core/tool/dbdata.cxx b/sc/source/core/tool/dbdata.cxx
index e51da5d..e91f2b1 100644
--- a/sc/source/core/tool/dbdata.cxx
+++ b/sc/source/core/tool/dbdata.cxx
@@ -346,6 +346,11 @@ void ScDBData::SetSortParam( const ScSortParam& rSortParam 
)
 bByRow = rSortParam.bByRow;
 }
 
+void ScDBData::UpdateFromSortParam( const ScSortParam& rSortParam )
+{
+bHasHeader = rSortParam.bHasHeader;
+}
+
 void ScDBData::GetQueryParam( ScQueryParam& rQueryParam ) const
 {
 rQueryParam = *mpQueryParam;
@@ -744,6 +749,17 @@ public:
 }
 };
 
+class FindByPointer : public unary_function
+{
+const ScDBData* mpDBData;
+public:
+FindByPointer(const ScDBData* pDBData) : mpDBData(pDBData) {}
+bool operator() (const ScDBData& r) const
+{
+return &r == mpDBData;
+}
+};
+
 }
 
 ScDBCollection::NamedDBs::NamedDBs(ScDBCollection& rParent, ScDocument& rDoc) :
@@ -894,6 +910,11 @@ bool ScDBCollection::AnonDBs::empty() const
 return maDBs.empty();
 }
 
+bool ScDBCollection::AnonDBs::has( const ScDBData* p ) const
+{
+return find_if( maDBs.begin(), maDBs.end(), FindByPointer(p)) != 
maDBs.end();
+}
+
 bool ScDBCollection::AnonDBs::operator== (const AnonDBs& r) const
 {
 return maDBs == r.maDBs;
diff --git a/sc/source/ui/docshell/dbdocfun.cxx 
b/sc/source/ui/docshell/dbdocfun.cxx
index 567e100..ff748c4 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.cxx
@@ -574,6 +574,9 @@ bool ScDBDocFunc::Sort( SCTAB nTab, const ScSortParam& 
rSortParam,
 }
 
 pDBData->SetSortParam(rSortParam);
+// Remember additional settings on anonymous database ranges.
+if (pDBData == rDoc.GetAnonymousDBData( nTab) || 
rDoc.GetDBCollection()->getAnonDBs().has( pDBData))
+pDBData->UpdateFromSortParam( rSortParam);
 
 if (nStartRow <= aLocalParam.nRow2)
 {
commit 1077ad0ca662d71cfd23b33b23c1c34c40ce32cd
Author: Eike Rathke 
Date:   Thu Jul 16 15:49:26 2015 +0200

indentation

Change-Id: I34a45d15b0be4a56dbc9cc42c97d560ab350ff0d

diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx
index 4eb52acc..7cfc370 100644
--- a/sc/source/ui/view/cellsh2.cxx
+++ b/sc/source/ui/view/cellsh2.cxx
@@ -505,8 +505,8 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq )
 rOutParam.bHasHeader ) );
 rReq.AppendItem( SfxBoolItem( 
SID_SORT_CASESENS,
 rOutParam.bCaseSens ) );
-rReq.AppendItem( SfxBoolItem( SID_SORT_NATURALSORT,
-rOutParam.bNaturalSort ) );
+rReq.AppendItem( SfxBoolItem( 
SID_SORT_NATURALSORT,
+rOutParam.bNaturalSort ) );
 rReq.AppendItem( SfxBoolItem( SID_SORT_ATTRIBS,
 rOutParam.bIncludePattern ) );
 sal_uInt16 nUser = rOutParam.bUserDef ? ( 
rOutParam.nUserIndex + 1 ) : 0;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Bug 38837] Reduce power consumption: timers must end eventually

2015-07-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=38837

--- Comment #17 from tommy27  ---
I'd like to see it tagged FIXED and open a follow-up new report in case of
remaining issues.

anyway let's hear Bjorn's opinion about this.

-- 
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


[Bug 38837] Reduce power consumption: timers must end eventually

2015-07-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=38837

Björn Michaelsen  changed:

   What|Removed |Added

 CC||michael.me...@collabora.com

--- Comment #18 from Björn Michaelsen  ---
(In reply to tommy27 from comment #17)
> anyway let's hear Bjorn's opinion about this.

No opinion at all on this. I didnt write this EasyHack, just copied it over
from the wiki.

@Michael: I assume this is yours, can it be killed?

-- 
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


minutes of ESC call ...

2015-07-16 Thread Michael Meeks
* Present:
+ Robinson, Christian, Sophie, Norbert, Caolan, Michael M, Bjoern, 
  Noel, David, Cedric, Jan-Marek, Muthu, Stephan, Giuseppe C, Eike,
  Michael S, Thorsten
 
 * Completed Action Items:
+ file conference papers [!] (All)
+ please submit abstracts:
 + some beginner oriented stuff & website infra + 2 others (Cloph)
 + Release Engineering / freeze overview (Bjoern)
 + From extensions to core: how it works (Bjoern)
+ ping paranoid security guys (Michael)
+ complete regression ideas wiki page (Bjoern/Norbert/Noel & others ...)
+ https://wiki.documentfoundation.org/Development/RegressionIdeas
[ just added one (Bjoern) ]
+ enable 'make check' for new Windows CI hardware when it arrives (Norbert)
[ have the new hardware - from ByteMark, but tried make check on 
bytemark
  and it failed left/right.
+ mostly passes for Michael S
+ a win64 build (Norbert)
+ could be just this platform.
+ never done a win64 build (Michael S)
AI: + will check on a 32bit box instead (Norbert) ]
+ mail people to ask wrt. regression idea ranking & consolidate (Michael)
 
* Pending Action Items:
+ take a look at tdf#91495 (Kendy)
[ easiest is to add an expert config option, which won't crash
  with the string freeze, will look at it. ]
+ file conference papers [!] (All)
+ please submit abstracts:
+ http://conference.libreoffice.org/2015/call-for-papers/
 + Rendercontext & design foo (Kendy)
 + Ace of Base (Lionel)
 + ODF / TC bits (Andras)
+ register at the conference: 
http://conference.libreoffice.org/2015/registration/ (all)
+ test win64 / thunderbird / mork integration (Robinson)
[ not get the 64bit builds to work, Florian R hoped to look at it,
  we get sdbc:// driver errors:
AI:+ file bug and poke David O etc. (Robinson) ]
+ re-arrange the help XML for the menu changes (Jay)
[ still nothing up ]
AI:+ poke Jay, do we need to revert ? (Sophie)
+ track & support help XML status (Kendy)
+ UserAgent - drop bundled-languages (Michael)
+ UserAgent - produce a patch for review (Michael)
+ review ongoing pootle maintenance funding arrangements (Floeff)
+ update 5.1 Linux base-line to CentOS/6 to get KDE4 support (Christian)
 
* Release Engineering update (Christian)
+ 4.4.5 - RC2
+ also the next RC for 5.0.0 due next week.
+ currently 2x waiting for 5-0, and 4x for 5-0-0
+ 5.0.0 - status / branch
+ heavy-duty triple-review process for libreoffice-5-0-0 branch
+ 1x review for 5-0 and +2 more for 5-0-0
+ Major bugs
+ Java not working without the old VS2010 MSVC runtime
   + https://bugs.documentfoundation.org/show_bug.cgi?id=92483
 [ now fixed, and no issues for win64 that don't also affect
   32bit, was a data-type casting issue ]
+ presenter console - not rendering on Windows (Michael)
   + https://bugs.documentfoundation.org/show_bug.cgi?id=91574
  [ incredible code really odd ... still chasing it ]
+ KDE4 usability (JMux)
   + 2x patches submitted for master & 5.0.0
   + all merged, no worse than previous releases.
   + lhm tinderboxes already building with KDE4 to track that.
+ nothing super-pressing (Robinson)
   + some things turned out to be more minor than user prio.
+ Late Feature Status (Michael)
  + LibreOfficeKit / Online tweaks (Kendy)
  + no changes -> mostly changes going into master anyway.
  + OpenGL / double-buffer RenderContext (Kendy)
  + co-ordinate system improved to get GPU based scaling & 0.5 
pix offsets
  + hairlines now work nicely.
  + various other fixes -> working much better.
  + OpenGL by default not achievable for 5.0.0
  + propose re-visit @ ESC for 5.0.1 for some H/W on 
Windows.
  + won't affect anything TDF ships for 5.0
  + 5.0 splash / startcenter graphics / about dialog (Kendy?)
  + https://bugs.documentfoundation.org/show_bug.cgi?id=90452#c45
  + did everything get in ?
AI:   + provide a non-TDF branded set into git (Cloph)
AI:   + move existing git images -> private TDF branded (Cloph)
  + poke Barak for source files.
  + chase 'About' dialog ... whatsup ?
  + is the credits page ? (Norbert)
  + updated on every RC released (Cloph)
+ Android & iOS Remote
+ review done, patch looks good, will merge with
  new translations etc. (Cloph)
 
* UX Update (Kendy)
+ kendy on vacation.
 
* Do

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

2015-07-16 Thread Caolán McNamara
 filter/source/msfilter/msdffimp.cxx |   10 --
 1 file changed, 4 insertions(+), 6 deletions(-)

New commits:
commit b3cd47bd562f98ec5fcff1a9d7609353506b5083
Author: Caolán McNamara 
Date:   Thu Jul 16 14:53:37 2015 +0100

Resolves: tdf#92772 missing shape bg color

regression from dcad3ac445980740b6a39761cdd1f1bd0b3e6e34

coverity#1242624 Untrusted loop bound

Change-Id: Idf52c09828c2bab767e9ff0d07b61befd6bfc64b

The original code read 8 bytes on the nElemSizeVert == 8
branch and always 4 otherwise. I assumed that nElemSizeVert had
to be read as 4 on that branch, but apparently not. So if its
not 4, set it to 4 and we get the same behaviour as originally
and continue to ensure we bounds check the loop

Change-Id: Ica8ab7cc3bbebee93216766a2e1279a579494840

diff --git a/filter/source/msfilter/msdffimp.cxx 
b/filter/source/msfilter/msdffimp.cxx
index cd7f928..7f57508 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -2153,12 +2153,10 @@ void 
DffPropertyReader::ApplyCustomShapeGeometryAttributes( SvStream& rIn, SfxIt
 sal_uInt16 nNumElemMemVert = 0;
 rIn.ReadUInt16( nNumElemVert ).ReadUInt16( nNumElemMemVert 
).ReadUInt16( nElemSizeVert );
 }
-bool bImport = false;
-if (nElemSizeVert == 8 || nElemSizeVert == 4)
-{
-//sanity check that the stream is long enough to fulfill 
nNumElem * nElemSize;
-bImport = rIn.remainingSize() / nElemSizeVert >= nNumElemVert;
-}
+if (nElemSizeVert != 8)
+nElemSizeVert = 4;
+//sanity check that the stream is long enough to fulfill nNumElem 
* nElemSize;
+bool bImport = rIn.remainingSize() / nElemSizeVert >= nNumElemVert;
 if (bImport)
 {
 aCoordinates.realloc( nNumElemVert );
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Bug 38837] Reduce power consumption: timers must end eventually

2015-07-16 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=38837

--- Comment #19 from Caolán McNamara  ---
This was my "easy" hack. I suspect that *calc* still has a timer that never
ends. But if some one double checks that and finds that calc doesn't have an
endless timer then this can be closed, and if calc does have one and writer
doesn't then this could be renamed to "writer timers must end eventually" and
closed off and a new one for the calc opened up in order to keep things tight
and on-focus given the no of comments this now has

-- 
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: 4 commits - sd/source starmath/source sw/source

2015-07-16 Thread Caolán McNamara
 sd/source/ui/unoidl/DrawController.cxx   |8 ++--
 starmath/source/accessibility.cxx|4 ++--
 sw/source/core/access/accnotextframe.cxx |2 +-
 sw/source/uibase/docvw/edtwin.cxx|4 
 4 files changed, 9 insertions(+), 9 deletions(-)

New commits:
commit 96777e02d82f4a44cf681ea8f23d57676cdd515e
Author: Caolán McNamara 
Date:   Thu Jul 16 17:13:40 2015 +0100

silence warning about unknown swipe command

and show context menu on long-press

Change-Id: I6d603ebcc049b5ec2f9b23f7e400d995883324ea

diff --git a/sw/source/uibase/docvw/edtwin.cxx 
b/sw/source/uibase/docvw/edtwin.cxx
index 22293eb..510518e 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -5123,6 +5123,7 @@ void SwEditWin::Command( const CommandEvent& rCEvt )
 switch ( rCEvt.GetCommand() )
 {
 case CommandEventId::ContextMenu:
+case CommandEventId::LongPress:
 {
 const sal_uInt16 nId = SwInputChild::GetChildWindowId();
 SwInputChild* pChildWin = 
static_cast(GetView().GetViewFrame()->
@@ -5207,6 +5208,9 @@ void SwEditWin::Command( const CommandEvent& rCEvt )
 bCallBase = !m_rView.HandleWheelCommands( rCEvt );
 break;
 
+case CommandEventId::Swipe: //nothing yet
+break;
+
 case CommandEventId::StartExtTextInput:
 {
 bool bIsDocReadOnly = m_rView.GetDocShell()->IsReadOnly() &&
commit 34c0b8869784cb44a516c97213ef24566a4ed111
Author: Caolán McNamara 
Date:   Thu Jul 16 16:16:40 2015 +0100

coverity#1311944 Logically dead code

for the record its a SwFormatChg we get here at the crash time

regression from

commit 7de992bcc66c973bb6b247184cac38f01cd1104a
Author: Caolán McNamara 
Date:   Mon Jul 13 12:38:18 2015 +0100

fix a11y crash seen on close of tdf#92573

its not the reported crash, which has "gone away" which might
be a duplicate of tdf#90502

the switch only handled RES_TITLE_CHANGED and RES_DESCRIPTION_CHANGED 
so if its
anything else, e.g. OBJ_DYING, then don't attempt GetNoTextNode

Change-Id: I290d6e633811423c3acc198aba7a60943518ec4a

diff --git a/sw/source/core/access/accnotextframe.cxx 
b/sw/source/core/access/accnotextframe.cxx
index 58fb53f..5a5ec60 100644
--- a/sw/source/core/access/accnotextframe.cxx
+++ b/sw/source/core/access/accnotextframe.cxx
@@ -102,7 +102,7 @@ void SwAccessibleNoTextFrame::Modify( const SfxPoolItem* 
pOld, const SfxPoolItem
 return; // probably was deleted - avoid doing anything
 }
 
-if (nWhich != RES_TITLE_CHANGED || nWhich != RES_DESCRIPTION_CHANGED)
+if (nWhich != RES_TITLE_CHANGED && nWhich != RES_DESCRIPTION_CHANGED)
 return;
 
 const SwNoTextNode *pNd = GetNoTextNode();
commit 69d31d10c298693c4d7f0db6f8a6f8025bbf07c2
Author: Caolán McNamara 
Date:   Thu Jul 16 16:19:47 2015 +0100

coverity#1311945 Uncaught exception

Change-Id: I9c5738330a765747e749c4ec88bc6e87d8703c1c

diff --git a/sd/source/ui/unoidl/DrawController.cxx 
b/sd/source/ui/unoidl/DrawController.cxx
index ffa8dff..78fcbe0 100644
--- a/sd/source/ui/unoidl/DrawController.cxx
+++ b/sd/source/ui/unoidl/DrawController.cxx
@@ -442,13 +442,9 @@ void DrawController::FireSwitchCurrentPage (SdPage* 
pNewCurrentPage) throw()
 
 mpCurrentPage.reset(pNewCurrentPage);
 }
-catch (const uno::Exception&)
+catch (const uno::Exception& e)
 {
-OSL_FAIL(
-OString("sd::SdUnoDrawView::FireSwitchCurrentPage(), exception 
caught: " +
-OUStringToOString(
-comphelper::anyToString( cppu::getCaughtException() ),
-RTL_TEXTENCODING_UTF8 )).getStr() );
+SAL_WARN("sd", "sd::SdUnoDrawView::FireSwitchCurrentPage(), 
exception caught:  " << e.Message);
 }
 }
 }
commit 508a99e50d942a4911374ae2daae05be996708fd
Author: Caolán McNamara 
Date:   Thu Jul 16 16:14:52 2015 +0100

coverity#1209707 Dereference null return value

and

coverity#1209708 Dereference null return value

Change-Id: I3ba48950f989f8c49d1b09fde30de4c46f0bad1b

diff --git a/starmath/source/accessibility.cxx 
b/starmath/source/accessibility.cxx
index f3c5996..fbae1df 100644
--- a/starmath/source/accessibility.cxx
+++ b/starmath/source/accessibility.cxx
@@ -980,7 +980,7 @@ OUString SmTextForwarder::GetText( const ESelection& rSel ) 
const
 SfxItemSet SmTextForwarder::GetAttribs( const ESelection& rSel, 
EditEngineAttribs nOnlyHardAttrib ) const
 {
 EditEngine *pEditEngine = rEditAcc.GetEditEngine();
-OSL_ENSURE( pEditEngine, "EditEngine missing" );
+assert(pEditEngine && "EditEngine missing");
 if( rSel.nStartPara == rSel.nEndPara )
 {
 GetAttribsFlags nFlags = GetAttribsFlags::NONE;
@@ -1010,7 +1010,7 @@ SfxItemSet SmTextForwarder::GetAttribs( const ESelection& 
rSel

Re: Unicode 8.0?

2015-07-16 Thread Caolán McNamara
On Thu, 2015-07-16 at 11:53 +0200, Viktor Kovács wrote:
> I would like to ask when will be adopted Old Hungarian fonts. It is
> defined in the UNICODE 8.0, central-europe subgroup, and it must be
> typed right to left writing.

The underlying requirement will be a version of icu that supports
unicode 8, so someone needs to bump the icu version we're building
against to version 56, and that's only at milestone 1 level at the
moment so apparently not ready for stable use yet.

I imagine then there would be a need to extend the RTL support to
include some additional language if there is a serious attempt to
support this as a real thing.

C.

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


Re: 81309 and subsequent 88402

2015-07-16 Thread Eike Rathke
Hi Kohei,

On Tuesday, 2015-06-30 13:28:37 -0400, Kohei Yoshida wrote:

> Thank you very much for your heartfelt and extremely thought-provoking email.
> [...]
> However, I have taken the liberty of forwarding your request to the
> development mailing lint in the hope that someone will be kind enough to
> volunteer to handle your input.

Lol, done ;)
Btw, 88402 had nothing to do with 81309, it was just a question of
remembering the setting at anonymous database ranges.

  Eike

-- 
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GPG key "ID" 0x65632D3A - 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A
Better use 64-bit 0x6A6CD5B765632D3A here is why: https://evil32.com/
Care about Free Software, support the FSFE https://fsfe.org/support/?erack


pgpIxllQkwsNv.pgp
Description: PGP signature
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


  1   2   >