[Libreoffice-commits] .: svl/CppunitTest_svl_urihelper.mk svl/Module_svl.mk svl/qa

2012-01-17 Thread Stephan Bergmann
 svl/CppunitTest_svl_urihelper.mk |   63 +
 svl/Module_svl.mk|1 
 svl/qa/export.map|   34 --
 svl/qa/test_URIHelper.cxx|  472 ---
 svl/qa/unit/test_URIHelper.cxx   |  466 ++
 5 files changed, 530 insertions(+), 506 deletions(-)

New commits:
commit 7e69e6485f9e961e9a4862d8252491104018975a
Author: Stephan Bergmann sberg...@redhat.com
Date:   Tue Jan 17 11:07:29 2012 +0100

Adapted svl test_URIHelper to gbuild.

diff --git a/svl/CppunitTest_svl_urihelper.mk b/svl/CppunitTest_svl_urihelper.mk
new file mode 100644
index 000..8f5f3ad
--- /dev/null
+++ b/svl/CppunitTest_svl_urihelper.mk
@@ -0,0 +1,63 @@
+##
+## Version: MPL 1.1 / GPLv3+ / LGPLv3+
+##
+## The contents of this file are subject to the Mozilla Public License Version
+## 1.1 (the License); you may not use this file except in compliance with
+## the License or as specified alternatively below. You may obtain a copy of
+## the License at http://www.mozilla.org/MPL/
+##
+## Software distributed under the License is distributed on an AS IS basis,
+## WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+## for the specific language governing rights and limitations under the
+## License.
+##
+## Major Contributor(s):
+## [ Copyright (C) 2012 Red Hat, Inc., Stephan Bergmann sberg...@redhat.com
+##   (initial developer) ]
+##
+## All Rights Reserved.
+##
+## For minor contributions see the git repository.
+##
+## Alternatively, the contents of this file may be used under the terms of
+## either the GNU General Public License Version 3 or later (the GPLv3+), or
+## the GNU Lesser General Public License Version 3 or later (the LGPLv3+),
+## in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
+## instead of those above.
+##
+
+$(eval $(call gb_CppunitTest_CppunitTest,svl_urihelper))
+
+$(eval $(call gb_CppunitTest_add_api,svl_urihelper, \
+offapi \
+udkapi \
+))
+
+$(eval $(call gb_CppunitTest_add_components,svl_urihelper, \
+ucb/source/core/ucb1 \
+))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,svl_urihelper, \
+svl/qa/unit/test_URIHelper \
+))
+
+$(eval $(call gb_CppunitTest_add_linked_libs,svl_urihelper, \
+cppu \
+cppuhelper \
+sal \
+svl \
+tl \
+utl \
+$(gb_STDLIBS) \
+))
+
+$(eval $(call gb_CppunitTest_add_type_rdbs,svl_urihelper, \
+types \
+))
+
+$(eval $(call gb_CppunitTest_set_args,svl_urihelper, \
+--protector unoexceptionprotector$(gb_Library_DLLEXT) \
+unoexceptionprotector \
+))
+
+$(eval $(call gb_CppunitTest_uses_ure,svl_urihelper))
diff --git a/svl/Module_svl.mk b/svl/Module_svl.mk
index 6367ee7..26ce7e0 100644
--- a/svl/Module_svl.mk
+++ b/svl/Module_svl.mk
@@ -38,6 +38,7 @@ $(eval $(call gb_Module_add_targets,svl,\
 
 $(eval $(call gb_Module_add_check_targets,svl,\
CppunitTest_svl_lngmisc \
+CppunitTest_svl_urihelper \
 ))
 
 $(eval $(call gb_Module_add_subsequentcheck_targets,svl,\
diff --git a/svl/qa/export.map b/svl/qa/export.map
deleted file mode 100644
index 3308588..000
--- a/svl/qa/export.map
+++ /dev/null
@@ -1,34 +0,0 @@
-#*
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2000, 2010 Oracle and/or its affiliates.
-#
-# OpenOffice.org - a multi-platform office productivity suite
-#
-# This file is part of OpenOffice.org.
-#
-# OpenOffice.org is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License version 3
-# only, as published by the Free Software Foundation.
-#
-# OpenOffice.org is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU Lesser General Public License version 3 for more details
-# (a copy is included in the LICENSE file that accompanied this code).
-#
-# You should have received a copy of the GNU Lesser General Public License
-# version 3 along with OpenOffice.org.  If not, see
-# http://www.openoffice.org/license.html
-# for a copy of the LGPLv3 License.
-#
-#*
-
-UDK_3_0_0 {
-global:
-cppunitTestPlugIn;
-
-local:
-*;
-};
diff --git a/svl/qa/test_URIHelper.cxx b/svl/qa/test_URIHelper.cxx
deleted file mode 100644
index fe98d71..000
--- a/svl/qa/test_URIHelper.cxx
+++ /dev/null
@@ -1,472 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of 

[Libreoffice-commits] .: basic/source

2012-01-17 Thread Noel Power
 basic/source/sbx/sbxvalue.cxx |6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 9eef1e2961f9607fb235b43516bfe9f8fc24eaef
Author: Noel Power noel.po...@novell.com
Date:   Tue Jan 17 10:11:22 2012 +

fix Date 'operation' Date foobar

Post commit 9df90559d40f029479c4481e31f88737b70742f6 we have problems where 
Date types are added and subtracted. In fact that commit makes a subset of 
numberic operation return the date type. This fix ensures that the Date type is 
only applied when processing '+' ( old behaviour broken by the commit above ) 
and '-' ( new behaviour for consistency ) If both LHS  RHS are Date types then 
the result of the operations in question return the Double type.

diff --git a/basic/source/sbx/sbxvalue.cxx b/basic/source/sbx/sbxvalue.cxx
index add49e1..e1aa67d 100644
--- a/basic/source/sbx/sbxvalue.cxx
+++ b/basic/source/sbx/sbxvalue.cxx
@@ -1271,8 +1271,10 @@ Lbl_OpIsDouble:
 default:
 SetError( SbxERR_NOTIMP );
 }
-// #45465 Date needs with + a special handling: forces 
date type
-if( GetType() == SbxDATE || rOp.GetType() == SbxDATE )
+// Date with + or - needs special handling that
+// forces the Date type ( except if lhs AND rhs are already
+// Date types
+if( ( eOp == SbxPLUS || eOp == SbxMINUS )  ( ( GetType() 
== SbxDATE || rOp.GetType() == SbxDATE )  ( GetType() != rOp.GetType() ) ) )
 aL.eType = SbxDATE;
 
 }
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: Branch 'libreoffice-3-5' - officecfg/registry sfx2/source test/user-template

2012-01-17 Thread Fridrich Strba
 officecfg/registry/schema/org/openoffice/Office/Common.xcs |7 +++
 sfx2/source/doc/docfile.cxx|   30 +
 test/user-template/registry/modifications.xcd  |   13 +
 3 files changed, 50 insertions(+)

New commits:
commit a8e838010cd167e0d709c03819e2f243b66f98a3
Author: Markus Mohrhard markus.mohrh...@googlemail.com
Date:   Fri Jan 13 03:34:28 2012 +0100

don't create lock files for unit tests

special thanks to Stephan for the configuration part

Signed-off-by: Fridrich Å trba fridrich.st...@bluewin.ch

diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs 
b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
index 2cee667..c74e508 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
@@ -6269,6 +6269,13 @@
 /info
 valuetrue/value
   /prop
+  prop oor:name=UseLocking oor:type=xs:boolean
+info
+  descAllows to specify whether locking should be used at all.
+  Use this setting only for debugging purpose./desc
+/info
+valuetrue/value
+  /prop
   prop oor:name=ShowLinkWarningDialog oor:type=xs:boolean
 info
   authorTHB/author
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index fd2fb1e..b9aeb16 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -207,6 +207,31 @@ sal_Bool IsOOoLockFileUsed()
 return bOOoLockFileUsed;
 }
 
+bool IsLockingUsed()
+{
+bool bLocking = true;
+try
+{
+
+uno::Reference uno::XInterface  xCommonConfig = 
::comphelper::ConfigurationHelper::openConfig(
+::comphelper::getProcessServiceFactory(),
+::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( 
/org.openoffice.Office.Common ) ),
+::comphelper::ConfigurationHelper::E_STANDARD );
+if ( !xCommonConfig.is() )
+throw uno::RuntimeException();
+
+::comphelper::ConfigurationHelper::readRelativeKey(
+xCommonConfig,
+::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( Misc/ ) ),
+::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( UseLocking ) ) 
) = bLocking;
+}
+catch( const uno::Exception )
+{
+}
+
+return bLocking;
+}
+
 } // anonymous namespace
 //==
 
@@ -1001,6 +1026,11 @@ sal_Bool SfxMedium::LockOrigFileOnDemand( sal_Bool 
bLoading, sal_Bool bNoUI )
 // if user cancel the loading the ERROR_ABORT is set
 sal_Bool bResult = sal_False;
 
+if (!IsLockingUsed())
+{
+return sal_True;
+}
+
 if ( !GetURLObject().HasError() ) try
 {
 if ( pImp-m_bLocked  bLoading  
::utl::LocalFileHelper::IsLocalFile( GetURLObject().GetMainURL( 
INetURLObject::NO_DECODE ) ) )
diff --git a/test/user-template/registry/modifications.xcd 
b/test/user-template/registry/modifications.xcd
index d323645..5291c82 100644
--- a/test/user-template/registry/modifications.xcd
+++ b/test/user-template/registry/modifications.xcd
@@ -27,6 +27,19 @@
  * instead of those above.
 --
 oor:data xmlns:oor=http://openoffice.org/2001/registry;
+ oor:component-data oor:name=Common oor:package=org.openoffice.Office
+  node oor:name=Misc
+prop oor:name=UseDocumentSystemFileLocking
+  valuefalse/value
+/prop
+prop oor:name=UseDocumentOOoLockFile
+  valuefalse/value
+/prop
+prop oor:name=UseLocking
+  valuefalse/value
+/prop
+  /node
+ /oor:component-data
  oor:component-data oor:name=Paths oor:package=org.openoffice.Office
   node oor:name=Paths
node oor:name=UIConfig oor:op=replace
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: writerperfect/source

2012-01-17 Thread Fridrich Strba
 writerperfect/source/filter/OdgGenerator.cxx |   43 +--
 1 file changed, 41 insertions(+), 2 deletions(-)

New commits:
commit b350765be4852b8d2dc914a6048a5d273447480a
Author: Fridrich Å trba fridrich.st...@bluewin.ch
Date:   Mon Jan 16 17:32:23 2012 +0100

Implementing text rotations

diff --git a/writerperfect/source/filter/OdgGenerator.cxx 
b/writerperfect/source/filter/OdgGenerator.cxx
index 5681ed5..79722e8 100644
--- a/writerperfect/source/filter/OdgGenerator.cxx
+++ b/writerperfect/source/filter/OdgGenerator.cxx
@@ -1371,10 +1371,27 @@ void OdgGenerator::startTextObject(const 
WPXPropertyList propList, const WPXPro
 pStyleGraphicPropertiesOpenElement-addAttribute(draw:fill, none);
 pStyleGraphicPropertiesOpenElement-addAttribute(draw:fill-color, 
#ff);
 
+double x = 0.0;
+double y = 0.0;
+double height = 0.0;
+double width = 0.0;
 if (propList[svg:x])
-pDrawFrameOpenElement-addAttribute(svg:x, 
propList[svg:x]-getStr());
+x = propList[svg:x]-getDouble();
 if (propList[svg:y])
-pDrawFrameOpenElement-addAttribute(svg:y, 
propList[svg:y]-getStr());
+y = propList[svg:y]-getDouble();
+if (propList[svg:width])
+width = propList[svg:width]-getDouble();
+if (propList[svg:height])
+height = propList[svg:height]-getDouble();
+
+double angle(propList[libwpg:rotate] ? - M_PI * 
propList[libwpg:rotate]-getDouble() / 180.0 : 0.0);
+if (angle != 0.0)
+{
+double deltax((width*cos(angle)+height*sin(angle)-width)/2.0);
+double deltay((-width*sin(angle)+height*cos(angle)-height)/2.0);
+x -= deltax;
+y -= deltay;
+}
 
 if (!propList[svg:width]  !propList[svg:height])
 {
@@ -1452,6 +1469,28 @@ void OdgGenerator::startTextObject(const WPXPropertyList 
propList, const WPXPro
 pDrawFrameOpenElement-addAttribute(draw:opacity, 
propList[draw:opacity]-getStr());
 pStyleGraphicPropertiesOpenElement-addAttribute(draw:opacity, 
propList[draw:opacity]-getStr());
 }
+
+WPXProperty *svg_x = WPXPropertyFactory::newInchProp(x);
+WPXProperty *svg_y = WPXPropertyFactory::newInchProp(y);
+if (angle != 0.0)
+{
+WPXProperty *libwpg_rotate = WPXPropertyFactory::newDoubleProp(angle);
+sValue.sprintf(rotate (%s) translate(%s, %s),
+   libwpg_rotate-getStr().cstr(),
+   svg_x-getStr().cstr(),
+   svg_y-getStr().cstr());
+delete libwpg_rotate;
+pDrawFrameOpenElement-addAttribute(draw:transform, sValue);
+}
+else
+{
+if (propList[svg:x])
+pDrawFrameOpenElement-addAttribute(svg:x, svg_x-getStr());
+if (propList[svg:y])
+pDrawFrameOpenElement-addAttribute(svg:y, svg_y-getStr());
+}
+delete svg_x;
+delete svg_y;
 mpImpl-mBodyElements.push_back(pDrawFrameOpenElement);
 mpImpl-mBodyElements.push_back(new TagOpenElement(draw:text-box));
 
mpImpl-mGraphicsAutomaticStyles.push_back(pStyleGraphicPropertiesOpenElement);
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: test/Package_unittest.mk

2012-01-17 Thread Caolán McNamara
 test/Package_unittest.mk |1 -
 1 file changed, 1 deletion(-)

New commits:
commit 9cf05319a87aff4590129259a0ae240b2d1fff1d
Author: Caolán McNamara caol...@redhat.com
Date:   Tue Jan 17 12:03:06 2012 +

pspfontcache is gitignored

diff --git a/test/Package_unittest.mk b/test/Package_unittest.mk
index 3b8637f..ce48f68 100644
--- a/test/Package_unittest.mk
+++ b/test/Package_unittest.mk
@@ -36,7 +36,6 @@ $(eval $(call 
gb_Package_add_file,test_unittest,unittest/user/wordbook/technical
 $(eval $(call 
gb_Package_add_file,test_unittest,unittest/user/wordbook/en-GB.dic,user/wordbook/en-GB.dic))
 $(eval $(call 
gb_Package_add_file,test_unittest,unittest/user/gallery/empty_directory,user/gallery/empty_directory))
 $(eval $(call 
gb_Package_add_file,test_unittest,unittest/user/dtd/empty_directory,user/dtd/empty_directory))
-$(eval $(call 
gb_Package_add_file,test_unittest,unittest/user/psprint/pspfontcache,user/psprint/pspfontcache))
 $(eval $(call 
gb_Package_add_file,test_unittest,unittest/user/psprint/fontmetric/empty_directory,user/psprint/fontmetric/empty_directory))
 $(eval $(call 
gb_Package_add_file,test_unittest,unittest/user/psprint/driver/empty_directory,user/psprint/driver/empty_directory))
 $(eval $(call 
gb_Package_add_file,test_unittest,unittest/user/autotext/en-US/template.bau,user/autotext/en-US/template.bau))
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: sc/inc sc/source unusedcode.easy

2012-01-17 Thread Thomas Arnhold
 sc/inc/dpglobal.hxx  |6 ---
 sc/inc/dpobject.hxx  |4 --
 sc/inc/dpsave.hxx|1 
 sc/inc/dptablecache.hxx  |5 ---
 sc/source/core/data/dpobject.cxx |   39 ---
 sc/source/core/data/dpsave.cxx   |   57 --
 sc/source/core/data/dptablecache.cxx |   58 ---
 sc/source/ui/dbgui/fieldwnd.cxx  |   11 --
 sc/source/ui/inc/fieldwnd.hxx|6 ---
 unusedcode.easy  |   14 
 10 files changed, 201 deletions(-)

New commits:
commit a47cb498471f38987c248519435bc4867ffa456e
Author: Thomas Arnhold tho...@arnhold.org
Date:   Tue Jan 17 12:53:28 2012 +0100

remove unused ScDP* methods

diff --git a/sc/inc/dpglobal.hxx b/sc/inc/dpglobal.hxx
index 9d99b69..55a6aea 100644
--- a/sc/inc/dpglobal.hxx
+++ b/sc/inc/dpglobal.hxx
@@ -136,23 +136,17 @@ public:
 // case insensitive equality
 static sal_Int32Compare( const ScDPItemData rA, const ScDPItemData 
rB );
 
-#if OSL_DEBUG_LEVEL  1
-voiddump() const;
-#endif
-
 public:
 bool IsHasData() const ;
 bool IsHasErr() const ;
 bool IsValue() const;
 String  GetString() const ;
 double  GetValue() const ;
-sal_uLongGetNumFormat() const ;
 bool HasStringData() const ;
 bool IsDate() const;
 bool HasDatePart() const;
 void SetDate( bool b ) ;
 
-TypedStrData*  CreateTypeString( );
 sal_uInt8GetType() const;
 sal_uInt8  GetFlag() throw() { return mbFlag; }
 const sal_uInt8  GetFlag() const throw() { return 
const_castScDPItemData*(this)-GetFlag(); }
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx
index 47c1999..a894833 100644
--- a/sc/inc/dpobject.hxx
+++ b/sc/inc/dpobject.hxx
@@ -278,7 +278,6 @@ public:
 
 private:
 void updateCache(const ScRange rRange, std::setScDPObject* rRefs);
-void removeCache(const ScRange rRange);
 bool remove(const ScDPCache* p);
 };
 
@@ -298,7 +297,6 @@ public:
 size_t size() const;
 private:
 void updateCache(const rtl::OUString rName, const ScRange rRange, 
std::setScDPObject* rRefs);
-void removeCache(const ::rtl::OUString rName);
 bool remove(const ScDPCache* p);
 };
 
@@ -331,7 +329,6 @@ public:
 public:
 DBCaches(ScDocument* pDoc);
 const ScDPCache* getCache(sal_Int32 nSdbType, const ::rtl::OUString 
rDBName, const ::rtl::OUString rCommand);
-size_t size() const;
 
 private:
 com::sun::star::uno::Referencecom::sun::star::sdbc::XRowSet 
createRowSet(
@@ -339,7 +336,6 @@ public:
 
 void updateCache(sal_Int32 nSdbType, const ::rtl::OUString rDBName, 
const ::rtl::OUString rCommand,
  std::setScDPObject* rRefs);
-void removeCache(sal_Int32 nSdbType, const ::rtl::OUString rDBName, 
const ::rtl::OUString rCommand);
 bool remove(const ScDPCache* p);
 };
 
diff --git a/sc/inc/dpsave.hxx b/sc/inc/dpsave.hxx
index fc16b49..ee2fd6d 100644
--- a/sc/inc/dpsave.hxx
+++ b/sc/inc/dpsave.hxx
@@ -328,7 +328,6 @@ public:
 { return bDrillDown; }
 
 void WriteToSource( const 
com::sun::star::uno::Referencecom::sun::star::sheet::XDimensionsSupplier 
xSource );
-void Refresh( const 
com::sun::star::uno::Referencecom::sun::star::sheet::XDimensionsSupplier 
xSource );
 bool IsEmpty() const;
 
 const ScDPDimensionSaveData* GetExistingDimensionData() const
diff --git a/sc/inc/dptablecache.hxx b/sc/inc/dptablecache.hxx
index dcfc066..c4c2ebc 100644
--- a/sc/inc/dptablecache.hxx
+++ b/sc/inc/dptablecache.hxx
@@ -103,19 +103,15 @@ public:
 SCROW GetIdByItemData( long nDim, const String sItemData ) const;
 SCROW GetIdByItemData( long nDim, const ScDPItemData rData ) const;
 
-SCROW GetAdditionalItemID ( const String sItemData ) const;
 SCROW GetAdditionalItemID( const ScDPItemData rData ) const;
 
 SCCOL GetDimensionIndex( String sName) const;
-const ScDPItemData* GetSortedItemData( SCCOL nDim, SCROW nOrder ) const;
 sal_uLong GetNumType ( sal_uLong nFormat ) const;
 sal_uLong GetNumberFormat( long nDim ) const;
 bool  IsDateDimension( long nDim ) const ;
-sal_uLong GetDimNumType( SCCOL nDim) const;
 SCROW GetDimMemberCount( SCCOL nDim ) const;
 SCROW GetOrder( long nDim, SCROW nIndex ) const;
 
-SCROW GetSortedItemDataId( SCCOL nDim, SCROW nOrder ) const;
 const DataListType GetDimMemberValues( SCCOL nDim ) const;
 bool InitFromDoc(ScDocument* pDoc, const ScRange rRange);
 bool InitFromDataBase(const  ::com::sun::star::uno::Reference 
::com::sun::star::sdbc::XRowSet xRowSet, const Date rNullDate);
@@ -123,7 +119,6 @@ public:
 SCROW  GetRowCount() const;
 SCROW  GetItemDataId( sal_uInt16 nDim, SCROW nRow, bool bRepeatIfEmpty ) 
const;
 String GetDimensionName( sal_uInt16 nColumn ) const;
-bool IsEmptyMember( SCROW nRow, 

[Libreoffice-commits] .: svx/source

2012-01-17 Thread Caolán McNamara
 svx/source/items/clipfmtitem.cxx |6 ++
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit eb9054fbe9d13978862dab8d13923bf670e96c43
Author: Caolán McNamara caol...@redhat.com
Date:   Tue Jan 17 13:10:11 2012 +

fix crash double clicking rotated text in calc

diff --git a/svx/source/items/clipfmtitem.cxx b/svx/source/items/clipfmtitem.cxx
index a43f889..77273b3 100644
--- a/svx/source/items/clipfmtitem.cxx
+++ b/svx/source/items/clipfmtitem.cxx
@@ -112,13 +112,11 @@ int SvxClipboardFmtItem::operator==( const SfxPoolItem 
rComp ) const
 return 0;
 
 int nRet = 1;
-const String* pStr1, *pStr2;
 for( sal_uInt16 n = 0, nEnd = rCmp.pImpl-aFmtNms.size(); n  nEnd; ++n )
 {
 if( pImpl-aFmtIds[ n ] != rCmp.pImpl-aFmtIds[ n ] ||
-( (0 == ( pStr1 = (pImpl-aFmtNms[n]) )) ^
-  (0 == ( pStr2 = (rCmp.pImpl-aFmtNms[n]) ) )) ||
-( pStr1  *pStr1 != *pStr2 ))
+( pImpl-aFmtNms.is_null(n) ^ rCmp.pImpl-aFmtNms.is_null(n) ) ||
+( !pImpl-aFmtNms.is_null(n)  pImpl-aFmtNms[n] != 
rCmp.pImpl-aFmtNms[n] ) )
 {
 nRet = 0;
 break;
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: 2 commits - i18npool/source

2012-01-17 Thread Eike Rathke
 i18npool/source/localedata/data/nl_BE.xml |1 +
 i18npool/source/localedata/data/nl_NL.xml |1 +
 2 files changed, 2 insertions(+)

New commits:
commit abfbda01c8faa06f7c97692c25be0e8419cd2c48
Author: Eike Rathke er...@redhat.com
Date:   Tue Jan 17 14:24:09 2012 +0100

added [nl-BE] date acceptance pattern D/M

diff --git a/i18npool/source/localedata/data/nl_BE.xml 
b/i18npool/source/localedata/data/nl_BE.xml
index a8a7a7c..a423e3a 100644
--- a/i18npool/source/localedata/data/nl_BE.xml
+++ b/i18npool/source/localedata/data/nl_BE.xml
@@ -35,6 +35,7 @@
 MeasurementSystemmetric/MeasurementSystem
   /LC_CTYPE
   LC_FORMAT
+DateAcceptancePatternD/M/DateAcceptancePattern
 FormatElement msgid=FixedFormatskey1 default=true type=medium 
usage=FIXED_NUMBER formatindex=0
   FormatCodeStandaard/FormatCode
 /FormatElement
commit 741282c6e8d82c31c534b2e30dbc4ba8ca21299e
Author: Eike Rathke er...@redhat.com
Date:   Tue Jan 17 14:22:54 2012 +0100

added [nl-NL] date acceptance pattern D-M

diff --git a/i18npool/source/localedata/data/nl_NL.xml 
b/i18npool/source/localedata/data/nl_NL.xml
index cb8637b..ad8fc59 100644
--- a/i18npool/source/localedata/data/nl_NL.xml
+++ b/i18npool/source/localedata/data/nl_NL.xml
@@ -35,6 +35,7 @@
 MeasurementSystemMetric/MeasurementSystem
   /LC_CTYPE
   LC_FORMAT
+DateAcceptancePatternD-M/DateAcceptancePattern
 FormatElement msgid=DateFormatskey1 default=true type=short 
usage=DATE formatindex=18
   FormatCodeD-MM-JJ/FormatCode
 /FormatElement
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: i18npool/source

2012-01-17 Thread Eike Rathke
 i18npool/source/localedata/data/gd_GB.xml |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 197c0ef041fb92ba08d6440258e59485c81214a2
Author: Eike Rathke er...@redhat.com
Date:   Tue Jan 17 14:34:31 2012 +0100

added [gd-GB] date acceptance patterns D/M and D-M

diff --git a/i18npool/source/localedata/data/gd_GB.xml 
b/i18npool/source/localedata/data/gd_GB.xml
index fadc235..0359f25 100644
--- a/i18npool/source/localedata/data/gd_GB.xml
+++ b/i18npool/source/localedata/data/gd_GB.xml
@@ -35,6 +35,8 @@
 MeasurementSystemMetric/MeasurementSystem
   /LC_CTYPE
   LC_FORMAT replaceFrom=[CURRENCY] replaceTo=[$£-43C]
+DateAcceptancePatternD/M/DateAcceptancePattern
+DateAcceptancePatternD-M/DateAcceptancePattern
 FormatElement msgid=FixedFormatskey1 default=true type=medium 
usage=FIXED_NUMBER  formatindex=0
   FormatCodeGeneral/FormatCode
 /FormatElement
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: i18npool/source

2012-01-17 Thread Eike Rathke
 i18npool/source/localedata/data/lt_LT.xml |1 +
 1 file changed, 1 insertion(+)

New commits:
commit 87b12c42717a3488cc179d07cf42ace2335aced4
Author: Eike Rathke er...@redhat.com
Date:   Tue Jan 17 14:38:16 2012 +0100

added [glt-LT] date acceptance pattern M-D

diff --git a/i18npool/source/localedata/data/lt_LT.xml 
b/i18npool/source/localedata/data/lt_LT.xml
index 1e7d5e3..15adb38 100644
--- a/i18npool/source/localedata/data/lt_LT.xml
+++ b/i18npool/source/localedata/data/lt_LT.xml
@@ -38,6 +38,7 @@
 MeasurementSystemmetric/MeasurementSystem
   /LC_CTYPE
   LC_FORMAT
+DateAcceptancePatternM-D/DateAcceptancePattern
 FormatElement msgid=FixedFormatskey1 default=true type=medium 
usage=FIXED_NUMBER formatindex=0
   FormatCodeBendras/FormatCode
 /FormatElement
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: extras/source

2012-01-17 Thread Andras Timar
 extras/source/autotext/lang/zh-TW/crdbus50.bau |binary
 extras/source/autotext/lang/zh-TW/standard.bau |binary
 extras/source/autotext/lang/zh-TW/template.bau |binary
 3 files changed

New commits:
commit 2fe5c4a185d3a4d754a52dabe190c4beb9b58a20
Author: Andras Timar ati...@suse.com
Date:   Tue Jan 17 14:39:30 2012 +0100

fix zh-TW translation errors reported by Cheng-Chia Tseng in e-mail

diff --git a/extras/source/autotext/lang/zh-TW/crdbus50.bau 
b/extras/source/autotext/lang/zh-TW/crdbus50.bau
index ec88566..31e514a 100644
Binary files a/extras/source/autotext/lang/zh-TW/crdbus50.bau and 
b/extras/source/autotext/lang/zh-TW/crdbus50.bau differ
diff --git a/extras/source/autotext/lang/zh-TW/standard.bau 
b/extras/source/autotext/lang/zh-TW/standard.bau
index e907d26..a606788 100644
Binary files a/extras/source/autotext/lang/zh-TW/standard.bau and 
b/extras/source/autotext/lang/zh-TW/standard.bau differ
diff --git a/extras/source/autotext/lang/zh-TW/template.bau 
b/extras/source/autotext/lang/zh-TW/template.bau
index 9119a3d..52d8194 100644
Binary files a/extras/source/autotext/lang/zh-TW/template.bau and 
b/extras/source/autotext/lang/zh-TW/template.bau differ
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: Branch 'libreoffice-3-5' - extras/source

2012-01-17 Thread Andras Timar
 extras/source/autotext/lang/zh-TW/crdbus50.bau |binary
 extras/source/autotext/lang/zh-TW/standard.bau |binary
 extras/source/autotext/lang/zh-TW/template.bau |binary
 3 files changed

New commits:
commit e664de9cf15362405b0f99039ad417026d835776
Author: Andras Timar ati...@suse.com
Date:   Tue Jan 17 14:39:30 2012 +0100

fix zh-TW translation errors reported by Cheng-Chia Tseng in e-mail

diff --git a/extras/source/autotext/lang/zh-TW/crdbus50.bau 
b/extras/source/autotext/lang/zh-TW/crdbus50.bau
index ec88566..31e514a 100644
Binary files a/extras/source/autotext/lang/zh-TW/crdbus50.bau and 
b/extras/source/autotext/lang/zh-TW/crdbus50.bau differ
diff --git a/extras/source/autotext/lang/zh-TW/standard.bau 
b/extras/source/autotext/lang/zh-TW/standard.bau
index e907d26..a606788 100644
Binary files a/extras/source/autotext/lang/zh-TW/standard.bau and 
b/extras/source/autotext/lang/zh-TW/standard.bau differ
diff --git a/extras/source/autotext/lang/zh-TW/template.bau 
b/extras/source/autotext/lang/zh-TW/template.bau
index 9119a3d..52d8194 100644
Binary files a/extras/source/autotext/lang/zh-TW/template.bau and 
b/extras/source/autotext/lang/zh-TW/template.bau differ
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: i18npool/source

2012-01-17 Thread Eike Rathke
 i18npool/source/localedata/data/zh_CN.xml |7 +++
 1 file changed, 7 insertions(+)

New commits:
commit 605707652afebf0e5c90311adcc7767ebe807e45
Author: Eike Rathke er...@redhat.com
Date:   Tue Jan 17 15:41:10 2012 +0100

added [zh-CN] date acceptance patterns (various)

diff --git a/i18npool/source/localedata/data/zh_CN.xml 
b/i18npool/source/localedata/data/zh_CN.xml
index 8c71d19..76e1509 100644
--- a/i18npool/source/localedata/data/zh_CN.xml
+++ b/i18npool/source/localedata/data/zh_CN.xml
@@ -35,6 +35,13 @@
 MeasurementSystemmetric/MeasurementSystem
   /LC_CTYPE
   LC_FORMAT
+DateAcceptancePatternM-D/DateAcceptancePattern
+DateAcceptancePatternM/D/DateAcceptancePattern
+DateAcceptancePatternM/D/DateAcceptancePattern
+DateAcceptancePatternY.M.D/DateAcceptancePattern
+DateAcceptancePatternY/M/D/DateAcceptancePattern
+DateAcceptancePatternY年M月D日/DateAcceptancePattern
+DateAcceptancePatternM月D日/DateAcceptancePattern
 !-- Fix number formats. Index range is from 0 to 5. --
 FormatElement msgid=NumberFormatskey1 default=true type=medium 
usage=FIXED_NUMBER  formatindex=0
   FormatCodeGeneral/FormatCode
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: 6 commits - connectivity/source dbaccess/source svx/source

2012-01-17 Thread Lionel Elie Mamane
 connectivity/source/parse/sqlbison.y   |   16 +++-
 dbaccess/source/core/api/CacheSet.cxx  |2 +-
 dbaccess/source/core/api/KeySet.cxx|   24 
 dbaccess/source/core/api/OptimisticSet.cxx |2 +-
 dbaccess/source/core/api/RowSet.cxx|8 
 dbaccess/source/core/api/RowSet.hxx|4 ++--
 svx/source/fmcomp/gridctrl.cxx |1 +
 7 files changed, 36 insertions(+), 21 deletions(-)

New commits:
commit 8935f127d1dbe82c10db229d6cda1acfb964456c
Author: Lionel Elie Mamane lio...@mamane.lu
Date:   Tue Jan 17 13:34:04 2012 +0100

DbGridControl::SeekCursor: show exception when seek fails (and debug build)

diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx
index 646bf9b..9548a81 100644
--- a/svx/source/fmcomp/gridctrl.cxx
+++ b/svx/source/fmcomp/gridctrl.cxx
@@ -2470,6 +2470,7 @@ sal_Bool DbGridControl::SeekCursor(long nRow, sal_Bool 
bAbsolute)
 catch(Exception)
 {
 OSL_FAIL(DbGridControl::SeekCursor : failed ...);
+DBG_UNHANDLED_EXCEPTION();
 m_nSeekPos = -1;// kein Datensatz mehr 
vorhanden
 }
 }
commit a63d7020ce55c1b2970ba5a3ddd3f6f7067eac48
Author: Lionel Elie Mamane lio...@mamane.lu
Date:   Tue Jan 17 09:27:40 2012 +0100

janitorial: typo in private member name

diff --git a/dbaccess/source/core/api/RowSet.cxx 
b/dbaccess/source/core/api/RowSet.cxx
index 33d1f0c..a7f834b 100644
--- a/dbaccess/source/core/api/RowSet.cxx
+++ b/dbaccess/source/core/api/RowSet.cxx
@@ -162,7 +162,7 @@ ORowSet::ORowSet( const Reference 
::com::sun::star::lang::XMultiServiceFactory
 ,m_bCommandFacetsDirty( sal_True )
 ,m_bModified(sal_False)
 ,m_bRebuildConnOnExecute(sal_False)
-,m_bIsBookmarable(sal_True)
+,m_bIsBookmarkable(sal_True)
 ,m_bNew(sal_False)
 ,m_bCanUpdateInsertedRows(sal_True)
 ,m_bOwnConnection(sal_False)
@@ -197,7 +197,7 @@ ORowSet::ORowSet( const Reference 
::com::sun::star::lang::XMultiServiceFactory
 
registerProperty(PROPERTY_SINGLESELECTQUERYCOMPOSER,PROPERTY_ID_SINGLESELECTQUERYCOMPOSER,
  nRT,m_xComposer,   ::getCppuType(reinterpret_cast 
Reference XSingleSelectQueryComposer * (NULL)));
 
 // sdbcx.ResultSet Properties
-registerProperty(PROPERTY_ISBOOKMARKABLE,   
PROPERTY_ID_ISBOOKMARKABLE, nRT,
m_bIsBookmarable,  ::getBooleanCppuType());
+registerProperty(PROPERTY_ISBOOKMARKABLE,   
PROPERTY_ID_ISBOOKMARKABLE, nRT,
m_bIsBookmarkable,  ::getBooleanCppuType());
 
registerProperty(PROPERTY_CANUPDATEINSERTEDROWS,PROPERTY_ID_CANUPDATEINSERTEDROWS,
  nRT,m_bCanUpdateInsertedRows,  
::getBooleanCppuType());
 // sdbc.ResultSet Properties
 registerProperty(PROPERTY_RESULTSETCONCURRENCY, 
PROPERTY_ID_RESULTSETCONCURRENCY,   PropertyAttribute::TRANSIENT,   
m_nResultSetConcurrency,::getCppuType(reinterpret_cast sal_Int32*(NULL)));
@@ -2736,7 +2736,7 @@ ORowSetClone::ORowSetClone( const 
::comphelper::ComponentContext _rContext, ORo
  ,m_pParent(rParent)
  ,m_nFetchDirection(rParent.m_nFetchDirection)
  ,m_nFetchSize(rParent.m_nFetchSize)
- ,m_bIsBookmarable(sal_True)
+ ,m_bIsBookmarkable(sal_True)
 {
 DBG_CTOR(ORowSetClone, NULL);
 
@@ -2813,7 +2813,7 @@ ORowSetClone::ORowSetClone( const 
::comphelper::ComponentContext _rContext, ORo
 registerProperty(PROPERTY_RESULTSETTYPE,PROPERTY_ID_RESULTSETTYPE, 
 PropertyAttribute::READONLY,m_nResultSetType,  
::getCppuType(reinterpret_cast sal_Int32*(NULL)));
 registerProperty(PROPERTY_FETCHDIRECTION,   
PROPERTY_ID_FETCHDIRECTION, PropertyAttribute::TRANSIENT,   
m_nFetchDirection, ::getCppuType(reinterpret_cast sal_Int32*(NULL)));
 registerProperty(PROPERTY_FETCHSIZE,PROPERTY_ID_FETCHSIZE, 
 PropertyAttribute::TRANSIENT,   m_nFetchSize,  
::getCppuType(reinterpret_cast sal_Int32*(NULL)));
-registerProperty(PROPERTY_ISBOOKMARKABLE,   
PROPERTY_ID_ISBOOKMARKABLE, nRT,
m_bIsBookmarable,  ::getBooleanCppuType());
+registerProperty(PROPERTY_ISBOOKMARKABLE,   
PROPERTY_ID_ISBOOKMARKABLE, nRT,
m_bIsBookmarkable,  ::getBooleanCppuType());
 }
 
 ORowSetClone::~ORowSetClone()
diff --git a/dbaccess/source/core/api/RowSet.hxx 
b/dbaccess/source/core/api/RowSet.hxx
index 891d4a2..40e1920 100644
--- a/dbaccess/source/core/api/RowSet.hxx
+++ b/dbaccess/source/core/api/RowSet.hxx
@@ -142,7 +142,7 @@ namespace dbaccess
 sal_Boolm_bCommandFacetsDirty;  // any of the 
facets which define the active command is dirty
 sal_Boolm_bModified ;
 sal_Bool

[Libreoffice-commits] .: 2 commits - registry/source solenv/gbuild

2012-01-17 Thread Michael Stahl
 registry/source/regimpl.cxx   |6 +++---
 solenv/gbuild/UnoApiTarget.mk |4 
 2 files changed, 7 insertions(+), 3 deletions(-)

New commits:
commit f25ef2b904652ab3162c61864eeb5a2381bb796f
Author: Michael Stahl mst...@redhat.com
Date:   Tue Jan 17 15:43:11 2012 +0100

gbuild: UnoApiTarget: initialize target local vars

Fixes the problem in offapi, where a rebuild after changing an IDL file
would produce an offapi.rdb that contained the stale content of the
old version of the IDL file.  This was because in offapi 2 rdb files are
built, offapi.rdb and types.rdb, and types.rdb is a merge of udkapi.rdb
and offapi.rdb, hence it depends on offapi.rdb.  Unfortunately this means
that the UNOAPI_MERGE variable for types.rdb is inherited to
offapi.rdb, with the result that after the workdir offapi.rdb is built
from .urd files, it is overwritten by a merge of udkapi.rdb and a stale
offapi.rdb from the solver.

diff --git a/solenv/gbuild/UnoApiTarget.mk b/solenv/gbuild/UnoApiTarget.mk
index 704659b..4614fc6 100644
--- a/solenv/gbuild/UnoApiTarget.mk
+++ b/solenv/gbuild/UnoApiTarget.mk
@@ -57,6 +57,10 @@ define gb_UnoApiTarget_UnoApiTarget
 $$(eval $$(call gb_Module_register_target,$(call 
gb_UnoApiOutTarget_get_target,$(1)),$(call 
gb_UnoApiOutTarget_get_clean_target,$(1
 $(call gb_UnoApiOutTarget_get_target,$(1)) : $(call 
gb_UnoApiTarget_get_target,$(1))
 $(call gb_UnoApiOutTarget_get_clean_target,$(1)) : $(call 
gb_UnoApiTarget_get_clean_target,$(1))
+$(call gb_UnoApiTarget_get_target,$(1)) : INCLUDE :=
+$(call gb_UnoApiTarget_get_target,$(1)) : UNOAPI_DEPS :=
+$(call gb_UnoApiTarget_get_target,$(1)) : UNOAPI_MERGE :=
+$(call gb_UnoApiTarget_get_target,$(1)) : UNOAPI_REFERENCE :=
 gb_UnoApiTarget_HPPFILES_$(1) :=
 gb_UnoApiTarget_IDLFILES_$(1) :=
 ifeq ($(gb_FULLDEPS),$(true))
commit aeb56b2ba1eefe08be4a7f20dc36d4a6200aa949
Author: Michael Stahl mst...@redhat.com
Date:   Tue Jan 17 15:37:44 2012 +0100

registry: print error messages on stderr

diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx
index 5eb88c7..e82789b 100644
--- a/registry/source/regimpl.cxx
+++ b/registry/source/regimpl.cxx
@@ -1215,7 +1215,7 @@ RegError ORegistry::checkBlop(OStoreStream rValue,
 
 if (bReport)
 {
-fprintf(stdout, WARNING: value of key \%s\ already 
exists.\n,
+fprintf(stderr, WARNING: value of key \%s\ already 
exists.\n,
 targetPath.getStr());
 }
 return REG_MERGE_CONFLICT;
@@ -1225,7 +1225,7 @@ RegError ORegistry::checkBlop(OStoreStream rValue,
 rtl_freeMemory(pBuffer);
 if (bReport)
 {
-fprintf(stdout, ERROR: values of key \%s\ contains bad 
data.\n,
+fprintf(stderr, ERROR: values of key \%s\ contains bad 
data.\n,
 targetPath.getStr());
 }
 return REG_MERGE_ERROR;
@@ -1235,7 +1235,7 @@ RegError ORegistry::checkBlop(OStoreStream rValue,
 rtl_freeMemory(pBuffer);
 if (bReport)
 {
-fprintf(stdout, ERROR: values of key \%s\ has different 
types.\n,
+fprintf(stderr, ERROR: values of key \%s\ has different 
types.\n,
 targetPath.getStr());
 }
 return REG_MERGE_ERROR;
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: Branch 'libreoffice-3-5' - 2 commits - registry/source solenv/gbuild

2012-01-17 Thread Michael Stahl
 registry/source/regimpl.cxx   |6 +++---
 solenv/gbuild/UnoApiTarget.mk |4 
 2 files changed, 7 insertions(+), 3 deletions(-)

New commits:
commit 27c36c7bddb3c8bb27fe55972833344145eaba59
Author: Michael Stahl mst...@redhat.com
Date:   Tue Jan 17 15:43:11 2012 +0100

gbuild: UnoApiTarget: initialize target local vars

Fixes the problem in offapi, where a rebuild after changing an IDL file
would produce an offapi.rdb that contained the stale content of the
old version of the IDL file.  This was because in offapi 2 rdb files are
built, offapi.rdb and types.rdb, and types.rdb is a merge of udkapi.rdb
and offapi.rdb, hence it depends on offapi.rdb.  Unfortunately this means
that the UNOAPI_MERGE variable for types.rdb is inherited to
offapi.rdb, with the result that after the workdir offapi.rdb is built
from .urd files, it is overwritten by a merge of udkapi.rdb and a stale
offapi.rdb from the solver.
(cherry picked from commit f25ef2b904652ab3162c61864eeb5a2381bb796f)

diff --git a/solenv/gbuild/UnoApiTarget.mk b/solenv/gbuild/UnoApiTarget.mk
index e557577..b6700e6 100644
--- a/solenv/gbuild/UnoApiTarget.mk
+++ b/solenv/gbuild/UnoApiTarget.mk
@@ -61,6 +61,10 @@ define gb_UnoApiTarget_UnoApiTarget
 $$(eval $$(call gb_Module_register_target,$(call 
gb_UnoApiOutTarget_get_target,$(1)),$(call 
gb_UnoApiOutTarget_get_clean_target,$(1
 $(call gb_UnoApiOutTarget_get_target,$(1)) : $(call 
gb_UnoApiTarget_get_target,$(1))
 $(call gb_UnoApiOutTarget_get_clean_target,$(1)) : $(call 
gb_UnoApiTarget_get_clean_target,$(1))
+$(call gb_UnoApiTarget_get_target,$(1)) : INCLUDE :=
+$(call gb_UnoApiTarget_get_target,$(1)) : UNOAPI_DEPS :=
+$(call gb_UnoApiTarget_get_target,$(1)) : UNOAPI_MERGE :=
+$(call gb_UnoApiTarget_get_target,$(1)) : UNOAPI_REFERENCE :=
 gb_UnoApiTarget_HPPFILES_$(1) :=
 gb_UnoApiTarget_IDLFILES_$(1) :=
 
commit 59a6665e78bbb0c05a079d636fb18aba77b09452
Author: Michael Stahl mst...@redhat.com
Date:   Tue Jan 17 15:37:44 2012 +0100

registry: print error messages on stderr
(cherry picked from commit aeb56b2ba1eefe08be4a7f20dc36d4a6200aa949)

diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx
index 027f6c2..bf3cb83 100644
--- a/registry/source/regimpl.cxx
+++ b/registry/source/regimpl.cxx
@@ -1215,7 +1215,7 @@ RegError ORegistry::checkBlop(OStoreStream rValue,
 
 if (bReport)
 {
-fprintf(stdout, WARNING: value of key \%s\ already 
exists.\n,
+fprintf(stderr, WARNING: value of key \%s\ already 
exists.\n,
 targetPath.getStr());
 }
 return REG_MERGE_CONFLICT;
@@ -1225,7 +1225,7 @@ RegError ORegistry::checkBlop(OStoreStream rValue,
 rtl_freeMemory(pBuffer);
 if (bReport)
 {
-fprintf(stdout, ERROR: values of key \%s\ contains bad 
data.\n,
+fprintf(stderr, ERROR: values of key \%s\ contains bad 
data.\n,
 targetPath.getStr());
 }
 return REG_MERGE_ERROR;
@@ -1235,7 +1235,7 @@ RegError ORegistry::checkBlop(OStoreStream rValue,
 rtl_freeMemory(pBuffer);
 if (bReport)
 {
-fprintf(stdout, ERROR: values of key \%s\ has different 
types.\n,
+fprintf(stderr, ERROR: values of key \%s\ has different 
types.\n,
 targetPath.getStr());
 }
 return REG_MERGE_ERROR;
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: ooo.lst.in

2012-01-17 Thread Andras Timar
 ooo.lst.in |1 -
 1 file changed, 1 deletion(-)

New commits:
commit 433fb076ee7a81a3b92fb545ec7243bc99a0768e
Author: Andras Timar ati...@suse.com
Date:   Tue Jan 17 16:07:46 2012 +0100

remove older zlib from download list

diff --git a/ooo.lst.in b/ooo.lst.in
index 1d40fcb..af2f02e 100644
--- a/ooo.lst.in
+++ b/ooo.lst.in
@@ -78,7 +78,6 @@ c735eab2d659a96e5a594c9e8541ad63-zlib-1.2.5.tar.gz
 314e582264c36b3735466c522899aa07-icu4c-4_4_2-src.tgz
 451ccf439a36a568653b024534669971-ConvertTextToNumber-1.3.2.oxt
 b99fb620b1324b4ce79ee6998b507146-JLanguageTool-1.4.0.tar.bz2
-debc62758716a169df9f62e6ab2bc634-zlib-1.2.3.tar.gz
 0f63ee487fda8f21fafa767b3c447ac9-ixion-0.2.0.tar.gz
 71474203939fafbe271e1263e61d083e-nss-3.12.8-with-nspr-4.8.6.tar.gz
 9d283e02441d8cebdcd1e5d9df227d67-libwpg-0.2.1.tar.bz2
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: splitbuild/base.lst splitbuild/binfilter.lst splitbuild/bm splitbuild/build.lst splitbuild/calc.lst splitbuild/common.lst splitbuild/content.lst splitbuild/draw.lst splitbuild

2012-01-17 Thread Stephan Bergmann
 splitbuild/base.lst   |1 -
 splitbuild/binfilter.lst  |1 -
 splitbuild/bm |4 
 splitbuild/build.lst  |1 -
 splitbuild/calc.lst   |1 -
 splitbuild/common.lst |1 -
 splitbuild/content.lst|1 -
 splitbuild/draw.lst   |1 -
 splitbuild/extensions.lst |1 -
 splitbuild/extern.lst |1 -
 splitbuild/filter.lst |1 -
 splitbuild/framework.lst  |1 -
 splitbuild/gui.lst|1 -
 splitbuild/prj/build.lst  |1 -
 splitbuild/prj/d.lst  |1 -
 splitbuild/start.lst  |1 -
 splitbuild/uno.lst|1 -
 splitbuild/writer.lst |1 -
 18 files changed, 21 deletions(-)

New commits:
commit 3c8478e26bde41c35c75557d985f5734d8d1a2bd
Author: Stephan Bergmann sberg...@redhat.com
Date:   Tue Jan 17 16:55:18 2012 +0100

Removed obsolete splitbuild.

diff --git a/splitbuild/base.lst b/splitbuild/base.lst
deleted file mode 100644
index cda4527..000
--- a/splitbuild/base.lst
+++ /dev/null
@@ -1 +0,0 @@
-reportdesign dbaccess
diff --git a/splitbuild/binfilter.lst b/splitbuild/binfilter.lst
deleted file mode 100644
index 1baa90b..000
--- a/splitbuild/binfilter.lst
+++ /dev/null
@@ -1 +0,0 @@
-binfilter
diff --git a/splitbuild/bm b/splitbuild/bm
deleted file mode 100755
index 16872f1..000
--- a/splitbuild/bm
+++ /dev/null
@@ -1,4 +0,0 @@
-build --genconf --clear
-build --genconf --add `cat $1`
-build --all $2 $3 $4 
-
diff --git a/splitbuild/build.lst b/splitbuild/build.lst
deleted file mode 100644
index e19d9ce..000
--- a/splitbuild/build.lst
+++ /dev/null
@@ -1 +0,0 @@
-crashrep javainstaller2 packimages postprocess scp2 testtools instsetoo_native
diff --git a/splitbuild/calc.lst b/splitbuild/calc.lst
deleted file mode 100644
index d9e4a9f..000
--- a/splitbuild/calc.lst
+++ /dev/null
@@ -1 +0,0 @@
-chart2 scaddins sccomp sc
diff --git a/splitbuild/common.lst b/splitbuild/common.lst
deleted file mode 100644
index 2b92492..000
--- a/splitbuild/common.lst
+++ /dev/null
@@ -1 +0,0 @@
-basebmp basegfx bean comphelper configmgr connectivity embeddedobj embedserv 
eventattacher fileaccess i18npool i18nutil linguistic lingucomponent o3tl 
officecfg oovbaapi package pyuno regexp rsc sax shell sot svl tools transex3 
ucb ucbhelper unotools unoxml xmlhelp xmloff xmlscript wizards
diff --git a/splitbuild/content.lst b/splitbuild/content.lst
deleted file mode 100644
index dd8d40c..000
--- a/splitbuild/content.lst
+++ /dev/null
@@ -1 +0,0 @@
-dictionaries extras helpcontent2
diff --git a/splitbuild/draw.lst b/splitbuild/draw.lst
deleted file mode 100644
index 6f83eca..000
--- a/splitbuild/draw.lst
+++ /dev/null
@@ -1 +0,0 @@
-animations sd slideshow
diff --git a/splitbuild/extensions.lst b/splitbuild/extensions.lst
deleted file mode 100644
index 86fe24b..000
--- a/splitbuild/extensions.lst
+++ /dev/null
@@ -1 +0,0 @@
-migrationanalysis reportbuilder sdext swext
diff --git a/splitbuild/extern.lst b/splitbuild/extern.lst
deleted file mode 100644
index 1d3bc6d..000
--- a/splitbuild/extern.lst
+++ /dev/null
@@ -1 +0,0 @@
-afms agg apache-commons apple_remote beanshell berkeleydb boost cairo cppunit 
curl epm expat external graphite hsqldb hunspell hyphen icc icu jfreereport 
jpeg libexttextcat libwpd libxml2 libxmlsec libxslt lpsolve lucene MathMLDTD 
more_fonts moz mythes neon np_sdk nss openssl python redland rhino sane saxon 
stax stlport tomcat twain unixODBC vigra x11_extensions xpdf xsltml zlib 
diff --git a/splitbuild/filter.lst b/splitbuild/filter.lst
deleted file mode 100755
index 9659e01..000
--- a/splitbuild/filter.lst
+++ /dev/null
@@ -1 +0,0 @@
-filter hwpfilter oox writerfilter writerperfect xmerge
\ No newline at end of file
diff --git a/splitbuild/framework.lst b/splitbuild/framework.lst
deleted file mode 100644
index 1333e7d..000
--- a/splitbuild/framework.lst
+++ /dev/null
@@ -1 +0,0 @@
-automation avmedia basic basctl cui desktop drawinglayer extensions forms 
formula framework idl scripting sfx2 svx xmlsecurity vbahelper
diff --git a/splitbuild/gui.lst b/splitbuild/gui.lst
deleted file mode 100644
index d642843..000
--- a/splitbuild/gui.lst
+++ /dev/null
@@ -1 +0,0 @@
-accessibility canvas cppcanvas dtrans editeng fpicker padmin psprint_config 
setup_native svtools sysui toolkit UnoControls uui vcl
diff --git a/splitbuild/prj/build.lst b/splitbuild/prj/build.lst
deleted file mode 100644
index 0356e8b..000
--- a/splitbuild/prj/build.lst
+++ /dev/null
@@ -1 +0,0 @@
-spl  splitbuild ::  postprocess NULL
diff --git a/splitbuild/prj/d.lst b/splitbuild/prj/d.lst
deleted file mode 100644
index b87dd52..000
--- a/splitbuild/prj/d.lst
+++ /dev/null
@@ -1 +0,0 @@
-#dummy d.lst file
diff --git a/splitbuild/start.lst b/splitbuild/start.lst
deleted file mode 100644
index 3838044..000
--- a/splitbuild/start.lst
+++ /dev/null
@@ -1 +0,0 @@
-soltools
diff --git a/splitbuild/uno.lst b/splitbuild/uno.lst
deleted file mode 100644
index 

[Libreoffice-commits] .: sc/inc sc/source sfx2/source tools/inc tools/source unusedcode.easy vcl/generic vcl/inc vcl/source xmlsecurity/source

2012-01-17 Thread Thomas Arnhold
 sc/inc/cell.hxx   |1 
 sc/inc/document.hxx   |1 
 sc/source/core/data/cell2.cxx |   26 ---
 sc/source/core/data/document.cxx  |   23 ---
 sc/source/core/tool/scmatrix.cxx  |   11 -
 sc/source/ui/inc/namedlg.hxx  |1 
 sc/source/ui/namedlg/namedlg.cxx  |   14 --
 sc/source/ui/vba/vbachart.cxx |   12 -
 sc/source/ui/vba/vbachart.hxx |1 
 sfx2/source/appl/appuno.cxx   |   11 -
 tools/inc/tools/datetime.hxx  |1 
 tools/inc/tools/line.hxx  |4 
 tools/source/datetime/datetime.cxx|   17 --
 tools/source/generic/line.cxx |  147 --
 unusedcode.easy   |   15 --
 vcl/generic/glyphs/glyphcache.cxx |9 -
 vcl/inc/generic/glyphcache.hxx|1 
 vcl/inc/vcl/image.hxx |2 
 vcl/inc/vcl/lineinfo.hxx  |3 
 vcl/source/gdi/image.cxx  |   35 -
 vcl/source/gdi/lineinfo.cxx   |7 -
 xmlsecurity/source/framework/elementcollector.cxx |   32 
 xmlsecurity/source/framework/elementcollector.hxx |2 
 23 files changed, 376 deletions(-)

New commits:
commit 804e86170ff2570fd3826b4ac26d1c927e751ac3
Author: Thomas Arnhold tho...@arnhold.org
Date:   Tue Jan 17 15:28:11 2012 +0100

remove unused methods

diff --git a/sc/inc/cell.hxx b/sc/inc/cell.hxx
index fa1b719..52244f6 100644
--- a/sc/inc/cell.hxx
+++ b/sc/inc/cell.hxx
@@ -454,7 +454,6 @@ public:
 voidUpdateRenameTab(SCTAB nTable, const String rName);
 boolTestTabRefAbs(SCTAB nTable);
 voidUpdateCompile( bool bForceIfNameInUse = false );
-boolIsRangeNameInUse(sal_uInt16 nIndex) const;
 voidFindRangeNamesInUse(std::setsal_uInt16 rIndexes) const;
 voidReplaceRangeNamesInUse( const ScRangeData::IndexMap rMap 
);
 boolIsSubTotal() const  { return 
bSubTotal; }
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 2d232e7..4a0c186 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -576,7 +576,6 @@ public:
 static SC_DLLPUBLIC bool ValidTabName( const rtl::OUString rName );
 
 SC_DLLPUBLIC bool   ValidNewTabName( const rtl::OUString rName ) 
const;
-SC_DLLPUBLIC bool   ValidNewTabName( const 
std::vectorrtl::OUString rName ) const;
 SC_DLLPUBLIC void   CreateValidTabName(rtl::OUString rName) const;
 SC_DLLPUBLIC void   
CreateValidTabNames(std::vectorrtl::OUString aNames, SCTAB nCount) const;
 
diff --git a/sc/source/core/data/cell2.cxx b/sc/source/core/data/cell2.cxx
index 95e9bc7..e06d466 100644
--- a/sc/source/core/data/cell2.cxx
+++ b/sc/source/core/data/cell2.cxx
@@ -1534,32 +1534,6 @@ void ScFormulaCell::UpdateGrow( const ScRange rArea, 
SCCOL nGrowX, SCROW nGrowY
 StartListeningTo( pDocument );  // Listener wie vorher
 }
 
-bool lcl_IsRangeNameInUse(size_t nIndex, ScTokenArray* pCode, ScRangeName* 
pNames)
-{
-for (FormulaToken* p = pCode-First(); p; p = pCode-Next())
-{
-if (p-GetOpCode() == ocName)
-{
-if (p-GetIndex() == static_castsal_uInt16(nIndex))
-return true;
-else
-{
-//  RangeData kann Null sein in bestimmten Excel-Dateien
-ScRangeData* pSubName = pNames-findByIndex(p-GetIndex());
-if (pSubName  lcl_IsRangeNameInUse(nIndex,
-pSubName-GetCode(), pNames))
-return true;
-}
-}
-}
-return false;
-}
-
-bool ScFormulaCell::IsRangeNameInUse(sal_uInt16 nIndex) const
-{
-return lcl_IsRangeNameInUse( nIndex, pCode, pDocument-GetRangeName() );
-}
-
 void lcl_FindRangeNamesInUse(std::setsal_uInt16 rIndexes, ScTokenArray* 
pCode, ScRangeName* pNames)
 {
 for (FormulaToken* p = pCode-First(); p; p = pCode-Next())
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index dbc4cec..e5420cb 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -302,29 +302,6 @@ bool ScDocument::ValidNewTabName( const rtl::OUString 
rName ) const
 }
 
 
-bool ScDocument::ValidNewTabName( const std::vectorrtl::OUString rNames ) 
const//TODO:FIXME what is if there are duplicates in rNames
-{
-bool bValid = true;
-std::vectorrtl::OUString::const_iterator nameIter = rNames.begin();
-for (;nameIter != rNames.end()  bValid; ++nameIter)
-{
-bValid = ValidTabName(*nameIter);
-}
-TableContainer::const_iterator it = maTabs.begin();
-for (; it != maTabs.end()  bValid; ++it)
-

[Libreoffice-commits] .: 2 commits - i18npool/source

2012-01-17 Thread Eike Rathke
 i18npool/source/localedata/LocaleNode.cxx |   23 +--
 i18npool/source/localedata/data/zh_TW.xml |5 +
 2 files changed, 26 insertions(+), 2 deletions(-)

New commits:
commit c0bbf6f78aba568d3b3edb77fdfa973c183208ff
Author: Eike Rathke er...@redhat.com
Date:   Tue Jan 17 17:02:57 2012 +0100

rudimentary check if date acceptance pattern interferes with decimal number

diff --git a/i18npool/source/localedata/LocaleNode.cxx 
b/i18npool/source/localedata/LocaleNode.cxx
index dd07dfe..1b1e777 100644
--- a/i18npool/source/localedata/LocaleNode.cxx
+++ b/i18npool/source/localedata/LocaleNode.cxx
@@ -382,7 +382,8 @@ void LCInfoNode::generateCode (const OFileWriter of) const
 }
 
 
-OUString aDateSep;
+static OUString aDateSep;
+static OUString aDecSep;
 
 void LCCTYPENode::generateCode (const OFileWriter of) const
 {
@@ -400,7 +401,7 @@ void LCCTYPENode::generateCode (const OFileWriter of) const
 writeParameterCheckLen( of, DateSeparator, dateSeparator, 1, 1);
 OUString aThoSep =
 writeParameterCheckLen( of, ThousandSeparator, thousandSeparator, 
1, 1);
-OUString aDecSep =
+aDecSep =
 writeParameterCheckLen( of, DecimalSeparator, decimalSeparator, 1, 
1);
 OUString aTimeSep =
 writeParameterCheckLen( of, TimeSeparator, timeSeparator, 1, 1);
@@ -1203,6 +1204,24 @@ void LCFormatNode::generateCode (const OFileWriter of) 
const
 }
 }
 
+// Rudimentary check if a pattern interferes with decimal number.
+nIndex = 0;
+sal_uInt32 cDecSep = aDecSep.iterateCodePoints( nIndex);
+for (vectorOUString::const_iterator aIt = 
theDateAcceptancePatterns.begin();
+aIt != theDateAcceptancePatterns.end(); ++aIt)
+{
+if ((*aIt).getLength() == (cDecSep = 0x ? 3 : 4))
+{
+nIndex = 1;
+if ((*aIt).iterateCodePoints( nIndex) == cDecSep)
+{
+++nError;
+fprintf( stderr, Error: Date acceptance pattern '%s' 
matches decimal number '#%s#'\n,
+OSTR( *aIt), OSTR( aDecSep));
+}
+}
+}
+
 sal_Int16 nbOfDateAcceptancePatterns = 
static_castsal_Int16(theDateAcceptancePatterns.size());
 
 for (sal_Int16 i = 0; i  nbOfDateAcceptancePatterns; ++i)
commit fa836f7bf0fcdab6029320bdf7830c561d5ea823
Author: Eike Rathke er...@redhat.com
Date:   Tue Jan 17 16:40:33 2012 +0100

added [zh-TW] date acceptance patterns (various)

diff --git a/i18npool/source/localedata/data/zh_TW.xml 
b/i18npool/source/localedata/data/zh_TW.xml
index 89ecdd9..15681f0 100644
--- a/i18npool/source/localedata/data/zh_TW.xml
+++ b/i18npool/source/localedata/data/zh_TW.xml
@@ -35,6 +35,11 @@
 MeasurementSystemmetric/MeasurementSystem
   /LC_CTYPE
   LC_FORMAT
+DateAcceptancePatternY.M.D/DateAcceptancePattern
+DateAcceptancePatternM-D/DateAcceptancePattern
+DateAcceptancePatternM/D/DateAcceptancePattern
+DateAcceptancePatternY年M月D日/DateAcceptancePattern
+DateAcceptancePatternM月D日/DateAcceptancePattern
 !-- Fixed Number formats. Index range is 0-5. --
 FormatElement msgid=NumberFormatskey1 default=true type=medium 
usage=FIXED_NUMBER  formatindex=0
   FormatCodeGeneral/FormatCode
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: svl/source

2012-01-17 Thread Eike Rathke
 svl/source/numbers/zforfind.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0f1fc0dfea41b7c74565683ba13e0dfc9177c7e5
Author: Eike Rathke er...@redhat.com
Date:   Tue Jan 17 17:57:37 2012 +0100

a can't-happen-but-do-it-correct-anyway one character fix

diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx
index d944a11..0835278 100644
--- a/svl/source/numbers/zforfind.cxx
+++ b/svl/source/numbers/zforfind.cxx
@@ -991,7 +991,7 @@ bool ImpSvNumberInputScan::MayBeIso8601()
 (n = sStrArray[nNums[2]].ToInt32()) = 1  n = 31)// 
day
 // Year (nNums[0]) value not checked, may be anything, but
 // length (number of digits) is checked.
-nMayBeIso8601 = (nLen = 4 ? 4 : (nLen == 3 ? 3 : (nLen  0 ? 
2 : 0)));
+nMayBeIso8601 = (nLen = 4 ? 4 : (nLen == 3 ? 3 : (nLen  0 ? 
2 : 1)));
 }
 }
 return nMayBeIso8601  1;
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: Branch 'libreoffice-3-5' - extensions/source scp2/source

2012-01-17 Thread Michael Stahl
 extensions/source/nsplugin/source/makefile.mk |4 
 scp2/source/ooo/common_brand.scp  |2 +-
 scp2/source/ooo/file_ooo.scp  |2 +-
 scp2/source/ooo/makefile.mk   |4 
 4 files changed, 10 insertions(+), 2 deletions(-)

New commits:
commit 98bc62b140a2692bef467452f000421e51b9a1f0
Author: Matúš Kukan matus.ku...@gmail.com
Date:   Fri Jan 13 16:02:03 2012 +0100

make building and installing of nsplugin more consistent

diff --git a/extensions/source/nsplugin/source/makefile.mk 
b/extensions/source/nsplugin/source/makefile.mk
index 5b74764..3d52234 100644
--- a/extensions/source/nsplugin/source/makefile.mk
+++ b/extensions/source/nsplugin/source/makefile.mk
@@ -36,6 +36,8 @@ USE_DEFFILE=TRUE
 
 .INCLUDE : settings.mk
 
+.IF $(WITH_MOZILLA) != NO
+
 .IF $(SYSTEM_MOZILLA_HEADERS) == YES
 INCPRE+=$(MOZILLA_HEADERS_CFLAGS)
 .ELSE
@@ -158,6 +160,8 @@ DEF2EXPORTFILE=exports.dxp
 DEF2EXPORTFILE=exports_wnt.dxp
 .ENDIF
 
+.ENDIF # $(WITH_MOZILLA) != NO
+
 # --- Targets --
 
 .INCLUDE : target.mk
diff --git a/scp2/source/ooo/common_brand.scp b/scp2/source/ooo/common_brand.scp
index 730de98..474d537 100644
--- a/scp2/source/ooo/common_brand.scp
+++ b/scp2/source/ooo/common_brand.scp
@@ -642,7 +642,7 @@ File gid_Brand_File_Bin_Libxml2
 End
 #endif
 
-#if !defined WITHOUT_MOZILLA  (!defined UNX || defined ENABLE_GTK)
+#if !defined WITHOUT_MOZILLA  defined ENABLE_NSPLUGIN
 File gid_Brand_File_Lib_Npsoplugin
 BIN_FILE_BODY;
 Name = SPECIAL_NAME(npsoplugin);
diff --git a/scp2/source/ooo/file_ooo.scp b/scp2/source/ooo/file_ooo.scp
index 8e18e8e..091415b 100644
--- a/scp2/source/ooo/file_ooo.scp
+++ b/scp2/source/ooo/file_ooo.scp
@@ -110,7 +110,7 @@ End
 
 #ifndef WITHOUT_MOZILLA
 
-#if !defined(UNX) || defined(ENABLE_GTK)
+#ifdef ENABLE_NSPLUGIN
 File gid_File_Exe_Nsplugin
 BIN_FILE_BODY;
 Styles  = (PACKED);
diff --git a/scp2/source/ooo/makefile.mk b/scp2/source/ooo/makefile.mk
index be79403..112eed7 100644
--- a/scp2/source/ooo/makefile.mk
+++ b/scp2/source/ooo/makefile.mk
@@ -66,6 +66,10 @@ SCPDEFS+=-DENABLE_GTK3
 .ENDIF
 .ENDIF # $(GUI)==UNX
 
+.IF $(ENABLE_NSPLUGIN) == YES
+SCPDEFS+=-DENABLE_NSPLUGIN
+.ENDIF
+
 .IF $(MERGELIBS) == TRUE
 SCPDEFS+=-DMERGELIBS
 .ENDIF
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: sw/source

2012-01-17 Thread Takeshi Abe
 sw/source/core/doc/poolfmt.cxx|3 ---
 sw/source/filter/html/htmlatr.cxx |6 --
 sw/source/filter/html/htmltab.cxx |   11 ---
 sw/source/filter/html/swhtml.cxx  |2 --
 sw/source/filter/html/wrthtml.hxx |1 -
 sw/source/filter/ww1/fltshell.cxx |2 --
 sw/source/filter/ww8/ww8par.cxx   |2 --
 sw/source/filter/ww8/ww8par.hxx   |1 -
 sw/source/filter/ww8/ww8par5.cxx  |2 --
 sw/source/filter/xml/xmlithlp.hxx |   10 --
 10 files changed, 40 deletions(-)

New commits:
commit c2c669db137b9ace3928612834ea080f3e661fef
Author: Takeshi Abe t...@fixedpoint.jp
Date:   Wed Jan 18 02:00:12 2012 +0900

removed dead macro

diff --git a/sw/source/core/doc/poolfmt.cxx b/sw/source/core/doc/poolfmt.cxx
index 6b5868a..cd64889 100644
--- a/sw/source/core/doc/poolfmt.cxx
+++ b/sw/source/core/doc/poolfmt.cxx
@@ -91,11 +91,8 @@ const sal_uInt16 PT_22  = 22 * 20;  // 22 pt
 const sal_uInt16 PT_24  = 24 * 20;  // 22 pt
 
 
-//const sal_uInt16 HTML_PARSPACE = ((CM_05 * 7) / 10);
 #define HTML_PARSPACE   GetMetricVal( CM_05 )
 
-static const sal_Char sKomma[] = , ;
-
 static const sal_uInt16 aHeadlineSizes[ 2 * MAXLEVEL ] = {
 //  PT_16, PT_14, PT_14, PT_12, PT_12,  // normal
 // we do everything procentual now:
diff --git a/sw/source/filter/html/htmlatr.cxx 
b/sw/source/filter/html/htmlatr.cxx
index 97087f5..8cc76ac 100644
--- a/sw/source/filter/html/htmlatr.cxx
+++ b/sw/source/filter/html/htmlatr.cxx
@@ -108,12 +108,6 @@ using namespace ::com::sun::star;
 
 #endif
 
-#define HTML_BULLETCHAR_DISC34
-#define HTML_BULLETCHAR_CIRCLE  38
-#define HTML_BULLETCHAR_SQUARE  36
-
-#define COLFUZZY 20
-
 //---
 
 HTMLOutEvent aAnchorEventTable[] =
diff --git a/sw/source/filter/html/htmltab.cxx 
b/sw/source/filter/html/htmltab.cxx
index 06aa3bf..42eebd5 100644
--- a/sw/source/filter/html/htmltab.cxx
+++ b/sw/source/filter/html/htmltab.cxx
@@ -67,11 +67,8 @@
 #include numrule.hxx
 
 #define NETSCAPE_DFLT_BORDER 1
-#define NETSCAPE_DFLT_CELLPADDING 1
 #define NETSCAPE_DFLT_CELLSPACING 2
 
-//#define FIX56334
-
 using ::editeng::SvxBorderLine;
 using namespace ::com::sun::star;
 
@@ -1408,15 +1405,11 @@ void HTMLTable::FixFrameFmt( SwTableBox *pBox,
 // Wenn die Zelle ueber mehrere Zeilen geht muss ein evtl.
 // an der Zeile gesetzter Hintergrund an die Zelle uebernommen
 // werden.
-#ifndef FIX56334
 // Wenn es sich um eine Tabelle in der Tabelle handelt und
 // die Zelle ueber die gesamte Heoehe der Tabelle geht muss
 // ebenfalls der Hintergrund der Zeile uebernommen werden, weil
 // die Line von der GC (zu Recht) wegoptimiert wird.
 if( nRowSpan  1 || (this != pTopTable  nRowSpan==nRows) )
-#else
-if( nRowSpan  1 )
-#endif
 {
 pBGBrushItem = ((*pRows)[nRow])-GetBGBrush();
 if( !pBGBrushItem  this != pTopTable )
@@ -1691,13 +1684,11 @@ SwTableLine *HTMLTable::MakeTableLine( SwTableBox 
*pUpper,
 HTMLTableRow *pTopRow = (*pRows)[nTopRow];
 sal_uInt16 nRowHeight = pTopRow-GetHeight();
 const SvxBrushItem *pBGBrushItem = 0;
-#ifndef FIX56334
 if( this == pTopTable || nTopRow0 || nBottomRownRows )
 {
 // An der Line eine Frabe zu setzen macht keinen Sinn, wenn sie
 // die auesserste und gleichzeitig einzige Zeile einer Tabelle in
 // der Tabelle ist.
-#endif
 pBGBrushItem = pTopRow-GetBGBrush();
 
 if( !pBGBrushItem  this != pTopTable )
@@ -1709,9 +1700,7 @@ SwTableLine *HTMLTable::MakeTableLine( SwTableBox *pUpper,
 if( !pBGBrushItem )
 pBGBrushItem = GetInhBGBrush();
 }
-#ifndef FIX56334
 }
-#endif
 if( nTopRow==nBottomRow-1  (nRowHeight || pBGBrushItem) )
 {
 SwTableLineFmt *pFrmFmt = (SwTableLineFmt*)pLine-ClaimFrmFmt();
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx
index 23cc0df..b4f7f16 100644
--- a/sw/source/filter/html/swhtml.cxx
+++ b/sw/source/filter/html/swhtml.cxx
@@ -111,8 +111,6 @@
 #include swerror.h
 
 #define FONTSIZE_MASK   7
-#define FONTCOLOR_MASK  (115)
-#define FONT_MASK   (114)
 
 #define HTML_ESC_PROP 80
 #define HTML_ESC_SUPER DFLT_ESC_SUPER
diff --git a/sw/source/filter/html/wrthtml.hxx 
b/sw/source/filter/html/wrthtml.hxx
index 4ceb9b5..633ad33 100644
--- a/sw/source/filter/html/wrthtml.hxx
+++ b/sw/source/filter/html/wrthtml.hxx
@@ -64,7 +64,6 @@ class SwHTMLTxtFtns;
 
 extern SwAttrFnTab aHTMLAttrFnTab;
 
-//#define HTML_PARSPACE ((MM50 * 7) / 10)
 #define HTML_PARSPACE (MM50)
 
 // Flags fuer die Ausgabe von Rahmen aller Art
diff --git a/sw/source/filter/ww1/fltshell.cxx 
b/sw/source/filter/ww1/fltshell.cxx
index 284fbb5..0afe3d3 100644
--- a/sw/source/filter/ww1/fltshell.cxx
+++ b/sw/source/filter/ww1/fltshell.cxx
@@ -71,8 +71,6 @@
 #include 

[Libreoffice-commits] .: 2 commits - README.cross

2012-01-17 Thread Tor Lillqvist
 README.cross |   43 +--
 1 file changed, 21 insertions(+), 22 deletions(-)

New commits:
commit b00bd214c4ddf4a3d8ad9f0a43ce362388adb090
Author: Tor Lillqvist t...@iki.fi
Date:   Tue Jan 17 19:06:48 2012 +0200

Correct my email

diff --git a/README.cross b/README.cross
index 86d6566..d5ad353 100644
--- a/README.cross
+++ b/README.cross
@@ -431,4 +431,4 @@ That's all, thank you, and have a nice day. People with 
commit access,
 feel free to edit this document, and add yourself below. Sorry for
 writing now initially from such a personal point of view.
 
---Tor Lillqvist tlillqv...@novell.com, t...@iki.fi
+--Tor Lillqvist tlillqv...@suse.com, t...@iki.fi
commit ee4fc40f63db751fe4d20419ea0f5bc7557e2414
Author: Tor Lillqvist t...@iki.fi
Date:   Tue Jan 17 19:06:26 2012 +0200

Make it sound slightly less experimental and scary

diff --git a/README.cross b/README.cross
index 45e1888..86d6566 100644
--- a/README.cross
+++ b/README.cross
@@ -14,7 +14,7 @@ github. I am not interested in that.
 Cross-compilation of LibreOffice completely is not possible yet. Much
 work has been done, baby steps for some platforms, much more for
 others, but a lot remains. For iOS and Android this work is highly
-experimental and done mostly in my own spare time just for the hacking
+experimental, originally done in my spare time just for the hacking
 pleasure. No promise, explicit or implied, is given that it will ever
 be finished.
 
@@ -44,7 +44,7 @@ Even though the LibreOffice build mechanism is highly 
unorthodox, the
 configure script takes the normal --build and --host options like any
 GNU Autoconf -based configure script. To cross-compile, you basically
 need just to specify a suitable --host option and things should work
-out nicely. In practise, some more details might be needed. See
+out nicely. In practise, many details needed to be handled. See
 examples below.
 
 
@@ -122,8 +122,9 @@ for MinGW inside the OOo-originated code in LibreOffice 
actually
 are. What I have noticed of it seems a bit randomish, with
 copy-pasting having been preferred to factoring out differences.
 
-Most of the configuration settings are maintained in the LibreOfficeMinGW
-distro-config, so in your autogen.lastrun, you can use:
+Most of the configuration settings are maintained in the
+distro-configs/LibreOfficeMinGW.conf file, so in your autogen.lastrun,
+you can use:
 
 CC=ccache i686-w64-mingw32-gcc
 CXX=ccache i686-w64-mingw32-g++
@@ -131,8 +132,8 @@ CC_FOR_BUILD=ccache gcc
 CXX_FOR_BUILD=ccache g++
 --with-distro=LibreOfficeMinGW
 
-Alternatively, you can use something like the following; but the preferred way
-is to keep LibreOfficeMinGW distro up-to-date.
+Alternatively, you can use something like the following; but the
+preferred way is to keep the LibreOfficeMinGW.conf file up-to-date.
 
 CC=ccache i686-w64-mingw32-gcc
 CXX=ccache i686-w64-mingw32-g++
@@ -251,17 +252,15 @@ iOS
 iOS is the operating system of Apple's mobile devices. Clearly for a
 device like the iPad it would be totally unacceptable to run a normal
 LibreOffice application with a overlapping windows and mouse-oriented
-GUI widgets. No work has been done (at least publicly) to design a
-touch GUI for LibreOffice, so the work on cross-compiling LibreOffice
-for iOS is extremely experimental, and of course partly pointless;)
-But it is interesting and fun nonetheless.
-
-Obviously it will make sense to build only a part of LibreOffice's
-code for iOS. Most likely all GUI-oriented code should be left out,
-and some iOS app that eventually wants to use the remaining bits will
-handle all its GUI in a platform-dependent manner. How well it will be
-possible to do such a split remains to be seen. As I said, this is
-highly experimental and just in its baby steps phase.
+GUI widgets. No work has been done (at least publicly) by others to
+design a touch GUI for LibreOffice, so that is something that needs to
+be done.
+
+Obviously it will make sense to use only a part of LibreOffice's code
+for iOS. Most likely lots of the GUI-oriented code should be left out,
+and some iOS app(s) that eventually wants to use the remaining bits
+will handle all its GUI in a platform-dependent manner. How well it
+will be possible to do such a split remains to be seen.
 
 Technically, one important special aspect of iOS is that apps are not
 allowed to load own dynamic libraries. (System libraries are used in
@@ -310,10 +309,10 @@ or g++ won't find its headers like bits/c++config.h
 Android
 ---
 
-I don't know much about Android, but from a technical point of view it
-is a kind of Linux, of course. As far as I know it is allowed for an
-Android app to use shared objects, but if it isn't, then just the same
-approach as used on iOS will need to be used.
+From a technical point of view the core Android OS is Linux, but
+everything else is different. Unlike iOS, an Android app can use
+shared objects just fine, so that aspect of UNO doesn't 

[Libreoffice-commits] .: vcl/README

2012-01-17 Thread Michael Meeks
 vcl/README |   21 -
 1 file changed, 20 insertions(+), 1 deletion(-)

New commits:
commit 802d82b6e2acedd3581acbf23407d7f5f742c671
Author: Michael Meeks michael.me...@suse.com
Date:   Tue Jan 17 18:03:12 2012 +

vcl: expand the documentation in README

diff --git a/vcl/README b/vcl/README
index 9e9507c..97ff76a 100644
--- a/vcl/README
+++ b/vcl/README
@@ -19,10 +19,29 @@ win/
+ windows backend
 unx/
+ unix specific platform backend code and its' sub-platforms
+   plugadapt/
+   + pluggable framework to select correct unx backend
gtk/
+   + gtk2 support
gtk3/
+   + gtk3.2+ support
kde/
-   generic/  - raw X
+   + kde3 support
+   kde4/
+   + kde4 support
+   generic/
+   + raw X support
 
 
+How the platform abstraction works
 
+   + InitVCL calls 'CreateSalInstance'
+   + ths is implemented by the compiled-in platform backend
+   + it stores various bits of global state in the
+ 'SalData' (inc/saldatabasic.hxx) structure but:
+   + the SalInstance vtable is the primary outward facing gateway
+ API for platform backends
+   + It is a factory for:
+ SalFrames, SalVirtualDevices, SalPrinters,
+ Timers, the SolarMutexe, DragDrop and other
+ objects, as well as the primary event loop wrapper.
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: Branch 'libreoffice-3-5' - 2 commits - linguistic/source sw/source vcl/source

2012-01-17 Thread Michael Stahl
 linguistic/source/gciterator.cxx |   61 +--
 linguistic/source/gciterator.hxx |5 ++-
 sw/source/ui/uiview/view1.cxx|4 ++
 vcl/source/app/svmain.cxx|4 ++
 4 files changed, 40 insertions(+), 34 deletions(-)

New commits:
commit 74255f5e0b89d60102e0b482ed894c64de57b42c
Author: Cédric Bosdonnat cedric.bosdonnat@free.fr
Date:   Fri Jan 13 16:04:09 2012 +0100

fdo#40438: force calculating layout before Activate to avoid crashes and 
loops

(cherry picked from commit d83488f9795740857830aaf005e06e30d4e7d70c)

Signed-off-by: Michael Stahl mst...@redhat.com

diff --git a/sw/source/ui/uiview/view1.cxx b/sw/source/ui/uiview/view1.cxx
index 23d80f9..79ec899 100644
--- a/sw/source/ui/uiview/view1.cxx
+++ b/sw/source/ui/uiview/view1.cxx
@@ -53,6 +53,10 @@ extern int bDocSzUpdated;
 
 void SwView::Activate(sal_Bool bMDIActivate)
 {
+// fdo#40438 Update the layout to make sure everything is correct before 
showing the content
+pWrtShell-StartAction();
+pWrtShell-EndAction( sal_True );
+
 // aktuelle View anmelden an der DocShell
 // die View bleibt solange an der DocShell
 // aktiv bis Sie zerstoert wird oder durch Activate eine
commit 69ba498b4cfd2b25ddc1c84f83d376d11c321fce
Author: Stephan Bergmann sberg...@redhat.com
Date:   Fri Dec 16 16:06:42 2011 +0100

Properly join spawned GrammarCheckingIterator thread.

It was still running during shutdown of sw_complex's checkFlies test, 
causing
problems.
For this to work, Desktop::DeInit needs to be called with SolarMutex 
unlocked,
which looks like the right way, anyway.  Hopefully it does not unearth 
another
round of bugs...

(cherry picked from commit c5cf78e1529970c04e1999e1f96f3e374ecd211e)

Signed-off-by: Michael Stahl mst...@redhat.com
Signed-off-by: Stephan Bergmann sberg...@redhat.com

diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx
index 9828052..91c407c 100644
--- a/linguistic/source/gciterator.cxx
+++ b/linguistic/source/gciterator.cxx
@@ -252,15 +252,31 @@ GrammarCheckingIterator::GrammarCheckingIterator( const 
uno::Reference lang::XM
 m_aEventListeners( MyMutex::get() ),
 m_aNotifyListeners( MyMutex::get() )
 {
-osl_createThread( workerfunc, this );
+m_thread = osl_createThread( workerfunc, this );
 }
 
 
 GrammarCheckingIterator::~GrammarCheckingIterator()
 {
-::osl::Guard ::osl::Mutex  aGuard( MyMutex::get() );
+TerminateThread();
 }
 
+void GrammarCheckingIterator::TerminateThread()
+{
+oslThread t;
+{
+::osl::Guard ::osl::Mutex  aGuard( MyMutex::get() );
+t = m_thread;
+m_thread = 0;
+m_bEnd = sal_True;
+m_aWakeUpThread.set();
+}
+if (t != 0)
+{
+osl_joinWithThread(t);
+osl_destroyThread(t);
+}
+}
 
 sal_Int32 GrammarCheckingIterator::NextDocId()
 {
@@ -489,19 +505,16 @@ void GrammarCheckingIterator::DequeueAndCheck()
 uno::Sequence sal_Int32   aLangPortions;
 uno::Sequence lang::LocaleaLangPortionsLocale;
 
-//  THREAD SAFE START 
-bool bEnd = false;
-{
-::osl::Guard ::osl::Mutex  aGuard( MyMutex::get() );
-bEnd = m_bEnd;
-}
-//  THREAD SAFE END 
-while (!bEnd)
+for (;;)
 {
 //  THREAD SAFE START 
 bool bQueueEmpty = false;
 {
 ::osl::Guard ::osl::Mutex  aGuard( MyMutex::get() );
+if (m_bEnd)
+{
+break;
+}
 bQueueEmpty = m_aFPEntriesQueue.empty();
 }
 //  THREAD SAFE END 
@@ -605,6 +618,10 @@ void GrammarCheckingIterator::DequeueAndCheck()
 //  THREAD SAFE START 
 {
 ::osl::Guard ::osl::Mutex  aGuard( MyMutex::get() );
+if (m_bEnd)
+{
+break;
+}
 // Check queue state again
 if (m_aFPEntriesQueue.empty())
 m_aWakeUpThread.reset();
@@ -618,17 +635,7 @@ void GrammarCheckingIterator::DequeueAndCheck()
 // safe implemented.
 m_aWakeUpThread.wait();
 }
-
-//  THREAD SAFE START 
-{
-::osl::Guard ::osl::Mutex  aGuard( MyMutex::get() );
-bEnd = m_bEnd;
-}
-//  THREAD SAFE END 
 }
-
-//!! This one must be the very last statement to call in this function !!
-m_aRequestEndThread.set();
 }
 
 
@@ -901,19 +908,7 @@ throw (uno::RuntimeException)
 lang::EventObject aEvt( (linguistic2::XProofreadingIterator *) this );
 m_aEventListeners.disposeAndClear( aEvt );
 
-// now end the thread...
-m_aRequestEndThread.reset();
-//  THREAD SAFE START 
-{
-::osl::Guard ::osl::Mutex  aGuard( MyMutex::get() );
-m_bEnd = sal_True;
-}
-//  THREAD SAFE 

[Libreoffice-commits] .: basic/inc

2012-01-17 Thread August Sodora
 basic/inc/basic/basmgr.hxx |   14 --
 1 file changed, 14 deletions(-)

New commits:
commit 9746244229613cd5da87a268cff80ca8c8c3ec89
Author: August Sodora aug...@gmail.com
Date:   Tue Jan 17 17:45:31 2012 -0500

Remove unused macros

diff --git a/basic/inc/basic/basmgr.hxx b/basic/inc/basic/basmgr.hxx
index 4b4bf38..f5ac0aa 100644
--- a/basic/inc/basic/basmgr.hxx
+++ b/basic/inc/basic/basmgr.hxx
@@ -35,26 +35,12 @@
 #include com/sun/star/script/XStarBasicAccess.hpp
 #include basicdllapi.h
 
-
 // Basic XML Import/Export
 BASIC_DLLPUBLIC com::sun::star::uno::Reference 
com::sun::star::script::XStarBasicAccess 
 getStarBasicAccess( BasicManager* pMgr );
 
-
-
 class SotStorage;
 
-#define BASERR_ID_STDLIBOPENERRCODE_BASMGR_STDLIBOPEN
-#define BASERR_ID_STDLIBSAVEERRCODE_BASMGR_STDLIBSAVE
-#define BASERR_ID_LIBLOAD   ERRCODE_BASMGR_LIBLOAD
-#define BASERR_ID_LIBCREATE ERRCODE_BASMGR_LIBCREATE
-#define BASERR_ID_LIBSAVE   ERRCODE_BASMGR_LIBSAVE
-#define BASERR_ID_LIBDELERRCODE_BASMGR_LIBDEL
-#define BASERR_ID_MGROPEN   ERRCODE_BASMGR_MGROPEN
-#define BASERR_ID_MGRSAVE   ERRCODE_BASMGR_MGRSAVE
-#define BASERR_ID_REMOVELIB ERRCODE_BASMGR_REMOVELIB
-#define BASERR_ID_UNLOADLIB ERRCODE_BASMGR_UNLOADLIB
-
 #define BASERR_REASON_OPENSTORAGE   0x0001
 #define BASERR_REASON_OPENLIBSTORAGE0x0002
 #define BASERR_REASON_OPENMGRSTREAM 0x0004
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: cui/source

2012-01-17 Thread August Sodora
 cui/source/options/treeopt.cxx |   49 -
 1 file changed, 49 deletions(-)

New commits:
commit 064065985a24e2454234e929969cc2b1649b3d01
Author: August Sodora aug...@gmail.com
Date:   Tue Jan 17 18:34:55 2012 -0500

fdo#44402: make keyboard navigation work again in Tools-Options

diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index 6668f68..df63661 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -951,55 +951,6 @@ void OfaTreeOptionsDialog::SelectHdl_Impl()
 if (!pParent)
 {
 pBox-EndSelection();
-
-OptionsGroupInfo* pGroupInfo = 
static_castOptionsGroupInfo*(pEntry-GetUserData());
-
-if(!pGroupInfo)
-return;
-
-switch(pGroupInfo-m_nDialogId)
-{
-case SID_GENERAL_OPTIONS:
-ActivatePage(RID_SFXPAGE_GENERAL);
-break;
-case SID_LANGUAGE_OPTIONS:
-ActivatePage(OFA_TP_LANGUAGES);
-break;
-case SID_INET_DLG:
-ActivatePage(RID_SVXPAGE_INET_PROXY);
-break;
-case SID_SW_EDITOPTIONS:
-ActivatePage(RID_SW_TP_OPTLOAD_PAGE);
-break;
-case SID_SW_ONLINEOPTIONS:
-ActivatePage(RID_SW_TP_HTML_CONTENT_OPT);
-break;
-case SID_SC_EDITOPTIONS:
-ActivatePage(SID_SC_TP_LAYOUT);
-break;
-case SID_SD_EDITOPTIONS:
-ActivatePage(SID_SI_TP_MISC);
-break;
-case SID_SD_GRAPHIC_OPTIONS:
-ActivatePage(SID_SD_TP_MISC);
-break;
-case SID_SM_EDITOPTIONS:
-ActivatePage(SID_SM_TP_PRINTOPTIONS);
-break;
-case SID_SCH_EDITOPTIONS:
-ActivatePage(RID_OPTPAGE_CHART_DEFCOLORS);
-break;
-case SID_SB_STARBASEOPTIONS:
-ActivatePage(SID_SB_CONNECTIONPOOLING);
-break;
-case SID_FILTER_DLG:
-ActivatePage(RID_SFXPAGE_SAVE);
-break;
-default:
-SAL_WARN(cui.options, Unrecognized options category   
pGroupInfo-m_nDialogId);
-break;
-}
-
 return;
 }
 
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: extensions/source

2012-01-17 Thread Bjoern Michaelsen
 extensions/source/nsplugin/source/so_env.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 03f4f6e17a0a159eb48282bde0a5392c104a0b19
Author: Bjoern Michaelsen bjoern.michael...@canonical.com
Date:   Wed Jan 18 00:49:51 2012 +0100

lp#711673: mozilla-libreoffice mislabeled as OpenOffice.org Plug-in

diff --git a/extensions/source/nsplugin/source/so_env.cxx 
b/extensions/source/nsplugin/source/so_env.cxx
index 322a2ff..92faaa2 100644
--- a/extensions/source/nsplugin/source/so_env.cxx
+++ b/extensions/source/nsplugin/source/so_env.cxx
@@ -63,7 +63,7 @@
 #include ns_debug.hxx
 #include sal/config.h
 
-#define PLUGIN_NAME OpenOffice.org
+#define PLUGIN_NAME LibreOffice
 
 // Tranform all strings like %20 in pPath to one char like space
 /*int retoreUTF8(char* pPath)
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: 2 commits - writerfilter/prj writerfilter/qa writerfilter/source

2012-01-17 Thread Miklos Vajna
 writerfilter/source/doctok/replacesprmids |1 -
 1 file changed, 1 deletion(-)

New commits:
commit 80852d8526de6981a2754e7a6bd87d5adac92433
Author: Miklos Vajna vmik...@frugalware.org
Date:   Wed Jan 18 02:10:41 2012 +0100

writerfilter: remove empty line before shebang

diff --git a/writerfilter/source/doctok/replacesprmids 
b/writerfilter/source/doctok/replacesprmids
index 34a7121..0279352 100755
--- a/writerfilter/source/doctok/replacesprmids
+++ b/writerfilter/source/doctok/replacesprmids
@@ -1,4 +1,3 @@
-
 #!/bin/sh
 
 sed s/0xc601/NS_sprm::LN_PIstdPermute/g  $1  $1.out  mv $1.out $1 
commit f4f774a3ae113e2c5f965d33de2cfa3746aad922
Author: Miklos Vajna vmik...@frugalware.org
Date:   Wed Jan 18 02:09:17 2012 +0100

writerfilter: drop exec bit on non-script files

diff --git a/writerfilter/prj/makefile.mk b/writerfilter/prj/makefile.mk
old mode 100755
new mode 100644
diff --git a/writerfilter/qa/documents/fields.doc 
b/writerfilter/qa/documents/fields.doc
old mode 100755
new mode 100644
diff --git a/writerfilter/qa/documents/runProperties.docx 
b/writerfilter/qa/documents/runProperties.docx
old mode 100755
new mode 100644
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice] rounding problem with twips in writer

2012-01-17 Thread Winfried Donkers
Hi,

When you create a new label-document, say a label form (paper size A4) with 3 
columns and labels of 70mm wide (no gap between them), the result is a 
distorted document (If you want to reproduce take label Tower-CIL-W100 of Avery 
Zweckform-3422). It is mentioned in bug 35104 and concerns bug 44516.
This is caused by MM100 to TWIP conversion. An A4 page is 210mm, 11906twip. The 
calculated document width is 210mm, 11907twip.

Does anyone have suggestions how to solve this in a neat way?



Winfried

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


Re: [Libreoffice] [REVIEW][3-4] date change regression fdo#44385

2012-01-17 Thread Noel Power

On 16/01/12 16:59, Eike Rathke wrote:

b) not so risky ( I think ), and... would change the present
  behaviour in consistent way for treatment of minus operator
  -if( GetType() == SbxDATE || rOp.GetType() == SbxDATE )
  +if( ( eOp == SbxPLUS || eOp == SbxMINUS )  (
  ( GetType() == SbxDATE || rOp.GetType() == SbxDATE )  ( GetType()
  != rOp.GetType() ) ) )

That one (b) looks good.

ok, good you don't see additional problems then



  c) risker variant of b that allows all operations on a date type to
  retain it's date type
  
  -if( GetType() == SbxDATE || rOp.GetType() == SbxDATE )

  +if( ( GetType() == SbxDATE || rOp.GetType() ==
  SbxDATE )  ( GetType() != rOp.GetType() ) )

I don't spot sense in 2*today() =  2124-02-02;-)

   Eike
well like I said neither do I but iirc Andrew mentioned he could think 
of some possible strange use cases ( maybe I misunderstood him ) Anyway 
I will commit the solution we agreed on. Andrew, if still feel strongly 
enough that the 'Date' type should be preserved then I guess you can 
submit an extra patch and rational to the list.


thanks again

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


Re: [Libreoffice] Check for updates uses keep-alive / impacts the server (opengrok, tinderbox..)

2012-01-17 Thread Pedro
Hi Michael, all


Michael Meeks-2 wrote
 
 I -imagine- we want clients to poll at intervals, instant notification of
 updates is
 not a useful feature to pay for millions of open sockets on the server
 for.
 

I hope you guys manage to fix this for RC1. Currently only the Beta version
has this feature. Considering that only a small proportion of users are
brave enough to try Betas and that Updates are only checked manually, it is
worrying that this can have an impact on the server...

IMO polling at intervals is also overkill (both for the user and for the
servers). LO should have an option to Check at startup or Check manually
(which disables automatic checking)

Just my 2 (non-dev) cents ;)

Regards,
Pedro

--
View this message in context: 
http://nabble.documentfoundation.org/Check-for-updates-uses-keep-alive-impacts-the-server-opengrok-tinderbox-tp3661900p3665631.html
Sent from the Dev mailing list archive at Nabble.com.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] [ANN] LibreOffice 3.5.0 Beta3 available

2012-01-17 Thread Francois Tigeot
Hi,

On Mon, Jan 16, 2012 at 12:49:50PM +0100, Thorsten Behrens wrote:
 
 The Document Foundation is happy to announce the third beta release
 of LibreOffice 3.5.0. The upcoming 3.5 will be our third major release
 line, packed with many exciting new features. Please be aware that
 LibreOffice 3.5.0 Beta3 is not ready for production use, you should
 continue to use LibreOffice 3.4.5 for that.
 
 The release is available for Windows, Linux and Mac OS X from our QA
 builds download page at
 
   http://www.libreoffice.org/download/pre-releases/

The pre-release page only lists binaries; would it be possible to add links
to the source code tarballs for people wanting to build LO themselves ?

As far as I know, the tree has not been tagged so the only way to get the
exact same sources used to create theses binaries is to download a complete
archive.

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


[Libreoffice] [PATCH] Replace (Byte)String with O(U)String

2012-01-17 Thread Chr. Rossmanith

Hi,

an excursion from vcl to unotools was necessary. Could someone please 
review this little patch? xub_StrLen is replaced as well with sal_Int32.


Thank you,
Christina
From 77eca65e7d6e23206f21b3a569578a48330d1e43 Mon Sep 17 00:00:00 2001
From: Christina Rossmanith chrrossman...@web.de
Date: Tue, 17 Jan 2012 11:02:34 +0100
Subject: [PATCH] Replace (Byte)String with O(U)String

---
 unotools/inc/unotools/fontdefs.hxx |2 +-
 unotools/source/misc/fontcvt.cxx   |   19 ---
 2 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/unotools/inc/unotools/fontdefs.hxx b/unotools/inc/unotools/fontdefs.hxx
index 12d9c43..9aec0f2 100644
--- a/unotools/inc/unotools/fontdefs.hxx
+++ b/unotools/inc/unotools/fontdefs.hxx
@@ -74,7 +74,7 @@ public:
 const char* mpSubsFontName;
 sal_Unicode (*mpCvtFunc)( sal_Unicode );
 sal_Unicode RecodeChar( sal_Unicode c ) const;
-voidRecodeString( String rStra, xub_StrLen nIndex, xub_StrLen nLen ) const;
+voidRecodeString( rtl::OUString rStra, sal_Int32 nIndex, sal_Int32 nLen ) const;
 static const ConvertChar* GetRecodeData( const String rOrgFontName, const String rMapFontName );
 };
 
diff --git a/unotools/source/misc/fontcvt.cxx b/unotools/source/misc/fontcvt.cxx
index cabdaf7..4d179ea 100644
--- a/unotools/source/misc/fontcvt.cxx
+++ b/unotools/source/misc/fontcvt.cxx
@@ -29,6 +29,7 @@
 #include unotools/fontcvt.hxx
 #include unotools/fontdefs.hxx
 #include sal/macros.h
+#include rtl/ustrbuf.hxx
 
 #ifndef _STLP_MAP
 #include map
@@ -1374,15 +1375,15 @@ sal_Unicode ConvertChar::RecodeChar( sal_Unicode cChar ) const
 
 // recode the string assuming the character codes are symbol codes
 // from an traditional symbol font (i.e. U+F020..U+F0FF)
-void ConvertChar::RecodeString( String rStr, xub_StrLen nIndex, xub_StrLen nLen ) const
+void ConvertChar::RecodeString( rtl::OUString rStr, sal_Int32 nIndex, sal_Int32 nLen ) const
 {
-sal_uLong nLastIndex = (sal_uLong)nIndex + nLen;
-if( nLastIndex  rStr.Len() )
-nLastIndex = rStr.Len();
+sal_Int32 nLastIndex = nIndex + nLen;
+if( nLastIndex  rStr.getLength() )
+nLastIndex = rStr.getLength();
 
 for(; nIndex  nLastIndex; ++nIndex )
 {
-sal_Unicode cOrig = rStr.GetChar( nIndex );
+sal_Unicode cOrig = rStr[nIndex];
 // only recode symbols and their U+00xx aliases
 if( ((cOrig  0x0020) || (cOrig  0x00FF))
   ((cOrig  0xF020) || (cOrig  0xF0FF)) )
@@ -1390,8 +1391,12 @@ void ConvertChar::RecodeString( String rStr, xub_StrLen nIndex, xub_StrLen nLen
 
 // recode a symbol
 sal_Unicode cNew = RecodeChar( cOrig );
-if( cOrig != cNew )
-rStr.SetChar( nIndex, cNew );
+if( cOrig != cNew ) {
+//rStr[nIndex] = cNew;
+rtl::OUStringBuffer aTmpStr(rStr.getStr());
+aTmpStr[nIndex] = cNew;
+rStr = aTmpStr.makeStringAndClear();
+}
 }
 }
 
-- 
1.7.4.1

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


Re: [Libreoffice] Check for updates uses keep-alive / impacts the server (opengrok, tinderbox..)

2012-01-17 Thread Jonathan Aquilina

On 17/01/2012 10:54, Pedro wrote:

Hi Michael, all


Michael Meeks-2 wrote

I -imagine- we want clients to poll at intervals, instant notification of
updates is
not a useful feature to pay for millions of open sockets on the server
for.


I hope you guys manage to fix this for RC1. Currently only the Beta version
has this feature. Considering that only a small proportion of users are
brave enough to try Betas and that Updates are only checked manually, it is
worrying that this can have an impact on the server...

IMO polling at intervals is also overkill (both for the user and for the
servers). LO should have an option to Check at startup or Check manually
(which disables automatic checking)


I think the best solution set it to poll once a week, and we must ensure 
though that connections get closed once the polling to see if a newer 
version is available is complete.

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


Re: [Libreoffice] Check for updates uses keep-alive / impacts the server (opengrok, tinderbox..)

2012-01-17 Thread Pedro

Jonathan Aquilina wrote
 
 IMO polling at intervals is also overkill (both for the user and for the
 servers). LO should have an option to Check at startup or Check manually
 (which disables automatic checking)
 
 I think the best solution set it to poll once a week, and we must ensure 
 though that connections get closed once the polling to see if a newer 
 version is available is complete.
 

My previous suggestion was not so good. Check at startup could make it
check several times per day (depending on user habits). Check once a week is
good enough for regular users but is bad for anxious users :)

Check daily (with a saved flag) seems like the best option.

--
View this message in context: 
http://nabble.documentfoundation.org/Check-for-updates-uses-keep-alive-impacts-the-server-opengrok-tinderbox-tp3661900p3665703.html
Sent from the Dev mailing list archive at Nabble.com.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Check for updates uses keep-alive / impacts the server (opengrok, tinderbox..)

2012-01-17 Thread Jonathan Aquilina

On 17/01/2012 11:30, Pedro wrote:

Jonathan Aquilina wrote

IMO polling at intervals is also overkill (both for the user and for the
servers). LO should have an option to Check at startup or Check manually
(which disables automatic checking)

I think the best solution set it to poll once a week, and we must ensure
though that connections get closed once the polling to see if a newer
version is available is complete.


My previous suggestion was not so good. Check at startup could make it
check several times per day (depending on user habits). Check once a week is
good enough for regular users but is bad for anxious users :)

Check daily (with a saved flag) seems like the best option.

There could be 3 options for this

check daily, weekly, and monthly or disable the checks all together.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Check for updates uses keep-alive / impacts the server (opengrok, tinderbox..)

2012-01-17 Thread Thorsten Behrens
Stephan Bergmann wrote:
 (css.beans.NamedValue is a little more lightweight than
 PropertyValue in cases like this.)
 
Indeedly. Adapted, thx for noticing.

Cheers,

-- Thorsten


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


Re: [Libreoffice] Check for updates uses keep-alive / impacts the server (opengrok, tinderbox..)

2012-01-17 Thread Christian Lohmaier
Hi Pedro, *,

On Tue, Jan 17, 2012 at 10:54 AM, Pedro pedl...@gmail.com wrote:

 I hope you guys manage to fix this for RC1. Currently only the Beta version
 has this feature. Considering that only a small proportion of users are
 brave enough to try Betas and that Updates are only checked manually,

my beta3 defaults to having the weekly auto-check enabled.

 it is
 worrying that this can have an impact on the server...

Yes, because it runs out of open connections, not because it causes
high load. It causes the server to roll thumbs..

 IMO polling at intervals is also overkill (both for the user and for the
 servers).

The check itself is no challenge for the server at all, it can process
millions of those requests easily.

The problem is just this: Let's assume you have 3 cashiers, and 30
customers. you need  one minute to process a customer, thus with this
math you need 10 minutes for all of those. This is the should-be
case. But the bad case is that the 3 cashiers won't serve the next
customer unless the previous one did say I'm done with shopping as
the customer might bring another piece to buy, but never does so. It
reserves a timeslot of 10 minutes for each customer, each customer can
bring additional items within that 10 minutes (and if done so, the
slot extends to an additional 10 minutes). Yet every customer only
wants to buy one single item, with this setup dealing with those 30
customers takes 100 minutes.
And with the actual server the ratio is even worse - a request that
would take milliseconds is blown up to blocking a slot for 15 seconds
(the interval has been reduced on the server in the meantime, so that
all the beta users won't have a noticable impact on the server).

 LO should have an option to Check at startup or Check manually
 (which disables automatic checking)

Nah, I disagree, the options to check daily, weekly, monthly and only
manually are just fine.

As you wrote yourself - at startup can poll multiple times a day and
that doesn't really make sense.

And with the code in LO fixed to immediately signalling I'm done
after this request will solve the problem for good, the server will
handle those update requests with ease.

So thanks a lot Thorsten :-)

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


Re: [Libreoffice] rounding problem with twips in writer

2012-01-17 Thread Caolán McNamara
On Tue, 2012-01-17 at 09:57 +0100, Winfried Donkers wrote:
 This is caused by MM100 to TWIP conversion. An A4 page is 210mm,
 11906twip. The calculated document width is 210mm, 11907twip.

Do you know where the code is that calculates 11907 as the result ?

 Does anyone have suggestions how to solve this in a neat way?

Otherwise would PaperInfo::doSloppyFit be of any use to you here ?, can
opengrok for usages, snaps paper sizes that are within a tiny distance
of a known paper size to that paper size

C.


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


Re: [Libreoffice] Check for updates uses keep-alive / impacts the server (opengrok, tinderbox..)

2012-01-17 Thread Pedro
Hi Christian, all


Christian Lohmaier-2 wrote
 
 my beta3 defaults to having the weekly auto-check enabled.
 

My bad for not having noticed the fantastic Online Update configuration
under Tools, Options. 
I was so happy that there was a Check for Updates option  in the Help menu
that I didn't realize there was much more. This definitely needs a HUGE
propaganda in the 3.5 Release Notes!
Kudos to all that worked on this!


Christian Lohmaier-2 wrote
 
 The problem is just this: 
 SNIP
 But the bad case is that the 3 cashiers won't serve the next
 customer unless the previous one did say I'm done with shopping as
 the customer might bring another piece to buy, but never does so. 
 SNIP
 

Thank you for the clear supermarket analogy ;)
I'm glad the cashiers are no longer waiting for the undecided customer :)


Christian Lohmaier-2 wrote
 
 So thanks a lot Thorsten :-)
 

+10 ;)

Regards,
Pedro

--
View this message in context: 
http://nabble.documentfoundation.org/Check-for-updates-uses-keep-alive-impacts-the-server-opengrok-tinderbox-tp3661900p3665830.html
Sent from the Dev mailing list archive at Nabble.com.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] uno.RuntimeException when convert ODT to HTML

2012-01-17 Thread Caolán McNamara
On Mon, 2012-01-16 at 21:09 -0200, Gabriel Monnerat wrote:
 Hello everybody,
 I am trying convert one document(ODT to HTML) using one web service
 written in Python.
 
 self.document_loaded.dispose()
 uno.RuntimeException: illegal object given!

No idea, probably need to be able to provide a standalone demo for
someone to examine it a bit closer.

I presume self.document_loaded is not simply null at this point ?

or maybe hackaround with...

try:
self.document_loaded.dispose()
catch:
pass

to see if that moves the problem somewhere else more verbose :-)

C.


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


Re: [Libreoffice] rounding problem with twips in writer

2012-01-17 Thread Winfried Donkers
 This is caused by MM100 to TWIP conversion. An A4 page is 210mm,
 11906twip. The calculated document width is 210mm, 11907twip.
Do you know where the code is that calculates 11907 as the result ?

No. I know that:
 -a macro (MM100_TO_TWIP) is used.
 -the paper width is calculated from (leftMargin * 2 + (columns-1)*labelPitch + 
labelWidth (core/sw/source/ui/app/applab.cxx) and each has converted form MM100 
to TWIP before that. The problem is not here, because when I apply bugfix 44516 
(which I have not yet submitted), the paper width is taken from the label 
definition and amounts to 11906twip.
 -when creating the new document, somewhere the document takes shape and the 
label definition is used to locate the labels on the paper.


Otherwise would PaperInfo::doSloppyFit be of any use to you here ?, can
opengrok for usages, snaps paper sizes that are within a tiny distance
of a known paper size to that paper size
PaperInfo::doSloppy could be a great help indeed, although the paper format is 
not the problem (it is correct), but the contents of the created document are 
one twip wider than the paper.
If it were only a couple of label definitons with this problem, I would have 
reduced the label width with one MM100 and the problem would be solved. 
Unfortanely, I count 522 -potential- problems (I only checked 3, all problem).

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


Re: [Libreoffice] [REVIEW] fdo#43932: try to fix paper tray settings

2012-01-17 Thread Caolán McNamara
On Fri, 2012-01-13 at 22:22 +0400, Ivan Timofeev wrote:
 Hi there,
 
 https://bugs.freedesktop.org/show_bug.cgi?id=43932
 
 this patch partially reverts
 http://cgit.freedesktop.org/libreoffice/core/commit/?id=4cc5448ed82f13bb107695b65f39589df1e46cb9
 because the following change made the option
 [ ] Use only paper tray from printer preferences useless:

...

 1. I haven't got a multitray printer to test this. 

caolanm-dtardon: is there any multitray printers over where you are to
give this a quick sanity test ?

C.

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


Re: [Libreoffice] [ANN] LibreOffice 3.5.0 Beta3 available

2012-01-17 Thread Miklos Vajna
On Tue, Jan 17, 2012 at 10:50:37AM +0100, Francois Tigeot 
ftig...@wolfpond.org wrote:
 As far as I know, the tree has not been tagged so the only way to get the
 exact same sources used to create theses binaries is to download a complete
 archive.

See http://dev-builds.libreoffice.org/pre-releases/src/ for beta3 source
tarballs.


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


[Libreoffice] [PATCH] Removing unused code

2012-01-17 Thread Alexander Bergmann
---
 unusedcode.easy |8 
 vcl/inc/vcl/pdfextoutdevdata.hxx|   62 
 vcl/inc/vcl/pdfwriter.hxx   |1 -
 vcl/source/gdi/pdfextoutdevdata.cxx |   36 
 vcl/source/gdi/pdfwriter.cxx|5 --
 vcl/source/gdi/pdfwriter_impl.cxx   |   77 ---
 vcl/source/gdi/pdfwriter_impl.hxx   |1 -
 7 files changed, 0 insertions(+), 190 deletions(-)

diff --git a/unusedcode.easy b/unusedcode.easy
index b1dcbcd..9ce0c21 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -1889,13 +1889,5 @@ 
vcl::MatrixArranger::addChild(boost::shared_ptrvcl::WindowArranger const, uns
 vcl::MatrixArranger::addWindow(Window*, unsigned int, unsigned int, int, Size 
const)
 vcl::MatrixArranger::remove(Window*)
 vcl::MatrixArranger::remove(boost::shared_ptrvcl::WindowArranger const)
-vcl::PDFExtOutDevData::EndGroup()
-vcl::PDFExtOutDevData::GetFormsFormat() const
-vcl::PDFExtOutDevData::SetAutoAdvanceTime(unsigned int, int)
-vcl::PDFExtOutDevData::SetOutlineItemDest(int, int)
-vcl::PDFExtOutDevData::SetOutlineItemParent(int, int)
-vcl::PDFExtOutDevData::SetOutlineItemText(int, rtl::OUString const)
-vcl::PDFWriter::DrawPixel(Polygon const, Color const*)
-vcl::PDFWriterImpl::drawPolyPolygon(PolyPolygon const, int, bool)
 
vcl::unx::GtkPrintWrapper::print_operation_set_has_selection(_GtkPrintOperation*,
 int) const
 
vcl::unx::GtkPrintWrapper::print_operation_set_support_selection(_GtkPrintOperation*,
 int) const
diff --git a/vcl/inc/vcl/pdfextoutdevdata.hxx b/vcl/inc/vcl/pdfextoutdevdata.hxx
index c1be576..665303b 100644
--- a/vcl/inc/vcl/pdfextoutdevdata.hxx
+++ b/vcl/inc/vcl/pdfextoutdevdata.hxx
@@ -131,7 +131,6 @@ public :
 sal_BoolGetIsExportFormFields() const;
 voidSetIsExportFormFields( const sal_Bool bExportFormFields );
 
-sal_Int32   GetFormsFormat() const;
 voidSetFormsFormat( const sal_Int32 nFormsFormat );
 
 sal_BoolGetIsExportBookmarks() const;
@@ -166,13 +165,6 @@ public :
 
 /** End render output
 
-This method ends grouped render output without
-further actions.
- */
-voidEndGroup();
-
-/** End render output
-
 This method ends grouped render output, that can be
 represented by a GfxLink. This is typically used for
 external graphic files, such as JPEGs, EPS files etc.
@@ -321,49 +313,6 @@ public :
 */
 sal_Int32 CreateOutlineItem( sal_Int32 nParent = 0, const rtl::OUString 
rText = rtl::OUString(), sal_Int32 nDestID = -1 );
 
-/** Set an outline item's parent
-
-@param nItem
-specififies which item should be reparented.
-
-@param nNewParent
-specifies which outline item will be the item's new parent.
-Use 0 for reparenting to top level.
-
-@returns
--1 if the item does not exist
--2 if the new parent does not exist, item will be reparented to top level.
-*/
-sal_Int32 SetOutlineItemParent( sal_Int32 nItem, sal_Int32 nNewParent );
-
-/** Set an outline item's title text
-
-@param nItem
-specififies which item should get a new text
-
-@param rText
-sets the title text of the item
-
-@returns
-0 if the item exists and the text was changed
--1 if the item does not exist
-*/
-sal_Int32 SetOutlineItemText( sal_Int32 nItem, const rtl::OUString rText 
);
-
-/** Set an outline item's destination
-
-@param nItem
-specififies which item should get a new dest
-
-@param nDestID
-specifies the item's new destination
-
-@returns
--1 if the item does not exist
--2 if the new dest does not exist, dest will remain unchanged
-*/
-sal_Int32 SetOutlineItemDest( sal_Int32 nItem, sal_Int32 nDestID );
-
 /** Create a new note on a page
 
 @param rRect
@@ -518,17 +467,6 @@ public :
 */
 void SetAlternateText( const String rText );
 
-/** Sets the time in seconds a page will appear before the next
-page is shown automatically
-
-@param nSeconds
-time in seconds the current page will be shown; pass 0 for manual 
advancement
-
-@param nPageNr
-the page number to apply the autoadvance time to; -1 denotes the 
current page
-*/
-void SetAutoAdvanceTime( sal_uInt32 nSeconds, sal_Int32 nPageNr = -1 );
-
 /** Sets the transitional effect to be applied when the current page gets 
shown.
 
 @param eType
diff --git a/vcl/inc/vcl/pdfwriter.hxx b/vcl/inc/vcl/pdfwriter.hxx
index b14ebd5..c4a7479 100644
--- a/vcl/inc/vcl/pdfwriter.hxx
+++ b/vcl/inc/vcl/pdfwriter.hxx
@@ -763,7 +763,6 @@ The following structure describes the permissions used in 
PDF security
 voidDrawPixel( const Point rPt, const Color rColor );
 voidDrawPixel( const Point rPt )
 { DrawPixel( rPt, Color( COL_TRANSPARENT ) ); }
-voidDrawPixel( const Polygon rPts, const Color* pColors = 
NULL );
 void  

Re: [Libreoffice] rounding problem with twips in writer

2012-01-17 Thread Caolán McNamara
On Tue, 2012-01-17 at 13:03 +0100, Winfried Donkers wrote:
  This is caused by MM100 to TWIP conversion. An A4 page is 210mm,
  11906twip. The calculated document width is 210mm, 11907twip.
 Do you know where the code is that calculates 11907 as the result ?
 
 No. I know that:  -a macro (MM100_TO_TWIP) is used.  -the paper width
 is calculated from (leftMargin * 2 + (columns-1)*labelPitch +
 labelWidth (core/sw/source/ui/app/applab.cxx) and each has converted
 form MM100 to TWIP before that. The problem is not here, because when I
 apply bugfix 44516 (which I have not yet submitted), the paper width is
 taken from the label definition and amounts to 11906twip.

Well, 11906 is the correct value in twips (twenty in a point, 72 points
in an inch = 1440 twips in an inch) for 210mm anyway (11905.51 twips),
Unless the calculation of adding up bits of a page can be done in
100thmm of a mm and the final value converted to twips there's going to
be rounding errors, sloppyFit might be the easiest solution and/or
something of that nature.

C.

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


[Libreoffice] [Bug 37361] LibreOffice 3.5 most annoying bugs

2012-01-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=37361

--- Comment #102 from sasha.libreoff...@gmail.com 2012-01-17 04:26:41 PST ---
possible regression, if confirmed:
Bug 44856 - Calc: font on screen looks corrupted

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- 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: [Libreoffice] [PATCH] Replace (Byte)String with O(U)String

2012-01-17 Thread Caolán McNamara
On Tue, 2012-01-17 at 11:06 +0100, Chr. Rossmanith wrote:
 Hi,
 
 an excursion from vcl to unotools was necessary. Could someone please 
 review this little patch? xub_StrLen is replaced as well with sal_Int32.

You'll have to change the callers of RecodeString
(http://opengrok.libreoffice.org/xref/core/vcl/source/gdi/outdev3.cxx#6009) to 
use an rtl::OUString as well.

On this patch in isolation, you could make one stringbuffer before the
loop, and set the returned string from that at the end, and just use one
stringbuffer in the loop, something like...

rtl::OUStringBuffer aTmpStr(rStr);
for(; nIndex  nLastIndex; ++nIndex )
{
sal_Unicode cOrig = aTmpStr[nIndex];
...
if( cOrig != cNew )
aTmpStr[nIndex] = cNew;
...
}
rStr = aTmpStr.makeStringAndClear();

C.

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


Re: [Libreoffice] [PATCH] Replace (Byte)String with O(U)String

2012-01-17 Thread Stephan Bergmann

On 01/17/2012 11:06 AM, Chr. Rossmanith wrote:

an excursion from vcl to unotools was necessary. Could someone please
review this little patch? xub_StrLen is replaced as well with sal_Int32.


Two things about the patch:


-void ConvertChar::RecodeString( String rStr, xub_StrLen nIndex, xub_StrLen 
nLen ) const
+void ConvertChar::RecodeString( rtl::OUString rStr, sal_Int32 nIndex, 
sal_Int32 nLen ) const
 {
-sal_uLong nLastIndex = (sal_uLong)nIndex + nLen;
-if( nLastIndex  rStr.Len() )
-nLastIndex = rStr.Len();
+sal_Int32 nLastIndex = nIndex + nLen;
+if( nLastIndex  rStr.getLength() )
+nLastIndex = rStr.getLength();


The original nIndex, nLen were 16 bit, so their sum was guaranteed to 
fit into 32 bit sal_uLong.  There is no such guarantee with the new 
nIndex, nLen of 32 bit.  But looking around, the only call of 
RecodeString is


  mpFontEntry-mpConversion-RecodeString( aStr, 0, aStr.Len() );

in vcl/source/gdi/outdev3.cxx.  So this can all go away, changing the 
signature of RecodeString to


  rtl::OUString RecodeString(rtl::OUString const )

and adapting the single call side accordingly (also getting rid of the 
in-out parameter).



 for(; nIndex  nLastIndex; ++nIndex )
 {
-sal_Unicode cOrig = rStr.GetChar( nIndex );
+sal_Unicode cOrig = rStr[nIndex];
 // only recode symbols and their U+00xx aliases
 if( ((cOrig  0x0020) || (cOrig  0x00FF))
   ((cOrig  0xF020) || (cOrig  0xF0FF)) )
@@ -1390,8 +1391,12 @@ void ConvertChar::RecodeString( String rStr, xub_StrLen 
nIndex, xub_StrLen nLen

 // recode a symbol
 sal_Unicode cNew = RecodeChar( cOrig );
-if( cOrig != cNew )
-rStr.SetChar( nIndex, cNew );
+if( cOrig != cNew ) {
+//rStr[nIndex] = cNew;
+rtl::OUStringBuffer aTmpStr(rStr.getStr());
+aTmpStr[nIndex] = cNew;
+rStr = aTmpStr.makeStringAndClear();
+}


Constructing a temporary OUStringBuffer for each character that needs 
conversion smells somewhat inefficient.  An alternative is to put the 
original rStr into an OUStringBuffer once and iterate over that one.


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


[Libreoffice] License statement

2012-01-17 Thread Rich Wareham
In accordance with Micahel's comments on
https://bugs.freedesktop.org/show_bug.cgi?id=44635#c2, this is an
email confirming that that contribution and all others from myself at
rj...@cam.ac.uk or rj...@cantab.net are dual licensed under the terms
of the MPL / LGPLv3+.

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


Re: [Libreoffice] [PUSHED-3-5] [REVIEW 3-5, 3-4] fdo#43193: fix rotation of shapes in imported MS documents

2012-01-17 Thread Thorsten Behrens
Seen pushed on -3-5

-- Thorsten


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


Re: [Libreoffice] [Libreoffice-qa] [ANN] LibreOffice 3.5.0 Beta3 available

2012-01-17 Thread Christian Lohmaier
Hi Francois, *,

On Tue, Jan 17, 2012 at 10:50 AM, Francois Tigeot ftig...@wolfpond.org wrote:
 On Mon, Jan 16, 2012 at 12:49:50PM +0100, Thorsten Behrens wrote:
 [...]
   http://www.libreoffice.org/download/pre-releases/

 The pre-release page only lists binaries; would it be possible to add links
 to the source code tarballs for people wanting to build LO themselves ?

Well - people who want to build LO themselves (and don't happen to be
distro-packages with a policy that requires to build from tarballs as
opposed from checking out a repository) should generally checkout LO
from git - this is easier than to fiddle with the individual tarballs.

 As far as I know, the tree has not been tagged so the only way to get the
 exact same sources used to create theses binaries is to download a complete
 archive.

No - every released build is from a (signed) tag. Only the
dailies/nightlies are not from a tag (obviously)

See e.g. 
http://cgit.freedesktop.org/libreoffice/core/tag/?id=libreoffice-3.4.99.3
(that's the one for 3.5.0beta3)

If you really want the source-tarballs, then go to
http://download.documentfoundation.org/libreoffice/src/3.5.0/ (but
once again: When you're interested in building betas, then I suggest
to get the stuff from the repo directly.

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


Re: [Libreoffice] [PATCH] Replace (Byte)String with O(U)String

2012-01-17 Thread Chr. Rossmanith

Hi Caolan and Stephan,

Am 17.01.2012 13:40, schrieb Caolán McNamara:

On Tue, 2012-01-17 at 11:06 +0100, Chr. Rossmanith wrote:

an excursion from vcl to unotools was necessary. Could someone please
review this little patch? xub_StrLen is replaced as well with sal_Int32.

You'll have to change the callers of RecodeString
(http://opengrok.libreoffice.org/xref/core/vcl/source/gdi/outdev3.cxx#6009) to 
use an rtl::OUString as well.
That is where my excursion started  :-)   i.e. the reason why I had to 
modify RecodeString()

On this patch in isolation, you could make one stringbuffer before the
loop, and set the returned string from that at the end, and just use one
stringbuffer in the loop, something like...

rtl::OUStringBuffer aTmpStr(rStr);
for(; nIndex  nLastIndex; ++nIndex )
{
 sal_Unicode cOrig = aTmpStr[nIndex];
...
 if( cOrig != cNew )
 aTmpStr[nIndex] = cNew;
...
}
rStr = aTmpStr.makeStringAndClear();

I'll add this to my patch and Stephan Bergmanns improvements as well.

Thank you,
Christina

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


[Libreoffice] [Bug 37361] LibreOffice 3.5 most annoying bugs

2012-01-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=37361

--- Comment #103 from sasha.libreoff...@gmail.com 2012-01-17 06:48:26 PST ---
possible regression, if confirmed:
Bug 44862 - Writer EDITING: LibO crashes when attempt to copy-paste from Calc
and undo results

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- 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: [Libreoffice] Check for updates uses keep-alive / impacts the server (opengrok, tinderbox..)

2012-01-17 Thread Michael Meeks

On Tue, 2012-01-17 at 03:47 -0800, Pedro wrote:
 I was so happy that there was a Check for Updates option  in the Help menu
 that I didn't realize there was much more. This definitely needs a HUGE
 propaganda in the 3.5 Release Notes!

Which reminds me - in common with a number of other features, this is
not actually in the 3.5 features page; any chance you could add a
paragraph describing it here:

http://wiki.documentfoundation.org/ReleaseNotes/3.5

in some sensible section; and credit it to Kendy (Jan Holesovsky) who
did the work.

Thanks !

Michael.

-- 
michael.me...@suse.com  , Pseudo Engineer, itinerant idiot

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


[Libreoffice] [Bug 37361] LibreOffice 3.5 most annoying bugs

2012-01-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=37361

--- Comment #104 from sasha.libreoff...@gmail.com 2012-01-17 07:04:31 PST ---
possible regression, if confirmed:
Bug 44863 - Calc EDITING: when recovered after crash, impossible to enter into
cells

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- 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] [Bug 37361] LibreOffice 3.5 most annoying bugs

2012-01-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=37361

--- Comment #105 from sasha.libreoff...@gmail.com 2012-01-17 07:35:10 PST ---
users from opennet.ru very complain on this bug:
Bug 40540 - FILESAVE During DOC export drawing is lost

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- 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: [Libreoffice] Check for updates uses keep-alive / impacts the server (opengrok, tinderbox..)

2012-01-17 Thread Pedro

Michael Meeks-2 wrote
 
   Which reminds me - in common with a number of other features, this is
 not actually in the 3.5 features page; any chance you could add a
 paragraph describing it here:
 
   http://wiki.documentfoundation.org/ReleaseNotes/3.5
 
   in some sensible section; and credit it to Kendy (Jan Holesovsky) who
 did the work.
 

Of course. When I mentioned that, I already had planned to do it myself.
Obviously anybody is free to improve, move or totally replace the entry as
long as this new feature is not forgotten! :) It is under GUI.

Regards,
Pedro

--
View this message in context: 
http://nabble.documentfoundation.org/Check-for-updates-uses-keep-alive-impacts-the-server-opengrok-tinderbox-tp3661900p3666500.html
Sent from the Dev mailing list archive at Nabble.com.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] [Bug 37361] LibreOffice 3.5 most annoying bugs

2012-01-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=37361

--- Comment #106 from sasha.libreoff...@gmail.com 2012-01-17 08:04:41 PST ---
another regression since 3.3.4 version:
Bug 40539 - Writer FILESAVE: Text direction in table is not saved into DOC
format

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- 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] [Bug 37361] LibreOffice 3.5 most annoying bugs

2012-01-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=37361

--- Comment #107 from Stephan Hennig stephanhen...@arcor.de 2012-01-17 
08:22:16 PST ---
Regression from LibO 3.3.4:  Bug 37561

Rationale:

Duden Korrektor is a commercial extension (ca. 20 Euro) providing various
language tools for the German language that in many tests out-performed all
other similar contestants.  The extension is available for LibreOffice,
OpenOffice and Microsoft Office and is important for German professional
writers as well as many 'regular' German writers.

Not being able to install the extension in LibO 3.4.0 to 3.4.4 makes for a
/very/ bad user experience.  Guess what users relying on that extension will
stay with or switch to?

As far as I can see from the discussion in #37561, a fix (adding missing
symbols) should be relatively simple.

Thanks,
Stephan Hennig

Note, I've also added this bug to 'LibreOffice 3.4 most annoying bugs', but
only after LibO 3.4.5 was released.  According to the release plan LibO 3.5.0
will be the next release.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- 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: [Libreoffice] Check for updates uses keep-alive / impacts the server (opengrok, tinderbox..)

2012-01-17 Thread Stefan Knorr (Astron)
Hi,

sorry for coming late to the discussion... anyway, I don't think it
makes much sense to let users decide at what interval to check for
updates. That should be exclusively the decision of TDF, because TDF
provides the servers and has to handle the server load [1] and also
LibreOffice has a relatively regular release cadence. Users on the
other hand tend to not know the release cadence of LibreOffice very
well, thus the update check will often fire either very late (monthly
check) or unnecessarily often (daily).
(Also, removing that would save us three options.)
For some interesting ideas about spreading update checks equally over
time, also see here:
http://adblockplus.org/blog/downloading-a-file-regularly-how-hard-can-it-be

Astron.


[1] Which as Christian wrote wouldn't be a problem in itself, but with
successful update checks, there is a download associated which usually
takes lots of time/bandwidth
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Check for updates uses keep-alive / impacts the server (opengrok, tinderbox..)

2012-01-17 Thread Christian Lohmaier
Hi Stefan, *,

On Tue, Jan 17, 2012 at 5:24 PM, Stefan Knorr (Astron)
heinzless...@googlemail.com wrote:
 [...]
 [1] Which as Christian wrote wouldn't be a problem in itself, but with
 successful update checks, there is a download associated which usually
 takes lots of time/bandwidth

And that also is not a problem as it is up to us (TDF admins) to
decide when we make the update visible in the update-check. And for
obvious reasons this will only be done when the mirrors are synced,
i.e. when the build is officially announced.
So also the downloads are no problem (as they are not served by a
single server, but using our network of mirrors all over the world and
that is rather powerful).

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


[Libreoffice] [PUSHED] Re: [PATCH][3-5] make building and installing of nsplugin more consistent

2012-01-17 Thread Michael Stahl
On 13/01/12 17:11, Matúš Kukan wrote:
 Hi,
 
 I was now playing with nsplugin in master, so I created also patch for 3-5.
 
 It was installed only in without mozilla case but compiled also in the
 other case.
 So now in master and in the patch nsplugin is only for with mozilla case.
 
 But be aware that we don't need mozilla for this. (It was built also
 in without mozilla case until now.)
 Only headers from np_sdk.
 And we also have --disable-nsplugin option.
 
 So I'm not sure which makefile was right (scp2's or nsplugin'). I chose scp2.
 
 Feel free to comment, push or ignore.

hmm... if we have a ENABLE_NSPLUGIN we might as well use it :)

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


[Libreoffice] [Bug 37361] LibreOffice 3.5 most annoying bugs

2012-01-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=37361

--- Comment #108 from sasha.libreoff...@gmail.com 2012-01-17 09:08:55 PST ---
another regression since 3.3.4 version:
Bug 44868 - Writer FILEOPEN: document in format DOC with picture opens
incorrectly

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- 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: [Libreoffice] [Libreoffice-qa] [ANN] LibreOffice 3.5.0 Beta3 available

2012-01-17 Thread Francois Tigeot
Thanks for your answers Miklos and Christian,

On Tue, Jan 17, 2012 at 02:02:09PM +0100, Christian Lohmaier wrote:
 
 On Tue, Jan 17, 2012 at 10:50 AM, Francois Tigeot ftig...@wolfpond.org 
 wrote:
  On Mon, Jan 16, 2012 at 12:49:50PM +0100, Thorsten Behrens wrote:
  [...]
    http://www.libreoffice.org/download/pre-releases/
 
  The pre-release page only lists binaries; would it be possible to add links
  to the source code tarballs for people wanting to build LO themselves ?
 
 Well - people who want to build LO themselves (and don't happen to be
 distro-packages with a policy that requires to build from tarballs as
 opposed from checking out a repository) should generally checkout LO
 from git - this is easier than to fiddle with the individual tarballs.

I was just wondering why the links were not present (I knew the urls); I
guess I have my answer now: tarball use is discouraged.

  As far as I know, the tree has not been tagged so the only way to get the
  exact same sources used to create theses binaries is to download a complete
  archive.
 
 No - every released build is from a (signed) tag. Only the
 dailies/nightlies are not from a tag (obviously)
 
 See e.g. 
 http://cgit.freedesktop.org/libreoffice/core/tag/?id=libreoffice-3.4.99.3

I stand corrected.
Howewer, this tag doesn't appear in my freshly updated copy of the core
repository. How come ?

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


Re: [Libreoffice] [Libreoffice-qa] [ANN] LibreOffice 3.5.0 Beta3 available

2012-01-17 Thread Christian Lohmaier
Hi Francois, *,

On Tue, Jan 17, 2012 at 6:51 PM, Francois Tigeot ftig...@wolfpond.org wrote:
 [...]
 Howewer, this tag doesn't appear in my freshly updated copy of the core
 repository. How come ?

Need to ask git developers why tags are not treated equally.

Use git fetch --tags to explicitly request tags to be fetched, this
should work and make the tag available.

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


Re: [Libreoffice] [PATCH] proposed fix for fdo#44040 (seems iterator issue only)

2012-01-17 Thread julien2412
There was an extra semicolon after the while on the patch. Even if i re read
several times the code, I just missed it too and needed gdb to see it ! Now
it works better :-)

Do you want to commit/push it yourself on master or do you want me to do it
(of course I put you as the author) ?
Would it be ok to cherry-pick it on 3.5 ?

Julien.

--
View this message in context: 
http://nabble.documentfoundation.org/PATCH-proposed-fix-for-fdo-44040-seems-iterator-issue-only-tp3659513p3667131.html
Sent from the Dev mailing list archive at Nabble.com.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] [LibreOffice][Patch] translate comments in sw/source/core/frmedt

2012-01-17 Thread Luc Castermans
Hi,

Herewith all German comments in sw/source/core/frmedt   are translated.

cheers


-- 
Luc Castermans
mailto:luc.casterm...@gmail.com
From 8c5a8230ab456ad8e9577045611a7f2cd9e11242 Mon Sep 17 00:00:00 2001
From: Luc Castermans luc.casterm...@gmail.com
Date: Tue, 17 Jan 2012 20:39:02 +0100
Subject: [PATCH] Translate comments from German to English;
 sw/source/core/frmedt is complete.

---
 sw/source/core/frmedt/fecopy.cxx   |1 -
 sw/source/core/frmedt/feshview.cxx |  231 ++--
 sw/source/core/frmedt/fetab.cxx|1 -
 3 files changed, 113 insertions(+), 120 deletions(-)

diff --git a/sw/source/core/frmedt/fecopy.cxx b/sw/source/core/frmedt/fecopy.cxx
index 55306d1..1fd978b 100644
--- a/sw/source/core/frmedt/fecopy.cxx
+++ b/sw/source/core/frmedt/fecopy.cxx
@@ -89,7 +89,6 @@ using namespace ::com::sun::star;
 /*
 |*
 |*  SwFEShell::Copy()   copy for the internal clipboard.
-|*  Kopiert alle Selektionen in das Clipboard.
 |*  Copies all selections to the clipboard.
 |*
 |*/
diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx
index a343841..35adb47 100644
--- a/sw/source/core/frmedt/feshview.cxx
+++ b/sw/source/core/frmedt/feshview.cxx
@@ -50,7 +50,7 @@
 #include svx/svdpagv.hxx
 #include IDocumentSettingAccess.hxx
 #include cmdid.h
-#include poolfmt.hrc  // fuer InitFldTypes
+#include poolfmt.hrc  // for InitFldTypes
 #include frmfmt.hxx
 #include frmatr.hxx
 #include fmtfsize.hxx
@@ -79,12 +79,12 @@
 #include ndole.hxx
 #include ndgrf.hxx
 #include ndtxt.hxx
-#include viewopt.hxx  // fuer GetHTMLMode
+#include viewopt.hxx  // for GetHTMLMode
 #include swundo.hxx
 #include notxtfrm.hxx
 #include txtfrm.hxx
 #include txatbase.hxx
-#include mdiexp.hxx   // fuer Update der Statuszeile bei drag
+#include mdiexp.hxx   // for update of the statusline during dragging
 #include sortedobjs.hxx
 #include HandleAnchorNodeChg.hxx
 #include basegfx/polygon/b2dpolygon.hxx
@@ -94,7 +94,7 @@
 
 using namespace com::sun::star;
 
-//Tattergrenze fuer Drawing-SS
+// tolerance limit of Drawing-SS
 #define MINMOVE ((sal_uInt16)GetOut()-PixelToLogic(Size(Imp()-GetDrawView()-GetMarkHdlSizePixel()/2,0)).Width())
 
 SwFlyFrm *GetFlyFromMarked( const SdrMarkList *pLst, ViewShell *pSh )
@@ -117,13 +117,14 @@ void lcl_GrabCursor( SwFEShell* pSh, SwFlyFrm* pOldSelFly)
 if( pFlyFmt  !pSh-ActionPend() 
 (!pOldSelFly || pOldSelFly-GetFmt() != pFlyFmt) )
 {
-// dann das evt. gesetzte Macro rufen
+// now call set macro if applicable
 pSh-GetFlyMacroLnk().Call( (void*)pFlyFmt );
 extern sal_Bool bNoInterrupt;   // in swapp.cxx
-// wir in dem Makro ein Dialog gestartet, dann kommt das
-// MouseButtonUp zu diesem und nicht zu uns. Dadurch ist
-// Flag bei uns immer gesetzt und schaltet nie die auf die
-// entsp. Shell um !!!
+// if a dialog was started inside a macro, then
+// MouseButtonUp arrives at macro and not to us. Therefore
+// flag is always set here and will never be switched to
+// respective Shell !!!
+
 bNoInterrupt = sal_False;
 }
 else if( !pFlyFmt || RES_DRAWFRMFMT == pFlyFmt-Which() )
@@ -146,9 +147,9 @@ sal_Bool SwFEShell::SelectObj( const Point rPt, sal_uInt8 nFlag, SdrObject *pOb
 if(!pDView)
 return sal_False;
 SET_CURR_SHELL( this );
-StartAction();  //Aktion ist Notwendig, damit nicht mehrere
-//AttrChgdNotify (etwa durch Unmark-MarkListHasChgd)
-//durchkommen
+StartAction();  // necessary action, to assure several
+// AttrChgdNotify (e.g. due to Unmark-MarkListHasChgd)
+// arrive
 
 const SdrMarkList rMrkList = pDView-GetMarkedObjectList();
 const sal_Bool bHadSelection = rMrkList.GetMarkCount() ? sal_True : sal_False;
@@ -159,12 +160,12 @@ sal_Bool SwFEShell::SelectObj( const Point rPt, sal_uInt8 nFlag, SdrObject *pOb
 
 if( bHadSelection )
 {
-//Unmark rufen wenn !bAddSelect oder wenn ein Fly selektiert ist.
+// call Unmark when !bAddSelect or if fly was selected
 sal_Bool bUnmark = !bAddSelect;
 
 if ( rMrkList.GetMarkCount() == 1 )
 {
-//Wenn ein Fly selektiert ist, so muss er erst deselektiert werden.
+// if fly was selected, deselect it first
 pOldSelFly = ::GetFlyFromMarked( rMrkList, this );
 if ( pOldSelFly )
 {
@@ -173,11 +174,10 @@ sal_Bool SwFEShell::SelectObj( const Point rPt, sal_uInt8 nFlag, SdrObject *pOb
 ( pOldSelFly-GetFmt()-GetProtect().IsCntntProtected()
   

Re: [Libreoffice] [Libreoffice-qa] [ANN] LibreOffice 3.5.0 Beta3 available

2012-01-17 Thread Norbert Thiebaud
On Tue, Jan 17, 2012 at 12:54 PM, Christian Lohmaier
lohmaier+libreoff...@googlemail.com wrote:
 Hi Francois, *,

 On Tue, Jan 17, 2012 at 6:51 PM, Francois Tigeot ftig...@wolfpond.org wrote:
 [...]
 Howewer, this tag doesn't appear in my freshly updated copy of the core
 repository. How come ?

 Need to ask git developers why tags are not treated equally.

I think that by default you do not get tag that you don't 'need' ...
so if a tag is put, a posteriori,  on a commit you already have you
won't automatically get it.

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


Re: [Libreoffice] error in running solenv/bin/ooinstall

2012-01-17 Thread Jam Bees
 Furthermore unable to locate the mentioned logfile.log somewhere between ~
 and /home/cono/src/git/libo_core/**solenv/bin/

 hints ?


I can't help with the rest, but here's a star finding the log filet:

touch timestampfile.file

Run  solenv/bin/ooinstall ~/LibreOffice/35master120116

find ./ -newer timestamp.file | grep *log

Does that make conceptual sense? You make a file, then run the command that
should generate the log file, then ask find to find any files newer than
the reference file and grep the output to locate the log.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] Abbiamo trovato....

2012-01-17 Thread Luisa



Nuovi servizi finanziari
Per privati e aziende
.




Per non ricevere ulteriori aggiornamenti
clicca qui




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


Re: [Libreoffice] [PATCH] Replace (Byte)String with O(U)String

2012-01-17 Thread Chr. Rossmanith

Hi,

this is a modified version of the previous patch which takes into 
account improvements suggested by Caolan and Stephan. Please don't push 
yet because the caller of RecodeString() has to be touched as well. Does 
that modification have to be contained in the same patch or do I just 
have to make sure that the two commits are pushed together? A second 
review is very welcome.


Christina
From ac6a68b5bc875880c1d9d5f2cd7650302ef4dcad Mon Sep 17 00:00:00 2001
From: Christina Rossmanith chrrossman...@web.de
Date: Tue, 17 Jan 2012 11:02:34 +0100
Subject: [PATCH] Replace (Byte)String with O(U)String / simplify ConvertChar::RecodeString()

---
 unotools/inc/unotools/fontdefs.hxx |2 +-
 unotools/source/misc/fontcvt.cxx   |   16 
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/unotools/inc/unotools/fontdefs.hxx b/unotools/inc/unotools/fontdefs.hxx
index 12d9c43..ac02320 100644
--- a/unotools/inc/unotools/fontdefs.hxx
+++ b/unotools/inc/unotools/fontdefs.hxx
@@ -74,7 +74,7 @@ public:
 const char* mpSubsFontName;
 sal_Unicode (*mpCvtFunc)( sal_Unicode );
 sal_Unicode RecodeChar( sal_Unicode c ) const;
-voidRecodeString( String rStra, xub_StrLen nIndex, xub_StrLen nLen ) const;
+voidRecodeString( rtl::OUString rStra ) const;
 static const ConvertChar* GetRecodeData( const String rOrgFontName, const String rMapFontName );
 };
 
diff --git a/unotools/source/misc/fontcvt.cxx b/unotools/source/misc/fontcvt.cxx
index cabdaf7..d81f725 100644
--- a/unotools/source/misc/fontcvt.cxx
+++ b/unotools/source/misc/fontcvt.cxx
@@ -29,6 +29,7 @@
 #include unotools/fontcvt.hxx
 #include unotools/fontdefs.hxx
 #include sal/macros.h
+#include rtl/ustrbuf.hxx
 
 #ifndef _STLP_MAP
 #include map
@@ -1374,15 +1375,12 @@ sal_Unicode ConvertChar::RecodeChar( sal_Unicode cChar ) const
 
 // recode the string assuming the character codes are symbol codes
 // from an traditional symbol font (i.e. U+F020..U+F0FF)
-void ConvertChar::RecodeString( String rStr, xub_StrLen nIndex, xub_StrLen nLen ) const
+void ConvertChar::RecodeString( rtl::OUString rStr ) const
 {
-sal_uLong nLastIndex = (sal_uLong)nIndex + nLen;
-if( nLastIndex  rStr.Len() )
-nLastIndex = rStr.Len();
-
-for(; nIndex  nLastIndex; ++nIndex )
+rtl::OUStringBuffer aTmpStr(rStr.getStr());
+for(sal_Int32 nIndex=0; nIndex  rStr.getLength(); ++nIndex )
 {
-sal_Unicode cOrig = rStr.GetChar( nIndex );
+sal_Unicode cOrig = aTmpStr[nIndex];
 // only recode symbols and their U+00xx aliases
 if( ((cOrig  0x0020) || (cOrig  0x00FF))
   ((cOrig  0xF020) || (cOrig  0xF0FF)) )
@@ -1391,8 +1389,10 @@ void ConvertChar::RecodeString( String rStr, xub_StrLen nIndex, xub_StrLen nLen
 // recode a symbol
 sal_Unicode cNew = RecodeChar( cOrig );
 if( cOrig != cNew )
-rStr.SetChar( nIndex, cNew );
+aTmpStr[nIndex] = cNew;
+
 }
+rStr = aTmpStr.makeStringAndClear();
 }
 
 //===
-- 
1.7.4.1

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


Re: [Libreoffice] Communicating between a .doc and a hosted database

2012-01-17 Thread Cor Nouws

Michael Meeks wrote (11-01-12 12:06)


IMO it is easier, friendlier, more inviting to simply point to
http://www.libreoffice.org/get-help/


This is easier to point people at I guess.


Thanks for changing.
And sorry if my comment sounded a bit annoyed (which was a true 
reflection of my state of mind at that time ;-) )


--
 - Cor
 - http://nl.libreoffice.org

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


[Libreoffice] [Bug 37361] LibreOffice 3.5 most annoying bugs

2012-01-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=37361

Stephan Hennig stephanhen...@arcor.de changed:

   What|Removed |Added

 Depends on||37561

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- 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] [PUSHED] Re: [REVIEW][3.5] Writer layout fix for fdo#40438

2012-01-17 Thread Michael Stahl
On 13/01/12 18:07, Cedric Bosdonnat wrote:
 Hi all,
 
 Could some of the other Writer gurus have a look at this patch: it
 should fix the crasher though it may not be perfect. I'ld prefer a peer
 review before cherry-picking it to 3.5
 
 http://cgit.freedesktop.org/libreoffice/core/commit/?id=d83488

hmmm... i've looked at the problem quite a bit, and my current opinion
is that your fix maybe doesn't really address the root cause, but it
doesn't seem to cause any obvious problems either, so i've pushed it.

the problem is really that we call a listener that wants to paint the
document in the middle of a layout, while the layout is in an
inconsistent state; but i'm not sure what exactly could be done about that.

here we are deleting the page, because it is empty:

 #0  SwPageFrm::~SwPageFrm (this=0x2754040, __in_chrg=optimized out) at 
 /data/lo/core_3_5/sw/source/core/layout/pagechg.cxx:327
 #1  0x7fce48f2f338 in SwLayAction::RemoveEmptyBrowserPages 
 (this=0x7fff460fb030) at 
 /data/lo/core_3_5/sw/source/core/layout/layact.cxx:428
 #2  0x7fce48f2f4a7 in SwLayAction::Action (this=0x7fff460fb030) at 
 /data/lo/core_3_5/sw/source/core/layout/layact.cxx:467
 #3  0x7fce48f6bf07 in SwRootFrm::Paint (this=0x291e1b0, rRect=..., 
 pPrintData=0x0) at /data/lo/core_3_5/sw/source/core/layout/paintfrm.cxx:2824
 #4  0x7fce492f32c6 in ViewShell::PrtOle2 (pDoc=0x27e23b0, pOpt=0x1a2a2b0, 
 rOptions=..., pOleOut=0x7fff460fb680, rRect=...) at 
 /data/lo/core_3_5/sw/source/core/view/vprint.cxx:582
 #5  0x7fce494379b8 in SwDocShell::Draw (this=0x27dfbb0, 
 pDev=0x7fff460fb680, rSetup=..., nAspect=1) at 
 /data/lo/core_3_5/sw/source/ui/app/docsh.cxx:838
 #6  0x7fce6992bbfb in SfxObjectShell::DoDraw_Impl (this=0x27dfbb0, 
 pDev=0x7fff460fb680, rViewPos=..., rScaleX=1/1, rScaleY=1/1, rSetup=..., 
 nAspect=1) at /data/lo/core_3_5/sfx2/source/doc/objembed.cxx:248
 #7  0x7fce6992b7e2 in SfxObjectShell::DoDraw (this=0x27dfbb0, 
 pDev=0x7fff460fb680, rObjPos=..., rSize=..., rSetup=..., nAspect=1) at 
 /data/lo/core_3_5/sfx2/source/doc/objembed.cxx:195
 #8  0x7fce69926349 in SfxObjectShell::CreatePreviewMetaFile_Impl 
 (this=0x27dfbb0, bFullContent=1 '\001') at 
 /data/lo/core_3_5/sfx2/source/doc/objcont.cxx:174
 #9  0x7fce69925f9a in SfxObjectShell::GetPreviewMetaFile (this=0x27dfbb0, 
 bFullContent=1 '\001') at /data/lo/core_3_5/sfx2/source/doc/objcont.cxx:121
 #10 0x7fce6998d609 in SfxBaseModel::getTransferData (this=0x27e6820, 
 aFlavor=...) at /data/lo/core_3_5/sfx2/source/doc/sfxbasemodel.cxx:2063
 #11 0x7fce69996076 in SfxBaseModel::getPreferredVisualRepresentation 
 (this=0x27e6820) at /data/lo/core_3_5/sfx2/source/doc/sfxbasemodel.cxx:3498
 #12 0x7fce418efbee in 
 OCommonEmbeddedObject::getPreferredVisualRepresentation(long) () from 
 /data/lo/core_3_5/solver/unxlngx6/installation/opt/program/../program/libembobj.so
 #13 0x7fce6a89ddb5 in 
 comphelper::EmbeddedObjectContainer::GetGraphicReplacementStream 
 (nViewAspect=1, xObj=..., pMediaType=0x1a4a960) at 
 /data/lo/core_3_5/comphelper/source/container/embeddedobjectcontainer.cxx:1574
 #14 0x7fce68b94120 in svt::EmbeddedObjectRef::GetGraphicReplacementStream 
 (nViewAspect=1, xObj=..., pMediaType=0x1a4a960) at 
 /data/lo/core_3_5/svtools/source/misc/embedhlp.cxx:747
 #15 0x7fce68b93195 in svt::EmbeddedObjectRef::GetGraphicStream 
 (this=0x160f130, bUpdate=1 '\001') at 
 /data/lo/core_3_5/svtools/source/misc/embedhlp.cxx:581
 #16 0x7fce68b92654 in svt::EmbeddedObjectRef::GetReplacement 
 (this=0x160f130, bUpdate=1 '\001') at 
 /data/lo/core_3_5/svtools/source/misc/embedhlp.cxx:421
 #17 0x7fce68b94901 in svt::EmbeddedObjectRef::UpdateReplacement 
 (this=0x160f130) at 
 /data/lo/core_3_5/solver/unxlngx6/inc/svtools/embedhlp.hxx:110
 #18 0x7fce68b917a3 in svt::EmbedEventListener_Impl::modified 
 (this=0x270f390) at /data/lo/core_3_5/svtools/source/misc/embedhlp.cxx:179
 #19 0x7fce698b3e38 in 
 cppu::OInterfaceContainerHelper::NotifySingleListenercom::sun::star::util::XModifyListener,
  com::sun::star::lang::EventObject::operator() (this=0x7fff460fc240, 
 listener=...) at 
 /data/lo/core_3_5/solver/unxlngx6/inc/cppuhelper/interfacecontainer.h:271
 #20 0x7fce698af233 in 
 cppu::OInterfaceContainerHelper::forEachcom::sun::star::util::XModifyListener,
  
 cppu::OInterfaceContainerHelper::NotifySingleListenercom::sun::star::util::XModifyListener,
  com::sun::star::lang::EventObject  (this=0x2832ed0, func=...) at 
 /data/lo/core_3_5/solver/unxlngx6/inc/cppuhelper/interfacecontainer.h:288
 #21 0x7fce698ab974 in 
 cppu::OInterfaceContainerHelper::notifyEachcom::sun::star::util::XModifyListener,
  com::sun::star::lang::EventObject (this=0x2832ed0, 
 NotificationMethod=virtual table offset 32, Event=...) at 
 /data/lo/core_3_5/solver/unxlngx6/inc/cppuhelper/interfacecontainer.h:302
 #22 0x7fce69990f89 in SfxBaseModel::NotifyModifyListeners_Impl 
 (this=0x27e6820) at 

Re: [Libreoffice] error in running solenv/bin/ooinstall

2012-01-17 Thread Cor Nouws

Hi Jam,

Jam Bees wrote (17-01-12 21:25)


I can't help with the rest, but here's a star finding the log filet:

touch timestampfile.file

Run solenv/bin/ooinstall ~/LibreOffice/35master120116

find ./ -newer timestamp.file | grep *log
Does that make conceptual sense? You make a file, then run the command
that should generate the log file, then ask find to find any files newer
than the reference file and grep the output to locate the log.


thanks - makes sense and is clear :-) - I'll mark those for later...

you know, when running this, the error does not show up again. Though I 
tried three times before (and never had the error in previous situations 
too).
Only difference that I restarted some moment today .. (thought I was 
running *nix - might have screwed up a shell earlier??)


Regards,
--
 - Cor
 - http://nl.libreoffice.org

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


Re: [Libreoffice] [PATCH] Replace (Byte)String with O(U)String

2012-01-17 Thread Stephan Bergmann

On 01/17/2012 09:45 PM, Chr. Rossmanith wrote:

this is a modified version of the previous patch which takes into
account improvements suggested by Caolan and Stephan. Please don't push
yet because the caller of RecodeString() has to be touched as well. Does
that modification have to be contained in the same patch or do I just
have to make sure that the two commits are pushed together? A second
review is very welcome.


It is best to do it as a single patch (doing it in two steps would 
produce problems for git bisect, for example).


The patch looks good now (only nit to pick is to consider moving from an 
in--out parameter to an in-only parameter and rtl::OUString return type; 
out parameters, esp. if they hide behind a reference type, can be 
confusing -- think about somebody trying to grok where a given variable 
aStr can change its value, and overlooking something innocuous-looking like


  mpFontEntry-mpConversion-RecodeString(aStr);

where

  aStr = mpFontEntry-mpConversion-RecodeString(aStr);

would be so much clearer).
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] [PUSHED] Re: [LibreOffice][Patch] translate comments in sw/source/core/frmedt

2012-01-17 Thread Michael Stahl
On 17/01/12 20:42, Luc Castermans wrote:
 Hi,
 
 Herewith all German comments in sw/source/core/frmedt   are translated.
 
 cheers

thanks, pushed, with some tweaks :)

btw:
Zeichenobjekte means Drawing objects (as opposed to Flys/Fly-frames)

regards,
 michael

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


[Libreoffice] [PUSHED] Re: [PATCH] Replaced SAL_INFO with SAL_WARN. Was: [PATCH] Replaced DBG_ERRORFILE with SAL_INFO.

2012-01-17 Thread Michael Stahl
On 17/01/12 14:52, Marcel Metz wrote:
 Hello lo-devs,
 
 Eike Rathke asked me via IRC if I could replace the SAL_INFO calls with
 SAL_WARN calls in the previous patch. The attached patches contain the
 requested change.

indeed, most of these look more like warnings to me.

thanks for the patches, pushed the whole lot.

regards,
 michael


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


Re: [Libreoffice] uno.RuntimeException when convert ODT to HTML

2012-01-17 Thread Gabriel Monnerat
On Tue, Jan 17, 2012 at 9:58 AM, Caolán McNamara caol...@redhat.com wrote:

 On Mon, 2012-01-16 at 21:09 -0200, Gabriel Monnerat wrote:
  Hello everybody,
  I am trying convert one document(ODT to HTML) using one web service
  written in Python.
 
  self.document_loaded.dispose()
  uno.RuntimeException: illegal object given!

 No idea, probably need to be able to provide a standalone demo for
 someone to examine it a bit closer.

 I presume self.document_loaded is not simply null at this point ?


document_loaded is not null



 or maybe hackaround with...

 try:
self.document_loaded.dispose()
 catch:
pass

 to see if that moves the problem somewhere else more verbose :-)

Yes, I tried it and the traceback is:

File
/hd/nexedi/slapgrid/eebc0b29f358e21839c4fbe26c1da213/eggs/cloudooo.handler.ooo-0.2-py2.6.egg/cloudooo/handler/ooo/helper/unoconverter.py,
line 361, in module
main()
  File
/hd/nexedi/slapgrid/eebc0b29f358e21839c4fbe26c1da213/eggs/cloudooo.handler.ooo-0.2-py2.6.egg/cloudooo/handler/ooo/helper/unoconverter.py,
line 343, in main
output = unoconverter.convert(destination_format)
  File
/hd/nexedi/slapgrid/eebc0b29f358e21839c4fbe26c1da213/eggs/cloudooo.handler.ooo-0.2-py2.6.egg/cloudooo/handler/ooo/helper/unoconverter.py,
line 204, in convert
tuple(property_list))
__main__.DisposedException: URP_Bridge : disposed
(tid=3) Unexpected connection closure

I will try debug more

Thanks in advance,


 C.





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


Re: [Libreoffice] [REVIEW 3-4] fdo#43193: fix rotation of shapes in imported MS documents

2012-01-17 Thread Ivan Timofeev

17.01.2012 16:49, Thorsten Behrens пишет:

Seen pushed on -3-5


Great, thanks! -3-4 is still pending.

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


Re: [Libreoffice] [PATCH] Removing unused code

2012-01-17 Thread David Tardon
On Tue, Jan 17, 2012 at 01:22:55PM +0100, Alexander Bergmann wrote:
 -vcl::PDFExtOutDevData::EndGroup()
 -vcl::PDFExtOutDevData::GetFormsFormat() const
 -vcl::PDFExtOutDevData::SetAutoAdvanceTime(unsigned int, int)
 -vcl::PDFExtOutDevData::SetOutlineItemDest(int, int)
 -vcl::PDFExtOutDevData::SetOutlineItemParent(int, int)
 -vcl::PDFExtOutDevData::SetOutlineItemText(int, rtl::OUString const)
 -vcl::PDFWriter::DrawPixel(Polygon const, Color const*)
 -vcl::PDFWriterImpl::drawPolyPolygon(PolyPolygon const, int, bool)

At least some of these look like they should be used... I am going to
look at it.

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


Re: [Libreoffice-qa] Online update service up running

2012-01-17 Thread Pedro

Thorsten Behrens wrote
 
 Let me get to that in a bit - we really should only push new
 releases until *we* have officially announced it. ;)
 

Thanks. It's working now.

The problem with pushing after announcing is a marketing issue: If you
announce and it's not available, anxious people get more anxious. If you
push to servers before announcing, anxious people will already have it and
the announcement sounds a bit ridiculous :)

Basically the problem are the anxious people :P

Regards,
Pedro

--
View this message in context: 
http://nabble.documentfoundation.org/Libreoffice-qa-Online-update-service-up-running-tp3626852p3665656.html
Sent from the QA mailing list archive at Nabble.com.
___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/


Re: [Libreoffice-qa] Online update service up running

2012-01-17 Thread Pedro
Hi Kendy, all

I am aware that you are away on (a well deserved!) vacation ;)

This is just a quick bug/feature report before I forget:

The Update Status for Beta2 says:
LOdev 3.5.0 Beta3 is available.
The installed version is LOdev 3.5.0.

It should say The installed version is LOdev 3.5.0 Beta2, right?

Regards,
Pedro

--
View this message in context: 
http://nabble.documentfoundation.org/Libreoffice-qa-Online-update-service-up-running-tp3626852p3665666.html
Sent from the QA mailing list archive at Nabble.com.
___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/


Re: [Libreoffice-qa] [Libreoffice] [ANN] LibreOffice 3.5.0 Beta3 available

2012-01-17 Thread Miklos Vajna
On Tue, Jan 17, 2012 at 10:50:37AM +0100, Francois Tigeot 
ftig...@wolfpond.org wrote:
 As far as I know, the tree has not been tagged so the only way to get the
 exact same sources used to create theses binaries is to download a complete
 archive.

See http://dev-builds.libreoffice.org/pre-releases/src/ for beta3 source
tarballs.


pgpRzbQhV5MPy.pgp
Description: PGP signature
___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/

Re: [Libreoffice-qa] [Libreoffice] [ANN] LibreOffice 3.5.0 Beta3 available

2012-01-17 Thread Christian Lohmaier
Hi Francois, *,

On Tue, Jan 17, 2012 at 10:50 AM, Francois Tigeot ftig...@wolfpond.org wrote:
 On Mon, Jan 16, 2012 at 12:49:50PM +0100, Thorsten Behrens wrote:
 [...]
   http://www.libreoffice.org/download/pre-releases/

 The pre-release page only lists binaries; would it be possible to add links
 to the source code tarballs for people wanting to build LO themselves ?

Well - people who want to build LO themselves (and don't happen to be
distro-packages with a policy that requires to build from tarballs as
opposed from checking out a repository) should generally checkout LO
from git - this is easier than to fiddle with the individual tarballs.

 As far as I know, the tree has not been tagged so the only way to get the
 exact same sources used to create theses binaries is to download a complete
 archive.

No - every released build is from a (signed) tag. Only the
dailies/nightlies are not from a tag (obviously)

See e.g. 
http://cgit.freedesktop.org/libreoffice/core/tag/?id=libreoffice-3.4.99.3
(that's the one for 3.5.0beta3)

If you really want the source-tarballs, then go to
http://download.documentfoundation.org/libreoffice/src/3.5.0/ (but
once again: When you're interested in building betas, then I suggest
to get the stuff from the repo directly.

ciao
Christian
___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/


Re: [Libreoffice-qa] [Libreoffice] [ANN] LibreOffice 3.5.0 Beta3 available

2012-01-17 Thread Francois Tigeot
Thanks for your answers Miklos and Christian,

On Tue, Jan 17, 2012 at 02:02:09PM +0100, Christian Lohmaier wrote:
 
 On Tue, Jan 17, 2012 at 10:50 AM, Francois Tigeot ftig...@wolfpond.org 
 wrote:
  On Mon, Jan 16, 2012 at 12:49:50PM +0100, Thorsten Behrens wrote:
  [...]
    http://www.libreoffice.org/download/pre-releases/
 
  The pre-release page only lists binaries; would it be possible to add links
  to the source code tarballs for people wanting to build LO themselves ?
 
 Well - people who want to build LO themselves (and don't happen to be
 distro-packages with a policy that requires to build from tarballs as
 opposed from checking out a repository) should generally checkout LO
 from git - this is easier than to fiddle with the individual tarballs.

I was just wondering why the links were not present (I knew the urls); I
guess I have my answer now: tarball use is discouraged.

  As far as I know, the tree has not been tagged so the only way to get the
  exact same sources used to create theses binaries is to download a complete
  archive.
 
 No - every released build is from a (signed) tag. Only the
 dailies/nightlies are not from a tag (obviously)
 
 See e.g. 
 http://cgit.freedesktop.org/libreoffice/core/tag/?id=libreoffice-3.4.99.3

I stand corrected.
Howewer, this tag doesn't appear in my freshly updated copy of the core
repository. How come ?

-- 
Francois Tigeot
___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/


Re: [Libreoffice-qa] [Libreoffice] [ANN] LibreOffice 3.5.0 Beta3 available

2012-01-17 Thread Christian Lohmaier
Hi Francois, *,

On Tue, Jan 17, 2012 at 6:51 PM, Francois Tigeot ftig...@wolfpond.org wrote:
 [...]
 Howewer, this tag doesn't appear in my freshly updated copy of the core
 repository. How come ?

Need to ask git developers why tags are not treated equally.

Use git fetch --tags to explicitly request tags to be fetched, this
should work and make the tag available.

ciao
Christian
___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/


Re: [Libreoffice-qa] [Libreoffice] [ANN] LibreOffice 3.5.0 Beta3 available

2012-01-17 Thread Norbert Thiebaud
On Tue, Jan 17, 2012 at 12:54 PM, Christian Lohmaier
lohmaier+libreoff...@googlemail.com wrote:
 Hi Francois, *,

 On Tue, Jan 17, 2012 at 6:51 PM, Francois Tigeot ftig...@wolfpond.org wrote:
 [...]
 Howewer, this tag doesn't appear in my freshly updated copy of the core
 repository. How come ?

 Need to ask git developers why tags are not treated equally.

I think that by default you do not get tag that you don't 'need' ...
so if a tag is put, a posteriori,  on a commit you already have you
won't automatically get it.

Norbert
___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/


[Libreoffice-bugs] [Bug 43399] Address data source wizard will not allow the definition of a Spreadsheet connection setting

2012-01-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=43399

--- Comment #1 from bash...@gmail.com 2012-01-17 00:30:15 PST ---
I can confirm this bug on Linux Mint 12 x86_64 and Gentoo Linux x86_64
(Libreoffice 3.4.3) (Java useflag disabled).
I get exactly the behavior described here. On both systems. If it was only on
Gentoo, I would have thought it was because of my useflags. But I've seen it on
Linux Mint too.

There seems to be a similar problem in Ubuntu 32bit:
http://lists.freedesktop.org/archives/libreoffice-bugs/2011-December/027978.html

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 44588] CONFIGURATION: Incompatibility with Novell client - installation fails - running fails

2012-01-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44588

--- Comment #2 from Massimo Spiller i.the@gmail.com 2012-01-17 00:50:36 
PST ---
Created attachment 55661
  -- https://bugs.freedesktop.org/attachment.cgi?id=55661
installation errors log file generated by the installer

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 44588] CONFIGURATION: Incompatibility with Novell client - installation fails - running fails

2012-01-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44588

Massimo Spiller i.the@gmail.com changed:

   What|Removed |Added

   Platform|Other   |x86 (IA32)
 OS/Version|All |Windows (All)
Version|LibO 3.4.3 release  |LibO 3.4.5 release

--- Comment #3 from Massimo Spiller i.the@gmail.com 2012-01-17 00:52:03 
PST ---
Today, I tried with LibO_3.4.5_Win_x86_install_multi.exe (3.4.5 Final release):
nothing changed.
Unable to install if I'm connected through Novell Client.

Error messages:

---
Runtime error!
Program: C:\Programmi\LibreOffice 3.4\program\unopkg.bin
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information
---
unopkg.bin
Si è verificato un errore in unopkg.bin. L'applicazione verrà chiusa.
Potrebbe essersi verificata la perdita dei dati su cui si stava lavorando.
Per ulteriori informazioni relative al problema fare clic qui
---
unopkg.bin
Identificativo
AppName: unopkg.bin
AppVer: 0.0.0.0
ModName: msvcr90.dll
ModVer: 9.0.30729.6161
Offset: 0005beae
---
Contenuto della segnalazione errori
Nella segnalazione errori verranno inclusi i seguenti file
C.\tmp\6db4_appcompat.txt

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 43460] Replace rtl::OUString getLength()==0 with isEmpty() etc.

2012-01-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=43460

--- Comment #43 from Olivier Hallot olivier.hal...@documentfoundation.org 
2012-01-17 01:24:53 PST ---
Modules 
testtools, toolkit, tools

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

and extra mistake fix

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

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 34185] RFE: HTML compatibility option Do not modify metadata when saving

2012-01-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=34185

--- Comment #2 from Stas Fomin stas-fo...@yandex.ru 2012-01-17 01:25:16 UTC 
---
Checked 3.5.0beta1
No changes.

* Still add 
--
META NAME=CHANGED CONTENT=20120117;13152567
--
to HTML.
* Still there are no settings to disable this. 

My RFE is still active.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 44853] New: opening live.com document crashes LibreOffice : general input/output error

2012-01-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44853

 Bug #: 44853
   Summary: opening live.com document crashes LibreOffice :
general input/output error
Classification: Unclassified
   Product: LibreOffice
   Version: LibO 3.3.4 release
  Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: UNCONFIRMED
  Severity: major
  Priority: medium
 Component: Libreoffice
AssignedTo: libreoffice-bugs@lists.freedesktop.org
ReportedBy: vger...@gmail.com


Created attachment 55667
  -- https://bugs.freedesktop.org/attachment.cgi?id=55667
a docx from live.com causing the described issue

When opening a downloaded doc from live.com , LibreOffice crashes.
Works fine in MS Office and AbiWord.
The document causing this is attached

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 43458] LibreOffice does not start with a second monitor connected

2012-01-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=43458

--- Comment #30 from Cor Nouws c...@nouenoff.nl 2012-01-17 01:30:24 PST ---
pulled from master yesterday and build - does start normally now- thanks :-)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 44853] opening live.com document crashes LibreOffice : general input/output error

2012-01-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44853

Vincent vger...@gmail.com changed:

   What|Removed |Added

   Priority|medium  |high

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 44853] opening live.com document crashes LibreOffice : general input/output error

2012-01-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44853

--- Comment #1 from Vincent vger...@gmail.com 2012-01-17 01:43:56 PST ---
This issue is also present on Linux Mint 12, LibreOffice version 3.4.4 ,
OOO340m1 build 402.
(That is a amd64 installation in KVM/Qemu)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


  1   2   >