[Libreoffice-commits] core.git: 3 commits - configure.ac

2013-08-29 Thread Tor Lillqvist
 configure.ac |   32 
 1 file changed, 16 insertions(+), 16 deletions(-)

New commits:
commit ffaad89e05fdb889d2b18d5914894acb91e1248e
Author: Tor Lillqvist 
Date:   Fri Aug 30 09:56:57 2013 +0300

Untabify

Change-Id: Ib03ac597e920c3d09b56a78f41f10ea0e19e311e

diff --git a/configure.ac b/configure.ac
index 79f8aa1..75ffd04 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1705,10 +1705,10 @@ AC_ARG_WITH(help,
  can be used to bundle only the common part, .e.g help-specific icons.
  This is useful when you build the helpcontent separately.])
 [
-  Usage: --with-help   build the entire local 
help
---without-help no local help (default)
---with-help=common bundle common files for 
the local
-   help but do not build 
the whole help
+  Usage: --with-helpbuild the entire local help
+ --without-help no local help (default)
+ --with-help=common bundle common files for 
the local
+help but do not build the 
whole help
 ],
 ,)
 
@@ -4643,11 +4643,11 @@ if test -n "$with_help" -a "$with_help" != "no" -a $_os 
!= iOS -a $_os != Androi
 BUILD_TYPE="$BUILD_TYPE HELP"
 GIT_NEEDED_SUBMODULES="helpcontent2 $GIT_NEEDED_SUBMODULES"
 if test "$with_help" = "common" ; then
-   HELP_COMMON_ONLY=TRUE
-   AC_MSG_RESULT([common only])
+HELP_COMMON_ONLY=TRUE
+AC_MSG_RESULT([common only])
 else
-   SCPDEFS="$SCPDEFS -DWITH_HELP"
-   AC_MSG_RESULT([yes])
+SCPDEFS="$SCPDEFS -DWITH_HELP"
+AC_MSG_RESULT([yes])
 fi
 else
 AC_MSG_RESULT([no])
@@ -9142,7 +9142,7 @@ if test "$enable_openssl" = "yes"; then
 AC_MSG_CHECKING([whether openssl supports SHA512])
 AC_LANG_PUSH([C])
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]],[[
-   SHA512_CTX context;
+SHA512_CTX context;
 ]])],[AC_MSG_RESULT([yes])],[AC_MSG_ERROR([no, openssl too old. Need >= 
0.9.8.])])
 AC_LANG_POP(C)
 fi
commit c805a7107198350374420a83f57603d99da493f3
Author: Tor Lillqvist 
Date:   Fri Aug 30 09:55:30 2013 +0300

Surely we want only a 1.7 or 1.6 JDK

Change-Id: I3fa71d19789d9cbdc44db172e0a63f5e5ed85f43

diff --git a/configure.ac b/configure.ac
index fe91557..79f8aa1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6528,7 +6528,7 @@ if test "$ENABLE_JAVA" != ""; then
 
 if test -z "$with_jdk_home"; then
 # Currently only auto-detects 32-bit JDK
-for ver in 1.7 1.6 1.5 1.4 1.3; do
+for ver in 1.7 1.6; do
reg_get_value "HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java 
Development Kit/$ver/JavaHome"
if test -n "$regvalue"; then
_jdk_home=$regvalue
commit ada60644ca7010b7a93688e7c937ac03f891f1d9
Author: Tor Lillqvist 
Date:   Fri Aug 30 09:53:31 2013 +0300

Fix weird indentation

Change-Id: I291856b9f37ea967c1f8d44cce05f53b52ed8b75

diff --git a/configure.ac b/configure.ac
index ef10c70..fe91557 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6528,13 +6528,13 @@ if test "$ENABLE_JAVA" != ""; then
 
 if test -z "$with_jdk_home"; then
 # Currently only auto-detects 32-bit JDK
-for ver in 1.7 1.6 1.5 1.4 1.3; do
-reg_get_value 
"HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java Development Kit/$ver/JavaHome"
-if test -n "$regvalue"; then
-_jdk_home=$regvalue
-break
-fi
-done
+for ver in 1.7 1.6 1.5 1.4 1.3; do
+   reg_get_value "HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/Java 
Development Kit/$ver/JavaHome"
+   if test -n "$regvalue"; then
+   _jdk_home=$regvalue
+   break
+   fi
+done
 if test -f "$_jdk_home/lib/jvm.lib" -a -f 
"$_jdk_home/bin/java.exe"; then
 with_jdk_home="$_jdk_home"
 howfound="found automatically"
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Bug 60270] LibreOffice 4.1 most annoying bugs

2013-08-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=60270

Bug 60270 depends on bug 67815, which changed state.

Bug 67815 Summary: DATALOSS: Some cells with hyperlinks in XLS loose content on 
IMPORT
https://bugs.freedesktop.org/show_bug.cgi?id=67815

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

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


[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - jvmfwk/distributions Repository.mk sal/textenc solenv/gbuild ure/source

2013-08-29 Thread Stephan Bergmann
 Repository.mk   |   18 +-
 jvmfwk/distributions/OpenOfficeorg/javavendors_freebsd.xml  |8 
 jvmfwk/distributions/OpenOfficeorg/javavendors_linux.xml|   12 -
 jvmfwk/distributions/OpenOfficeorg/javavendors_macosx.xml   |6 
 jvmfwk/distributions/OpenOfficeorg/javavendors_template.xml |2 
 jvmfwk/distributions/OpenOfficeorg/javavendors_unx.xml  |4 
 jvmfwk/distributions/OpenOfficeorg/javavendors_wnt.xml  |6 
 sal/textenc/textenc.cxx |3 
 solenv/gbuild/Helper.mk |2 
 solenv/gbuild/platform/IOS_ARM_GCC.mk   |2 
 solenv/gbuild/platform/WNT_INTEL_GCC.mk |3 
 solenv/gbuild/platform/android.mk   |2 
 solenv/gbuild/platform/com_MSC_class.mk |2 
 solenv/gbuild/platform/macosx.mk|2 
 solenv/gbuild/platform/solaris.mk   |2 
 solenv/gbuild/platform/unxgcc.mk|2 
 ure/source/README   |  101 +---
 17 files changed, 96 insertions(+), 81 deletions(-)

New commits:
commit 6c4caf52724629d15a1d73c51c4f66e4f6011f7a
Author: Stephan Bergmann 
Date:   Tue Aug 27 13:58:52 2013 +0200

fdo#67313: Use "lo" suffix for private URE libs

...(like is done for most of LO's non-URE libs already) to reduce 
likelihood of
name clashes, esp. on Windows where URE libs are found via PATH.

This introduces PRIVATELIBS_URE, and [does not remove not-yet]-unused 
UNOLIBS_URE.

(cherry picked from commit 644c33a857c46d540202189228f519946dc33833)
Conflicts:
Repository.mk
solenv/gbuild/Helper.mk
solenv/gbuild/platform/IOS_ARM_GCC.mk
solenv/gbuild/platform/WNT_INTEL_GCC.mk
solenv/gbuild/platform/android.mk
solenv/gbuild/platform/com_MSC_class.mk
solenv/gbuild/platform/macosx.mk
solenv/gbuild/platform/mingw.mk
solenv/gbuild/platform/solaris.mk
solenv/gbuild/platform/unxgcc.mk

Change-Id: Ib95dd45f18de140a54e62d632dbf2239f83c232e
Reviewed-on: https://gerrit.libreoffice.org/5667
Reviewed-by: David Tardon 
Tested-by: David Tardon 

diff --git a/Repository.mk b/Repository.mk
index d0de1d8..e0d4d7c 100644
--- a/Repository.mk
+++ b/Repository.mk
@@ -451,21 +451,13 @@ $(eval $(call 
gb_Helper_register_libraries_for_install,PLAINLIBS_URE,URE, \
$(if $(SOLAR_JAVA),java_uno) \
$(if $(SOLAR_JAVA),juh) \
$(if $(SOLAR_JAVA),juhx) \
-   $(if $(SOLAR_JAVA),jvmaccess) \
-   $(if $(SOLAR_JAVA),jvmfwk) \
log_uno \
-   reg \
-   sal_textenc \
-   store \
-   $(if $(SOLAR_JAVA),sunjavaplugin) \
-   unoidl \
unsafe_uno \
$(if $(URELIBS),urelibs) \
-   xmlreader \
$(if $(filter MSC,$(COM)),$(if $(filter 
INTEL,$(CPUNAME)),msci,mscx),gcc3)_uno \
 ))
 
-$(eval $(call gb_Helper_register_libraries_for_install,UNOLIBS_URE,URE, \
+$(eval $(call gb_Helper_register_libraries_for_install,PRIVATELIBS_URE,URE, \
acceptor \
binaryurp \
bootstrap \
@@ -475,14 +467,22 @@ $(eval $(call 
gb_Helper_register_libraries_for_install,UNOLIBS_URE,URE, \
invocation \
$(if $(SOLAR_JAVA),javaloader) \
$(if $(SOLAR_JAVA),javavm) \
+   $(if $(SOLAR_JAVA),jvmaccess) \
+   $(if $(SOLAR_JAVA),jvmfwk) \
namingservice \
proxyfac \
reflection \
+   reg \
+   sal_textenc \
stocservices \
+   store \
streams \
+   $(if $(SOLAR_JAVA),sunjavaplugin) \
textinstream \
textoutstream \
+   unoidl \
uuresolver \
+   xmlreader \
 ))
 
 $(eval $(call gb_Helper_register_libraries,PLAINLIBS_URE, \
diff --git a/jvmfwk/distributions/OpenOfficeorg/javavendors_freebsd.xml 
b/jvmfwk/distributions/OpenOfficeorg/javavendors_freebsd.xml
index 2453492..bfd80e0 100644
--- a/jvmfwk/distributions/OpenOfficeorg/javavendors_freebsd.xml
+++ b/jvmfwk/distributions/OpenOfficeorg/javavendors_freebsd.xml
@@ -38,9 +38,9 @@
  
 
  
-  vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/libsunjavaplugin.so
-  vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/libsunjavaplugin.so
-  vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/libsunjavaplugin.so
-  vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/libsunjavaplugin.so
+  vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/libsunjavapluginlo.so
+  vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/libsunjavapluginlo.so
+  vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/libsunjavapluginlo.so
+  vnd.sun.star.expand:$URE_INTERNAL_LIB_DIR/libsunjavapluginlo.so
  
 
diff --git a/jvmfwk/distributions/OpenOfficeorg/javavendors_linux.xml 
b/jvmfwk/distributions/OpenOfficeorg/javavendors_linux.xml
index 2ff9946..311bf81 100644
--- a/jvmfwk/distributions/OpenOfficeorg/javavendors_linux.xml
+++ b/jvmfwk/distrib

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

2013-08-29 Thread Stephan Bergmann
 bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx |  166 ++--
 1 file changed, 83 insertions(+), 83 deletions(-)

New commits:
commit 5272f275d02344922b22a43b7c5cd2bb72a47e63
Author: Stephan Bergmann 
Date:   Fri Aug 30 07:56:27 2013 +0200

Make RTTI creation work for libc++

Unlike libstdc++.dylib, libc++abi.dylib no longer exports the type info for
std::type_info, but the layout of the __cxxabiv1::__*_type_info classes is
controlled by the Generic C++ ABI anyway, so consolidate to a single 
approach
that works across all versions.

Change-Id: Ic68f2386261bae4a4349ad646590cc15c768f04e

diff --git a/bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx 
b/bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx
index f51cb75..0c31eed 100644
--- a/bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx
+++ b/bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx
@@ -17,92 +17,105 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
+#include "sal/config.h"
 
+#include 
+#include 
 #include 
+#include 
+#include 
+
 #include 
+
+// MacOSX10.4u.sdk/usr/include/c++/4.0.0/cxxabi.h defined
+// __cxxabiv1::__class_type_info and __cxxabiv1::__si_class_type_info but
+// MacOSX10.7.sdk/usr/include/cxxabi.h no longer does:
 #if MACOSX_SDK_VERSION < 1070
 #include 
-#else
-#include 
 #endif
-#include 
-
-#include 
-#include 
-#include 
-#include 
 
-#include 
+#include "boost/static_assert.hpp"
+#include "boost/unordered_map.hpp"
 #include "com/sun/star/uno/RuntimeException.hpp"
-#include 
-#include 
+#include "com/sun/star/uno/genfunc.hxx"
+#include "osl/diagnose.h"
+#include "osl/mutex.hxx"
+#include "rtl/strbuf.hxx"
+#include "rtl/ustrbuf.hxx"
+#include "typelib/typedescription.h"
+#include "uno/any2.h"
 
 #include "share.hxx"
 
-
-using namespace ::std;
 using namespace ::osl;
-using namespace ::rtl;
 using namespace ::com::sun::star::uno;
-#if MACOSX_SDK_VERSION < 1070
-using namespace ::__cxxabiv1;
-#endif
-
-namespace CPPU_CURRENT_NAMESPACE
-{
 
-#ifndef _LIBCPP_VERSION
+namespace CPPU_CURRENT_NAMESPACE {
 
-#if MACOSX_SDK_VERSION >= 1070
-
-// MacOSX10.4u.sdk/usr/include/c++/4.0.0/cxxabi.h defined
-// __cxxabiv1::__class_type_info and __cxxabiv1::__si_class_type_info but
-// MacOSX10.7.sdk/usr/include/cxxabi.h no longer does, so instances of those
-// classes need to be created manually:
+namespace {
 
-// std::type_info defined in  offers a protected ctor:
-struct FAKE_type_info: public std::type_info {
-FAKE_type_info(char const * name): type_info(name) {}
+struct Fake_type_info {
+virtual ~Fake_type_info() {}
+char const * name;
 };
 
-// Modeled after __cxxabiv1::__si_class_type_info defined in
-// MacOSX10.4u.sdk/usr/include/c++/4.0.0/cxxabi.h (i.e.,
-// abi::__si_class_type_info documented at
-// ):
-struct FAKE_si_class_type_info: public FAKE_type_info {
-FAKE_si_class_type_info(char const * name, std::type_info const * theBase):
-FAKE_type_info(name), base(theBase) {}
+struct Fake_class_type_info: Fake_type_info {};
 
-std::type_info const * base;
-// actually a __cxxabiv1::__class_type_info pointer
+#if MACOSX_SDK_VERSION < 1070
+BOOST_STATIC_ASSERT(
+sizeof (Fake_class_type_info) == sizeof (__cxxabiv1::__class_type_info));
+#endif
+
+struct Fake_si_class_type_info: Fake_class_type_info {
+void const * base;
 };
 
+#if MACOSX_SDK_VERSION < 1070
+BOOST_STATIC_ASSERT(
+sizeof (Fake_si_class_type_info)
+== sizeof (__cxxabiv1::__si_class_type_info));
+#endif
+
 struct Base {};
 struct Derived: Base {};
 
-std::type_info * create_FAKE_class_type_info(char const * name) {
-std::type_info * p = new FAKE_type_info(name);
-// cxxabiv1::__class_type_info has no data members in addition to
-// std::type_info
-*reinterpret_cast< void ** >(p) = *reinterpret_cast< void * const * >(
+std::type_info * createFake_class_type_info(char const * name) {
+char * buf = new char[sizeof (Fake_class_type_info)];
+#if MACOSX_SDK_VERSION < 1070
+assert(
+dynamic_cast<__cxxabiv1::__class_type_info const *>(&typeid(Base))
+!= 0);
+#endif
+*reinterpret_cast(buf) = *reinterpret_cast(
 &typeid(Base));
-// copy correct __cxxabiv1::__class_type_info vtable into place
-return p;
+// copy __cxxabiv1::__class_type_info vtable into place
+Fake_class_type_info * fake = reinterpret_cast(buf);
+fake->name = name;
+return reinterpret_cast(
+static_cast(fake));
 }
 
-std::type_info * create_FAKE_si_class_type_info(
+std::type_info * createFake_si_class_type_info(
 char const * name, std::type_info const * base)
 {
-std::type_info * p = new FAKE_si_class_type_info(name, base);
-*reinterpret_cast< void ** >(p) = *reinterpret_cast< void * const * >(
+char * buf = new char[sizeof (Fake_si_class_type_info)];
+#if MACOSX_SDK_VERSION < 1070
+assert(
+dynamic_

LibreOffice Gerrit News 2013-08-30

2013-08-29 Thread gerrit
Moin!

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

+ fdo#32059: Fix this once and for all
  in https://gerrit.libreoffice.org/5688 from Marcos Souza
+ fdo#44689: fix for specific case restart value 0
  in https://gerrit.libreoffice.org/5681 from Adam CloudOn
+ ENABLE_CORETEXT: Harmonize ENABLE_* variable to TRUE/
  in https://gerrit.libreoffice.org/5685 from Norbert Thiebaud
+ ENABLE_NPAPI_* Harmonize ENABLE_* variable to TRUE/
  in https://gerrit.libreoffice.org/5684 from Norbert Thiebaud
+ Cross-platform libvlc loading.
  in https://gerrit.libreoffice.org/5627 from Minh Ngo
+ liblangtag: harmonize ENABLE_* variable to use TRUE/
  in https://gerrit.libreoffice.org/5682 from Norbert Thiebaud
+ docx export: simplify pgBorders handling, and fix pgSz bug
  in https://gerrit.libreoffice.org/5664 from Pierre-Eric Pelloux-Prayer
+ Set FIREBIRD_TMP and FIREBIRD_LOCK with sane values. (firebird-sdbc)
  in https://gerrit.libreoffice.org/5678 from Andrzej J.R. Hunt
+ XubString->OUString
  in https://gerrit.libreoffice.org/5668 from Julien Nabet
+ fix for IsPlausibleSingleWordSection checking wrong condition
  in https://gerrit.libreoffice.org/5548 from Adam CloudOn


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

+ clean obsolete parts of ScMyCell
  in https://gerrit.libreoffice.org/5674 from Laurent Godard
+ Simplify and fix the embedded Firebird on OS X
  in https://gerrit.libreoffice.org/5675 from Tor Lillqvist
+ Convert Hyphenation dialogs to .ui
  in https://gerrit.libreoffice.org/5672 from Faisal al-otaibi


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

None

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

+ Don't use osl_createSuspendedThread anymore
  in https://gerrit.libreoffice.org/5565 from Arnaud Versini
+ Positional Tab additions
  in https://gerrit.libreoffice.org/5387 from Adam CloudOn
+ Change oslThreadIdentifier to uintptr_t and use THREAD_VALUE on Unix.
  in https://gerrit.libreoffice.org/5553 from Arnaud Versini
+ fdo#64817 : fix for rectangle with image fill
  in https://gerrit.libreoffice.org/4718 from Adam CloudOn
+ fdo#66577: non-fractional widths with Core Text
  in https://gerrit.libreoffice.org/5023 from Khaled Hosny


Best,

Your friendly LibreOffice Gerrit Digest Mailer

Note: The bot generating this message can be found and improved here:
   
https://gerrit.libreoffice.org/gitweb?p=dev-tools.git;a=blob;f=gerritbot/send-daily-digest
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: New bug, looking for source location for setting Calc formulas

2013-08-29 Thread Andrew Douglas Pitonyak

On 08/29/2013 10:44 PM, Andrew Douglas Pitonyak wrote:


Anyone know off hand where I can find the sourcecode to set the the 
Formula and FormulaLocal property. Then, how can I see how changed 
that code last?


A bug was introduced in 4.1 and I am trying to track the developer 
responsible.


So, what is the bug?

Setting the Formula property on a Calc cell has always expected 
English formulas. Use the FormulaLocal property otherwise. The new 
behavior is that the Formula property acts the same as FormulaLocal


https://bugs.freedesktop.org/show_bug.cgi?id=67836

I became aware of this based on a post on the mailing list. Turns out 
there was already an open and not verified bug. I have verified the 
behavior but would like to chat with the responsible developer before 
changing to confirmed and asking the responsible party to consider 
backing out their change (as well as can be done after a release). 
Alternatively, I can at least document the new behavior that the two 
properties are identical so you might as well deprecate one.


Looks like setting the FormulaLocal property is probably handled in 
sc/source/ui/unoobj/cellsuno.cxx



ScCellObj::SetOnePropertyValue

this calls SetString_Impl

My head hurts now.


--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
Info:  http://www.pitonyak.org/oo.php

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


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

2013-08-29 Thread Jesús Corrius
 scp2/source/winexplorerext/registryitem_winexplorerext.scp |   24 ++---
 1 file changed, 12 insertions(+), 12 deletions(-)

New commits:
commit 985ac0b156bdb88afec7091a3b36a2212d39c580
Author: Jesús Corrius 
Date:   Tue Aug 27 19:01:03 2013 +0200

ICE03   WARNING String overflow (greater than length permitted in 
column)

Change-Id: I48bade4998c6c5d95e49bdc109d4a5a1ef76bbcb

diff --git a/scp2/source/winexplorerext/registryitem_winexplorerext.scp 
b/scp2/source/winexplorerext/registryitem_winexplorerext.scp
index e862409..d34223c 100644
--- a/scp2/source/winexplorerext/registryitem_winexplorerext.scp
+++ b/scp2/source/winexplorerext/registryitem_winexplorerext.scp
@@ -36,7 +36,7 @@ RegistryItem 
gid_Regitem_Clsid_087B3AE3_E237_4467_B8DB_5A38AB959AC9_InProcServer
 Value = "[INSTALLLOCATION]program\shlxthdl\shlxthdl_x64.dll";
 End
 
-RegistryItem 
gid_Regitem_Clsid_087B3AE3_E237_4467_B8DB_5A38AB959AC9_InProcServer32_ThreadingModel
+RegistryItem 
gid_Regitem_Clsid_087B3AE3_E237_4467_B8DB_5A38AB959AC9_InProcServer32_TM
 ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
 ModuleID = gid_Module_Optional_Winexplorerext;
 Subkey = "CLSID\{087B3AE3-E237-4467-B8DB-5A38AB959AC9}\InprocServer32";
@@ -44,7 +44,7 @@ RegistryItem 
gid_Regitem_Clsid_087B3AE3_E237_4467_B8DB_5A38AB959AC9_InProcServer
 Value = "Apartment";
 End
 
-RegistryItem 
gid_Regitem_Clsid_087B3AE3_E237_4467_B8DB_5A38AB959AC9_InProcServer32_ThreadingModel_x64
+RegistryItem 
gid_Regitem_Clsid_087B3AE3_E237_4467_B8DB_5A38AB959AC9_InProcServer32_TM_x64
 ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
 ModuleID = gid_Module_Optional_Winexplorerext_x64;
 ComponentCondition = "VersionNT64";
@@ -89,7 +89,7 @@ RegistryItem 
gid_Regitem_Clsid_3B092F0C_7696_40E3_A80F_68D74DA84210_InProcServer
 Value = "[INSTALLLOCATION]program\shlxthdl\shlxthdl_x64.dll";
 End
 
-RegistryItem 
gid_Regitem_Clsid_3B092F0C_7696_40E3_A80F_68D74DA84210_InProcServer32_ThreadingModel
+RegistryItem 
gid_Regitem_Clsid_3B092F0C_7696_40E3_A80F_68D74DA84210_InProcServer32_TM
 ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
 ModuleID = gid_Module_Optional_Winexplorerext;
 Subkey = "CLSID\{3B092F0C-7696-40E3-A80F-68D74DA84210}\InprocServer32";
@@ -98,7 +98,7 @@ RegistryItem 
gid_Regitem_Clsid_3B092F0C_7696_40E3_A80F_68D74DA84210_InProcServer
 Val64 = "Apartment";
 End
 
-RegistryItem 
gid_Regitem_Clsid_3B092F0C_7696_40E3_A80F_68D74DA84210_InProcServer32_ThreadingModel_x64
+RegistryItem 
gid_Regitem_Clsid_3B092F0C_7696_40E3_A80F_68D74DA84210_InProcServer32_TM_x64
 ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
 ModuleID = gid_Module_Optional_Winexplorerext_x64;
 ComponentCondition = "VersionNT64";
@@ -158,7 +158,7 @@ RegistryItem 
gid_Regitem_Clsid_C52AF81D_F7A0_4AAB_8E87_F80A60CCD396_InProcServer
 Value = "[INSTALLLOCATION]program\shlxthdl\shlxthdl_x64.dll";
 End
 
-RegistryItem 
gid_Regitem_Clsid_C52AF81D_F7A0_4AAB_8E87_F80A60CCD396_InProcServer32_ThreadingModel
+RegistryItem 
gid_Regitem_Clsid_C52AF81D_F7A0_4AAB_8E87_F80A60CCD396_InProcServer32_TM
 ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
 ModuleID = gid_Module_Optional_Winexplorerext;
 Subkey = "CLSID\{C52AF81D-F7A0-4AAB-8E87-F80A60CCD396}\InprocServer32";
@@ -166,7 +166,7 @@ RegistryItem 
gid_Regitem_Clsid_C52AF81D_F7A0_4AAB_8E87_F80A60CCD396_InProcServer
 Value = "Apartment";
 End
 
-RegistryItem 
gid_Regitem_Clsid_C52AF81D_F7A0_4AAB_8E87_F80A60CCD396_InProcServer32_ThreadingModel_x64
+RegistryItem 
gid_Regitem_Clsid_C52AF81D_F7A0_4AAB_8E87_F80A60CCD396_InProcServer32_TM_x64
 ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
 ModuleID = gid_Module_Optional_Winexplorerext_x64;
 ComponentCondition = "VersionNT64";
@@ -227,7 +227,7 @@ RegistryItem 
gid_Regitem_Clsid_7BC0E710_5703_45BE_A29D_5D46D8B39262_InProcServer
 Value = "[INSTALLLOCATION]program\shlxthdl\ooofilt_x64.dll";
 End
 
-RegistryItem 
gid_Regitem_Clsid_7BC0E710_5703_45BE_A29D_5D46D8B39262_InProcServer32_ThreadingModel
+RegistryItem 
gid_Regitem_Clsid_7BC0E710_5703_45BE_A29D_5D46D8B39262_InProcServer32_TM
 ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
 ModuleID = gid_Module_Optional_Winexplorerext;
 Subkey = "CLSID\{7BC0E710-5703-45BE-A29D-5D46D8B39262}\InprocServer32";
@@ -235,7 +235,7 @@ RegistryItem 
gid_Regitem_Clsid_7BC0E710_5703_45BE_A29D_5D46D8B39262_InProcServer
 Value = "Apartment";
 End
 
-RegistryItem 
gid_Regitem_Clsid_7BC0E710_5703_45BE_A29D_5D46D8B39262_InProcServer32_ThreadingModel_x64
+RegistryItem 
gid_Regitem_Clsid_7BC0E710_5703_45BE_A29D_5D46D8B39262_InProcServer32_TM_x64
 ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
 ModuleID = gid_Module_Optional_Winexplorerext_x64;
 ComponentCondition = "VersionNT64";
@@ -293,7 +293,7 @@ RegistryItem 
gid_Regitem_Clsid_63542C48_9552_494A_84F7_73AA6A7C99C1_InProcServer
 Value = "[INSTALLLOCATION]program\shlxthdl\shlxthdl_x64.dll";
 End
 
-RegistryItem 
gid_Regitem_Clsid_63542C48_9552_494A_84F7_73AA6A7C99C1_InProcServer

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

2013-08-29 Thread Khaled Hosny
 vcl/unx/gtk/gdi/salprn-gtk.cxx |   12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 47070dd63e9d9356896cf483a2077b766dc11530
Author: Khaled Hosny 
Date:   Fri Aug 30 06:04:42 2013 +0200

Mark lcl_* functions static

Change-Id: I224ab8fea25b8b42530e242f3ea8dd72c7abd733

diff --git a/vcl/unx/gtk/gdi/salprn-gtk.cxx b/vcl/unx/gtk/gdi/salprn-gtk.cxx
index 18af294..0722f78 100644
--- a/vcl/unx/gtk/gdi/salprn-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salprn-gtk.cxx
@@ -151,14 +151,14 @@ GtkSalPrinter_Impl::~GtkSalPrinter_Impl()
 namespace
 {
 
-GtkInstance const&
+static GtkInstance const&
 lcl_getGtkSalInstance()
 {
 // we _know_ this is GtkInstance
 return *static_cast(GetGtkSalData()->m_pInstance);
 }
 
-bool
+static bool
 lcl_useSystemPrintDialog()
 {
 return officecfg::Office::Common::Misc::UseSystemPrintDialog::get()
@@ -320,7 +320,7 @@ GtkSalPrinter::EndJob()
 namespace
 {
 
-void
+static void
 lcl_setHelpText(
 GtkWidget* const io_pWidget,
 const uno::Sequence& i_rHelpTexts,
@@ -367,7 +367,7 @@ lcl_makeFrame(
 return pFrame;
 }
 
-void
+static void
 lcl_extractHelpTextsOrIds(
 const beans::PropertyValue& rEntry,
 uno::Sequence& rHelpStrings)
@@ -383,7 +383,7 @@ lcl_extractHelpTextsOrIds(
 }
 }
 
-GtkWidget*
+static GtkWidget*
 lcl_combo_box_text_new()
 {
 #if GTK_CHECK_VERSION(3,0,0)
@@ -393,7 +393,7 @@ lcl_combo_box_text_new()
 #endif
 }
 
-void
+static void
 lcl_combo_box_text_append(GtkWidget* const pWidget, gchar const* const pText)
 {
 #if GTK_CHECK_VERSION(3,0,0)
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: Mirroring gtk buttons

2013-08-29 Thread Khaled Hosny
On Thu, Aug 29, 2013 at 05:41:39PM +0100, Caolán McNamara wrote:
> On Fri, 2013-08-16 at 18:41 +0200, Khaled Hosny wrote:
> > On Fri, Aug 16, 2013 at 03:44:12PM +0100, Caolán McNamara wrote:
> > > On Tue, 2013-07-30 at 04:28 +0200, Khaled Hosny wrote:
> > > > So I got fed up and tried this. Setting LANGUAGE in GtkData::Init()
> > > > indeed fixes the issue, but calling Application::GetSettings() there
> > > > throws a DeploymentException, apparently that code is executed too
> > > > early, before InitVCL() is called.
> > > 
> > > So the good news is that they theory would work ?
> 
> Pretty tricky, lots of pieces need other pieces initialized before each
> other and its hard to find a way through, but how about the attached, it
> seems to work for me.

Seems to work fine :), even file a print dialogs now have the proper
direction, not only the localization (I tested the other case, LTR
LibreOffice on a RTL locale, though).

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


New bug, looking for source location for setting Calc formulas

2013-08-29 Thread Andrew Douglas Pitonyak


Anyone know off hand where I can find the sourcecode to set the the 
Formula and FormulaLocal property. Then, how can I see how changed that 
code last?


A bug was introduced in 4.1 and I am trying to track the developer 
responsible.


So, what is the bug?

Setting the Formula property on a Calc cell has always expected English 
formulas. Use the FormulaLocal property otherwise. The new behavior is 
that the Formula property acts the same as FormulaLocal


https://bugs.freedesktop.org/show_bug.cgi?id=67836

I became aware of this based on a post on the mailing list. Turns out 
there was already an open and not verified bug. I have verified the 
behavior but would like to chat with the responsible developer before 
changing to confirmed and asking the responsible party to consider 
backing out their change (as well as can be done after a release). 
Alternatively, I can at least document the new behavior that the two 
properties are identical so you might as well deprecate one.


--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
Info:  http://www.pitonyak.org/oo.php

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


[Libreoffice-commits] core.git: 2 commits - i18nlangtag/source include/i18nlangtag sc/source sw/source

2013-08-29 Thread Eike Rathke
 i18nlangtag/source/isolang/isolang.cxx |   19 ++-
 include/i18nlangtag/lang.h |6 +++---
 sc/source/filter/excel/xlstyle.cxx |4 ++--
 sw/source/filter/ww8/ww8scan.cxx   |2 +-
 4 files changed, 16 insertions(+), 15 deletions(-)

New commits:
commit 4986ebf83a111c123b275a48fb6045bab7657730
Author: Eike Rathke 
Date:   Fri Aug 30 02:04:24 2013 +0200

fixed CppunitTest_sw_rtfimport, {LANGUAGE_FRENCH,"fr",""} catcher needed

Change-Id: Ic8152e16c86c2d8475542c131e0ac81697f3d557

diff --git a/i18nlangtag/source/isolang/isolang.cxx 
b/i18nlangtag/source/isolang/isolang.cxx
index 5f449e4..e4ab25c 100644
--- a/i18nlangtag/source/isolang/isolang.cxx
+++ b/i18nlangtag/source/isolang/isolang.cxx
@@ -332,6 +332,7 @@ static IsoLanguageCountryEntry const aImplIsoLangEntries[] =
 { LANGUAGE_FRENCH_ZAIRE,"fr", "CD" },   // Democratic 
Republic Of Congo
 { LANGUAGE_FRENCH_MOROCCO,  "fr", "MA" },
 { LANGUAGE_FRENCH_REUNION,  "fr", "RE" },
+{ LANGUAGE_FRENCH,  "fr", ""   },   // needed as a 
catcher before other "fr" entries!
 { LANGUAGE_FRENCH_NORTH_AFRICA, "fr", ""   },
 { LANGUAGE_FRENCH_WEST_INDIES,  "fr", ""   },   // unknown ISO 
country code
 { LANGUAGE_FRISIAN_NETHERLANDS, "fy", "NL" },
commit 8d9dd7ba8a123b79661416d23fceb4c2f01c2165
Author: Eike Rathke 
Date:   Fri Aug 30 01:47:45 2013 +0200

disentangled the LANGUAGE_CHINESE mess

Change-Id: Idda0bcb5c70331e21214a10d85cad0c2d634473f

diff --git a/i18nlangtag/source/isolang/isolang.cxx 
b/i18nlangtag/source/isolang/isolang.cxx
index 6c39bde..5f449e4 100644
--- a/i18nlangtag/source/isolang/isolang.cxx
+++ b/i18nlangtag/source/isolang/isolang.cxx
@@ -104,9 +104,10 @@ struct IsoLangOtherEntry
 // locale of that language first.
 //
 // The default entry for a LangID <-> ISO mapping has to be first. For
-// conversion of legacy mappings one LangID can map to multiple ISO codes, and
-// one ISO code combination can map to multiple LangIDs. For compatibility with
-// already existing calls it can also be a sequence as follows:
+// conversion of legacy mappings one LangID can map to multiple ISO codes
+// except if the LangID is primary-only, and one ISO code combination can map
+// to multiple LangIDs. For compatibility with already existing calls it can
+// also be a sequence as follows:
 
 // LANGUAGE_ENGLISH,"en", ""
 // LANGUAGE_ENGLISH_US, "en", "US"
@@ -130,11 +131,9 @@ struct IsoLangOtherEntry
 // to match the language, see code. A call with "en-ZZ" (not in table) would
 // still result in LANGUAGE_ENGLISH.
 
-/* erAck: 2007-07-05T20:01+0200  TODO: The entire suite's "primary language
- * only" usage and locale fall back should be cleaned up and made consistent. I
- * strongly doubt that most callers exactly expect the behavior described.
- * Currently these primary LangIDs are used literally in OOo code:
- * LANGUAGE_ENGLISH LANGUAGE_CHINESE
+/* Currently (2013-08-29) only these primary LangID are still used literally in
+ * code:
+ * LANGUAGE_ENGLISH  LANGUAGE_ARABIC_PRIMARY_ONLY
  */
 
 static IsoLanguageCountryEntry const aImplIsoLangEntries[] =
@@ -155,9 +154,10 @@ static IsoLanguageCountryEntry const aImplIsoLangEntries[] 
=
 { LANGUAGE_PORTUGUESE_BRAZILIAN,"pt", "BR" },
 { LANGUAGE_DANISH,  "da", "DK" },
 { LANGUAGE_GREEK,   "el", "GR" },
-{ LANGUAGE_CHINESE, "zh", ""   },
 { LANGUAGE_CHINESE_SIMPLIFIED,  "zh", "CN" },
+{ LANGUAGE_CHINESE_SIMPLIFIED_LEGACY,   "zh", "CN" },
 { LANGUAGE_CHINESE_TRADITIONAL, "zh", "TW" },
+{ LANGUAGE_CHINESE_TRADITIONAL_LEGACY,  "zh", "TW" },
 { LANGUAGE_CHINESE_HONGKONG,"zh", "HK" },
 { LANGUAGE_CHINESE_SINGAPORE,   "zh", "SG" },
 { LANGUAGE_CHINESE_MACAU,   "zh", "MO" },
diff --git a/include/i18nlangtag/lang.h b/include/i18nlangtag/lang.h
index f886557..3f80aaf 100644
--- a/include/i18nlangtag/lang.h
+++ b/include/i18nlangtag/lang.h
@@ -141,14 +141,14 @@ typedef unsigned short LanguageType;
 #define LANGUAGE_BURMESE0x0455
 #define LANGUAGE_CATALAN0x0403
 #define LANGUAGE_CHEROKEE_UNITED_STATES 0x045C
-#define LANGUAGE_CHINESE0x0004  /* primary only, not a 
locale! */
 #define LANGUAGE_CHINESE_HONGKONG   0x0C04
 #define LANGUAGE_CHINESE_MACAU  0x1404
 #define LANGUAGE_CHINESE_SIMPLIFIED 0x0804
 #define LANGUAGE_CHINESE_SINGAPORE  0x1004
 #define LANGUAGE_CHINESE_TRADITIONAL0x0404
-/* #define LANGUAGE_CHINESE_SIMPLIFIED 0x0004 *//* artificial 
political? Defined as 'zh-CHS' by MS. Primary only! */
-/* #define LANGUAGE_CHINESE_TRADITIONAL0x7C04 *//* artificial 
political? Defined as 'zh-CHT' by MS. */
+#define LANGUAGE_CHINESE_SIMPLIFIED_LEGACY  0x0004  /* MS-.

[Libreoffice-commits] core.git: Branch 'feature/gsoc-calc-enhanced-db-range' - 4 commits - sc/inc sc/source

2013-08-29 Thread Akash Shetye
 sc/inc/dbdataformatting.hxx  |   24 +-
 sc/source/core/data/fillinfo.cxx |   34 ++
 sc/source/core/tool/dbdata2.cxx  |   74 +--
 sc/source/core/tool/dbdataformatting.cxx |   53 --
 sc/source/filter/inc/stylesbuffer.hxx|3 -
 sc/source/filter/oox/stylesbuffer.cxx|   25 --
 6 files changed, 141 insertions(+), 72 deletions(-)

New commits:
commit 219738ee4deee6204ed19c9681cde6c7579297c1
Author: Akash Shetye 
Date:   Fri Aug 30 04:46:14 2013 +0530

Revised the code for cell style calculation

Change-Id: Ib2a66148ec6461f3b8ce5a4de7dabcc78dadaea3

diff --git a/sc/source/core/tool/dbdata2.cxx b/sc/source/core/tool/dbdata2.cxx
index 879437a..073dea2 100644
--- a/sc/source/core/tool/dbdata2.cxx
+++ b/sc/source/core/tool/dbdata2.cxx
@@ -16,14 +16,12 @@ OUString ScDBData::GetCellStyle( const ScAddress& rPos, 
bool bRowStripe )
 //first see if the DB Range has any DB Formatting at all
 if( !HasFormatting() )
 return OUString("Default");
+//Check if the bRowStripe specified applies?
+if ( bRowStripe == true && !(mpTableFormatData->GetBandedRows()) )
+return OUString("Default");//Asked banded rows, but not banded
+if ( bRowStripe == false && !(mpTableFormatData->GetBandedColumns()) )
+return OUString("Default");//asked banded cols, but not banded here
 //Calculating which style sheet is applicable to the give cell begins now
-//Create a whole row stripe map
-std::vector< OUString > aRowStripeSeq;
-//Create a whole column stripe map
-std::vector< OUString > aColStripeSeq;
-//The above two vectors represent a whole row/col stripe by
-//using consecutive entries of stylenames into the vector
-//just as it would look like in a rendered single stripe.
 ScDBDataFormatting aDBFormatting;
 GetTableFormatting( aDBFormatting );
 sal_Int32 i;
@@ -31,6 +29,7 @@ OUString ScDBData::GetCellStyle( const ScAddress& rPos, bool 
bRowStripe )
 sal_Int32 nSecondSize;
 OUString aFirstStyle;
 OUString aSecondStyle;
+sal_Int32 nStyleIndex;
 if ( bRowStripe )
 {
 //Fill the row stripe sequence
@@ -38,65 +37,38 @@ OUString ScDBData::GetCellStyle( const ScAddress& rPos, 
bool bRowStripe )
 aFirstStyle = aDBFormatting.GetFirstRowStripeStyle();
 nSecondSize = aDBFormatting.GetSecondRowStripeSize();
 aSecondStyle = aDBFormatting.GetSecondRowStripeStyle();
-for ( i = 1; i <= nFirstSize; ++i )
-{
-//Add the first row stripe style to the RowStripeSeq vector 
nFirstSize
-//many times.
-aRowStripeSeq.push_back( aFirstStyle );
-}
-for ( i = 1; i<= nSecondSize; ++i )
-{
-//Similarly
-aRowStripeSeq.push_back( aSecondStyle );
-}
 }
-//Fill the column stripe sequence
 else
 {
+//Fill the col stripe sequence
 nFirstSize = aDBFormatting.GetFirstColStripeSize();
 aFirstStyle = aDBFormatting.GetFirstColStripeStyle();
 nSecondSize = aDBFormatting.GetSecondColStripeSize();
 aSecondStyle = aDBFormatting.GetSecondColStripeStyle();
-for ( i = 1; i<=nFirstSize; ++i )
-{
-aColStripeSeq.push_back( aFirstStyle );
-}
-for ( i = 1; i<=nSecondSize; ++i )
-{
-aColStripeSeq.push_back( aSecondStyle );
-}
 }
-//This approach of calculating the stripe sequence will be bad
-//if stripe sizes are huge, they generally aren't.
-//Now the math.
-//We used 1-based addressing for this instead of the 0-based used in Calc
 if ( bRowStripe )
 {
-sal_Int32 nStyleIndex = ( rPos.Row() + 1 ) % ( aRowStripeSeq.size() );
-if ( nStyleIndex == 0 )
-{
-//Return the last entry in the vector
-return aRowStripeSeq[ ( aRowStripeSeq.size() - 1 ) ];
-}
+nStyleIndex = ( rPos.Row() + 1 ) % ( nFirstSize + nSecondSize );
+}
+else
+{
+nStyleIndex = ( rPos.Col() + 1 ) % ( nFirstSize + nSecondSize );
+}
+if ( nStyleIndex == 0 )
+{
+sal_Int32 nEntryNo = ( ( nFirstSize + nSecondSize ) );
+if ( nEntryNo <= nFirstSize )
+return aFirstStyle;
 else
-{
-//Return the nStyleIndex'th entry
-return aRowStripeSeq[ ( nStyleIndex - 1) ];
-}
+return aSecondStyle;
 }
 else
 {
-sal_Int32 nStyleIndex = ( rPos.Row() + 1 ) % ( aRowStripeSeq.size() );
-if ( nStyleIndex == 0 )
-{
-//Return the last entry in the vector
-return aColStripeSeq[ ( aColStripeSeq.size() - 1 ) ];
-}
+sal_Int32 nEntryNo = ( nStyleIndex );
+if ( nEntryNo <= nFirstSize )
+return aFirstStyle;
 else
-{
-//Return the nStyleIndex'th ent

Re: fdo#39439 : Web search for UI strings

2013-08-29 Thread Mat M

Hello Caolan

Le Thu, 29 Aug 2013 12:30:47 +0200, Caolán McNamara  a  
écrit:



On Sun, 2013-08-25 at 01:40 +0200, Mat M wrote:

Hello

I eventually reach a usable step in this issue [1].
I don't know where to ask for my gerrit review. Looking at
libreoffice/website repo[2], you see recent activities on update,
tinderbox and master branches. Recent means after the obsolescence  
notice

[3] which is from 2012-07-20.
So should I push my patch to dev-tools, website, github.com/tdf ?


So, what is your patch against ? I mean what does it patch, is it e.g. a
patch against opengrok or a command line search utility or something
else.


Not really a patch. As discussed in the issue, it is a python webapp to be  
setup on a webserver. it just need a readable local bare repo to work.
I'd love to commit a patch in opengrok, but I'm afraid my Java score is  
not enough :)


Regards




[1] https://bugs.freedesktop.org/show_bug.cgi?id=39439
[2] http://cgit.freedesktop.org/libreoffice/website/
[3]
http://cgit.freedesktop.org/libreoffice/website/tree/THIS_IS_OBSOLETE_FIND_NEW_REPOSITORY_LOCATION_IN_HERE

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


[Libreoffice-commits] core.git: Branch 'aoo/trunk' - 2 commits - extensions.lst

2013-08-29 Thread Andrea Pescetti
 extensions.lst |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5470169b8f17cd83ec4db7ad0432437ccc3b3d7c
Author: Andrea Pescetti 
Date:   Thu Aug 29 21:28:24 2013 +

#123122# Update bundled English dictionary

diff --git a/extensions.lst b/extensions.lst
index 6c4901a..cad6cc5 100644
--- a/extensions.lst
+++ b/extensions.lst
@@ -39,7 +39,7 @@
 
 # English dictionary
 [ language=en.* || language=de || language=it ]
-b7ce02d25eb302e5b23572cdccaea461 
http://sourceforge.net/projects/aoo-extensions/files/17102/0/dict-en.oxt/download
 "dict-en.oxt"
+3c3f841f5d40403bcc4d6bb685a38160 
http://sourceforge.net/projects/aoo-extensions/files/17102/1/dict-en.oxt/download
 "dict-en.oxt"
 
 # English (USA, en_US) dictionary
 [ language==nl || language==ru ]
commit 998ae48895f8aa3e8a8893235baee83d2fe2e1de
Author: Andrea Pescetti 
Date:   Thu Aug 29 21:20:52 2013 +

Fix typo.

diff --git a/extensions.lst b/extensions.lst
index 471781e..6c4901a 100644
--- a/extensions.lst
+++ b/extensions.lst
@@ -31,7 +31,7 @@
 # the name has to be specified after the URL enclosed in double quotes.
 
 
-# Some extensions that are installed indepently of the language.
+# Some extensions that are installed independently of the language.
 
 # the presenter console extension
 # [ language=all && ENABLE_XXX ]
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: 8 commits - i18nlangtag/source include/i18nlangtag vcl/source

2013-08-29 Thread Eike Rathke
 i18nlangtag/source/isolang/isolang.cxx  |   13 +
 i18nlangtag/source/isolang/mslangid.cxx |7 +++
 include/i18nlangtag/lang.h  |3 ---
 vcl/source/gdi/sallayout.cxx|2 +-
 4 files changed, 9 insertions(+), 16 deletions(-)

New commits:
commit f6f49b8085e0069697c13494e490e37bb1044a41
Author: Eike Rathke 
Date:   Thu Aug 29 22:53:51 2013 +0200

isKorean() never returned true

because it compared the primary language with the combined primary and
sub language

Change-Id: I09f8ee5c6f00a98e0b2bc3045caeaef6f0f86794

diff --git a/i18nlangtag/source/isolang/mslangid.cxx 
b/i18nlangtag/source/isolang/mslangid.cxx
index 977a24f..1a0c68e 100644
--- a/i18nlangtag/source/isolang/mslangid.cxx
+++ b/i18nlangtag/source/isolang/mslangid.cxx
@@ -256,13 +256,13 @@ bool MsLangId::isTraditionalChinese( const 
::com::sun::star::lang::Locale & rLoc
 //static
 bool MsLangId::isChinese( LanguageType nLang )
 {
-return MsLangId::getPrimaryLanguage(nLang) == LANGUAGE_CHINESE;
+return MsLangId::getPrimaryLanguage(nLang) == 
MsLangId::getPrimaryLanguage(LANGUAGE_CHINESE);
 }
 
 //static
 bool MsLangId::isKorean( LanguageType nLang )
 {
-return MsLangId::getPrimaryLanguage(nLang) == LANGUAGE_KOREAN;
+return MsLangId::getPrimaryLanguage(nLang) == 
MsLangId::getPrimaryLanguage(LANGUAGE_KOREAN);
 }
 
 // static
commit 6626ca9c30ecf2ad5ee53d5ca47a6dfae087cba3
Author: Eike Rathke 
Date:   Thu Aug 29 22:26:19 2013 +0200

Pali should be ISO 639-1 'pi' not 639-3 'pli'

Change-Id: Ifea43b20aacdb54eec9be25d349daa1a19ae26b4

diff --git a/i18nlangtag/source/isolang/isolang.cxx 
b/i18nlangtag/source/isolang/isolang.cxx
index cc611ef..6c39bde 100644
--- a/i18nlangtag/source/isolang/isolang.cxx
+++ b/i18nlangtag/source/isolang/isolang.cxx
@@ -521,7 +521,8 @@ static IsoLanguageCountryEntry const aImplIsoLangEntries[] =
 { LANGUAGE_USER_MANX,   "gv", "GB" },
 { LANGUAGE_USER_ARAGONESE,  "an", "ES" },
 { LANGUAGE_USER_KEYID, "qtz", ""   },   // key id 
pseudolanguage used for UI testing
-{ LANGUAGE_USER_PALI_LATIN,"pli", ""   },   // Pali with Latin 
script
+{ LANGUAGE_USER_PALI_LATIN, "pi", ""   },   // Pali with Latin 
script, ISO 639-1
+{ LANGUAGE_USER_PALI_LATIN,"pli", ""   },   // Pali with Latin 
script, ISO 639-3 (sigh..) back-compat
 { LANGUAGE_USER_KYRGYZ_CHINA,   "ky", "CN" },
 { LANGUAGE_USER_KOMI_ZYRIAN,   "kpv", "RU" },
 { LANGUAGE_USER_KOMI_PERMYAK,  "koi", "RU" },
commit c8cfda297691b793048b67affe7b1db08e028c6d
Author: Eike Rathke 
Date:   Thu Aug 29 22:09:40 2013 +0200

added LANGUAGE_KASHMIRI as "known no country" locale

Change-Id: I6e6cc53fb7ed07876aba4bfb6d847bb49e076fc3

diff --git a/i18nlangtag/source/isolang/isolang.cxx 
b/i18nlangtag/source/isolang/isolang.cxx
index 8adaba7..cc611ef 100644
--- a/i18nlangtag/source/isolang/isolang.cxx
+++ b/i18nlangtag/source/isolang/isolang.cxx
@@ -302,8 +302,8 @@ static IsoLanguageCountryEntry const aImplIsoLangEntries[] =
 { LANGUAGE_GUJARATI,"gu", "IN" },
 { LANGUAGE_KANNADA, "kn", "IN" },
 { LANGUAGE_ASSAMESE,"as", "IN" },
-{ LANGUAGE_KASHMIRI,"ks", ""   },   // Kashmiri in 
"Jammu and Kashmir" ... no ISO3166 code for that
 { LANGUAGE_KASHMIRI_INDIA,  "ks", "IN" },
+{ LANGUAGE_KASHMIRI,"ks", ""   },   // Kashmiri in 
"Jammu and Kashmir" ... no ISO3166 code for that
 { LANGUAGE_MALAYALAM,   "ml", "IN" },
 { LANGUAGE_MANIPURI,   "mni", "IN" },
 { LANGUAGE_MARATHI, "mr", "IN" },
@@ -870,6 +870,7 @@ void MsLangId::Conversion::convertLanguageToLocaleImpl( 
LanguageType nLang,
 case LANGUAGE_USER_ESPERANTO:
 case LANGUAGE_USER_INTERLINGUA:
 case LANGUAGE_USER_LOJBAN:
+case LANGUAGE_KASHMIRI:
 return pEntry->getLocale();
 default:
 ;   // nothing
commit e0dc2e0c474010a7d52aa6fe3612e74eca603a0e
Author: Eike Rathke 
Date:   Thu Aug 29 21:56:48 2013 +0200

LANGUAGE_KASHMIRI is not a primary-only LangID

Change-Id: I0195d775b51b2a258dd7a561cd7b6f063ca382c8

diff --git a/i18nlangtag/source/isolang/isolang.cxx 
b/i18nlangtag/source/isolang/isolang.cxx
index fb746e8..8adaba7 100644
--- a/i18nlangtag/source/isolang/isolang.cxx
+++ b/i18nlangtag/source/isolang/isolang.cxx
@@ -135,7 +135,6 @@ struct IsoLangOtherEntry
  * strongly doubt that most callers exactly expect the behavior described.
  * Currently these primary LangIDs are used literally in OOo code:
  * LANGUAGE_ENGLISH LANGUAGE_CHINESE
- * LANGUAGE_KASHMIRI
  */
 
 static IsoLanguageCountryEntry const aImplIsoLangEntries[] =
@@ -303,7 +302,7 @@ st

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

2013-08-29 Thread Stephan Bergmann
 sfx2/source/dialog/templdlg.cxx |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit f5b05d92dd6b94cb93ad7391facb866ef74d64a2
Author: Stephan Bergmann 
Date:   Thu Aug 29 23:03:16 2013 +0200

-Werror,-Wundef

Change-Id: Iaef2e4dec0d2fc8d0583fe2a56b5e0bcba667d8c

diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 6e955a6..ebc4101 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -1050,7 +1050,7 @@ 
SfxCommonTemplateDialog_Impl::~SfxCommonTemplateDialog_Impl()
 Execute_Impl(SID_STYLE_END_PREVIEW,
 String(), String(),
 0, 0, 0, 0 );
-#if STYLESPREVIEW
+#if defined STYLESPREVIEW
 Execute_Impl(SID_STYLE_END_PREVIEW,
 String(), String(),
 0, 0, 0, 0 );
@@ -1433,7 +1433,7 @@ void 
SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(sal_uInt16 nFlags)
 OUString aStyle;
 if(pState)
 aStyle = pState->GetStyleName();
-#if STYLESPREVIEW
+#if defined STYLESPREVIEW
 mbIgnoreSelect = true; // in case we get a selection change
 // in anycase we should stop any preview
 Execute_Impl(SID_STYLE_END_PREVIEW,
@@ -2336,7 +2336,7 @@ IMPL_LINK( SfxCommonTemplateDialog_Impl, FmtSelectHdl, 
SvTreeListBox *, pListBox
 if( pListBox )
 {
 SelectStyle( pListBox->GetEntryText( pListBox->GetHdlEntry() ));
-#if STYLESPREVIEW
+#if defined STYLESPREVIEW
 sal_uInt16 nModifier = aFmtLb.GetModifier();
 if ( mbIgnoreSelect )
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: Cannot install master~2013-08-28_09.03.22_LibreOfficeDev_4.2.0.0.alpha0_Win_x86.msi

2013-08-29 Thread Andras Timar
On Thu, Aug 29, 2013 at 1:05 PM, Andras Timar  wrote:
>> ... but perhaps some of the "special" options in scp2 didn't survive
>> that and are still necessary for some extra magic to be enabled?
>>
>
> Yes, BINARYTABLE and BINARYTABLE_ONLY flags had a crucial role here.
>

After some fruitless attempts to understand AutoInstall's internals,
finally I partially reverted 3f8c36caef76ee1f688d35d39ac5bffe5d0f8319.
I'm sorry, I did not have more time. Windows installer is OK again.

Best regards,
Andras
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


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

2013-08-29 Thread Noel Power
 include/sfx2/sfxsids.hrc |2 +
 sc/inc/document.hxx  |9 -
 sc/sdi/formatsh.sdi  |2 +
 sc/source/core/data/column2.cxx  |   24 +-
 sc/source/core/data/documen2.cxx |   27 +---
 sc/source/core/data/documen8.cxx |   29 +++--
 sc/source/core/data/fillinfo.cxx |   26 +---
 sc/source/ui/inc/output.hxx  |2 +
 sc/source/ui/unoobj/viewuno.cxx  |8 
 sc/source/ui/view/formatsh.cxx   |   63 +--
 sc/source/ui/view/gridwin4.cxx   |3 -
 sc/source/ui/view/output2.cxx|   29 +++--
 sfx2/sdi/sfx.sdi |   47 +
 sfx2/source/dialog/templdlg.cxx  |   36 +-
 sfx2/source/inc/templdgi.hxx |2 -
 15 files changed, 274 insertions(+), 35 deletions(-)

New commits:
commit dda842bec338efb06457551136678340d0718807
Author: Noel Power 
Date:   Thu Aug 29 17:22:48 2013 +0100

disable/disconnect style preview from styles dialog

So, the logic for firing the Preview start/end slots is disabled now,
I think the present dialog's behaviour could be very confusing, really
we need to have the preview done on the item the mouse is over (like
font preview) but I haven't had time to try and do that yet, also
imho it makes more sense to actually replace that styles dialog for
calc. I leave the code in place now so at least someone might be
able to enable and experiment with it.

Change-Id: I62adb9c217e9887d8df5ecea1e8ca071a570ab3e

diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 5bb674a..6e955a6 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -1050,6 +1050,11 @@ 
SfxCommonTemplateDialog_Impl::~SfxCommonTemplateDialog_Impl()
 Execute_Impl(SID_STYLE_END_PREVIEW,
 String(), String(),
 0, 0, 0, 0 );
+#if STYLESPREVIEW
+Execute_Impl(SID_STYLE_END_PREVIEW,
+String(), String(),
+0, 0, 0, 0 );
+#endif
 if ( bIsWater )
 Execute_Impl(SID_STYLE_WATERCAN, aEmpty, aEmpty, 0);
 GetWindow()->Hide();
@@ -1428,12 +1433,13 @@ void 
SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(sal_uInt16 nFlags)
 OUString aStyle;
 if(pState)
 aStyle = pState->GetStyleName();
+#if STYLESPREVIEW
 mbIgnoreSelect = true; // in case we get a selection change
 // in anycase we should stop any preview
 Execute_Impl(SID_STYLE_END_PREVIEW,
 String(), String(),
 0, 0, 0, 0 );
-
+#endif
 SelectStyle(aStyle);
 EnableDelete();
 }
@@ -2330,6 +2336,7 @@ IMPL_LINK( SfxCommonTemplateDialog_Impl, FmtSelectHdl, 
SvTreeListBox *, pListBox
 if( pListBox )
 {
 SelectStyle( pListBox->GetEntryText( pListBox->GetHdlEntry() ));
+#if STYLESPREVIEW
 sal_uInt16 nModifier = aFmtLb.GetModifier();
 if ( mbIgnoreSelect )
 {
@@ -2345,6 +2352,7 @@ IMPL_LINK( SfxCommonTemplateDialog_Impl, FmtSelectHdl, 
SvTreeListBox *, pListBox
  ( sal_uInt16 )GetFamilyItem_Impl()->GetFamily(),
  0, 0, &nModifier );
 }
+#endif
 }
 
 return 0;
commit bcc51fb2ebdf77a1cc089857775fd742085b45b6
Author: Noel Power 
Date:   Thu Aug 29 17:15:33 2013 +0100

add support for in-place style preview

selecting a style in the styles dialog ( without double clicking )
will apply the style to the currently selected cell(s) You can
with the keys navigate to other styles and they in turn will
also be applied. Preview will end when you click back onto the
document.

*FIXME* - the styles dialog isn't really suitable for previewing, a
new dialog ( possibly in the toolbar ) might be nicer ( see Excel )

*FIXME* - when there is a multiple selection the highlight colour
(applied as a transparent overlay) is most annoying ( and is mixed
with any background colour applied if part of a style )
see ( ScGridWindow::UpdateSelectionOverlay() ) However my puny
attempts to make the selection use a transparent colour made all the
borders of the selected cells dissappear. I guess maybe a box/border
 around each selected cell ( or group of cells ) would also work
but I didn't try that

Change-Id: I0950e79085ffb75f60ee961835665df0c230172f

diff --git a/include/sfx2/sfxsids.hrc b/include/sfx2/sfxsids.hrc
index f17124a..f3414d9 100644
--- a/include/sfx2/sfxsids.hrc
+++ b/include/sfx2/sfxsids.hrc
@@ -360,6 +360,8 @@
 #define SID_STYLE_UPDATE_BY_EXAMPLE (SID_SFX_START + 556)
 #define SID_STYLE_DRAGHIERARCHIE(SID_SFX_START + 565)
 #define SID_STYLE_MASK  (SID_SFX_START + 562)
+#define SID_STYLE_PREVIEW   (SID_SFX_START + 567)
+#define SID_STYLE_END_PREVIEW   (SID_SFX_START + 568)
 #define SID_STYLE

Re: Unable to build master with Visual Studio Express since last weekend

2013-08-29 Thread Michael Stahl
On 29/08/13 13:07, Niklas Johansson wrote:
> This week I started to get this error:
> /cygdrive/c/sources/libo-core/embeddedobj/Library_emboleobj.mk:11: *** 
> Library emboleobj must be registered in Repository.mk.  Stop.
> make: *** [build] Error 2
> 
> while trying to build master with Visual Studio Express.
> 
> This is my autogen.input:
> --with-external-tar=/cygdrive/c/sources/lo-externalsrc
> --with-junit=/cygdrive/c/sources/junit-4.10.jar
> --with-ant-home=/cygdrive/c/sources/apache-ant-1.9.2
> --enable-pch
> --disable-ccache
> --disable-activex
> --disable-atl
> --enable-debug
> 
> Sorry for not being able to fix this myself. I tried to pull and make 
> clean few times during this week, just in case someone already fixed the 
> problem, but without any luck.

it's caused by --disable-atl, should be fixed now on master with commit
9d7c5dcf448fed668cc772d3cffa31712b1834a3
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: embeddedobj/Module_embeddedobj.mk

2013-08-29 Thread Michael Stahl
 embeddedobj/Module_embeddedobj.mk |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9d7c5dcf448fed668cc772d3cffa31712b1834a3
Author: Michael Stahl 
Date:   Thu Aug 29 22:36:23 2013 +0200

do not build emboleobj library on --disable-atl

Change-Id: I4973cbdd8afead3f189874ef754d2b2eee4bfb9c

diff --git a/embeddedobj/Module_embeddedobj.mk 
b/embeddedobj/Module_embeddedobj.mk
index f344565..68b38e8 100644
--- a/embeddedobj/Module_embeddedobj.mk
+++ b/embeddedobj/Module_embeddedobj.mk
@@ -12,7 +12,7 @@ $(eval $(call gb_Module_Module,embeddedobj))
 
 $(eval $(call gb_Module_add_targets,embeddedobj,\
Library_embobj \
-   Library_emboleobj \
+   $(if $(filter WNT-TRUE,$(OS)-$(DISABLE_ATL)),,Library_emboleobj) \
 ))
 
 # vim: set noet sw=4 ts=4:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: 2 commits - Repository.mk scp2/source

2013-08-29 Thread Andras Timar
 Repository.mk |   14 +++--
 scp2/source/ooo/file_library_ooo.scp  |   52 --
 scp2/source/ooo/module_hidden_ooo.scp |5 +++
 scp2/source/ooo/ure.scp   |   24 +++
 4 files changed, 72 insertions(+), 23 deletions(-)

New commits:
commit a794f66071796fcfa2f6ad7c3c6214325ac30258
Author: Andras Timar 
Date:   Thu Aug 29 13:38:49 2013 -0700

scp2: remove obsolete DONTRENAMEINPATCH flag

Change-Id: I4e40f29df1583c551fb7606d41b609d529db036a

diff --git a/scp2/source/ooo/file_library_ooo.scp 
b/scp2/source/ooo/file_library_ooo.scp
index 583e458..39dc1cc 100644
--- a/scp2/source/ooo/file_library_ooo.scp
+++ b/scp2/source/ooo/file_library_ooo.scp
@@ -41,7 +41,7 @@ End
 
 File gid_File_Lib_Cli_Oootypes_Assembly
 TXT_FILE_BODY;
-Styles = (PACKED, ASSEMBLY, DONTRENAMEINPATCH);
+Styles = (PACKED, ASSEMBLY);
 Name = "cli_oootypes.dll";
 Dir = gid_Brand_Dir_Program;
 Assemblyname = "cli_oootypes";
@@ -57,7 +57,7 @@ End
 #if defined _MSC_VER
 File gid_File_Lib_Policy_Cli_Oootypes_Assembly
 TXT_FILE_BODY;
-Styles = (PACKED, ASSEMBLY, DONTRENAMEINPATCH);
+Styles = (PACKED, ASSEMBLY);
 Name = "${CLI_OOOTYPES_POLICY_ASSEMBLY}.dll";
 Dir = gid_Brand_Dir_Program;
 Assemblyname = "${CLI_OOOTYPES_POLICY_ASSEMBLY}";
@@ -74,7 +74,7 @@ End
 
 File gid_File_Lib_Policy_Cli_Oootypes_Config
 TXT_FILE_BODY;
-Styles = (PACKED, ASSIGNCOMPOMENT, DONTRENAMEINPATCH);
+Styles = (PACKED, ASSIGNCOMPOMENT);
 Name = "cli_oootypes.config";
 Dir = gid_Brand_Dir_Program;
 AssignComponent = gid_File_Lib_Policy_Cli_Oootypes_Assembly;
@@ -509,7 +509,7 @@ End
 
 File gid_File_Lib_sn_tools
 LIB_FILE_BODY;
-Styles = (PACKED, BINARYTABLE, BINARYTABLE_ONLY, DONTRENAMEINPATCH);
+Styles = (PACKED, BINARYTABLE, BINARYTABLE_ONLY);
 Dir = SCP2_OOO_LIB_DIR;
 Name = "sn_tools.dll";
 End
diff --git a/scp2/source/ooo/ure.scp b/scp2/source/ooo/ure.scp
index 206e265..2c4e7f6 100644
--- a/scp2/source/ooo/ure.scp
+++ b/scp2/source/ooo/ure.scp
@@ -304,7 +304,7 @@ End
 
 File gid_File_Dl_Cli_Ure_Assembly
 TXT_FILE_BODY;
-Styles = (PACKED, ASSEMBLY, DONTRENAMEINPATCH);
+Styles = (PACKED, ASSEMBLY);
 Name = "cli_ure.dll";
 Dir = SCP2_URE_DL_DIR;
 Assemblyname = "cli_ure";
@@ -317,7 +317,7 @@ End
 
 File gid_File_Dl_Policy_Cli_Ure_Assembly
 TXT_FILE_BODY;
-Styles = (PACKED, ASSEMBLY, DONTRENAMEINPATCH);
+Styles = (PACKED, ASSEMBLY);
 Name = "${CLI_URE_POLICY_ASSEMBLY}.dll";
 Dir = SCP2_URE_DL_DIR;
 Assemblyname = "${CLI_URE_POLICY_ASSEMBLY}";
@@ -330,7 +330,7 @@ End
 
 File gid_File_Dl_Policy_Cli_Ure_Config
 TXT_FILE_BODY;
-Styles = (PACKED, ASSIGNCOMPOMENT, DONTRENAMEINPATCH);
+Styles = (PACKED, ASSIGNCOMPOMENT);
 Name = "cli_ure.config";
 Dir = SCP2_URE_DL_DIR;
 AssignComponent = gid_File_Dl_Policy_Cli_Ure_Assembly;
@@ -338,7 +338,7 @@ End
 
 File gid_File_Dl_Cli_Basetypes_Assembly
 TXT_FILE_BODY;
-Styles = (PACKED, ASSEMBLY, DONTRENAMEINPATCH);
+Styles = (PACKED, ASSEMBLY);
 Name = "cli_basetypes.dll";
 Dir = SCP2_URE_DL_DIR;
 Assemblyname = "cli_basetypes";
@@ -351,7 +351,7 @@ End
 
 File gid_File_Dl_Policy_Cli_Basetypes_Assembly
 TXT_FILE_BODY;
-Styles = (PACKED, ASSEMBLY, DONTRENAMEINPATCH);
+Styles = (PACKED, ASSEMBLY);
 Name = "${CLI_BASETYPES_POLICY_ASSEMBLY}.dll";
 Dir = SCP2_URE_DL_DIR;
 Assemblyname = "${CLI_BASETYPES_POLICY_ASSEMBLY}";
@@ -364,7 +364,7 @@ End
 
 File gid_File_Dl_Policy_Cli_Basetypes_Config
 TXT_FILE_BODY;
-Styles = (PACKED, ASSIGNCOMPOMENT, DONTRENAMEINPATCH);
+Styles = (PACKED, ASSIGNCOMPOMENT);
 Name = "cli_basetypes.config";
 Dir = SCP2_URE_DL_DIR;
 AssignComponent = gid_File_Dl_Policy_Cli_Basetypes_Assembly;
@@ -372,7 +372,7 @@ End
 
 File gid_File_Dl_Cli_Uretypes_Assembly
 TXT_FILE_BODY;
-Styles = (PACKED, ASSEMBLY, DONTRENAMEINPATCH);
+Styles = (PACKED, ASSEMBLY);
 Name = "cli_uretypes.dll";
 Dir = SCP2_URE_DL_DIR;
 Assemblyname = "cli_uretypes";
@@ -385,7 +385,7 @@ End
 
 File gid_File_Dl_Policy_Cli_Uretypes_Assembly
 TXT_FILE_BODY;
-Styles = (PACKED, ASSEMBLY, DONTRENAMEINPATCH);
+Styles = (PACKED, ASSEMBLY);
 Name = "${CLI_URETYPES_POLICY_ASSEMBLY}.dll";
 Dir = SCP2_URE_DL_DIR;
 Assemblyname = "${CLI_URETYPES_POLICY_ASSEMBLY}";
@@ -398,7 +398,7 @@ End
 
 File gid_File_Dl_Policy_Cli_Uretypes_Config
 TXT_FILE_BODY;
-Styles = (PACKED, ASSIGNCOMPOMENT, DONTRENAMEINPATCH);
+Styles = (PACKED, ASSIGNCOMPOMENT);
 Name = "cli_uretypes.config";
 Dir = SCP2_URE_DL_DIR;
 AssignComponent = gid_File_Dl_Policy_Cli_Uretypes_Assembly;
@@ -406,7 +406,7 @@ End
 
 File gid_File_Lib_Cli_Cppuhelper_Assembly
 TXT_FILE_BODY;
-Styles = (PACKED, ASSEMBLY, DONTRENAMEINPATCH);
+Styles = (PACKED, ASSEMBLY);
 Name = "assembly/cli_cppuhelper.dll";
 Di

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

2013-08-29 Thread Laurent Godard
 sc/source/filter/xml/XMLExportIterator.cxx |   13 +-
 sc/source/filter/xml/XMLExportIterator.hxx |9 
 sc/source/filter/xml/xmlexprt.cxx  |   58 ++---
 3 files changed, 15 insertions(+), 65 deletions(-)

New commits:
commit f5bafb295559bc3e673ab2aa35e84cb42b9e5f1e
Author: Laurent Godard 
Date:   Thu Aug 29 10:24:14 2013 +0200

clean obsolete parts of ScMyCell

Change-Id: Ic7775d376a6089d7795514081ca4f912e4228f73
Reviewed-on: https://gerrit.libreoffice.org/5674
Reviewed-by: Kohei Yoshida 
Tested-by: Kohei Yoshida 

diff --git a/sc/source/filter/xml/XMLExportIterator.cxx 
b/sc/source/filter/xml/XMLExportIterator.cxx
index df6c2f0..976f387 100644
--- a/sc/source/filter/xml/XMLExportIterator.cxx
+++ b/sc/source/filter/xml/XMLExportIterator.cxx
@@ -597,7 +597,6 @@ void ScMyDetectiveOpContainer::Sort()
 ScMyCell::ScMyCell() :
 aShapeList(),
 aDetectiveObjVec(),
-fValue(0.0),
 nValidationIndex(-1),
 bIsAutoStyle( false ),
 bHasShape( false ),
@@ -607,10 +606,6 @@ ScMyCell::ScMyCell() :
 bHasEmptyDatabase( false ),
 bHasDetectiveObj( false ),
 bHasDetectiveOp( false ),
-bIsEditCell( false ),
-bHasStringValue( false ),
-bHasDoubleValue( false ),
-bHasXText( false ),
 bIsMatrixBase( false ),
 bIsMatrixCovered( false ),
 bHasAnnotation( false )
@@ -683,10 +678,7 @@ void ScMyNotEmptyCellsIterator::SetCellData( ScMyCell& 
rMyCell, table::CellAddre
 {
 rMyCell.maBaseCell.clear();
 rMyCell.aCellAddress = rAddress;
-rMyCell.bHasStringValue = false;
-rMyCell.bHasDoubleValue = false;
-rMyCell.bHasXText = false;
-rMyCell.bIsEditCell = false;
+
 if( (nCellCol == rAddress.Column) && (nCellRow == rAddress.Row) )
 {
 mpCell = mpCellItr->GetNext(nCellCol, nCellRow);
@@ -738,8 +730,7 @@ void ScMyNotEmptyCellsIterator::HasAnnotation(ScMyCell& 
aCell)
 uno::Reference xSimpleText(aCell.xAnnotation, 
uno::UNO_QUERY);
 if (aCell.xAnnotation.is() && xSimpleText.is())
 {
-aCell.sAnnotationText = xSimpleText->getString();
-if (!aCell.sAnnotationText.isEmpty())
+if (!xSimpleText->getString().isEmpty())
 aCell.bHasAnnotation = true;
 }
 aAnnotations.erase(aItr);
diff --git a/sc/source/filter/xml/XMLExportIterator.hxx 
b/sc/source/filter/xml/XMLExportIterator.hxx
index 6433510..9fa520d 100644
--- a/sc/source/filter/xml/XMLExportIterator.hxx
+++ b/sc/source/filter/xml/XMLExportIterator.hxx
@@ -300,15 +300,11 @@ struct ScMyCell
 com::sun::star::table::CellRangeAddress aMergeRange;
 com::sun::star::table::CellRangeAddress aMatrixRange;
 
-OUString   sStringValue;
-OUString   sAnnotationText;
-
 ScMyAreaLinkaAreaLink;
 ScMyShapeList   aShapeList;
 ScMyDetectiveObjVec aDetectiveObjVec;
 ScMyDetectiveOpVec  aDetectiveOpVec;
 
-double  fValue;
 sal_Int32   nValidationIndex;
 sal_Int32   nStyleIndex;
 sal_Int32   nNumberFormat;
@@ -326,11 +322,6 @@ struct ScMyCell
 boolbHasDetectiveObj;
 boolbHasDetectiveOp;
 
-boolbIsEditCell;
-boolbHasStringValue;
-boolbHasDoubleValue;
-boolbHasXText;
-
 boolbIsMatrixBase;
 boolbIsMatrixCovered;
 boolbHasAnnotation;
diff --git a/sc/source/filter/xml/xmlexprt.cxx 
b/sc/source/filter/xml/xmlexprt.cxx
index 873da75..8873238 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -2864,15 +2864,6 @@ bool ScXMLExport::IsMatrix (const ScAddress& aCell,
 return false;
 }
 
-void ScXMLExport::GetCellText (ScMyCell& rMyCell, const ScAddress& aPos) const
-{
-if (!rMyCell.bHasStringValue)
-{
-rMyCell.sStringValue = ScCellObj::GetOutputString_Impl(pDoc, aPos);
-rMyCell.bHasStringValue = true;
-}
-}
-
 void ScXMLExport::WriteTable(sal_Int32 nTable, const 
Reference& xTable)
 {
 if (!xTable.is())
@@ -3223,37 +3214,30 @@ void ScXMLExport::WriteCell(ScMyCell& aCell, sal_Int32 
nEqualCellCount)
 break;
 case table::CellContentType_VALUE :
 {
-if (!aCell.bHasDoubleValue)
-{
-aCell.fValue = pDoc->GetValue( aCellPos );
-aCell.bHasDoubleValue = true;
-}
 
GetNumberFormatAttributesExportHelper()->SetNumberFormatAttributes(
-aCell.nNumberFormat, aCell.fValue);
+aCell.nNumberFormat, aCell.maBaseCell.mfValue);
 if( getDefaultVersion() > SvtSaveOptions::ODFVER_

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

2013-08-29 Thread Kohei Yoshida
 sc/source/ui/inc/gridwin.hxx   |3 ++-
 sc/source/ui/inc/tabview.hxx   |2 +-
 sc/source/ui/view/gridwin.cxx  |   12 
 sc/source/ui/view/gridwin2.cxx |7 ++-
 sc/source/ui/view/tabview.cxx  |8 ++--
 sc/source/ui/view/tabview4.cxx |8 
 6 files changed, 27 insertions(+), 13 deletions(-)

New commits:
commit 8acb68bae5319836a8c0c9fa6ddfc907b0dd6c48
Author: Kohei Yoshida 
Date:   Thu Aug 29 16:11:56 2013 -0400

Check whether or not a visible range has changed.

Change-Id: I83581c8964ff43af1b1c42df82236274db446953

diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx
index f32ea5e..1befc35 100644
--- a/sc/source/ui/inc/gridwin.hxx
+++ b/sc/source/ui/inc/gridwin.hxx
@@ -119,6 +119,7 @@ private:
 VisibleRange();
 
 bool isInside(SCCOL nCol, SCROW nRow) const;
+bool set(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2);
 };
 VisibleRange maVisibleRange;
 
@@ -374,7 +375,7 @@ public:
 voidCheckNeedsRepaint();
 
 voidUpdateDPFromFieldPopupMenu();
-voidUpdateVisibleRange();
+boolUpdateVisibleRange();
 
 voidSetInRefMode( bool bRefMode );
 
diff --git a/sc/source/ui/inc/tabview.hxx b/sc/source/ui/inc/tabview.hxx
index 9b971da..92a42ae 100644
--- a/sc/source/ui/inc/tabview.hxx
+++ b/sc/source/ui/inc/tabview.hxx
@@ -213,7 +213,7 @@ protected:
 
 voidZoomChanged();
 voidUpdateShow();
-voidUpdateVisibleRange();
+boolUpdateVisibleRange();
 voidGetBorderSize( SvBorder& rBorder, const Size& rSize );
 
 voidResetDrawDragMode();
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index dc13e38..208318b 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -177,6 +177,18 @@ bool ScGridWindow::VisibleRange::isInside(SCCOL nCol, 
SCROW nRow) const
 return mnCol1 <= nCol && nCol <= mnCol2 && mnRow1 <= nRow && nRow <= 
mnRow2;
 }
 
+bool ScGridWindow::VisibleRange::set(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, 
SCROW nRow2)
+{
+bool bChanged = mnCol1 != nCol1 || mnRow1 != nRow1 || mnCol2 != nCol2 || 
mnRow2 != nRow2;
+
+mnCol1 = nCol1;
+mnRow1 = nRow1;
+mnCol2 = nCol2;
+mnRow2 = nRow2;
+
+return bChanged;
+}
+
 // 
 
 class ScFilterListBox : public ListBox
diff --git a/sc/source/ui/view/gridwin2.cxx b/sc/source/ui/view/gridwin2.cxx
index 554d737..71914da 100644
--- a/sc/source/ui/view/gridwin2.cxx
+++ b/sc/source/ui/view/gridwin2.cxx
@@ -594,7 +594,7 @@ void ScGridWindow::UpdateDPFromFieldPopupMenu()
 aFunc.UpdatePivotTable(*pDPObj, true, false);
 }
 
-void ScGridWindow::UpdateVisibleRange()
+bool ScGridWindow::UpdateVisibleRange()
 {
 SCCOL nPosX = pViewData->GetPosX(eHWhich);
 SCROW nPosY = pViewData->GetPosY(eVWhich);
@@ -604,10 +604,7 @@ void ScGridWindow::UpdateVisibleRange()
 if (nYBottom > MAXROW) nYBottom = MAXROW;
 
 // Store the current visible range.
-maVisibleRange.mnCol1 = nPosX;
-maVisibleRange.mnCol2 = nXRight;
-maVisibleRange.mnRow1 = nPosY;
-maVisibleRange.mnRow2 = nYBottom;
+return maVisibleRange.set(nPosX, nPosY, nXRight, nYBottom);
 }
 
 void ScGridWindow::DPMouseMove( const MouseEvent& rMEvt )
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 5a431dc..a83fba2 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -1544,15 +1544,19 @@ void ScTabView::UpdateShow()
 //! neue Gridwindows eintragen
 }
 
-void ScTabView::UpdateVisibleRange()
+bool ScTabView::UpdateVisibleRange()
 {
+bool bChanged = false;
 for (int i = 0; i < 4; ++i)
 {
 if (!pGridWin[i] || !pGridWin[i]->IsVisible())
 continue;
 
-pGridWin[i]->UpdateVisibleRange();
+if (pGridWin[i]->UpdateVisibleRange())
+bChanged = true;
 }
+
+return bChanged;
 }
 
 // ---  Splitter  
diff --git a/sc/source/ui/view/tabview4.cxx b/sc/source/ui/view/tabview4.cxx
index e8f29a2..47fbc14 100644
--- a/sc/source/ui/view/tabview4.cxx
+++ b/sc/source/ui/view/tabview4.cxx
@@ -427,6 +427,9 @@ void ScTabView::UpdateScrollBars()
 
 if ( aViewData.IsActive() )
 {
+if (UpdateVisibleRange())
+SC_MOD()->AnythingChanged();// if visible area has 
changed
+
 ScSplitPos eActive = aViewData.GetActivePart();
 ScHSplitPos eHWhich = WhichH( eActive );
 ScVSplitPos eVWhich = WhichV( eActive );
@@ -437,10 +440,7 @@ void ScTabView::UpdateScrollBars()
 if ( nEndX > MAXCOL ) nEndX = MAXCOL;
 if ( nEndY > MAXROW ) nEndY = MAXROW;
 ScRange aVisible( nPosX, nPosY, nTab, nEndX, nEndY, nTab );
-if ( pDoc->SetVisibleSpellRange( aVisible ) )
-

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

2013-08-29 Thread Kohei Yoshida
 sc/source/ui/view/gridwin4.cxx |2 --
 sc/source/ui/view/tabview4.cxx |2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 391a57ef65687f2e373bac8d410e551aafa780ec
Author: Kohei Yoshida 
Date:   Thu Aug 29 15:53:28 2013 -0400

Update visible ranges when updating the scroll bars.

That seems like the right place to update visible ranges, rather than
right before drawing the grid pane.

Change-Id: I230bfa753fca7bcd040bd55dba16dfa613d2e8f0

diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index b5c76fd..621b0f5 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -401,8 +401,6 @@ void ScGridWindow::Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, 
SCROW nY2, ScUpdateMod
 
 OSL_ENSURE( ValidCol(nX2) && ValidRow(nY2), "GridWin Draw Bereich zu 
gross" );
 
-UpdateVisibleRange();
-
 if (nX2 < maVisibleRange.mnCol1 || nY2 < maVisibleRange.mnRow1)
 return;
 // unsichtbar
diff --git a/sc/source/ui/view/tabview4.cxx b/sc/source/ui/view/tabview4.cxx
index 8140d51..e8f29a2 100644
--- a/sc/source/ui/view/tabview4.cxx
+++ b/sc/source/ui/view/tabview4.cxx
@@ -439,6 +439,8 @@ void ScTabView::UpdateScrollBars()
 ScRange aVisible( nPosX, nPosY, nTab, nEndX, nEndY, nTab );
 if ( pDoc->SetVisibleSpellRange( aVisible ) )
 SC_MOD()->AnythingChanged();// if visible area has 
changed
+
+UpdateVisibleRange();
 }
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: build difficulty

2013-08-29 Thread Stephan van den Akker
Kohei, don't let me down. I spend most of the day educating the masses
on #libreoffice-dev that 11.4 is not *antiquated* of *end of life*,
but beautifully "Evergreen".

2013/8/29 Kohei Yoshida :
> On 08/29/2013 03:30 PM, Kohei Yoshida wrote:
>>
>> On 08/29/2013 03:27 PM, Stephan van den Akker wrote:
>>>
>>> Kohei: Can you explain what your change does? I might try that too.
>>
>> No idea exactly, other than that it avoids the lines that cause error in
>> my build.  I got the idea by reading the offending boost header file
>> boost/boost/noncopyable.hpp.
>
>
> Having said that, if I were to guess, I think that macro would avoid using
> the new C++11 only syntax that boost now uses by default, and achieves the
> same effect using the pre-C++11 syntax equivalent.
>
> Normally we would add some sort of configure check for such C++11 syntax and
> take appropriate steps.  But since by my own admission I'm running an OS
> that's considered too old, I just use my local fix to get around this
> problem.  And I really really need to upgrade my openSUSE installation on my
> machine... ;-)
>
>
> Kohei
>
> --
> Kohei Yoshida, LibreOffice Calc hacker, SUSE.
>
> ___
> LibreOffice mailing list
> LibreOffice@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: build difficulty

2013-08-29 Thread Kohei Yoshida

On 08/29/2013 03:30 PM, Kohei Yoshida wrote:

On 08/29/2013 03:27 PM, Stephan van den Akker wrote:

Kohei: Can you explain what your change does? I might try that too.
No idea exactly, other than that it avoids the lines that cause error 
in my build.  I got the idea by reading the offending boost header 
file boost/boost/noncopyable.hpp.


Having said that, if I were to guess, I think that macro would avoid 
using the new C++11 only syntax that boost now uses by default, and 
achieves the same effect using the pre-C++11 syntax equivalent.


Normally we would add some sort of configure check for such C++11 syntax 
and take appropriate steps.  But since by my own admission I'm running 
an OS that's considered too old, I just use my local fix to get around 
this problem.  And I really really need to upgrade my openSUSE 
installation on my machine... ;-)


Kohei

--
Kohei Yoshida, LibreOffice Calc hacker, SUSE.

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


Unit-Test Query [GSOC: Slide Layout Extendibility]

2013-08-29 Thread Vishv Brahmbhatt
Hi,

-> In the current build system,we have some config XML files at "*sd/xml*"
and their corresponding test-profile copies are at "*
test/usertemplate/user/config/soffice.cfg/simpress*".

-> And using test-profile at "test/user-template",'Package_unittest.mk'
creates a new copy at
"unittest/install/share/config/soffice.cfg/simpress/".

->  *Unit-test* refers to the files at "unittest/install" for further
checking/testing during build.

->So can unit-test directly use "sd/xml" as a test-profile and then create
a new copy at "unittest/install/share/config/soffice.cfg/simpress/" ? And
so that we can probably avoid duplicate config files at
"test/user-template"?

It would be great,if someone can guide me in this matter.

Thanks & Regards,
Vishv
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: build difficulty

2013-08-29 Thread Kohei Yoshida

On 08/29/2013 03:27 PM, Stephan van den Akker wrote:

Kohei: Can you explain what your change does? I might try that too.
No idea exactly, other than that it avoids the lines that cause error in 
my build.  I got the idea by reading the offending boost header file 
boost/boost/noncopyable.hpp.


Kohei

--
Kohei Yoshida, LibreOffice Calc hacker, SUSE.

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


Re: build difficulty

2013-08-29 Thread Stephan van den Akker
Hi Terry and Kohei,

Running openSUSE 11.4 as well, having the same problem as you two.
Over on #libreoffice-dev the suggestion was that my compiler and my
system boost libs are too old. I'm currently trying their suggestion
of:
1 - building boost 1.47 from source
2 - building LO with this boost version

I chose boost version 1.47 because is is the oldest version that has
all the functionality needed by LO. I is old enough to be compatible
with my compiler.

Kohei: Can you explain what your change does? I might try that too.

2013/8/29 Kohei Yoshida :
> On 08/29/2013 09:56 AM, dk...@torfree.net wrote:
>>
>> I am unable to build (after `make clean`) master 139a7d2 (pulled today
>> around 12:30 UTC). The messages are, line-wrapped for e-mail, ...
>>
>> /home/terry/lo_hacking/git/libo2/workdir/unxlngi6/UnpackedTarball/
>> boost/boost/noncopyable.hpp:27:21:
>> error: ‘boost::noncopyable_::noncopyable::noncopyable()’ declared
>> with non-public access cannot be defaulted in the class body
>> /home/terry/lo_hacking/git/libo2/workdir/unxlngi6/UnpackedTarball/
>> boost/boost/noncopyable.hpp:28:22:
>> error: ‘boost::noncopyable_::noncopyable::~noncopyable()’
>> declared with non-public access cannot be defaulted in the class body
>>
>> I have to suspect that this has something to do with commit 4910c54
>> "Update the bundled boost to 1.54" combined with the fact that I am
>> building on an old release, ubuntu-natty (11.04) 32-bit.
>>
>> Suggestions welcome.
>
>
> Try this change
>
> diff --git a/solenv/gbuild/platform/com_GCC_defs.mk
> b/solenv/gbuild/platform/com_GCC_defs.mk
> index c9adf88..4b7e413 100644
> --- a/solenv/gbuild/platform/com_GCC_defs.mk
> +++ b/solenv/gbuild/platform/com_GCC_defs.mk
> @@ -66,6 +66,7 @@ gb_CXXFLAGS_COMMON := \
> -fmessage-length=0 \
> -fno-common \
> -pipe \
> + -DBOOST_NO_DEFAULTED_FUNCTIONS \
>
> ifneq ($(HAVE_THREADSAFE_STATICS),TRUE)
> gb_CXXFLAGS_COMMON += -fno-threadsafe-statics
>
> I'm having the same issue on my machine running a slightly antiquated
> version of openSUSE (11.4), and this change fixes it for me.
>
> Kohei
>
> --
> Kohei Yoshida, LibreOffice Calc hacker, SUSE.
>
>
> ___
> LibreOffice mailing list
> LibreOffice@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-commits] core.git: configure.ac

2013-08-29 Thread Rene Engelhard
 configure.ac |8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 0d5b9f1ad4b132d8d0cc22af1f524f971c0166db
Author: Rene Engelhard 
Date:   Thu Aug 29 21:23:49 2013 +0200

check for boost >= 1.47 and SHA512_CTX (openssl >= 0.9.8) in configure

Change-Id: If070d0bcafb208bb8d4104e48540cc1b2bf23db6

diff --git a/configure.ac b/configure.ac
index 89ce3f7..ef10c70 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8523,7 +8523,7 @@ AC_MSG_CHECKING([which boost to use])
 if test "$with_system_boost" = "yes"; then
 AC_MSG_RESULT([external])
 SYSTEM_BOOST=YES
-AX_BOOST_BASE
+AX_BOOST_BASE(1.47)
 AX_BOOST_DATE_TIME
 mingw_boost_date_time_dll=`echo $BOOST_DATE_TIME_LIB | sed -e 's/^-l//' -e 
's/\.dll$//'`
 libo_MINGW_TRY_DLL([$mingw_boost_date_time_dll])
@@ -9139,6 +9139,12 @@ if test "$enable_openssl" = "yes"; then
 if test "$with_system_openssl" = "yes"; then
 libo_MINGW_CHECK_DLL([libssl])
 libo_MINGW_CHECK_DLL([libcrypto])
+AC_MSG_CHECKING([whether openssl supports SHA512])
+AC_LANG_PUSH([C])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]],[[
+   SHA512_CTX context;
+]])],[AC_MSG_RESULT([yes])],[AC_MSG_ERROR([no, openssl too old. Need >= 
0.9.8.])])
+AC_LANG_POP(C)
 fi
 else
 AC_MSG_RESULT([yes])
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: build difficulty

2013-08-29 Thread Kohei Yoshida

On 08/29/2013 09:56 AM, dk...@torfree.net wrote:

I am unable to build (after `make clean`) master 139a7d2 (pulled today
around 12:30 UTC). The messages are, line-wrapped for e-mail, ...

/home/terry/lo_hacking/git/libo2/workdir/unxlngi6/UnpackedTarball/
boost/boost/noncopyable.hpp:27:21:
error: ‘boost::noncopyable_::noncopyable::noncopyable()’ declared
with non-public access cannot be defaulted in the class body
/home/terry/lo_hacking/git/libo2/workdir/unxlngi6/UnpackedTarball/
boost/boost/noncopyable.hpp:28:22:
error: ‘boost::noncopyable_::noncopyable::~noncopyable()’
declared with non-public access cannot be defaulted in the class body

I have to suspect that this has something to do with commit 4910c54
"Update the bundled boost to 1.54" combined with the fact that I am
building on an old release, ubuntu-natty (11.04) 32-bit.

Suggestions welcome.


Try this change

diff --git a/solenv/gbuild/platform/com_GCC_defs.mk 
b/solenv/gbuild/platform/com_GCC_defs.mk

index c9adf88..4b7e413 100644
--- a/solenv/gbuild/platform/com_GCC_defs.mk
+++ b/solenv/gbuild/platform/com_GCC_defs.mk
@@ -66,6 +66,7 @@ gb_CXXFLAGS_COMMON := \
-fmessage-length=0 \
-fno-common \
-pipe \
+ -DBOOST_NO_DEFAULTED_FUNCTIONS \

ifneq ($(HAVE_THREADSAFE_STATICS),TRUE)
gb_CXXFLAGS_COMMON += -fno-threadsafe-statics

I'm having the same issue on my machine running a slightly antiquated 
version of openSUSE (11.4), and this change fixes it for me.


Kohei

--
Kohei Yoshida, LibreOffice Calc hacker, SUSE.

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


[Libreoffice-commits] core.git: Branch 'refs/notes/commits' - 59/60cf3dc57dc455bc98343dfafccafaf808ecdc

2013-08-29 Thread Caolán McNamara
 59/60cf3dc57dc455bc98343dfafccafaf808ecdc |1 +
 1 file changed, 1 insertion(+)

New commits:
commit 61612de53b99c639022cf2cd3d705804884f99af
Author: Caolán McNamara 
Date:   Thu Aug 29 20:04:39 2013 +0100

Notes added by 'git notes add'

diff --git a/59/60cf3dc57dc455bc98343dfafccafaf808ecdc 
b/59/60cf3dc57dc455bc98343dfafccafaf808ecdc
new file mode 100644
index 000..24ce528
--- /dev/null
+++ b/59/60cf3dc57dc455bc98343dfafccafaf808ecdc
@@ -0,0 +1 @@
+merged as: b1a6dbc2dd118627360282dd304e24263c3bca51
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2013-08-29 Thread Armin Le Grand
 svx/source/svdraw/svdmrkv.cxx |   46 --
 1 file changed, 27 insertions(+), 19 deletions(-)

New commits:
commit b1a6dbc2dd118627360282dd304e24263c3bca51
Author: Armin Le Grand 
Date:   Thu Aug 29 16:32:05 2013 +

Resolves: #i123003# Corrected Handle/Overlay visualization...

when TextEdit is active

(cherry picked from commit 5960cf3dc57dc455bc98343dfafccafaf808ecdc)

Conflicts:
svx/source/svdraw/svdmrkv.cxx

Change-Id: I05c9c3d10ba3e9b29a1a759a18dbb19d85016640

diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index cefe73b..896b19a 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -624,33 +624,41 @@ void SdrMarkView::SetMarkHandles()
 // correct position )
 Point aGridOff = GetGridOffset();
 
-// #i122142# for captions in TextEdit, force to FrameHdls to get the 
special text selection
-if(!bFrmHdl && pMarkedObj && bSingleTextObjMark && dynamic_cast< 
SdrCaptionObj* >(pMarkedObj))
+// check if text edit or ole is active and handles need to be 
suppressed. This may be the case
+// when a single object is selected
+// Using a strict return statement is okay here; no handles means *no* 
handles.
+if(pMarkedObj)
 {
-bFrmHdl = true;
-}
+// formally #i33755#: If TextEdit is active the EditEngine will 
directly paint
+// to the window, so suppress Overlay and handles completely; a 
text frame for
+// the active text edit will be painted by the repaitnt mechanism 
in
+// SdrObjEditView::ImpPaintOutlinerView in this case. This needs 
to be reworked
+// in the future
+// Also formally #122142#: Pretty much the same for 
SdrCaptionObj's in calc.
+if(((SdrView*)this)->IsTextEdit())
+{
+const SdrTextObj* pSdrTextObj = dynamic_cast< const 
SdrTextObj* >(pMarkedObj);
 
-if (bFrmHdl)
-{
-Rectangle aRect(GetMarkedObjRect());
-// #i33755#
-const bool bHideHandlesWhenInTextEdit(
-((SdrView*)this)->IsTextEdit()
-&& pMarkedObj
-&& pMarkedObj->ISA(SdrTextObj)
-&& ((SdrTextObj*)pMarkedObj)->IsInEditMode());
-
-// #i118524# if inplace activated OLE is selected,
-// suppress handles
-bool bHideHandlesWhenOleActive(false);
+if(pSdrTextObj && pSdrTextObj->IsInEditMode())
+{
+return;
+}
+}
+
+// formally #i118524#: if inplace activated OLE is selected, 
suppress handles
 const SdrOle2Obj* pSdrOle2Obj = dynamic_cast< const SdrOle2Obj* 
>(pMarkedObj);
 
 if(pSdrOle2Obj && (pSdrOle2Obj->isInplaceActive() || 
pSdrOle2Obj->isUiActive()))
 {
-bHideHandlesWhenOleActive = true;
+return;
 }
+}
+
+if (bFrmHdl)
+{
+Rectangle aRect(GetMarkedObjRect());
 
-if(!aRect.IsEmpty() && !bHideHandlesWhenInTextEdit && 
!bHideHandlesWhenOleActive)
+if(!aRect.IsEmpty())
 { // otherwise nothing is found
 if( bSingleTextObjMark )
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


build difficulty

2013-08-29 Thread dk122

I am unable to build (after `make clean`) master 139a7d2 (pulled today
around 12:30 UTC).  The messages are, line-wrapped for e-mail, ...

/home/terry/lo_hacking/git/libo2/workdir/unxlngi6/UnpackedTarball/
boost/boost/noncopyable.hpp:27:21:
error: ‘boost::noncopyable_::noncopyable::noncopyable()’ declared
with non-public access cannot be defaulted in the class body
/home/terry/lo_hacking/git/libo2/workdir/unxlngi6/UnpackedTarball/
boost/boost/noncopyable.hpp:28:22:
error: ‘boost::noncopyable_::noncopyable::~noncopyable()’
declared with non-public access cannot be defaulted in the class body

I have to suspect that this has something to do with commit 4910c54
"Update the bundled boost to 1.54" combined with the fact that I am
building on an old release, ubuntu-natty (11.04) 32-bit.

Suggestions welcome.

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


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

2013-08-29 Thread Eike Rathke
 i18nlangtag/source/isolang/isolang.cxx  |   20 +++-
 i18nlangtag/source/isolang/mslangid.cxx |8 
 2 files changed, 19 insertions(+), 9 deletions(-)

New commits:
commit e57a73cc6bedcb8f176e1804792a7ea1fd88796b
Author: Eike Rathke 
Date:   Thu Aug 29 20:51:45 2013 +0200

convertLanguageToLocale: last resort en-US if resolve requested

Change-Id: I8ebdfe34765292f14642ec8c2721621e5638a17a

diff --git a/i18nlangtag/source/isolang/mslangid.cxx 
b/i18nlangtag/source/isolang/mslangid.cxx
index 6e816ee..8f398e5 100644
--- a/i18nlangtag/source/isolang/mslangid.cxx
+++ b/i18nlangtag/source/isolang/mslangid.cxx
@@ -153,9 +153,17 @@ LanguageType MsLangId::resolveSystemLanguageByScriptType( 
LanguageType nLang, sa
 {
 // Still resolve LANGUAGE_DONTKNOW if resolving is not requested,
 // but not LANGUAGE_SYSTEM or others.
+LanguageType nOrigLang = nLang;
 if (bResolveSystem || nLang == LANGUAGE_DONTKNOW)
 nLang = MsLangId::getRealLanguage( nLang);
 convertLanguageToLocaleImpl( nLang, aLocale);
+if (bResolveSystem && aLocale.Language.isEmpty() && 
simplifySystemLanguages( nOrigLang) == LANGUAGE_SYSTEM)
+{
+// None found but resolve requested, last resort is "en-US".
+aLocale.Language = "en";
+aLocale.Country  = "US";
+aLocale.Variant  = OUString();
+}
 }
 return aLocale;
 }
commit 83d6ce0b1eb6229a518d79a1064a75956a0380f1
Author: Eike Rathke 
Date:   Thu Aug 29 20:09:47 2013 +0200

adapted comments

Change-Id: I830947d867d77b8e58b6e4722ceb3b7993292dad

diff --git a/i18nlangtag/source/isolang/isolang.cxx 
b/i18nlangtag/source/isolang/isolang.cxx
index b2c9da5..d3ababc 100644
--- a/i18nlangtag/source/isolang/isolang.cxx
+++ b/i18nlangtag/source/isolang/isolang.cxx
@@ -96,10 +96,12 @@ struct IsoLangOtherEntry
 // ---
 
 // Entries for languages are lower case, for countries upper case, as
-// recommended by rfc4646 (obsoletes rfc3066 (obsoletes rfc1766)).
-// convertIsoNamesToLanguage() is case insensitive
+// recommended by rfc5646 (obsoletes rfc4646 (obsoletes rfc3066 (obsoletes
+// rfc1766))). convertIsoNamesToLanguage(), convertLocaleToLanguageImpl()
+// and lookupFallbackLocale() are case insensitive.
 //
-// Sort order: Most used first.
+// Sort order: Most used first and within one language the default fallback
+// locale of that language first.
 //
 // The default entry for a LangID <-> ISO mapping has to be first. For
 // conversion of legacy mappings one LangID can map to multiple ISO codes, and
@@ -115,18 +117,18 @@ struct IsoLangOtherEntry
 // entry matching the language and not having a country is returned, regardless
 // of whether being sorted before or after other entries of the same language
 // with some country. To obtain a _locale_ (not language only) in the order
-// given, convertLocaleToLanguageWithFallback() must be called.
+// given, lookupFallbackLocale() must be called.
 
 // If the sequence instead was
 
 // LANGUAGE_ENGLISH_US, "en", "US"
 // LANGUAGE_ENGLISH,"en", ""
 
-// in a convertIsoNamesToLanguage() call "en-US" is still converted to
-// LANGUAGE_ENGLISH_US, but "en" is _also_ converted to LANGUAGE_ENGLISH_US
-// because no country was passed and it is the first entry to match the
-// language, see code. A call with "en-ZZ" (not in table) would still result in
-// LANGUAGE_ENGLISH.
+// in a convertIsoNamesToLanguage() call "en-US" would still be converted to
+// LANGUAGE_ENGLISH_US, but "en" would _also_ be converted to
+// LANGUAGE_ENGLISH_US because no country was passed and it is the first entry
+// to match the language, see code. A call with "en-ZZ" (not in table) would
+// still result in LANGUAGE_ENGLISH.
 
 /* erAck: 2007-07-05T20:01+0200  TODO: The entire suite's "primary language
  * only" usage and locale fall back should be cleaned up and made consistent. I
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'aoo/trunk' - svx/source

2013-08-29 Thread Armin Le Grand
 svx/source/svdraw/svdmrkv.cxx |   45 --
 1 file changed, 26 insertions(+), 19 deletions(-)

New commits:
commit 5960cf3dc57dc455bc98343dfafccafaf808ecdc
Author: Armin Le Grand 
Date:   Thu Aug 29 16:32:05 2013 +

i123003 Corrected Handle/Overlay visualization when TextEdit is active

diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index bbf283b..cf22dd4 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -718,34 +718,41 @@ void SdrMarkView::SetMarkHandles()
 }
 }
 
-// #122142# for captions in TextEdit, force to FrameHdls to get the 
special text selection
-if(!bFrmHdl && pMarkedObj && bSingleTextObjMark && dynamic_cast< 
SdrCaptionObj* >(pMarkedObj))
+// check if text edit or ole is active and handles need to be 
suppressed. This may be the case
+// when a single object is selected
+// Using a strict return statement is okay here; no handles means *no* 
handles.
+if(pMarkedObj)
 {
-bFrmHdl = true;
-}
-
-if (bFrmHdl)
-{
-Rectangle aRect(GetMarkedObjRect());
+// formally #i33755#: If TextEdit is active the EditEngine will 
directly paint
+// to the window, so suppress Overlay and handles completely; a 
text frame for
+// the active text edit will be painted by the repaitnt mechanism 
in
+// SdrObjEditView::ImpPaintOutlinerView in this case. This needs 
to be reworked
+// in the future
+// Also formally #122142#: Pretty much the same for 
SdrCaptionObj's in calc.
+if(((SdrView*)this)->IsTextEdit())
+{
+const SdrTextObj* pSdrTextObj = dynamic_cast< const 
SdrTextObj* >(pMarkedObj);
 
-// #i33755#
-const sal_Bool bHideHandlesWhenInTextEdit(
-((SdrView*)this)->IsTextEdit()
-&& pMarkedObj
-&& pMarkedObj->ISA(SdrTextObj)
-&& ((SdrTextObj*)pMarkedObj)->IsInEditMode());
+if(pSdrTextObj && pSdrTextObj->IsInEditMode())
+{
+return;
+}
+}
 
-// #i118524# if inplace activated OLE is selected,
-// suppress handles
-bool bHideHandlesWhenOleActive(false);
+// formally #i118524#: if inplace activated OLE is selected, 
suppress handles
 const SdrOle2Obj* pSdrOle2Obj = dynamic_cast< const SdrOle2Obj* 
>(pMarkedObj);
 
 if(pSdrOle2Obj && (pSdrOle2Obj->isInplaceActive() || 
pSdrOle2Obj->isUiActive()))
 {
-bHideHandlesWhenOleActive = true;
+return;
 }
+}
+
+if (bFrmHdl)
+{
+Rectangle aRect(GetMarkedObjRect());
 
-if(!aRect.IsEmpty() && !bHideHandlesWhenInTextEdit && 
!bHideHandlesWhenOleActive)
+if(!aRect.IsEmpty())
 { // sonst nix gefunden
 if( bSingleTextObjMark )
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: 2 commits - firebird/ExternalProject_firebird.mk solenv/gbuild

2013-08-29 Thread Tor Lillqvist
 firebird/ExternalProject_firebird.mk   |5 -
 solenv/gbuild/platform/com_MSC_defs.mk |2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

New commits:
commit f6fcc5b79ca72e0145b1798bbfa3d686bdf07042
Author: Tor Lillqvist 
Date:   Thu Aug 29 20:22:55 2013 +0300

Set PATH for running the Cygwin Make

Our normal gb_Helper_set_path sets PATH in Windows syntax, which is
fine when running out own build-time tools (which obviously are not
Cygwin programs), but not when running the Cygwin Make.

Change-Id: I5563e2f5a01beb05db56792dfd56116832d2ec36

diff --git a/firebird/ExternalProject_firebird.mk 
b/firebird/ExternalProject_firebird.mk
index 296848e..bf6b453 100644
--- a/firebird/ExternalProject_firebird.mk
+++ b/firebird/ExternalProject_firebird.mk
@@ -46,7 +46,10 @@ $(call gb_ExternalProject_get_state_target,firebird,build):
--with-system-icu --without-fbsample 
--without-fbsample-db \
$(if $(filter 
YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
$(if $(filter IOS 
ANDROID,$(OS)),--disable-shared,--disable-static) \
-   && $(gb_Helper_set_ld_path) $(MAKE) firebird_embedded \
+   && $(if $(filter WNT,$(OS)),\
+  PATH="$(shell cygpath -u $(OUTDIR)/bin):$$PATH",\
+  $(gb_Helper_set_ld_path)) \
+  $(MAKE) firebird_embedded \
$(if $(filter MACOSX,$(OS)),&& $(PERL) \
$(SOLARENV)/bin/macosx-change-install-names.pl shl OOO \

$(gb_Package_SOURCEDIR_firebird)/gen/firebird/lib/libfbembed.dylib.2.5.2) \
commit 8dd3de6e73db87e9742d1179408e57746299cb4f
Author: Tor Lillqvist 
Date:   Thu Aug 29 20:06:39 2013 +0300

Revert "Fix MSC build of firebird"

Better (?) fix coming.

This reverts commit 9831afe569490b09143a1f98263ee7d0e1faa323.

diff --git a/solenv/gbuild/platform/com_MSC_defs.mk 
b/solenv/gbuild/platform/com_MSC_defs.mk
index ac68d36..81f20da 100644
--- a/solenv/gbuild/platform/com_MSC_defs.mk
+++ b/solenv/gbuild/platform/com_MSC_defs.mk
@@ -266,6 +266,6 @@ gb_Helper_OUTDIRLIBDIR := $(OUTDIR)/bin
 gb_Helper_OUTDIR_FOR_BUILDLIBDIR := $(OUTDIR_FOR_BUILD)/bin
 
 # need windows path with backslashes here
-gb_Helper_set_ld_path := PATH="$(shell cygpath -w 
$(OUTDIR)/bin)"$${PATH:+:$$PATH}
+gb_Helper_set_ld_path := PATH="$(shell cygpath -w $(OUTDIR)/bin)"
 
 # vim: set noet sw=4:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'refs/notes/commits' - 95/212768770c2206b18e9fb929a79fae24f4a6d8

2013-08-29 Thread Caolán McNamara
 95/212768770c2206b18e9fb929a79fae24f4a6d8 |1 +
 1 file changed, 1 insertion(+)

New commits:
commit f8c0efda7adc6bd58030e3627737c44536a4e71b
Author: Caolán McNamara 
Date:   Thu Aug 29 18:12:50 2013 +0100

Notes added by 'git notes add'

diff --git a/95/212768770c2206b18e9fb929a79fae24f4a6d8 
b/95/212768770c2206b18e9fb929a79fae24f4a6d8
new file mode 100644
index 000..c79625a
--- /dev/null
+++ b/95/212768770c2206b18e9fb929a79fae24f4a6d8
@@ -0,0 +1 @@
+merged as: f84d2ce5453af7d20b0fc84d470a7661c3a7bca0
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2013-08-29 Thread Armin Le Grand
 vcl/source/gdi/dibtools.cxx |   39 +++
 1 file changed, 19 insertions(+), 20 deletions(-)

New commits:
commit f84d2ce5453af7d20b0fc84d470a7661c3a7bca0
Author: Armin Le Grand 
Date:   Thu Aug 29 11:25:32 2013 +

Resolves: #i122920# Corrected minor aspects of DIB clipboard exchange format

(cherry picked from commit 95212768770c2206b18e9fb929a79fae24f4a6d8)

Change-Id: Iff78cd8bb37748424210d5b5e3979afb5d85978d

diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx
index 6a15ade..85d0d9b 100644
--- a/vcl/source/gdi/dibtools.cxx
+++ b/vcl/source/gdi/dibtools.cxx
@@ -382,12 +382,12 @@ void ImplDecodeRLE( sal_uInt8* pBuffer, DIBV5Header& 
rHeader, BitmapWriteAccess&
 while ( !bEndDecoding && ( nY >= 0L ) );
 }
 
-bool ImplReadDIBBits(SvStream& rIStm, DIBV5Header& rHeader, BitmapWriteAccess& 
rAcc, BitmapWriteAccess* pAccAlpha, bool bTopDown)
+bool ImplReadDIBBits(SvStream& rIStm, DIBV5Header& rHeader, BitmapWriteAccess& 
rAcc, BitmapWriteAccess* pAccAlpha, bool bTopDown, bool& rAlphaUsed)
 {
 const sal_uLong nAlignedWidth = AlignedWidth4Bytes(rHeader.nWidth * 
rHeader.nBitCount);
-sal_uInt32 nRMask(0);
-sal_uInt32 nGMask(0);
-sal_uInt32 nBMask(0);
+sal_uInt32 nRMask(( rHeader.nBitCount == 16 ) ? 0x7c00UL : 
0x00ffUL);
+sal_uInt32 nGMask(( rHeader.nBitCount == 16 ) ? 0x03e0UL : 
0xff00UL);
+sal_uInt32 nBMask(( rHeader.nBitCount == 16 ) ? 0x001fUL : 
0x00ffUL);
 bool bNative(false);
 bool bTCMask(!pAccAlpha && ((16 == rHeader.nBitCount) || (32 == 
rHeader.nBitCount)));
 bool bRLE((RLE_8 == rHeader.nCompression && 8 == rHeader.nBitCount) || 
(RLE_4 == rHeader.nCompression && 4 == rHeader.nBitCount));
@@ -424,21 +424,12 @@ bool ImplReadDIBBits(SvStream& rIStm, DIBV5Header& 
rHeader, BitmapWriteAccess& r
 else
 {
 // Read color mask
-if(bTCMask)
+if(bTCMask && BITFIELDS == rHeader.nCompression)
 {
-if(BITFIELDS == rHeader.nCompression)
-{
-rIStm.SeekRel( -12L );
-rIStm >> nRMask;
-rIStm >> nGMask;
-rIStm >> nBMask;
-}
-else
-{
-nRMask = ( rHeader.nBitCount == 16 ) ? 0x7c00UL : 
0x00ffUL;
-nGMask = ( rHeader.nBitCount == 16 ) ? 0x03e0UL : 
0xff00UL;
-nBMask = ( rHeader.nBitCount == 16 ) ? 0x001fUL : 
0x00ffUL;
-}
+rIStm.SeekRel( -12L );
+rIStm >> nRMask;
+rIStm >> nGMask;
+rIStm >> nBMask;
 }
 
 if(bRLE)
@@ -595,6 +586,7 @@ bool ImplReadDIBBits(SvStream& rIStm, DIBV5Header& rHeader, 
BitmapWriteAccess& r
 aMask.GetColorAndAlphaFor32Bit( aColor, 
aAlpha, (sal_uInt8*) pTmp32++ );
 rAcc.SetPixel( nY, nX, aColor );
 pAccAlpha->SetPixelIndex(nY, nX, 
sal_uInt8(0xff) - aAlpha);
+rAlphaUsed |= bool(0xff != aAlpha);
 }
 }
 }
@@ -719,6 +711,8 @@ bool ImplReadDIBBody( SvStream& rIStm, Bitmap& rBmp, 
Bitmap* pBmpAlpha, sal_uLon
 }
 
 // read bits
+bool bAlphaUsed(false);
+
 if(!pIStm->GetError())
 {
 if(nOffset)
@@ -726,7 +720,7 @@ bool ImplReadDIBBody( SvStream& rIStm, Bitmap& rBmp, 
Bitmap* pBmpAlpha, sal_uLon
 pIStm->SeekRel(nOffset - (pIStm->Tell() - nStmPos));
 }
 
-bRet = ImplReadDIBBits(*pIStm, aHeader, *pAcc, pAccAlpha, 
bTopDown);
+bRet = ImplReadDIBBits(*pIStm, aHeader, *pAcc, pAccAlpha, 
bTopDown, bAlphaUsed);
 
 if(bRet && aHeader.nXPelsPerMeter && aHeader.nYPelsPerMeter)
 {
@@ -752,6 +746,11 @@ bool ImplReadDIBBody( SvStream& rIStm, Bitmap& rBmp, 
Bitmap* pBmpAlpha, sal_uLon
 if(bAlphaPossible)
 {
 aNewBmpAlpha.ReleaseAccess(pAccAlpha);
+
+if(!bAlphaUsed)
+{
+bAlphaPossible = false;
+}
 }
 
 if(bRet)
@@ -1227,7 +1226,7 @@ bool ImplWriteDIBBody(const Bitmap& rBitmap, SvStream& 
rOStm, BitmapReadAccess&
 if(pAccAlpha) // only write DIBV5 when asked to do so
 {
 aHeader.nV5CSType = 0x57696E20; // LCS_WINDOWS_COLOR_SPACE
-aHeader.nV5Intent = 0x0008; // LCS_GM_ABS_COLORIMETRIC
+aHeader.nV5Intent = 0x0004; // LCS_GM_IMAGES
 
 rOStm << aHeader.nV5RedMask;
 rOStm << aHeader.nV5GreenMask;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'feature/table-style' - 8 commits - sw/inc sw/source

2013-08-29 Thread Alex Ivan
 sw/inc/doc.hxx|3 +++
 sw/source/core/doc/docnew.cxx |5 +
 sw/source/core/doc/swtblfmt.cxx   |3 +++
 sw/source/core/doc/tblafmt.cxx|9 +++--
 sw/source/core/doc/tblrwcl.cxx|8 +++-
 sw/source/core/docnode/ndcopy.cxx |9 -
 sw/source/core/docnode/ndtbl.cxx  |   14 ++
 sw/source/core/undo/untbl.cxx |   13 +++--
 sw/source/ui/table/tautofmt.cxx   |4 +---
 9 files changed, 55 insertions(+), 13 deletions(-)

New commits:
commit 452435c85c5fbe1e62ec81bc39deccb646a78bf6
Author: Alex Ivan 
Date:   Thu Aug 29 19:02:57 2013 +0300

Reapply table style after merging tables

The undo part was inadvertedly already fixed since it used the
same mechanics as some of the previously fixed undo actions.

Change-Id: I75380513945a6b84fa8f18ab77c756b4e8c358c1

diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index 8133065..d67ca3a 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -3390,6 +3390,9 @@ sal_Bool SwDoc::MergeTable( const SwPosition& rPos, 
sal_Bool bWithPrev, sal_uInt
 if( !pDelTblNd )
 return sal_False;
 
+SwTableFmt* pStyle = 
(SwTableFmt*)pTblNd->GetTable().GetTableFmt()->GetRegisteredIn();
+SwTable& rTable = (bWithPrev ? pDelTblNd : pTblNd)->GetTable();
+
 if( pTblNd->GetTable().ISA( SwDDETable ) ||
 pDelTblNd->GetTable().ISA( SwDDETable ))
 return sal_False;
@@ -3427,6 +3430,8 @@ sal_Bool SwDoc::MergeTable( const SwPosition& rPos, 
sal_Bool bWithPrev, sal_uInt
 }
 if( bRet )
 {
+SwTableFmt::AssignFormatParents( pStyle, rTable );
+
 SetModified();
 SetFieldsDirty( true, NULL, 0 );
 }
commit 758c691d749b3e2770a4b7a14579e5bbfde5114a
Author: Alex Ivan 
Date:   Thu Aug 29 18:15:44 2013 +0300

Reapply table style after spliting table and undo

Change-Id: I32fea8b4679809070a47368de65d57ce5df7ed9d

diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index e6d5821..8133065 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -3153,6 +3153,9 @@ sal_Bool SwDoc::SplitTable( const SwPosition& rPos, 
sal_uInt16 eHdlnMode,
 // TL_CHART2: need to inform chart of probably changed cell names
 UpdateCharts( rTbl.GetFrmFmt()->GetName() );
 
+SwTableFmt::AssignFormatParents( 
(SwTableFmt*)rTbl.GetTableFmt()->GetRegisteredIn(), rTbl );
+SwTableFmt::AssignFormatParents( 
(SwTableFmt*)rTbl.GetTableFmt()->GetRegisteredIn(), pNew->GetTable() );
+
 SetFieldsDirty( true, NULL, 0 );
 
 return 0 != pNew;
diff --git a/sw/source/core/undo/untbl.cxx b/sw/source/core/undo/untbl.cxx
index 661ed33..5fa3d2a 100644
--- a/sw/source/core/undo/untbl.cxx
+++ b/sw/source/core/undo/untbl.cxx
@@ -2927,6 +2927,12 @@ void SwUndoSplitTbl::UndoImpl(::sw::UndoRedoContext & 
rContext)
 pTblNd->GetTable().RestoreRowSpan( *mpSaveRowSpan );
 }
 ClearFEShellTabCols();
+
+pTblNd = rIdx.GetNode().FindTableNode();
+if( pTblNd )
+SwTableFmt::AssignFormatParents( (SwTableFmt*)pTblNd->GetTable().
+  GetTableFmt()->GetRegisteredIn(),
+  pTblNd->GetTable() );
 }
 
 void SwUndoSplitTbl::RedoImpl(::sw::UndoRedoContext & rContext)
commit 49d18eb95929b4d0fadfaa5ba553049922bd4fb4
Author: Alex Ivan 
Date:   Thu Aug 29 15:26:02 2013 +0300

Reapply table styles after merging/spliting cells and corresponding undos

Change-Id: I0a0f1cd1ec05487230af568ab3350de04d98bfb6

diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index 0a09ccd..e6d5821 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -2112,6 +2112,8 @@ sal_Bool SwDoc::SplitTbl( const SwSelBoxes& rBoxes, 
sal_Bool bVert, sal_uInt16 n
 delete pUndo;
 }
 
+SwTableFmt::AssignFormatParents( 
(SwTableFmt*)rTbl.GetTableFmt()->GetRegisteredIn(), rTbl );
+
 return bRet;
 }
 
@@ -2217,6 +2219,10 @@ sal_uInt16 SwDoc::MergeTbl( SwPaM& rPam )
 ::ClearFEShellTabCols();
 SetRedlineMode_intern( eOld );
 }
+
+SwTableFmt::AssignFormatParents( 
(SwTableFmt*)rTable.GetTableFmt()->GetRegisteredIn(),
+ rTable );
+
 GetIDocumentUndoRedo().EndUndo( UNDO_TABLE_MERGE, NULL );
 return nRet;
 }
diff --git a/sw/source/core/undo/untbl.cxx b/sw/source/core/undo/untbl.cxx
index afba0c2..661ed33 100644
--- a/sw/source/core/undo/untbl.cxx
+++ b/sw/source/core/undo/untbl.cxx
@@ -2076,6 +2076,9 @@ CHECKTABLE(pTblNd->GetTable())
 
 CHECKTABLE(pTblNd->GetTable())
 ClearFEShellTabCols();
+
+SwTableFmt::AssignFormatParents( 
(SwTableFmt*)pTblNd->GetTable().GetTableFmt()->GetRegisteredIn(),
+ pTblNd->GetTable() );
 }
 
 void SwUndoTblMerge::RedoImpl(::sw::UndoRedoContext & r

[Libreoffice-commits] core.git: Branch 'refs/notes/commits' - fc/89249eddd42c5020307757a1e31a87b6302ec1

2013-08-29 Thread Caolán McNamara
 fc/89249eddd42c5020307757a1e31a87b6302ec1 |1 +
 1 file changed, 1 insertion(+)

New commits:
commit 6d31452599041207591bfe49bde18be13f99
Author: Caolán McNamara 
Date:   Thu Aug 29 17:45:08 2013 +0100

Notes added by 'git notes add'

diff --git a/fc/89249eddd42c5020307757a1e31a87b6302ec1 
b/fc/89249eddd42c5020307757a1e31a87b6302ec1
new file mode 100644
index 000..8e5c182
--- /dev/null
+++ b/fc/89249eddd42c5020307757a1e31a87b6302ec1
@@ -0,0 +1 @@
+ignore: aoo
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'refs/notes/commits' - 98/bd1aded3ffa1df24bfec28624bdf5129533c45

2013-08-29 Thread Caolán McNamara
 98/bd1aded3ffa1df24bfec28624bdf5129533c45 |1 +
 1 file changed, 1 insertion(+)

New commits:
commit f5d61ba6dd54c4fa3e8390790add258d6a43c9ff
Author: Caolán McNamara 
Date:   Thu Aug 29 17:44:41 2013 +0100

Notes added by 'git notes add'

diff --git a/98/bd1aded3ffa1df24bfec28624bdf5129533c45 
b/98/bd1aded3ffa1df24bfec28624bdf5129533c45
new file mode 100644
index 000..e46
--- /dev/null
+++ b/98/bd1aded3ffa1df24bfec28624bdf5129533c45
@@ -0,0 +1 @@
+merged as: 4529d6e11a214cec4596a159a60d2b8a5f171697
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: helpcontent2 librelogo/source

2013-08-29 Thread László Németh
 helpcontent2|2 
 librelogo/source/ChangeLog  |   15 ++
 librelogo/source/LibreLogo/LibreLogo.py |   69 +---
 3 files changed, 70 insertions(+), 16 deletions(-)

New commits:
commit a7fdd474161ba8ab34945bc9a32c7a33de6eaf9a
Author: László Németh 
Date:   Thu Aug 29 18:36:16 2013 +0200

LibreLogo fixes (eg. fdo#68713 fix SVG cropping), see ChangeLog

Change-Id: Ibb1cb41f526b4117e2d7ef39a2101286511bf48f

diff --git a/helpcontent2 b/helpcontent2
index ee477f3..cd613f0 16
--- a/helpcontent2
+++ b/helpcontent2
@@ -1 +1 @@
-Subproject commit ee477f38f8f425f5bde8105be49b9a6d9e5c4321
+Subproject commit cd613f0ea88364547616207dcc8a44bc65fbbae8
diff --git a/librelogo/source/ChangeLog b/librelogo/source/ChangeLog
index 9a9af0c..6453e71 100644
--- a/librelogo/source/ChangeLog
+++ b/librelogo/source/ChangeLog
@@ -1,3 +1,18 @@
+2013-08-29 László Németh:
+* fix bad selection of invisible turtle after HIDETURTLE CLEARSCREEN
+* fix SVG cropping in LibreOffice 4.1
+* fix vertical positions of labels in SVG export using RectangleShape
+* fix double stroke-width attributes in SVG export
+* LABEL supports relative positioning vector [X, Y, 'text'], where X, Y
+  0: center, eg. as the default positioning: LABEL [0, 0, 'text']
+  1: left or bottom aligned to the turtle position and angle
+ -1: right or top aligned to the turtle position and angle
+  n: n * text_width/2 or text_height/2
+* simple SVG SMIL (animation) support using SLEEP, for example:
+  PICTURE 'animation.svg' [ CIRCLE 5 SLEEP 1000 CIRCLE 20 ]
+* relative FORWARD (heading = y axis) with vector arg.: FORWARD [20, 10]
+* rounded linejoint of turtle shape
+
 2013-07-15 László Németh:
 * optional named PICTURE blocks: PICTURE 'name' [ CIRCLE 5 ]
 * save PICTURE as cropped SVG file using path names, for example:
diff --git a/librelogo/source/LibreLogo/LibreLogo.py 
b/librelogo/source/LibreLogo/LibreLogo.py
index e3213ec..e5f3dba 100644
--- a/librelogo/source/LibreLogo/LibreLogo.py
+++ b/librelogo/source/LibreLogo/LibreLogo.py
@@ -72,6 +72,8 @@ class __Doc__:
 except:
 self.drawpage = doc.DrawPages.getByIndex(0) # Draw, Impress
 self.shapecache = {}
+self.shapecount = itertools.count()
+self.time = 0
 self.zoomvalue = 0
 self.initialize()
 
@@ -461,7 +463,7 @@ def __initialize__():
 _.pencolor = shape.LineColor + (int(255.0 * 
shape.LineTransparence/100) << 24)
 if shape.LineWidth != round((1 + _.pen * 2) * __PT_TO_TWIP__ / 
__MM10_TO_TWIP__) and shape.LineWidth != round(__LINEWIDTH__ / 
__MM10_TO_TWIP__):
 _.pensize = shape.LineWidth * __MM10_TO_TWIP__
-shape.LineJoint = __MITER__
+shape.LineJoint = __ROUNDED__
 shape.Shadow = True
 shape.FillColor, transparence = __splitcolor__(_.areacolor)
 shape.FillTransparence = min(95, transparence)
@@ -687,12 +689,14 @@ def __checkhalt__():
 
 def __cs__(select = True):
 turtle = __getshape__(__TURTLE__)
-if turtle:
+visible = False
+if turtle and turtle.Visible:
 __visible__(turtle, False)
+visible = True
 if _.doc.CurrentController.select(_.drawpage) and \
 _.doc.CurrentController.getSelection().ImplementationName == 
"com.sun.star.drawing.SvxShapeCollection":
 __dispatcher__(".uno:Delete")
-if turtle:
+if turtle and visible:
 __visible__(turtle, True)
 if select:
 _.doc.CurrentController.select(_.drawpage)
@@ -755,7 +759,10 @@ def rotate(shapename, deg):
 def forward(n):
 if type(n) == list:
 pos = position()
-position([pos[0] + n[0], pos[1] + n[1]])
+angle = heading()
+dx = n[1] * sin((pi/180) * angle) + n[0] * sin((pi/180)*(angle + 90))
+dy = n[1] * cos((pi/180) * angle) + n[0] * cos((pi/180)*(angle + 90))
+position([pos[0] + dx, pos[1] - dy])
 else:
 __go__(__TURTLE__, -n * __PT_TO_TWIP__)
 
@@ -792,6 +799,7 @@ def __draw__(d):
 _.drawpage.add(shape)
 if __group__:
 __group__.add(shape)
+_.shapecache[next(_.shapecount)] = str(_.time)
 return shape
 
 def __zoom__():
@@ -1016,18 +1024,31 @@ def rectangle(l):
 __boxshape__("Rectangle", l)
 
 def label(st):
-turtle = __getshape__(__TURTLE__)
-shape = __draw__("TextShape")
-shape.RotateAngle = turtle.RotateAngle
-pos = turtle.getPosition()
-pos.X = pos.X + turtle.BoundRect.Width / 2.0
-pos.Y = pos.Y + turtle.BoundRect.Height / 2.0
-shape.setSize(__Size__(1, 1))
+if type(st) != type([]):
+st = [0, 0, st]
+# get text size 
+shape = _.doc.createInstance( "com.sun.star.drawing.TextShape")
 shape.TextAutoGrowWidth = True
-text(shape, st)
-shape.setPosition(__Point__(pos.X - shape.BoundRect.Width/2, pos.Y - 
shape.BoundRect.Height/2))
-__visible__(shape, True)
-__

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

2013-08-29 Thread Andre Fischer
 sfx2/source/sidebar/DeckLayouter.cxx |1 +
 1 file changed, 1 insertion(+)

New commits:
commit 4529d6e11a214cec4596a159a60d2b8a5f171697
Author: Andre Fischer 
Date:   Thu Aug 29 07:34:34 2013 +

Resolves: #i123091# Request repaints of panels on every deck layouting

(cherry picked from commit 98bd1aded3ffa1df24bfec28624bdf5129533c45)

Conflicts:
sfx2/source/sidebar/DeckLayouter.cxx

Change-Id: I7f9b9d0cf3305cafafcb752a5e1da84f341b59c9

diff --git a/sfx2/source/sidebar/DeckLayouter.cxx 
b/sfx2/source/sidebar/DeckLayouter.cxx
index 37dbd294..fccd797 100644
--- a/sfx2/source/sidebar/DeckLayouter.cxx
+++ b/sfx2/source/sidebar/DeckLayouter.cxx
@@ -257,6 +257,7 @@ sal_Int32 DeckLayouter::PlacePanels (
 
 // Place the panel.
 rPanel.setPosSizePixel(0, nY, nWidth, nPanelHeight);
+rPanel.Invalidate();
 
 nY += nPanelHeight;
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: Mirroring gtk buttons

2013-08-29 Thread Caolán McNamara
On Fri, 2013-08-16 at 18:41 +0200, Khaled Hosny wrote:
> On Fri, Aug 16, 2013 at 03:44:12PM +0100, Caolán McNamara wrote:
> > On Tue, 2013-07-30 at 04:28 +0200, Khaled Hosny wrote:
> > > So I got fed up and tried this. Setting LANGUAGE in GtkData::Init()
> > > indeed fixes the issue, but calling Application::GetSettings() there
> > > throws a DeploymentException, apparently that code is executed too
> > > early, before InitVCL() is called.
> > 
> > So the good news is that they theory would work ?

Pretty tricky, lots of pieces need other pieces initialized before each
other and its hard to find a way through, but how about the attached, it
seems to work for me.

C.
>From 1e6bd5fa03e5114f167c5f9ff3852e3c6e174165 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= 
Date: Thu, 29 Aug 2013 17:06:16 +0100
Subject: [PATCH] wait until we know the UI language before initializing gtk

so that we can set LANGUAGE to get RTL mirroring for RTL
UI languages even under a LTR system locale

Change-Id: I31fce6f1620d7fb35a489c771285b15ba05773df
---
 vcl/inc/salinst.hxx |  3 +++
 vcl/inc/unx/gtk/gtkinst.hxx |  4 ++-
 vcl/source/app/svmain.cxx   |  2 ++
 vcl/unx/gtk/app/gtkinst.cxx | 59 -
 4 files changed, 56 insertions(+), 12 deletions(-)

diff --git a/vcl/inc/salinst.hxx b/vcl/inc/salinst.hxx
index ba9a9b5..6fcb1e2 100644
--- a/vcl/inc/salinst.hxx
+++ b/vcl/inc/salinst.hxx
@@ -65,6 +65,9 @@ public:
 SalInstance() {}
 virtual ~SalInstance();
 
+//called directly after Application::Init
+virtual voidAfterAppInit() {}
+
 // Frame
 // DisplayName for Unix ???
 virtual SalFrame*   CreateChildFrame( SystemParentData* pParent, sal_uLong nStyle ) = 0;
diff --git a/vcl/inc/unx/gtk/gtkinst.hxx b/vcl/inc/unx/gtk/gtkinst.hxx
index cf901cc..4787b21 100644
--- a/vcl/inc/unx/gtk/gtkinst.hxx
+++ b/vcl/inc/unx/gtk/gtkinst.hxx
@@ -66,7 +66,8 @@ class GtkInstance : public X11SalInstance
 public:
 GtkInstance( SalYieldMutex* pMutex );
 virtual ~GtkInstance();
-voidInit();
+voidEnsureInit();
+virtual void AfterAppInit();
 
 virtual SalFrame*   CreateFrame( SalFrame* pParent, sal_uLong nStyle );
 virtual SalFrame*   CreateChildFrame( SystemParentData* pParent, sal_uLong nStyle );
@@ -110,6 +111,7 @@ public:
   private:
 std::vector  m_aTimers;
 boolIsTimerExpired();
+boolbNeedsInit;
 
 mutable boost::shared_ptr m_pPrintWrapper;
 };
diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx
index f9d571f..fdfe580 100644
--- a/vcl/source/app/svmain.cxx
+++ b/vcl/source/app/svmain.cxx
@@ -282,6 +282,8 @@ bool InitVCL()
 // soffice/sfx implementation creates the global service manager
 pSVData->mpApp->Init();
 
+pSVData->mpDefInst->AfterAppInit();
+
 // Fetch AppFileName and make it absolute before the workdir changes...
 OUString aExeFileName;
 osl_getExecutableFile( &aExeFileName.pData );
diff --git a/vcl/unx/gtk/app/gtkinst.cxx b/vcl/unx/gtk/app/gtkinst.cxx
index caca819..115550b 100644
--- a/vcl/unx/gtk/app/gtkinst.cxx
+++ b/vcl/unx/gtk/app/gtkinst.cxx
@@ -21,6 +21,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -122,14 +123,8 @@ extern "C"
 fprintf( stderr, "creating GtkSalInstance 0x%p\n", pInstance );
 #endif
 
-// initialize SalData
-GtkData *pSalData = new GtkData( pInstance );
-pSalData->Init();
-pSalData->initNWF();
-
-pInstance->Init();
-
-InitAtkBridge();
+//Create SalData, this does not leak
+/*GtkData *pSalData =*/ new GtkData( pInstance );
 
 return pInstance;
 }
@@ -172,13 +167,37 @@ GtkInstance::GtkInstance( SalYieldMutex* pMutex )
 #else
 : X11SalInstance( pMutex )
 #endif
+, bNeedsInit(true)
 {
 }
 
-// This has to happen after gtk_init has been called by saldata.cxx's
-// Init or our handlers just get clobbered.
-void GtkInstance::Init()
+//We want to defer initializing gtk until we are after uno has been
+//bootstrapped so we can ask the config what the UI language is so that we can
+//force that in as $LANGUAGE to get gtk to render widgets RTL if we have a RTL
+//UI in a LTR locale
+void GtkInstance::AfterAppInit()
 {
+OUString aLocaleString(Application::GetSettings().GetUILanguageTag().getGlibcLocaleString(".UTF-8"));
+if (!aLocaleString.isEmpty())
+{
+OUString envVar("LANGUAGE");
+osl_setEnvironment(envVar.pData, aLocaleString.pData);
+}
+EnsureInit();
+}
+
+void GtkInstance::EnsureInit()
+{
+if (!bNeedsInit)
+return;
+// initialize SalData
+GtkData *pSalData = GetGtkSalData();
+pSalData->Init();
+pSalData->initNWF();
+
+InitAtkBridge();
+
+bNeedsInit = false;
 }
 
 GtkInstance::~GtkInstance()
@@ -190,16 +209,19 @@ GtkInstance::~GtkInstance()
 
 SalFrame* G

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

2013-08-29 Thread Julien Nabet
 include/formula/grammar.hxx |1 +
 1 file changed, 1 insertion(+)

New commits:
commit d9a3381eb586b31d305102b40aea4bf543b42ec7
Author: Julien Nabet 
Date:   Thu Aug 29 18:39:01 2013 +0200

Add GRAM_ENGLISH_XL_OOX as supported

See comment //! When adding new values adapt isSupported() below as well
of this same file
@Eike: ;-)

Change-Id: Ifa70be0d88208499bef809cc234c86cb6045bcd3

diff --git a/include/formula/grammar.hxx b/include/formula/grammar.hxx
index 75556d5..610cf46 100644
--- a/include/formula/grammar.hxx
+++ b/include/formula/grammar.hxx
@@ -186,6 +186,7 @@ public:
 case GRAM_NATIVE_XL_R1C1 :
 case GRAM_ENGLISH_XL_A1  :
 case GRAM_ENGLISH_XL_R1C1:
+case GRAM_ENGLISH_XL_OOX :
 return true;
 default:
 return extractFormulaLanguage( eGrammar) == GRAM_EXTERNAL;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] buildbot.git: tb/tb_phases.sh

2013-08-29 Thread Norbert Thiebaud
 tb/tb_phases.sh |   14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 6da7ea9e812431b8454a3994225a7bc85f289ed9
Author: Norbert Thiebaud 
Date:   Thu Aug 29 11:26:08 2013 -0500

Fix EXTRA_BUILDID setup.

diff --git a/tb/tb_phases.sh b/tb/tb_phases.sh
index 34c4e14..39fbace 100644
--- a/tb/tb_phases.sh
+++ b/tb/tb_phases.sh
@@ -21,7 +21,14 @@ pre_autogen()
 
 canonical_do_autogen()
 {
+local current_timestamp=
+
 if [ "${R}" = "0" ] ; then
+export EXTRA_BUILDID=
+if [ "${TB_TYPE?}" = "tb" ] ; then
+current_timestamp=$(sed -e "s/ /_/" 
"${TB_METADATA_DIR?}/${P?}_current-git-timestamp.log")
+export EXTRA_BUILDID="TinderBox: ${TB_NAME?}, 
Branch:${TB_BRANCH?}, Time: $current_timestamp"
+fi
 if ! ${TB_NICE} ${TB_GIT_DIR?}/autogen.sh > "tb_${P?}_autogen.log" 
2>&1 ; then
 tb_REPORT_LOG=tb_${P?}_autogen.log
 tb_REPORT_MSGS="autogen/configure failed - error is:"
@@ -77,17 +84,10 @@ canonical_post_clean()
 
 canonical_do_make()
 {
-local current_timestamp=
 local optdir=""
-local extra_buildid=""
 
 tb_OPT_DIR=""
-if [ "${TB_TYPE?}" = "tb" ] ; then
-current_timestamp=$(sed -e "s/ /_/" 
"${TB_METADATA_DIR?}/${P?}_current-git-timestamp.log")
-extra_buildid="TinderBox: ${TB_NAME?}, Branch:${TB_BRANCH?}, Time: 
$current_timestamp"
-fi
 if [ "${R}" = "0" ] ; then
-export EXTRA_BUILDID="$extra_buildid"
 # we for MAKE_RESTARTS=1 because 1/ we know thta Makefile is up to date
 # and 2/ the 'restart' mechanism in make is messed-up by the fact that 
we trap SIGINT
 if ! ${TB_NICE} ${TB_WATCHDOG} ${MAKE?} MAKE_RESTARTS=1  -sr > 
"tb_${P?}_build.log" 2>&1 ; then
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2013-08-29 Thread Eike Rathke
 i18nlangtag/source/languagetag/languagetag.cxx |   12 
 1 file changed, 12 deletions(-)

New commits:
commit 38840e360b394cea0919f8b351fafbfc13fd3422
Author: Eike Rathke 
Date:   Thu Aug 29 18:26:41 2013 +0200

these FIXME comments are now obsolete

Change-Id: I81b4214555d715bf597dc5dbe6b7cfaf53a344d8

diff --git a/i18nlangtag/source/languagetag/languagetag.cxx 
b/i18nlangtag/source/languagetag/languagetag.cxx
index ca4fa41..887a58e 100644
--- a/i18nlangtag/source/languagetag/languagetag.cxx
+++ b/i18nlangtag/source/languagetag/languagetag.cxx
@@ -666,9 +666,6 @@ void LanguageTag::convertBcp47ToLang()
 }
 else
 {
-/* FIXME: this is temporary. If we support locales that consist not
- * only of language and country, e.g. added script, this probably needs
- * to be adapted. */
 if (!mbInitializedLocale)
 convertBcp47ToLocale();
 convertLocaleToLang();
@@ -692,9 +689,6 @@ void LanguageTag::convertLangToLocale()
 
 void LanguageTag::convertLangToBcp47()
 {
-/* FIXME: this is temporary. If we support locales that consist not only of
- * language and country, e.g. added script, this probably needs to be
- * adapted. */
 if (!mbInitializedLocale)
 convertLangToLocale();
 convertLocaleToBcp47();
@@ -1464,9 +1458,6 @@ com::sun::star::lang::Locale 
LanguageTag::convertToLocale( LanguageType nLangID,
 if (!bResolveSystem && lcl_isSystem( nLangID))
 return lang::Locale();
 
-/* FIXME: this is temporary until code base is converted to not use
- * MsLangId::convert...() anymore. After that, proper new method has to be
- * implemented to allow I18NLANGTAG_QLT and script tag and such. */
 return MsLangId::Conversion::convertLanguageToLocale( nLangID, 
bResolveSystem);
 }
 
@@ -1477,9 +1468,6 @@ LanguageType LanguageTag::convertToLanguageType( const 
com::sun::star::lang::Loc
 if (rLocale.Language.isEmpty() && !bResolveSystem)
 return LANGUAGE_SYSTEM;
 
-/* FIXME: this is temporary until code base is converted to not use
- * MsLangId::convert...() anymore. After that, proper new method has to
- * be implemented to allow I18NLANGTAG_QLT and sript tag and such. */
 return MsLangId::Conversion::convertLocaleToLanguage( rLocale);
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: solenv/gbuild

2013-08-29 Thread Stephan Bergmann
 solenv/gbuild/platform/com_MSC_defs.mk |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9831afe569490b09143a1f98263ee7d0e1faa323
Author: Stephan Bergmann 
Date:   Thu Aug 29 18:27:04 2013 +0200

Fix MSC build of firebird

Change-Id: I3c747b36529058b980f88aea014c0a6d27014664

diff --git a/solenv/gbuild/platform/com_MSC_defs.mk 
b/solenv/gbuild/platform/com_MSC_defs.mk
index 81f20da..ac68d36 100644
--- a/solenv/gbuild/platform/com_MSC_defs.mk
+++ b/solenv/gbuild/platform/com_MSC_defs.mk
@@ -266,6 +266,6 @@ gb_Helper_OUTDIRLIBDIR := $(OUTDIR)/bin
 gb_Helper_OUTDIR_FOR_BUILDLIBDIR := $(OUTDIR_FOR_BUILD)/bin
 
 # need windows path with backslashes here
-gb_Helper_set_ld_path := PATH="$(shell cygpath -w $(OUTDIR)/bin)"
+gb_Helper_set_ld_path := PATH="$(shell cygpath -w 
$(OUTDIR)/bin)"$${PATH:+:$$PATH}
 
 # vim: set noet sw=4:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: avmedia/Library_avmediagst_0_10.mk avmedia/Library_avmediagst.mk avmedia/Library_avmediavlc.mk

2013-08-29 Thread Tor Lillqvist
 avmedia/Library_avmediagst.mk  |6 --
 avmedia/Library_avmediagst_0_10.mk |6 --
 avmedia/Library_avmediavlc.mk  |6 --
 3 files changed, 18 deletions(-)

New commits:
commit 54202019eae37b4bfd6023d58b699f45404e1ce3
Author: Tor Lillqvist 
Date:   Thu Aug 29 19:16:33 2013 +0300

I doubt -DWINNT is needed

Change-Id: Ic88b4705c4fa79ac5be325c1a4d3cc881d514b6c

diff --git a/avmedia/Library_avmediagst.mk b/avmedia/Library_avmediagst.mk
index 1308e5f..08f4bca 100644
--- a/avmedia/Library_avmediagst.mk
+++ b/avmedia/Library_avmediagst.mk
@@ -22,12 +22,6 @@ $(eval $(call 
gb_Library_use_external,avmediagst,boost_headers))
 
 $(eval $(call gb_Library_use_sdk_api,avmediagst))
 
-ifeq ($(OS),WNT)
-$(eval $(call gb_Library_add_defs,avmediagst,\
-   -DWINNT
-))
-endif
-
 $(eval $(call gb_Library_use_libraries,avmediagst,\
comphelper \
cppu \
diff --git a/avmedia/Library_avmediagst_0_10.mk 
b/avmedia/Library_avmediagst_0_10.mk
index e7fab92..bbb0d73 100644
--- a/avmedia/Library_avmediagst_0_10.mk
+++ b/avmedia/Library_avmediagst_0_10.mk
@@ -24,12 +24,6 @@ $(eval $(call gb_Library_use_externals,avmediagst_0_10,\
 
 $(eval $(call gb_Library_use_sdk_api,avmediagst_0_10))
 
-ifeq ($(OS),WNT)
-$(eval $(call gb_Library_add_defs,avmediagst_0_10,\
-   -DWINNT
-))
-endif
-
 $(eval $(call gb_Library_use_libraries,avmediagst_0_10,\
comphelper \
cppu \
diff --git a/avmedia/Library_avmediavlc.mk b/avmedia/Library_avmediavlc.mk
index 86f2778..b19eac9 100644
--- a/avmedia/Library_avmediavlc.mk
+++ b/avmedia/Library_avmediavlc.mk
@@ -20,12 +20,6 @@ $(eval $(call 
gb_Library_use_external,avmediavlc,boost_headers))
 
 $(eval $(call gb_Library_use_sdk_api,avmediavlc))
 
-ifeq ($(OS),WNT)
-$(eval $(call gb_Library_add_defs,avmediavlc,\
--DWINNT \
-))
-endif
-
 $(eval $(call gb_Library_use_externals,avmediavlc,\
boost_headers \
boostsystem \
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: 2 commits - avmedia/Library_avmediavlc.mk configure.ac

2013-08-29 Thread Tor Lillqvist
 avmedia/Library_avmediavlc.mk |2 +-
 configure.ac  |   16 +++-
 2 files changed, 8 insertions(+), 10 deletions(-)

New commits:
commit 778db6dcd701a53c3923238997e953e3f32ab909
Author: Tor Lillqvist 
Date:   Thu Aug 29 19:03:58 2013 +0300

Add missing line continuation character

Change-Id: Ic8b786fea97361c7abaa6b57f03a3987bc7db002

diff --git a/avmedia/Library_avmediavlc.mk b/avmedia/Library_avmediavlc.mk
index e7075a1..86f2778 100644
--- a/avmedia/Library_avmediavlc.mk
+++ b/avmedia/Library_avmediavlc.mk
@@ -22,7 +22,7 @@ $(eval $(call gb_Library_use_sdk_api,avmediavlc))
 
 ifeq ($(OS),WNT)
 $(eval $(call gb_Library_add_defs,avmediavlc,\
--DWINNT
+-DWINNT \
 ))
 endif
 
commit c30715aee927721cf6648fece4f81872e7f5cf5e
Author: Tor Lillqvist 
Date:   Thu Aug 29 18:57:33 2013 +0300

VLC is not related to gstreamer

Change-Id: I3b88c1e12a254766f4d8c1de27d0cc9bd2ccbacf

diff --git a/configure.ac b/configure.ac
index 682d5dd..89ce3f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10104,19 +10104,17 @@ AC_SUBST(GSTREAMER_0_10_LIBS)
 AC_SUBST(ENABLE_GSTREAMER_0_10)
 
 dnl ===
-dnl Check whether the VLC libraries are available.
+dnl Check whether to build the VLC avmedia backend
 dnl ===
 
 ENABLE_VLC=""
 
-if test "$build_gstreamer" = "yes"; then
-AC_MSG_CHECKING([whether to enable the new VLC avmedia backend])
-if test "x$enable_vlc" != "xno"; then
-ENABLE_VLC="TRUE"
-AC_MSG_RESULT([yes])
-else
-AC_MSG_RESULT([no])
-fi
+AC_MSG_CHECKING([whether to enable the VLC avmedia backend])
+if test $_os != iOS -a $_os != Android -a "$enable_vlc" = yes; then
+ENABLE_VLC="TRUE"
+AC_MSG_RESULT([yes])
+else
+AC_MSG_RESULT([no])
 fi
 AC_SUBST(ENABLE_VLC)
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] libcdr.git: src/lib

2013-08-29 Thread Dave McKellar
 src/lib/CDRParser.cpp |   21 -
 1 file changed, 12 insertions(+), 9 deletions(-)

New commits:
commit a727df96747c093a00bd7562353fa9d9488a9313
Author: Dave McKellar 
Date:   Thu Aug 29 10:19:12 2013 -0400

Made my udta change only apply to Corel Draw X4

diff --git a/src/lib/CDRParser.cpp b/src/lib/CDRParser.cpp
index 49c6ddd..9308ff3 100644
--- a/src/lib/CDRParser.cpp
+++ b/src/lib/CDRParser.cpp
@@ -3285,17 +3285,20 @@ void libcdr::CDRParser::readTxsm5(WPXInputStream *input)
 void libcdr::CDRParser::readUdta(WPXInputStream *input)
 {
   CDR_DEBUG_MSG(("libcdr::CDRParser::readUdta\n"));
-  input->seek(6, WPX_SEEK_CUR); // Not sure what these 6 bytes are for.  Font 
id?
-  std::vector name;
-  unsigned short c;
-  for (;;)
+  if (m_version == 1400)
   {
-if ((c = readU16(input)) == 0) break;
-name.push_back((unsigned char)(c & 0xff));
-name.push_back((unsigned char)(c >> 8));
+input->seek(6, WPX_SEEK_CUR); // Not sure what these bytes are for.  Field 
id?
+std::vector name;
+unsigned short c;
+for (;;)
+{
+  if ((c = readU16(input)) == 0) break;
+  name.push_back((unsigned char)(c & 0xff));
+  name.push_back((unsigned char)(c >> 8));
+}
+WPXString fieldName;
+appendCharacters(fieldName, name);
   }
-  WPXString fieldName;
-  appendCharacters(fieldName, name);
 }
 
 void libcdr::CDRParser::readStyd(WPXInputStream *input)
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2013-08-29 Thread Eike Rathke
 i18nlangtag/qa/cppunit/test_languagetag.cxx   |   11 -
 i18nlangtag/source/languagetag/simple-langtag.cxx |  129 +-
 2 files changed, 104 insertions(+), 36 deletions(-)

New commits:
commit 9b98e25ce1e76a86ecf1dce71349e13ce1c1e6d5
Author: Eike Rathke 
Date:   Thu Aug 29 17:31:52 2013 +0200

handle variants in replacement code

Change-Id: I57da3bcd415c060b1e785e0d1cf3966de819c196

diff --git a/i18nlangtag/qa/cppunit/test_languagetag.cxx 
b/i18nlangtag/qa/cppunit/test_languagetag.cxx
index fd55e0b..915d5cb 100644
--- a/i18nlangtag/qa/cppunit/test_languagetag.cxx
+++ b/i18nlangtag/qa/cppunit/test_languagetag.cxx
@@ -167,19 +167,11 @@ void TestLanguageTag::testAllTags()
 CPPUNIT_ASSERT( ca_ES_valencia.getScript() == "" );
 CPPUNIT_ASSERT( ca_ES_valencia.getLanguageAndScript() == "ca" );
 ::std::vector< OUString > ca_ES_valencia_Fallbacks( 
ca_ES_valencia.getFallbackStrings());
-/* TODO: replacement doesn't handle variants yet. */
-#if USE_LIBLANGTAG
 CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks.size() == 4);
 CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks[0] == "ca-ES-valencia");
 CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks[1] == "ca-valencia");
 CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks[2] == "ca-ES");
 CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks[3] == "ca");
-#else
-CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks.size() == 3);
-CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks[0] == "ca-ES-valencia");
-CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks[1] == "ca-ES");
-CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks[2] == "ca");
-#endif
 /* TODO: conversion doesn't know this yet, once it does activate test. 
*/
 #if 0
 CPPUNIT_ASSERT( ca_ES_valencia.makeFallback().getBcp47() == 
"ca-ES-valencia");
@@ -189,8 +181,6 @@ void TestLanguageTag::testAllTags()
 }
 
 {
-/* TODO: replacement doesn't handle variants yet. */
-#if USE_LIBLANGTAG
 OUString s_ca_valencia( "ca-valencia" );
 LanguageTag ca_valencia( s_ca_valencia, true );
 lang::Locale aLocale = ca_valencia.getLocale();
@@ -216,7 +206,6 @@ void TestLanguageTag::testAllTags()
 #else
 CPPUNIT_ASSERT( ca_valencia.makeFallback().getBcp47() == "ca-ES");
 #endif
-#endif
 }
 
 {
diff --git a/i18nlangtag/source/languagetag/simple-langtag.cxx 
b/i18nlangtag/source/languagetag/simple-langtag.cxx
index 153500a..a9588ea 100644
--- a/i18nlangtag/source/languagetag/simple-langtag.cxx
+++ b/i18nlangtag/source/languagetag/simple-langtag.cxx
@@ -95,7 +95,7 @@ struct my_t_impl : public my_ref
 else
 mpStr = NULL;
 }
-void append( const char* str, const char* stop )
+virtual void append( const char* str, const char* stop )
 {
 if (str && str < stop)
 {
@@ -110,7 +110,7 @@ struct my_t_impl : public my_ref
 mpStr = p;
 }
 }
-void zero()
+virtual void zero()
 {
 g_free( mpStr);
 mpStr = NULL;
@@ -162,8 +162,9 @@ struct lt_list_t : public my_t_impl
 
 static lt_pointer_t lt_list_value( const lt_list_t* p )
 {
-// Assuming only char* here.
-return p ? p->mpStr : NULL;
+// This may look odd, but in this implementation the list element itself
+// holds the char* mpStr to be obtained with lt_variant_get_tag()
+return static_cast(const_cast(p));
 }
 
 static const lt_list_t* lt_list_next( const lt_list_t* p )
@@ -201,24 +202,72 @@ static void my_unrefList( lt_list_t* pList )
 }
 }
 
+static void my_appendToList( lt_list_t** ppList, lt_list_t* pEntry )
+{
+if (ppList)
+{
+if (!*ppList)
+*ppList = pEntry;
+else
+{
+lt_list_t* pThat = *ppList;
+for (lt_list_t* pNext = pThat->mpNext; pNext; pNext = 
pThat->mpNext)
+pThat = pNext;
+pThat->mpNext = pEntry;
+pEntry->mpPrev = pThat;
+}
+}
+}
+
+// my_t_impl has a superfluous mpStr here, but simplifies things much in the
+// parser.
+struct my_t_list : public my_t_impl
+{
+lt_list_t* mpList;
+explicit my_t_list() : my_t_impl(), mpList(NULL) {}
+explicit my_t_list( const my_t_list& r ) : my_t_impl( r), mpList( 
my_copyList( r.mpList)) {}
+virtual ~my_t_list()
+{
+my_unrefList( mpList);
+}
+my_t_list& operator=( const my_t_list& r )
+{
+if (this == &r)
+return *this;
+my_t_impl::operator=( r);
+lt_list_t* pList = my_copyList( r.mpList);
+my_unrefList( mpList);
+mpList = pList;
+}
+virtual void append( const char* str, const char* stop )
+{
+lt_list_t* p = new lt_list_t;
+p->assign( str, stop);
+my_appendToList( &mpList, p);
+}
+virtual void zero()
+{
+my_t_impl::zero();
+my_unrefList( mpList);
+mpList = NULL;
+}
+};
+
 struct lt_tag_t : public my_t_impl
 {
 lt_lang_t   maLan

[Libreoffice-commits] core.git: Branch 'distro/suse/suse-4.0' - config/config_buildid.h.in config_host.mk.in configure.ac cui/Library_cui.mk cui/source .gitignore

2013-08-29 Thread Petr Mladek
 .gitignore   |1 +
 config/config_buildid.h.in   |   10 ++
 config_host.mk.in|1 -
 configure.ac |7 +--
 cui/Library_cui.mk   |1 -
 cui/source/dialogs/about.cxx |   10 ++
 6 files changed, 22 insertions(+), 8 deletions(-)

New commits:
commit e372338807be890f02ae5d7eb56c795df3516c71
Author: Petr Mladek 
Date:   Thu Aug 29 15:41:59 2013 +0200

make the tinderbox information more reliable in the about dialog (fdo#58034)

Pass the information via config/config_buildid.h. Then
cui/source/dialogs/about.cxx will get rebuilt also in the incremental build.

Also allow to set EXTRA_BUILDID also via environment variable. This is much
easier with tinderboxed that work with static autogen.input.

Change-Id: Ic0b0d13f031c988c096bfd4533e650e245a0ad74
Reviewed-on: https://gerrit.libreoffice.org/5680
Reviewed-by: Luboš Luňák 
Tested-by: Luboš Luňák 

diff --git a/.gitignore b/.gitignore
index 9aef00e..5ea06d3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -54,6 +54,7 @@
 /config.log
 /config.status
 /config.parms
+/config/config_buildid.h
 /config/config_version.h
 /config_host.mk
 /config_host.mk.last
diff --git a/config/config_buildid.h.in b/config/config_buildid.h.in
new file mode 100644
index 000..04f03b8
--- /dev/null
+++ b/config/config_buildid.h.in
@@ -0,0 +1,10 @@
+/*
+Optional Build ID displayed in the about dialog
+*/
+
+#ifndef CONFIG_BUILDID_H
+#define CONFIG_BUILDID_H
+
+#undef EXTRA_BUILDID
+
+#endif
diff --git a/config_host.mk.in b/config_host.mk.in
index 4f1842d..85bfa89 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -429,7 +429,6 @@ export OOOP_SAMPLES_PACK=@OOOP_SAMPLES_PACK@
 export OOOP_TEMPLATES_PACK=@OOOP_TEMPLATES_PACK@
 export OOO_JUNIT_JAR=@OOO_JUNIT_JAR@
 export OOO_SHELL=@BASH@
-export EXTRA_BUILDID=@EXTRA_BUILDID@
 export OOO_VENDOR=@OOO_VENDOR@
 export OPENSSL_CFLAGS=$(gb_SPACE)@OPENSSL_CFLAGS@
 export OPENSSL_LIBS=$(gb_SPACE)@OPENSSL_LIBS@
diff --git a/configure.ac b/configure.ac
index e05fc81..1131679 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11970,15 +11970,17 @@ else
 fi
 AC_SUBST(STARTCENTER_SPACE_BITMAP)
 
-EXTRA_BUILDID=
 AC_MSG_CHECKING([for extra build ID])
 if test -n "$with_extra_buildid" -a "$with_extra_buildid" != "yes" ; then
 EXTRA_BUILDID="$with_extra_buildid"
+fi
+# in tinderboxes, it is easier to set EXTRA_BUILDID via the environment 
variable instead of configure switch
+if test -n "$EXTRA_BUILDID" ; then
 AC_MSG_RESULT([$EXTRA_BUILDID])
 else
 AC_MSG_RESULT([not set])
 fi
-AC_SUBST(EXTRA_BUILDID)
+AC_DEFINE_UNQUOTED([EXTRA_BUILDID], ["$EXTRA_BUILDID"])
 
 OOO_VENDOR=
 AC_MSG_CHECKING([for vendor])
@@ -12390,6 +12392,7 @@ else
 fi
 
 AC_CONFIG_FILES([config_host.mk])
+AC_CONFIG_HEADERS([config/config_buildid.h])
 AC_CONFIG_HEADERS([config/config_version.h])
 AC_OUTPUT
 
diff --git a/cui/Library_cui.mk b/cui/Library_cui.mk
index b367ad1..c9c00a9 100644
--- a/cui/Library_cui.mk
+++ b/cui/Library_cui.mk
@@ -39,7 +39,6 @@ $(eval $(call gb_Library_add_defs,cui,\
 $(if $(filter TRUE,$(ENABLE_TDE)),-DENABLE_TDE) \
 $(if $(filter TRUE,$(ENABLE_KDE)),-DENABLE_KDE) \
 $(if $(filter TRUE,$(ENABLE_KDE4)),-DENABLE_KDE4) \
-$(if $(EXTRA_BUILDID),-DEXTRA_BUILDID=\""$(EXTRA_BUILDID)"\") \
 ))
 
 $(eval $(call gb_Library_use_sdk_api,cui))
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index b70754f..a7ddbb4 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -48,6 +48,7 @@
 #include 
 #include "about.hxx"
 #include "about.hrc"
+#include 
 #include 
 #include 
 #include 
@@ -489,10 +490,11 @@ rtl::OUString AboutDialog::GetVersionString()
 sVersion += m_sBuildStr.replaceAll("$BUILDID", sBuildId);
 }
 
-#ifdef EXTRA_BUILDID
-sVersion += "\n";
-sVersion += EXTRA_BUILDID;
-#endif
+if (strlen(EXTRA_BUILDID) > 0)
+{
+sVersion += "\n";
+sVersion += EXTRA_BUILDID;
+}
 
 return sVersion;
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - config/config_buildid.h.in config_host.mk.in configure.ac cui/Library_cui.mk cui/source .gitignore

2013-08-29 Thread Petr Mladek
 .gitignore   |1 +
 config/config_buildid.h.in   |   10 ++
 config_host.mk.in|1 -
 configure.ac |7 +--
 cui/Library_cui.mk   |1 -
 cui/source/dialogs/about.cxx |   10 ++
 6 files changed, 22 insertions(+), 8 deletions(-)

New commits:
commit 8b665b58af200b51ec6d884168d3781899ed5ba0
Author: Petr Mladek 
Date:   Thu Aug 29 15:41:59 2013 +0200

make the tinderbox information more reliable in the about dialog (fdo#58034)

Pass the information via config/config_buildid.h. Then
cui/source/dialogs/about.cxx will get rebuilt also in the incremental build.

Also allow to set EXTRA_BUILDID also via environment variable. This is much
easier with tinderboxed that work with static autogen.input.

Change-Id: Ic0b0d13f031c988c096bfd4533e650e245a0ad74
Reviewed-on: https://gerrit.libreoffice.org/5680
Reviewed-by: Luboš Luňák 
Tested-by: Luboš Luňák 

diff --git a/.gitignore b/.gitignore
index 9aef00e..5ea06d3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -54,6 +54,7 @@
 /config.log
 /config.status
 /config.parms
+/config/config_buildid.h
 /config/config_version.h
 /config_host.mk
 /config_host.mk.last
diff --git a/config/config_buildid.h.in b/config/config_buildid.h.in
new file mode 100644
index 000..04f03b8
--- /dev/null
+++ b/config/config_buildid.h.in
@@ -0,0 +1,10 @@
+/*
+Optional Build ID displayed in the about dialog
+*/
+
+#ifndef CONFIG_BUILDID_H
+#define CONFIG_BUILDID_H
+
+#undef EXTRA_BUILDID
+
+#endif
diff --git a/config_host.mk.in b/config_host.mk.in
index bcb016d..eae77d5 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -418,7 +418,6 @@ export OOOP_SAMPLES_PACK=@OOOP_SAMPLES_PACK@
 export OOOP_TEMPLATES_PACK=@OOOP_TEMPLATES_PACK@
 export OOO_JUNIT_JAR=@OOO_JUNIT_JAR@
 export OOO_SHELL=@BASH@
-export EXTRA_BUILDID=@EXTRA_BUILDID@
 export OOO_VENDOR=@OOO_VENDOR@
 export OPENSSL_CFLAGS=$(gb_SPACE)@OPENSSL_CFLAGS@
 export OPENSSL_LIBS=$(gb_SPACE)@OPENSSL_LIBS@
diff --git a/configure.ac b/configure.ac
index 21b68cb..3f685c6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11853,15 +11853,17 @@ else
 fi
 AC_SUBST(STARTCENTER_SPACE_BITMAP)
 
-EXTRA_BUILDID=
 AC_MSG_CHECKING([for extra build ID])
 if test -n "$with_extra_buildid" -a "$with_extra_buildid" != "yes" ; then
 EXTRA_BUILDID="$with_extra_buildid"
+fi
+# in tinderboxes, it is easier to set EXTRA_BUILDID via the environment 
variable instead of configure switch
+if test -n "$EXTRA_BUILDID" ; then
 AC_MSG_RESULT([$EXTRA_BUILDID])
 else
 AC_MSG_RESULT([not set])
 fi
-AC_SUBST(EXTRA_BUILDID)
+AC_DEFINE_UNQUOTED([EXTRA_BUILDID], ["$EXTRA_BUILDID"])
 
 OOO_VENDOR=
 AC_MSG_CHECKING([for vendor])
@@ -12273,6 +12275,7 @@ else
 fi
 
 AC_CONFIG_FILES([config_host.mk])
+AC_CONFIG_HEADERS([config/config_buildid.h])
 AC_CONFIG_HEADERS([config/config_version.h])
 AC_OUTPUT
 
diff --git a/cui/Library_cui.mk b/cui/Library_cui.mk
index b367ad1..c9c00a9 100644
--- a/cui/Library_cui.mk
+++ b/cui/Library_cui.mk
@@ -39,7 +39,6 @@ $(eval $(call gb_Library_add_defs,cui,\
 $(if $(filter TRUE,$(ENABLE_TDE)),-DENABLE_TDE) \
 $(if $(filter TRUE,$(ENABLE_KDE)),-DENABLE_KDE) \
 $(if $(filter TRUE,$(ENABLE_KDE4)),-DENABLE_KDE4) \
-$(if $(EXTRA_BUILDID),-DEXTRA_BUILDID=\""$(EXTRA_BUILDID)"\") \
 ))
 
 $(eval $(call gb_Library_use_sdk_api,cui))
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index f7332b9..8684df7 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -48,6 +48,7 @@
 #include 
 #include "about.hxx"
 #include "about.hrc"
+#include 
 #include 
 #include 
 #include 
@@ -474,10 +475,11 @@ rtl::OUString AboutDialog::GetVersionString()
 sVersion += m_sBuildStr.replaceAll("$BUILDID", sBuildId);
 }
 
-#ifdef EXTRA_BUILDID
-sVersion += "\n";
-sVersion += EXTRA_BUILDID;
-#endif
+if (strlen(EXTRA_BUILDID) > 0)
+{
+sVersion += "\n";
+sVersion += EXTRA_BUILDID;
+}
 
 return sVersion;
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - configure.ac

2013-08-29 Thread Petr Mladek
 configure.ac |4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 181d0a163f8c8f744077021eb550f0e6304fb4da
Author: Petr Mladek 
Date:   Thu Aug 29 14:50:58 2013 +0200

Allow to set EXTRA_BUILDID also via environment variable (fdo#58034)

This is much easier with tinderboxed that work with static autogen.input

Change-Id: Ifb0b7884bbad14a286023b3dbd7d1d2a12f36787
Reviewed-on: https://gerrit.libreoffice.org/5679
Reviewed-by: Luboš Luňák 
Tested-by: Luboš Luňák 

diff --git a/configure.ac b/configure.ac
index 1d5acd2..059b3e8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11477,10 +11477,12 @@ AC_SUBST(PROGRESSTEXTCOLOR)
 AC_SUBST(PROGRESSTEXTBASELINE)
 
 
-EXTRA_BUILDID=
 AC_MSG_CHECKING([for extra build ID])
 if test -n "$with_extra_buildid" -a "$with_extra_buildid" != "yes" ; then
 EXTRA_BUILDID="$with_extra_buildid"
+fi
+# in tinderboxes, it is easier to set EXTRA_BUILDID via the environment 
variable instead of configure switch
+if test -n "$EXTRA_BUILDID" ; then
 AC_MSG_RESULT([$EXTRA_BUILDID])
 else
 AC_MSG_RESULT([not set])
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2013-08-29 Thread Michael Stahl
 sw/inc/crstate.hxx|2 -
 sw/source/core/layout/trvlfrm.cxx |   45 +++---
 2 files changed, 43 insertions(+), 4 deletions(-)

New commits:
commit 2ab0e4df9951009d68614583c0db3527e07f7bab
Author: Michael Stahl 
Date:   Wed Aug 28 14:16:38 2013 +0200

fdo#66215: sw: fix clicking on text above background fly

SwPageFrm::GetCrsrOfst() tries to compare the distance to the closest
text vs. fly but does not do it right because GetCharRect()
returns just a line of width 1 on the left edge of the character;
try to figure out the entire area covered by the character via 2 calls
to GetCrsrOfst(), which gives much better clickability.

(regression from e8fbe97900f13305b17015d9044993bde4adab36)

Change-Id: I825e86daf65692dfb962ad576772c5f543d02d19
(cherry picked from commit edd2db1c783bd571ff796a5298385cacc91877b9)
Reviewed-on: https://gerrit.libreoffice.org/5660
Reviewed-by: Miklos Vajna 
Tested-by: Miklos Vajna 

diff --git a/sw/inc/crstate.hxx b/sw/inc/crstate.hxx
index 6c8c86f..7bd3cb4 100644
--- a/sw/inc/crstate.hxx
+++ b/sw/inc/crstate.hxx
@@ -143,7 +143,7 @@ struct SwCrsrMoveState
 sal_Bool bRealWidth;///< Calculation of the width required
 sal_Bool b2Lines;   ///< Check 2line portions and fill p2Lines
 sal_Bool bNoScroll; ///< No scrolling of undersized textframes
-sal_Bool bPosMatchesBounds; /**< GetCrsrOfst should not return the next
+bool bPosMatchesBounds; /**< GetCrsrOfst should not return the next
position if screen position is inside 
second
have of bound rect */
 
diff --git a/sw/source/core/layout/trvlfrm.cxx 
b/sw/source/core/layout/trvlfrm.cxx
index 0d9fd9c..fcaa4af 100644
--- a/sw/source/core/layout/trvlfrm.cxx
+++ b/sw/source/core/layout/trvlfrm.cxx
@@ -19,6 +19,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -287,10 +288,48 @@ sal_Bool SwPageFrm::GetCrsrOfst( SwPosition *pPos, Point 
&rPoint,
 if ( pTextNd )
 {
 SwCntntFrm* pTextFrm = pTextNd->getLayoutFrm( getRootFrm( ) );
-SwRect rTextRect;
-pTextFrm->GetCharRect( rTextRect, aTextPos );
 
-nTextDistance = lcl_getDistance( rTextRect, rPoint );
+// try this again but prefer the "previous" position
+SwCrsrMoveState aMoveState;
+SwCrsrMoveState *const pState((pCMS) ? pCMS : &aMoveState);
+comphelper::FlagRestorationGuard g(
+pState->bPosMatchesBounds, true);
+SwPosition prevTextPos(*pPos);
+SwLayoutFrm::GetCrsrOfst(&prevTextPos, aPoint, pState);
+
+SwRect aTextRect;
+pTextFrm->GetCharRect(aTextRect, prevTextPos);
+
+if (prevTextPos.nContent < pTextNd->Len())
+{
+// aRextRect is just a line on the left edge of the
+// previous character; to get a better measure from
+// lcl_getDistance, extend that to a rectangle over
+// the entire character.
+SwPosition const nextTextPos(prevTextPos.nNode,
+SwIndex(prevTextPos.nContent, +1));
+SwRect nextTextRect;
+pTextFrm->GetCharRect(nextTextRect, nextTextPos);
+SWRECTFN(pTextFrm);
+if ((aTextRect.*fnRect->fnGetTop)() ==
+(nextTextRect.*fnRect->fnGetTop)()) // same line?
+{
+// need to handle mixed RTL/LTR portions somehow
+if ((aTextRect.*fnRect->fnGetLeft)() <
+(nextTextRect.*fnRect->fnGetLeft)())
+{
+(aTextRect.*fnRect->fnSetRight)(
+(nextTextRect.*fnRect->fnGetLeft)());
+}
+else // RTL
+{
+(aTextRect.*fnRect->fnSetLeft)(
+(nextTextRect.*fnRect->fnGetLeft)());
+}
+}
+}
+
+nTextDistance = lcl_getDistance(aTextRect, rPoint);
 bValidTextDistance = true;
 
 // If the text position is a clickable field, then that should 
have priority.
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: Langpack FR 4.1 for OSX applescript launched mdfind scans whole disk from root folder

2013-08-29 Thread Alexander Thurgood
Le 29/08/13 15:33, Christian Lohmaier a écrit :

Hi Christian,

Well, there is something really strange going on and I can't nail it down.

I just tried re-starting the langpack installation for 4.1.0 - this time
it didn't stall, but it didn't display the successful installation
dialog either.

So I shut it down again, unmounted the image, remounted the image and
re-installed the langpack again. This time I got the "installation
successful" dialog at the end.

Bizarre, bizarre.

Also, 4.1.1 langpack FR seems to install seamlessly now.


In the 4.1.1 dmg :
set found_ooos_all to ""
-- command might return an error if spotlight is disabled completely
try
set found_ooos_all to (do shell script "mdfind \"kMDItemContentType ==
'com.apple.application-bundle' && kMDItemDisplayName == 'LibreOffice*'
&& kMDItemDisplayName != 'LibreOffice Language Pack.app'\"")
end try
set found_ooos_all to found_ooos_all & "
" & chooseMyOwn

set found_ooos_all_paragraphs to paragraphs in found_ooos_all

set found_ooos to {}
repeat with currentApp in found_ooos_all_paragraphs
if currentApp does not start with "/Volumes" then
copy currentApp to the end of found_ooos
end if
end repeat


In the 4.1.0 dmg :
set the found_ooos_all to (do shell script "mdfind \"kMDItemContentType
== 'com.apple.application-bundle' && kMDItemDisplayName ==
'LibreOffice*' && kMDItemDisplayName != 'LibreOffice Language
Pack.app'\"") & "
" & chooseMyOwn

set found_ooos_all_paragraphs to paragraphs in found_ooos_all

set found_ooos to {}
repeat with currentApp in found_ooos_all_paragraphs
if currentApp does not start with "/Volumes" then
copy currentApp to the end of found_ooos
end if
end repeat




So there is definitely a difference in the scripts between 4.1.0 and
4.1.1, where 4.1.0 doesn't contain the try block.


Alex


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


minutes of ESC call ...

2013-08-29 Thread Michael Meeks
* Present:
+ Bjoern, Eike, Andras, Michael M, Cloph, Thorsten, Kohei, Tsahi,
  Stephan, Robinson, Lionel, Cedric, Caolan
* Completed Action Items:
+ Major / API incompatibility release timing ? (Bjoern)
   [ discuss this at the conference ]
+ poke fdo admins for own BZ instance (Thorsten)
   [ Tollef swamped, but willing & able to do it, timeframe later this year,
  estimate is a few days of work ]
+ dig out the URL for GSOC travel funding (Cedric)
   [ no URL for that, but acknowledgement from Carol, Students to ask for 
re-imbursement
 to Google for up to $500 - just need to mail her with the receipts, it 
goes onto
 their card ]
+ upgrade 3.6 users to 4.0.5 once that is out (Cloph)
   [ update switched on 3.6 -> 4.0.5 and 4.1 -> 4.1.0, in a few
 days update to 4.1.1 - waiting on feedback.
 Makes sense - have some slow mirrors (Thorsten) ]
+ Submit conference talks
* http://conference.libreoffice.org/2013/en/call-for-papers
+ Calc talk (Kohei)
+ Silverstripe 3 talk (Cloph)
+ release engineering overview (Cloph)
+ New tools for QA engagement (Robinson)
+ Howto get involved in QA (Robinson / Joel)
+ UX / design talk / plan meet-up (Mirek) - Kendy to poke ?
* Pending Action Items:
+ roll out Easy Hack rotation, incrementally improve afterwards (Robinson)
   [ still reducing the delta between Robinson test & Florian's deployed 
server
 getting close though ]
+ switch to pure sidebar mode in master - but not enabled by
  default, except in Impress (Caolan)
+ come up with a proposal on what still needs improving in sidebar land 
(Astron)
+ Submit conference talks
* http://conference.libreoffice.org/2013/en/call-for-papers
+ overview of long-term cleanups (Caolan) 1/2 talk
+ perhaps invite Tom Tromey for a gdb talk (Caolan)
+ Server installation GUI (Florian Reisinger)
+ People submitting late talks: please poke Thorsten/Florian/Andy
+ otherwise they might be missed.
* Release Engineering update (Cloph)
+ 4.1.1 status
+ released today; out and being downloaded left & right.
+ no deadline this week (a small break)
+ 4.1.2 RC1 - next Monday - branch-off
+ how does the release schedule look during the conference ? (Michael)
+ 4.0.6 is after the conf (Cloph)
+ 4.1.2 complete before conference week (final release)
+ how did it go ? easier ? (Michael)
+ manual version error, but otherwise better (Cloph)
+ already pretty automated, using Petr's script (thanks)
* UX input (Astron/Mirek)
* New commit access bits:
+ Jesus Corrius - he missed the fdo migration (somehow)
* Heads up for 4.1.2 change (Stephan)
+ changes some URE library names, not completely private, but
  used around the place. Adding 'lo' suffix to avoid name conflict
  with windows / system libraries
+ https://gerrit.libreoffice.org/#/c/5667/
+ couple of tricky bits: sal_textenc / sunjavaplugin libs dlopen'ed by 
name, but it works
  and needs someone to review / ack it.
AI:+ review / merge (Andras)
* QA update (Robinson)
+ good progress on the QA list, addressing various projects
+ still working on recruiting - pause until mid September.
+ unconfirmed creeping up slightly in the short term.
+ 3x of the 3.6 MABs still left to be migrated.
+ https://bugs.freedesktop.org/page.cgi?id=weekly-bug-summary.html
+162-113(+49 overall)
 many thanks to the top five bug squashers:
ign_christian 12
Maxim 10
tommy279
Thomas van der Meulen  8
Andras Timar   8
* Open 4.2 MAB
+ 5/6 5/6 6/6 7/7 2/2 2/2 1/1
+ https://bugs.freedesktop.org/show_bug.cgi?id=65675
* Open 4.1 MAB
+ 17/89 15/85 15/81 13/77 8/68 11/64 3/55 7/52 7/48 2/42 4/39 5/37 7/32
   19%   18%   19%   17%  12%   17%   5%  14%  15%
+ 
https://bugs.freedesktop.org/showdependencytree.cgi?id=60270&hide_resolved=1
* Open 4.0 MAB
+ 50/180 52/180 44/171 32/157 14/138 13/137 12/137 12/135 12/134 12/133
   28%29%26%20%10% 9% 9% 9% 9% 9%
+ 
https://bugs.freedesktop.org/showdependencytree.cgi?id=54157&hide_resolved=1
* Open 3.6 MAB
+ 7/178 9/179 22/190 60/245 62/244 60/243 62/243 60/241 57/238 63/237 
65/236
   4%5% 12%   25%25%25%25%25%24%27%
28%
+ 
https://bugs.freedesktop.org/showdependencytree.cgi?id=6&hide_resolved=1
* Bibisected bugs open: whiteboard 'bibsected'
+ 36/167 37/137 41/137 33/128 33/125 34/124 34/123 36/122 38/119 37/114 
39/114
+ http://bit.ly/VQfF3Q
* all bugs tagged with 'regression'
+ 343(+12) bugs open of 1919(+26) total
* ~Component   count net *

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

2013-08-29 Thread Michael Stahl
 sw/source/ui/docvw/edtwin.cxx |4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 43003812ca085a642d262d5cbf1a63f8df043d40
Author: Michael Stahl 
Date:   Wed Aug 28 14:28:40 2013 +0200

fdo#67358: sw: "fix" line painting artifacts when resizing columns

SwEditWin::MouseButtonDown(): for unknown reasons invalidating the
window here causes the column resizing lines to not be removed after the
resize is done, so disable it.

(regression from 289185fd02d6d9734b6dbde01f15c4e6c5beacbb)

Change-Id: If3ba0a72c53c5c2734fb905ae35d62f6a3e8938b
(cherry picked from commit a2c67975c03010b90c706523293f180c1f29e229)
Reviewed-on: https://gerrit.libreoffice.org/5661
Reviewed-by: Miklos Vajna 
Tested-by: Miklos Vajna 

diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index 8576258..6e208f0 100644
--- a/sw/source/ui/docvw/edtwin.cxx
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -2742,7 +2742,9 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
 rSh.SetShowHeaderFooterSeparator( Footer, false );
 
 // Repaint everything
-rSh.GetWin()->Invalidate();
+// FIXME fdo#67358 for unknown reasons this causes painting
+// problems when resizing table columns, so disable it
+//rSh.GetWin()->Invalidate();
 }
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] libcdr.git: src/lib

2013-08-29 Thread Fridrich Štrba
 src/lib/CDRParser.cpp |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 624ebbdb53cd792cb0458f9444250e59e7321c05
Author: Fridrich Å trba 
Date:   Thu Aug 29 16:05:29 2013 +0200

astyle action

diff --git a/src/lib/CDRParser.cpp b/src/lib/CDRParser.cpp
index 79c587f..49c6ddd 100644
--- a/src/lib/CDRParser.cpp
+++ b/src/lib/CDRParser.cpp
@@ -3290,7 +3290,7 @@ void libcdr::CDRParser::readUdta(WPXInputStream *input)
   unsigned short c;
   for (;;)
   {
-   if ((c = readU16(input)) == 0) break;
+if ((c = readU16(input)) == 0) break;
 name.push_back((unsigned char)(c & 0xff));
 name.push_back((unsigned char)(c >> 8));
   }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2013-08-29 Thread Stephan Bergmann
 connectivity/source/commontools/ConnectionWrapper.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2410b3c3ddc6fea02dadd56b39bb1181312c383a
Author: Stephan Bergmann 
Date:   Thu Aug 29 16:05:01 2013 +0200

TPropertyValueLessFunctor must actually compare for "<"

Change-Id: I584a410d90531a0f7b784e62f94c39e715713cf1

diff --git a/connectivity/source/commontools/ConnectionWrapper.cxx 
b/connectivity/source/commontools/ConnectionWrapper.cxx
index 4b9f620..1287acf 100644
--- a/connectivity/source/commontools/ConnectionWrapper.cxx
+++ b/connectivity/source/commontools/ConnectionWrapper.cxx
@@ -187,7 +187,7 @@ namespace
 {}
 bool operator() (const ::com::sun::star::beans::PropertyValue& lhs, 
const ::com::sun::star::beans::PropertyValue& rhs) const
 {
-return !!(lhs.Name.equalsIgnoreAsciiCase( rhs.Name ));
+return lhs.Name.compareToIgnoreAsciiCase(rhs.Name) < 0;
 }
 };
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] libcdr.git: src/lib

2013-08-29 Thread Dave McKellar
 src/lib/CDRDocumentStructure.h |1 +
 src/lib/CDRParser.cpp  |   19 +++
 src/lib/CDRParser.h|1 +
 3 files changed, 21 insertions(+)

New commits:
commit cbebfbaff8b7826bc631bbf51eb9a06ee5121326
Author: Dave McKellar 
Date:   Thu Aug 29 09:54:09 2013 -0400

Added initial support for the "udta" fourcc.

diff --git a/src/lib/CDRDocumentStructure.h b/src/lib/CDRDocumentStructure.h
index 70cc373..1d42b33 100644
--- a/src/lib/CDRDocumentStructure.h
+++ b/src/lib/CDRDocumentStructure.h
@@ -126,6 +126,7 @@
 #define CDR_FOURCC_txsm 0x6d737874
 #define CDR_FOURCC_txtj 0x6a747874
 
+#define CDR_FOURCC_udta 0x61746475
 #define CDR_FOURCC_uidr 0x72646975
 #define CDR_FOURCC_uil  0x206c6975
 #define CDR_FOURCC_url  0x206c7275
diff --git a/src/lib/CDRParser.cpp b/src/lib/CDRParser.cpp
index ec76a21..79c587f 100644
--- a/src/lib/CDRParser.cpp
+++ b/src/lib/CDRParser.cpp
@@ -761,6 +761,9 @@ void libcdr::CDRParser::readRecord(unsigned fourCC, 
unsigned length, WPXInputStr
   case CDR_FOURCC_txsm:
 readTxsm(input, length);
 break;
+  case CDR_FOURCC_udta:
+readUdta(input);
+break;
   case CDR_FOURCC_styd:
 readStyd(input);
 break;
@@ -3279,6 +3282,22 @@ void libcdr::CDRParser::readTxsm5(WPXInputStream *input)
 m_collector->collectText(textId, stlId, textData, charDescriptions, 
charStyles);
 }
 
+void libcdr::CDRParser::readUdta(WPXInputStream *input)
+{
+  CDR_DEBUG_MSG(("libcdr::CDRParser::readUdta\n"));
+  input->seek(6, WPX_SEEK_CUR); // Not sure what these 6 bytes are for.  Font 
id?
+  std::vector name;
+  unsigned short c;
+  for (;;)
+  {
+   if ((c = readU16(input)) == 0) break;
+name.push_back((unsigned char)(c & 0xff));
+name.push_back((unsigned char)(c >> 8));
+  }
+  WPXString fieldName;
+  appendCharacters(fieldName, name);
+}
+
 void libcdr::CDRParser::readStyd(WPXInputStream *input)
 {
   CDR_DEBUG_MSG(("libcdr::CDRParser::readStyd\n"));
diff --git a/src/lib/CDRParser.h b/src/lib/CDRParser.h
index 7b159f1..10405ef 100644
--- a/src/lib/CDRParser.h
+++ b/src/lib/CDRParser.h
@@ -109,6 +109,7 @@ private:
   void readTxsm16(WPXInputStream *input);
   void readTxsm6(WPXInputStream *input);
   void readTxsm5(WPXInputStream *input);
+  void readUdta(WPXInputStream *input);
   void readArtisticText(WPXInputStream *input);
   void readParagraphText(WPXInputStream *input);
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: firebird/ExternalPackage_firebird.mk firebird/firebird-rpath.patch.0 firebird/UnpackedTarball_firebird.mk scp2/source

2013-08-29 Thread Stephan Bergmann
 firebird/ExternalPackage_firebird.mk |5 +---
 firebird/UnpackedTarball_firebird.mk |1 
 firebird/firebird-rpath.patch.0  |   11 +
 scp2/source/firebird/file_firebird.scp   |   37 ---
 scp2/source/firebird/module_firebird.scp |6 -
 5 files changed, 19 insertions(+), 41 deletions(-)

New commits:
commit cfdfd1ad7652ee3699115618465a85e3431b33f3
Author: Stephan Bergmann 
Date:   Thu Aug 29 16:03:14 2013 +0200

Simplify and fix the embedded Firebird on Linux

Change-Id: Ibd29bb964cd090cbfd958a9e54658249e8ce4317

diff --git a/firebird/ExternalPackage_firebird.mk 
b/firebird/ExternalPackage_firebird.mk
index 3778d52..6419c30 100644
--- a/firebird/ExternalPackage_firebird.mk
+++ b/firebird/ExternalPackage_firebird.mk
@@ -17,9 +17,8 @@ $(eval $(call 
gb_ExternalPackage_add_file,firebird,lib/ifbembed.lib,gen/firebird
 else ifeq ($(OS),MACOSX)
 $(eval $(call 
gb_ExternalPackage_add_file,firebird,lib/libfbembed.dylib,gen/firebird/lib/libfbembed.dylib.2.5.2))
 else
-$(eval $(call 
gb_ExternalPackage_add_file,firebird,lib/libfbembed.so.2.5.2,gen/firebird/lib/libfbembed.so.2.5.2))
-$(eval $(call 
gb_ExternalPackage_add_file,firebird,lib/libfbembed.so.2.5,gen/firebird/lib/libfbembed.so.2.5))
-$(eval $(call 
gb_ExternalPackage_add_file,firebird,lib/libfbembed.so,gen/firebird/lib/libfbembed.so))
+$(eval $(call 
gb_ExternalPackage_add_file,firebird,lib/libfbembed.so.2.5,gen/firebird/lib/libfbembed.so.2.5.2))
+$(eval $(call 
gb_ExternalPackage_add_file,firebird,lib/libfbembed.so,gen/firebird/lib/libfbembed.so.2.5.2))
 endif
 
 # vim: set noet sw=4 ts=4:
diff --git a/firebird/UnpackedTarball_firebird.mk 
b/firebird/UnpackedTarball_firebird.mk
index 8370f31..46baf71 100644
--- a/firebird/UnpackedTarball_firebird.mk
+++ b/firebird/UnpackedTarball_firebird.mk
@@ -13,6 +13,7 @@ $(eval $(call 
gb_UnpackedTarball_set_tarball,firebird,$(FIREBIRD_TARBALL)))
 
 $(eval $(call gb_UnpackedTarball_add_patches,firebird,\
firebird/firebird-icu.patch.1 \
+   firebird/firebird-rpath.patch.0 \
 ))
 
 $(eval $(call gb_UnpackedTarball_add_patches,firebird,\
diff --git a/firebird/firebird-rpath.patch.0 b/firebird/firebird-rpath.patch.0
new file mode 100644
index 000..a92f006
--- /dev/null
+++ b/firebird/firebird-rpath.patch.0
@@ -0,0 +1,11 @@
+--- builds/posix/make.defaults
 builds/posix/make.defaults
+@@ -255,7 +255,7 @@
+ 
+ LIB_PLATFORM_RPATH = -Wl,-rpath,$(1)
+ ifeq ($(strip @BINRELOC_CFLAGS@),)
+-LIB_LINK_RPATH = $(call LIB_PLATFORM_RPATH,$(if $(subst 
intl,,$(1)),@FB_LIBDIR@,@FB_INTLDIR@))
++LIB_LINK_RPATH = $(call LIB_PLATFORM_RPATH,'$$ORIGIN')
+ else
+ LIB_LINK_RPATH = $(call LIB_PLATFORM_RPATH,'ORIGIN/../$(1)')
+ endif
diff --git a/scp2/source/firebird/file_firebird.scp 
b/scp2/source/firebird/file_firebird.scp
index a5784a3..3f89147 100644
--- a/scp2/source/firebird/file_firebird.scp
+++ b/scp2/source/firebird/file_firebird.scp
@@ -20,43 +20,16 @@
 
 #ifndef SYSTEM_FIREBIRD
 
-/*File gid_File_Firebird
-TXT_FILE_BODY;
-Dir = gid_Dir_Brand_Root;
-Name = "firebird.filelist";
-Styles = (FILELIST,USE_INTERNAL_RIGHTS);
-End*/
-
-#if !defined MACOSX
-
-File gid_File_Firebird_Lib_252
-LIB_FILE_BODY;
-Styles = (PACKED);
-Dir = SCP2_OOO_LIB_DIR;
-  #ifdef UNX
-Name = STRING(CONCAT4(libfbembed,UNXSUFFIX,.,2.5.2));
-  #endif
-End
-
-File gid_File_Firebird_Lib_25
-LIB_FILE_BODY;
-Styles = (PACKED);
-Dir = SCP2_OOO_LIB_DIR;
-  #ifdef UNX
-Name = STRING(CONCAT4(libfbembed,UNXSUFFIX,.,2.5));
-  #endif
-End
-
-#endif
-
 File gid_File_Firebird_Lib
 LIB_FILE_BODY;
 Styles = (PACKED);
 Dir = SCP2_OOO_LIB_DIR;
-  #ifdef UNX
-Name = STRING(CONCAT2(libfbembed,UNXSUFFIX));
+  #if defined MACOSX
+Name = "libfbembed.dylib";
+  #elif defined UNX
+Name = STRING(CONCAT3(libfbembed,UNXSUFFIX,.2.5));
   #else
-   Name = "ifbembed.dll";
+Name = "ifbembed.dll";
   #endif
 End
 
diff --git a/scp2/source/firebird/module_firebird.scp 
b/scp2/source/firebird/module_firebird.scp
index de1b41d..88c0eb4 100644
--- a/scp2/source/firebird/module_firebird.scp
+++ b/scp2/source/firebird/module_firebird.scp
@@ -23,15 +23,9 @@
 Module gid_Module_Firebird
 PackageInfo = "packinfo_office.txt";
 ParentID = gid_Module_Root_Brand;
-Dirs = ();
 Files = (
-#if defined UNX && !defined MACOSX
-File gid_File_Firebird_Lib_252,
-File gid_File_Firebird_Lib_25,
-#endif
 File gid_File_Firebird_Lib
 );
-Unixlinks = ();
 Styles = (HIDDEN_ROOT);
 End
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: Langpack FR 4.1 for OSX applescript launched mdfind scans whole disk from root folder

2013-08-29 Thread Christian Lohmaier
Hi Alexander,

On Thu, Aug 29, 2013 at 2:09 PM, Alexander Thurgood
 wrote:
> Le 29/08/13 12:30, Alexander Thurgood a écrit :
>
> The official download for 4.1.1 :
>
> still contains :
>
> set the found_ooos_all to (do shell script "mdfind \"kMDItemContentType
> == 'com.apple.application-bundle' && kMDItemDisplayName ==
> 'LibreOffice*' && kMDItemDisplayName != 'LibreOffice Language
> Pack.app'\"") & "
> " & chooseMyOwn


If it really contains the line without the try .. end try block
around, then it is a bug in the buildsystem / the build then did not
pick up the version from the sourcecode but used an older copy.
http://cgit.freedesktop.org/libreoffice/core/commit/setup_native/scripts/osx_install_languagepack.applescript?h=libreoffice-4.1.1.2-hotfix1&id=80328f390eceb32e1530ca182e6b135c3a0b0264

the commit that added the try around is included in the tag-

Please double-check whether this is really the case.

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


Re: Langpack FR 4.1 for OSX applescript launched mdfind scans whole disk from root folder

2013-08-29 Thread Christian Lohmaier
Hi Alexander, *,

On Thu, Aug 29, 2013 at 12:30 PM, Alexander Thurgood
 wrote:
> Hi all,
>
> Is it intended that for 4.1 the applescript installer now scans every
> file on the whole disk looking for the strings equal to 'LibreOffice*'
> and not equal to 'LibreOffice Language Pack.app' ?

No - and it doesn't do that.
>
> set the found_ooos_all to (do shell script "mdfind \"kMDItemContentType
> == 'com.apple.application-bundle' && kMDItemDisplayName ==
> 'LibreOffice*' && kMDItemDisplayName != 'LibreOffice Language
> Pack.app'\"") & "
> " & chooseMyOwn

mdfind is the commandline tool for spotlight, that should use the
spotlight db only, not do a full manual scan, just as the "locate"
command on linux would do.

> whereas the 4.0.5 langpack contains :
>
> set found_ooos_all to ""
> -- command might return an error if spotlight is disabled completely
> try
> set found_ooos_all to (do shell script "mdfind \"kMDItemContentType ==
> 'com.apple.application-bundle' && kMDItemDisplayName == 'LibreOffice*'
> && kMDItemDisplayName != 'LibreOffice Language Pack.app'\"")
> end try
> set found_ooos_all to found_ooos_all & "
> " & chooseMyOwn

That is just an additional "try .. end try" around that call to not
abort the whole installation script just because the mdfind command
cannot be executed, for example when spotlight is disabled.
Without that try, the script would just terminate, and not allow the
user to install the langaugepack.

> If I run, from the terminal :
>
> mdfind kMDItemContentType == 'com.apple.application-bundle' && mdfind
> kMDItemDisplayName == 'LibreOffice*' && mdfind kMDItemDisplayName !=
> 'LibreOffice Language Pack.app'
>
> it takes about 30 mins to finish.

Well - as the command has been the same for years, then something in
your spotlight configuration did change. Maybe there is a setting to
always have it do a full scan instead of using the cache.

But your command also is not equivalent to the command used by the
script. You run mdfind multiple times with different search strings,
while the script runs mdfind once with multiple search strings.

mdfind "kMDItemContentType == 'com.apple.application-bundle' &&
kMDItemDisplayName == 'LibreOffice*' && kMDItemDisplayName !=
'LibreOffice Language Pack.app'"

is what the script runs. And that should be pretty fast.

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


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

2013-08-29 Thread Miklos Vajna
 sw/qa/extras/ooxmlimport/data/table-style-parprop.docx   |binary
 sw/qa/extras/ooxmlimport/ooxmlimport.cxx |   11 
 writerfilter/source/dmapper/DomainMapperTableHandler.cxx |   38 +++
 3 files changed, 49 insertions(+)

New commits:
commit 17e904ed66c3caf87e658b9d3a18d7b13f4a0b52
Author: Miklos Vajna 
Date:   Thu Aug 29 14:17:09 2013 +0200

bnc#816593 DOCX filter: import paragraph spacing from table style

Change-Id: I9dce59ecd8a2d2bfadb8c7273cd46c6c0cf17774

diff --git a/sw/qa/extras/ooxmlimport/data/table-style-parprop.docx 
b/sw/qa/extras/ooxmlimport/data/table-style-parprop.docx
new file mode 100755
index 000..1c68c70
Binary files /dev/null and 
b/sw/qa/extras/ooxmlimport/data/table-style-parprop.docx differ
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx 
b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index 3c13f05..64c0764 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -128,6 +128,7 @@ public:
 void testGroupshapeRotation();
 void testBnc780044Spacing();
 void testTableAutoNested();
+void testTableStyleParprop();
 
 CPPUNIT_TEST_SUITE(Test);
 #if !defined(MACOSX) && !defined(WNT)
@@ -222,6 +223,7 @@ void Test::run()
 {"groupshape-rotation.docx", &Test::testGroupshapeRotation},
 {"bnc780044_spacing.docx", &Test::testBnc780044Spacing},
 {"table-auto-nested.docx", &Test::testTableAutoNested},
+{"table-style-parprop.docx", &Test::testTableStyleParprop},
 };
 header();
 for (unsigned int i = 0; i < SAL_N_ELEMENTS(aMethods); ++i)
@@ -1508,6 +1510,15 @@ void Test::testTableAutoNested()
 CPPUNIT_ASSERT_EQUAL(sal_Int32(23051), 
getProperty(xTables->getByIndex(1), "Width"));
 }
 
+void Test::testTableStyleParprop()
+{
+// The problem was that w:spacing's w:after=0 (a paragraph property) 
wasn't imported from table style.
+uno::Reference xTable(getParagraphOrTable(1), 
uno::UNO_QUERY);
+uno::Reference xCell(xTable->getCellByName("A1"), 
uno::UNO_QUERY);
+// This was 353, the document default, i.e. paragraph property from table 
style had no effect.
+CPPUNIT_ASSERT_EQUAL(sal_Int32(0), 
getProperty(getParagraphOfText(1, xCell->getText()), 
"ParaBottomMargin"));
+}
+
 CPPUNIT_TEST_SUITE_REGISTRATION(Test);
 
 CPPUNIT_PLUGIN_IMPLEMENT();
diff --git a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx 
b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
index 3d99fa2..250ea42 100644
--- a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
+++ b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
@@ -19,9 +19,12 @@
 #include 
 #include 
 #include 
+#include 
+#include 
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -779,6 +782,22 @@ RowPropertyValuesSeq_t 
DomainMapperTableHandler::endTableGetRowProperties()
 return aRowProperties;
 }
 
+// Apply paragraph property to each paragraph within a cell.
+static void lcl_ApplyCellParaProps(uno::Reference xCell, 
uno::Any aBottomMargin)
+{
+uno::Reference xEnumerationAccess(xCell, 
uno::UNO_QUERY);
+uno::Reference xEnumeration = 
xEnumerationAccess->createEnumeration();
+while (xEnumeration->hasMoreElements())
+{
+uno::Reference 
xParagraph(xEnumeration->nextElement(), uno::UNO_QUERY);
+uno::Reference xPropertyState(xParagraph, 
uno::UNO_QUERY);
+// Don't apply in case direct formatting is already present.
+// TODO: probably paragraph style has priority over table style here.
+if (xPropertyState.is() && 
xPropertyState->getPropertyState("ParaBottomMargin") == 
beans::PropertyState_DEFAULT_VALUE)
+xParagraph->setPropertyValue("ParaBottomMargin", aBottomMargin);
+}
+}
+
 void DomainMapperTableHandler::endTable(unsigned int nestedTableLevel)
 {
 #ifdef DEBUG_DMAPPER_TABLE_HANDLER
@@ -825,6 +844,25 @@ void DomainMapperTableHandler::endTable(unsigned int 
nestedTableLevel)
 
 if (xTable.is())
 m_xTableRange = xTable->getAnchor( );
+
+// OOXML table style may container paragraph properties, apply 
these now.
+for (int i = 0; i < aTableInfo.aTableProperties.getLength(); 
++i)
+{
+if (aTableInfo.aTableProperties[i].Name == 
"ParaBottomMargin")
+{
+uno::Reference xCellRange(xTable, 
uno::UNO_QUERY);
+uno::Any aBottomMargin = 
aTableInfo.aTableProperties[i].Value;
+sal_Int32 nRows = aCellProperties.getLength();
+for (sal_Int32 nRow = 0; nRow < nRows; ++nRow)
+{
+const uno::Sequence< beans::PropertyValues > 
aCurrentRow = aCellProperties[nRow];
+sal_Int32 nCells = aCurrentRow.getLength();
+for (sal_Int32 nCell = 0; nCell < nCells; ++nCell)
+

[Libreoffice-commits] core.git: scp2/InstallScript_setup_osl.mk

2013-08-29 Thread Stephan Bergmann
 scp2/InstallScript_setup_osl.mk |4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 5cff947699658e5606903bd2aa97f1bd531ef6f8
Author: Stephan Bergmann 
Date:   Thu Aug 29 15:03:52 2013 +0200

firebird is conditional

Change-Id: Ia497f9799a1ca0c77f14e2f4a4a8ecddc917f447

diff --git a/scp2/InstallScript_setup_osl.mk b/scp2/InstallScript_setup_osl.mk
index 59369b9..72c789d 100644
--- a/scp2/InstallScript_setup_osl.mk
+++ b/scp2/InstallScript_setup_osl.mk
@@ -18,7 +18,9 @@ $(eval $(call gb_InstallScript_use_modules,setup_osl,\
scp2/impress \
scp2/math \
scp2/ooo \
-   scp2/firebird \
+   $(if $(filter TRUE,$(ENABLE_FIREBIRD_SDBC)),\
+   scp2/firebird \
+   ) \
scp2/python \
scp2/ure \
scp2/writer \
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: 2 commits - firebird/ExternalPackage_firebird.mk firebird/ExternalProject_firebird.mk firebird/firebird-macosx.patch.1 scp2/InstallModule_firebird.mk scp2/source solenv

2013-08-29 Thread Stephan Bergmann
 firebird/ExternalPackage_firebird.mk  |8 -
 firebird/ExternalProject_firebird.mk  |   10 -
 firebird/firebird-macosx.patch.1  |  156 --
 scp2/InstallModule_firebird.mk|4 
 scp2/source/firebird/file_firebird.scp|   28 +
 scp2/source/firebird/module_firebird.scp  |5 
 solenv/bin/macosx-change-install-names.pl |4 
 7 files changed, 68 insertions(+), 147 deletions(-)

New commits:
commit 2c8cd0cae2e6051e056c561006aca1acd819e6cc
Author: Stephan Bergmann 
Date:   Thu Aug 29 14:17:39 2013 +0200

Clean up ExternalProject_firebird even further for Mac OS X

Change-Id: I4a874c0a71c156786f1a6905aadc0bab572a0a7b

diff --git a/firebird/ExternalPackage_firebird.mk 
b/firebird/ExternalPackage_firebird.mk
index 0571cd4..3778d52 100644
--- a/firebird/ExternalPackage_firebird.mk
+++ b/firebird/ExternalPackage_firebird.mk
@@ -14,14 +14,12 @@ $(eval $(call 
gb_ExternalPackage_use_external_project,firebird,firebird))
 ifeq ($(OS)-$(COM),WNT-MSC)
 $(eval $(call 
gb_ExternalPackage_add_file,firebird,bin/ifbembed.dll,gen/firebird/bin/ifbembed.dll))
 $(eval $(call 
gb_ExternalPackage_add_file,firebird,lib/ifbembed.lib,gen/firebird/bin/ifbembed.lib))
-else
-ifeq ($(OS),MACOSX)
-$(eval $(call 
gb_ExternalPackage_add_file,firebird,lib/libfbembed.dylib,gen/firebird/lib/libfbembed.dylib))
+else ifeq ($(OS),MACOSX)
+$(eval $(call 
gb_ExternalPackage_add_file,firebird,lib/libfbembed.dylib,gen/firebird/lib/libfbembed.dylib.2.5.2))
 else
 $(eval $(call 
gb_ExternalPackage_add_file,firebird,lib/libfbembed.so.2.5.2,gen/firebird/lib/libfbembed.so.2.5.2))
 $(eval $(call 
gb_ExternalPackage_add_file,firebird,lib/libfbembed.so.2.5,gen/firebird/lib/libfbembed.so.2.5))
 $(eval $(call 
gb_ExternalPackage_add_file,firebird,lib/libfbembed.so,gen/firebird/lib/libfbembed.so))
 endif
-endif
 
 # vim: set noet sw=4 ts=4:
diff --git a/firebird/ExternalProject_firebird.mk 
b/firebird/ExternalProject_firebird.mk
index bcfbe40..296848e 100644
--- a/firebird/ExternalProject_firebird.mk
+++ b/firebird/ExternalProject_firebird.mk
@@ -45,10 +45,10 @@ $(call gb_ExternalProject_get_state_target,firebird,build):
--disable-superserver \
--with-system-icu --without-fbsample 
--without-fbsample-db \
$(if $(filter 
YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
-   $(if $(filter 
MACOSX,$(OS)),--prefix=/@.__OOO)
 \
$(if $(filter IOS 
ANDROID,$(OS)),--disable-shared,--disable-static) \
-   && export CHANGE_INSTALL_NAMES_APP="$(PERL) 
$(SOLARENV)/bin/macosx-change-install-names.pl app NONE" \
-   && export CHANGE_INSTALL_NAMES_SHL="$(PERL) 
$(SOLARENV)/bin/macosx-change-install-names.pl shl OOO" \
&& $(gb_Helper_set_ld_path) $(MAKE) firebird_embedded \
+   $(if $(filter MACOSX,$(OS)),&& $(PERL) \
+   $(SOLARENV)/bin/macosx-change-install-names.pl shl OOO \
+   
$(gb_Package_SOURCEDIR_firebird)/gen/firebird/lib/libfbembed.dylib.2.5.2) \
)
 # vim: set noet sw=4 ts=4:
diff --git a/firebird/firebird-macosx.patch.1 b/firebird/firebird-macosx.patch.1
index 2e437ab..adede1c 100644
--- a/firebird/firebird-macosx.patch.1
+++ b/firebird/firebird-macosx.patch.1
@@ -1,126 +1,4 @@
 # -*- Mode: Diff -*-
-diff -ur firebird.org/builds/posix/Makefile.in.codes 
firebird/builds/posix/Makefile.in.codes
 firebird.org/builds/posix/Makefile.in.codes2013-07-12 
20:55:46.0 +0200
-+++ firebird/builds/posix/Makefile.in.codes2013-07-15 11:43:26.0 
+0200
-@@ -63,7 +63,7 @@
- 
- $(BIN)/codes$(EXEC_EXT): $(CODES_Objects) $(COMMON_Objects) $(LIBFBSTATIC_A)
-   $(STATICEXE_LINK) $(LINK_OPTS) $^ -o $@ -L$(LIB) $(LINK_LIBS) 
$(ICU_LIBS)
--
-+  $(CHANGE_INSTALL_NAMES_APP) $@
- 
- # Rebuild ids.h
- $(SRC_ROOT)/include/gen/ids.h:$(SRC_ROOT)/misc/ids.m 
$(SRC_ROOT)/jrd/relations.h
-diff -ur firebird.org/builds/posix/Makefile.in.examples 
firebird/builds/posix/Makefile.in.examples
 firebird.org/builds/posix/Makefile.in.examples 2013-07-12 
20:55:46.0 +0200
-+++ firebird/builds/posix/Makefile.in.examples 2013-07-15 11:50:37.0 
+0200
-@@ -129,6 +129,7 @@
- 
- $(EXAMPLES_DEST)/empbuild$(EXEC_EXT): $(EMPBLD_Objects) $(COMMON_Objects) 
$(LIBFBSTATIC_A) 
-   $(EXE_LINK) $(LINK_OPTS) $(EMPBLD_Objects) $(COMMON_Objects) -o $@ 
-L$(LIB) -lfbstatic $(LINK_LIBS) $(ICU_LIBS)
-+  $(CHANGE_INSTALL_NAMES_APP) $@
- 
- $(EXAMPLES_DEST)/empbuild.c:  $(EXAMPLES_DEST)/empbuild.fdb 
$(EXAMPLES_DEST)/empbuild.e
- 
-@@ -147,6 +148,7 @@
- 
- $(EXAMPLES_DEST)/intlbld$(EXEC_EXT): $(INTLBLD_Objects) $(COMMON_Objects) 
$(LIBFBSTATIC_A) 
-   $(EXE_LINK) $(LINK_OPTS) $(INTLBLD_Objects) $(COMMON_Objects) -o $@ 
-L$(LIB) -lfbstatic $(LINK_LIBS) $(ICU_LIBS)
-+  $(CHANGE_INSTAL

[Libreoffice-commits] core.git: configure.ac

2013-08-29 Thread Petr Mladek
 configure.ac |4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit d9b62a48d75e596888fcf10f5f73fed93e7b88a3
Author: Petr Mladek 
Date:   Thu Aug 29 14:50:58 2013 +0200

Allow to set EXTRA_BUILDID also via environment variable (fdo#58034)

This is much easier with tinderboxed that work with static autogen.input

Change-Id: Ifb0b7884bbad14a286023b3dbd7d1d2a12f36787

diff --git a/configure.ac b/configure.ac
index 8647bdd..682d5dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12107,10 +12107,12 @@ AC_SUBST(PROGRESSTEXTCOLOR)
 AC_SUBST(PROGRESSTEXTBASELINE)
 
 
-EXTRA_BUILDID=
 AC_MSG_CHECKING([for extra build ID])
 if test -n "$with_extra_buildid" -a "$with_extra_buildid" != "yes" ; then
 EXTRA_BUILDID="$with_extra_buildid"
+fi
+# in tinderboxes, it is easier to set EXTRA_BUILDID via the environment 
variable instead of configure switch
+if test -n "$EXTRA_BUILDID" ; then
 AC_MSG_RESULT([$EXTRA_BUILDID])
 else
 AC_MSG_RESULT([not set])
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] buildbot.git: bin/tinbuild_phases.sh

2013-08-29 Thread Petr Mladek
 bin/tinbuild_phases.sh |   13 +++--
 1 file changed, 7 insertions(+), 6 deletions(-)

New commits:
commit e4951ebbcab8754fa388fee7d6b3ea889c6add33
Author: Petr Mladek 
Date:   Thu Aug 29 14:43:45 2013 +0200

Pass the extra buildid info via configure rather than by make (fdo#58034)

We want to pass the information via the header file, so it works
also in incremental builds.

diff --git a/bin/tinbuild_phases.sh b/bin/tinbuild_phases.sh
index 38a652c..39954e7 100644
--- a/bin/tinbuild_phases.sh
+++ b/bin/tinbuild_phases.sh
@@ -18,6 +18,11 @@ pre_autogen()
 do_autogen()
 {
 if [ "${retval}" = "0" ] ; then
+export EXTRA_BUILDID=
+if [ "${build_type}" = "tb" ] ; then
+current_timestamp=$(sed -e "s/ /_/" 
"${METADATA_DIR?}/tb_${B}_current-git-timestamp.log")
+EXTRA_BUILDID="TinderBox: $TINDER_NAME, Branch:${B}, Time: 
$current_timestamp"
+fi
 if ! $NICE ./autogen.sh ${DISTRO_CONFIG:+ 
--with-distro=${DISTRO_CONFIG}} >tb_${B}_autogen.log 2>&1 ; then
 report_log=tb_${B}_autogen.log
 report_msgs="autogen/configure failed - error is:"
@@ -47,19 +52,15 @@ do_clean()
 do_make()
 {
 optdir=""
-if [ "${build_type}" = "tb" ] ; then
-current_timestamp=$(sed -e "s/ /_/" 
"${METADATA_DIR?}/tb_${B}_current-git-timestamp.log")
-EXTRA_BUILDID="TinderBox: $TINDER_NAME, Branch:${B}, Time: 
$current_timestamp"
-fi
 if [ "${retval}" = "0" ] ; then
-if ! $NICE $WATCHDOG ${MAKE?} EXTRA_BUILDID="$EXTRA_BUILDID" -s 
$target >tb_${B}_build.log 2>&1 ; then
+if ! $NICE $WATCHDOG ${MAKE?} -s $target >tb_${B}_build.log 2>&1 ; then
 report_log=tb_${B}_build.log
 report_msgs="build failed - error is:"
 retval=1
 else
 # if we want to populate bibisect we need to 'install'
 if [ "${build_type}" = "tb" -a $PUSH_TO_BIBISECT_REPO != "0" ] ; 
then
-if ! $NICE $WATCHDOG ${MAKE?} EXTRA_BUILDID="$EXTRA_BUILDID" 
-s install-tb >>tb_${B}_build.log 2>&1 ; then
+if ! $NICE $WATCHDOG ${MAKE?} -s install-tb 
>>tb_${B}_build.log 2>&1 ; then
 report_log=tb_${B}_build.log
 report_msgs="build failed - error is:"
 retval=1
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2013-08-29 Thread Eike Rathke
 i18nlangtag/source/languagetag/simple-langtag.cxx |5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 74d4f612af484735fae9c48b9cd7e609dab7fe64
Author: Eike Rathke 
Date:   Thu Aug 29 14:33:00 2013 +0200

don't leak variants

Change-Id: I03d1f7411ef46c41e19349297fa83e17ac81492e

diff --git a/i18nlangtag/source/languagetag/simple-langtag.cxx 
b/i18nlangtag/source/languagetag/simple-langtag.cxx
index c767e17..153500a 100644
--- a/i18nlangtag/source/languagetag/simple-langtag.cxx
+++ b/i18nlangtag/source/languagetag/simple-langtag.cxx
@@ -208,7 +208,10 @@ struct lt_tag_t : public my_t_impl
 lt_region_t maRegion;
 lt_list_t*  mpVariants;
 explicit lt_tag_t() : my_t_impl(), maLanguage(), maScript(), maRegion(), 
mpVariants(NULL) {}
-virtual ~lt_tag_t() {}
+virtual ~lt_tag_t()
+{
+my_unrefList( mpVariants);
+}
 explicit lt_tag_t( const lt_tag_t& r )
 :
 my_t_impl( r),
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2013-08-29 Thread Tor Lillqvist
 cui/source/dialogs/about.cxx |9 +
 1 file changed, 5 insertions(+), 4 deletions(-)

New commits:
commit ec88782903955574774c93fbad7891a6d4753e7e
Author: Tor Lillqvist 
Date:   Thu Aug 29 14:50:10 2013 +0300

Fix loplugin error: checking whether a config macro EXTRA_BUILDID is 
defined.

Change-Id: Ieb04a8da4dc54b41f4df1d63b5e70ffb7ca7bb01

diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index 73fe04e..4243180 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -242,10 +242,11 @@ OUString AboutDialog::GetVersionString()
 sVersion += m_sBuildStr.replaceAll("$BUILDID", sBuildId);
 }
 
-#ifdef EXTRA_BUILDID
-sVersion += "\n";
-sVersion += EXTRA_BUILDID;
-#endif
+if (strlen(EXTRA_BUILDID) > 0)
+{
+sVersion += "\n";
+sVersion += EXTRA_BUILDID;
+}
 
 return sVersion;
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] buildbot.git: bin/push_nightlies.sh bin/tinbuild2 bin/tinbuild_internals.sh

2013-08-29 Thread Luboš Luňák
 bin/push_nightlies.sh |   55 +-
 bin/tinbuild2 |   14 +++
 bin/tinbuild_internals.sh |6 -
 3 files changed, 73 insertions(+), 2 deletions(-)

New commits:
commit 4e28560d60d702d03eb90ad909c9f4e3d22a6777
Author: Luboš Luňák 
Date:   Thu Aug 29 14:18:05 2013 +0200

add support for uploading also windows .pdb debug info

-pdb option activates this for -r, needs a path to a dir where
the .pdb info is stored and updated, and needs symstore.exe installed.

diff --git a/bin/push_nightlies.sh b/bin/push_nightlies.sh
index d3a7b19..ac62788 100755
--- a/bin/push_nightlies.sh
+++ b/bin/push_nightlies.sh
@@ -15,6 +15,7 @@ usage ()
echo "-tpull time of this checkout"
echo "-nname of this tinderbox"
echo "-lbandwidth limit for upload (KBps)"
+   echo "-p location of the pdb symbol store to update and upload"
 }
 
 do_lock()
@@ -35,8 +36,11 @@ PULL_TIME=
 BANDWIDTH_LIMIT=20
 ASYNC=0
 STAGE_DIR=/tmp
+SYMBOLS_DIR=
+SYMSTORE="/cygdrive/c/Program Files/Debugging Tools for Windows (x64)/symstore"
 
-while getopts aht:n:l: opt ; do
+
+while getopts aht:n:l:p: opt ; do
case "$opt" in
 a) ASYNC=1 ;;
h) usage; exit ;;
@@ -44,6 +48,7 @@ while getopts aht:n:l: opt ; do
t) PULL_TIME="${OPTARG// /_}" ;;
n) BUILDER_NAME="${OPTARG// /_}" ;;
l) BANDWIDTH_LIMIT="$OPTARG" ;;
+   p) SYMBOLS_DIR="${OPTARG}";;
?) usage; exit ;;
esac
 done
@@ -69,6 +74,8 @@ if [ -f config_host.mk ] ; then
 INPATH=$(grep INPATH= config_host.mk | sed -e "s/.*=//")
 fi
 
+topdir="$PWD"
+
 cd instsetoo_native/${INPATH}
 
 if [ $? != 0 ]; then
@@ -103,6 +110,46 @@ if [ -f ${core_dir}/build_info.txt ] ; then
 fi
 fi
 
+
+# Add pdb files for binaries of the given extension (exe,dll)
+# and type (Library/Executable) to the given list.
+add_pdb_files()
+{
+extension=$1
+type=$2
+list=$3
+for file in `find install/ -name *.${extension}`; do
+filename=`basename $file .${extension}`
+pdb=`echo workdir/*/LinkTarget/${type}/${filename}.pdb`
+if test -f "$pdb"; then
+echo `cygpath -w $pdb` >>$list
+fi
+done
+
+}
+
+if [ -n "$SYMBOLS_DIR" ] ; then
+pushd "$topdir" >/dev/null
+ssh upl...@gimli.documentfoundation.org "mkdir -p 
\"/srv/www/dev-builds.libreoffice.org/daily/${BRANCH}/${BUILDER_NAME}/symbols\""
 || exit 1
+echo "update symbols"
+rm -f symbols-pdb-list.txt
+mkdir -p $SYMBOLS_DIR
+add_pdb_files dll Library symbols-pdb-list.txt
+add_pdb_files exe Executable symbols-pdb-list.txt
+"${SYMSTORE}" add /f @symbols-pdb-list.txt /s `cygpath -w $SYMBOLS_DIR` /t 
LibreOffice /v "$PULL_TIME"
+rm symbols-pdb-list.txt
+
+# The maximum number of versions of symbols to keep, older revisions will 
be removed.
+# Unless the .dll/.exe changes, the .pdb should be shared, so with 
incremental tinderbox several revisions should
+# not be that space-demanding.
+KEEP_MAX_REVISIONS=5
+to_remove=`ls -1 ${SYMBOLS_DIR}/000Admin | grep -v '\.txt' | grep -v 
'\.deleted' | sort | head -n -${KEEP_MAX_REVISIONS}`
+for revision in $to_remove; do
+"${SYMSTORE}" del /i ${revision} /s `cygpath -w $SYMBOLS_DIR`
+done
+popd >/dev/null
+fi
+
 if [ "$ASYNC" = "1" ] ; then
 (
 (
@@ -112,6 +159,9 @@ if [ "$ASYNC" = "1" ] ; then
ssh upl...@gimli.documentfoundation.org "cd 
\"/srv/www/dev-builds.libreoffice.org/daily/${BRANCH}/${BUILDER_NAME}/\" && { 
rm current; ln -s \"${PULL_TIME}\" current ; }"
 fi
 rm -fr ${stage}/${tag}_*
+if [ -n "$SYMBOLS_DIR" ] ; then
+rsync --bwlimit=${BANDWIDTH} --delete -ave ssh ${SYMBOLS_DIR}/ 
"upl...@gimli.documentfoundation.org:/srv/www/dev-builds.libreoffice.org/daily/${BRANCH}/${BUILDER_NAME}/symbols/"
 || exit 1
+fi
 )# 200>${lock_file?}
 ) &
 else
@@ -119,4 +169,7 @@ else
 if [ "$?" == "0" ] ; then
ssh upl...@gimli.documentfoundation.org "cd 
\"/srv/www/dev-builds.libreoffice.org/daily/${BRANCH}/${BUILDER_NAME}/\" && { 
rm current; ln -s \"${PULL_TIME}\" current ; }"
 fi
+if [ -n "$SYMBOLS_DIR" ] ; then
+rsync --bwlimit=${BANDWIDTH} --delete -ave ssh ${SYMBOLS_DIR}/ 
"upl...@gimli.documentfoundation.org:/srv/www/dev-builds.libreoffice.org/daily/${BRANCH}/${BUILDER_NAME}/symbols/"
 || exit 1
+fi
 fi
diff --git a/bin/tinbuild2 b/bin/tinbuild2
index c2790c5..a13bc5b 100755
--- a/bin/tinbuild2
+++ b/bin/tinbuild2
@@ -12,6 +12,7 @@ BIN_DIR=$(dirname "$0")
 PAUSE_SECONDS=$((15*60))
 PUSH_NIGHTLIES=0
 PUSH_TO_BIBISECT_REPO=0
+SYMBOLS_DIR=
 ARTIFACTDIR=
 SEND_MAIL="all"
 LOCK=1
@@ -118,6 +119,7 @@ Options:
-n   run with nice, can be combined with -i
-p  profile to use.
-r  push the build nightly at a rate limited by  (in 
kB/s)
+   -pdbif -r is used, and updat

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

2013-08-29 Thread Eike Rathke
 i18nlangtag/source/languagetag/simple-langtag.cxx |1 -
 1 file changed, 1 deletion(-)

New commits:
commit 139a7d5e5233e1f93a8639197990525f3cc1fd7f
Author: Eike Rathke 
Date:   Thu Aug 29 14:16:53 2013 +0200

unused include vector

Change-Id: I85994d4636a171a8f023b757c02afa0ac236

diff --git a/i18nlangtag/source/languagetag/simple-langtag.cxx 
b/i18nlangtag/source/languagetag/simple-langtag.cxx
index eb92e42..c767e17 100644
--- a/i18nlangtag/source/languagetag/simple-langtag.cxx
+++ b/i18nlangtag/source/languagetag/simple-langtag.cxx
@@ -19,7 +19,6 @@
 #include 
 #include 
 #include 
-#include 
 
 namespace {
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2013-08-29 Thread Petr Mladek
 cui/source/dialogs/about.cxx |2 --
 1 file changed, 2 deletions(-)

New commits:
commit 3d353c90e9c8fb109a940c05d21450a533eb00fa
Author: Petr Mladek 
Date:   Thu Aug 29 14:11:36 2013 +0200

Remove duplicit include of config_buildid.h

diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index 54d4fbf..4243180 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -17,8 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#include 
-
 #include 
 #include 
 #include 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: Langpack FR 4.1 for OSX applescript launched mdfind scans whole disk from root folder

2013-08-29 Thread Alexander Thurgood
Le 29/08/13 12:30, Alexander Thurgood a écrit :

The official download for 4.1.1 :

http://download.documentfoundation.org/libreoffice/stable/4.1.1/mac/x86/LibreOffice_4.1.1_MacOS_x86_langpack_fr.dmg


still contains :

set the found_ooos_all to (do shell script "mdfind \"kMDItemContentType
== 'com.apple.application-bundle' && kMDItemDisplayName ==
'LibreOffice*' && kMDItemDisplayName != 'LibreOffice Language
Pack.app'\"") & "
" & chooseMyOwn



Alex


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


[Libreoffice-commits] core.git: Branch 'aoo/trunk' - 2 commits - pyuno/zipcore vcl/source

2013-08-29 Thread Jürgen Schmidt
 pyuno/zipcore/python.cxx|   54 
 vcl/source/gdi/dibtools.cxx |   39 +++
 2 files changed, 39 insertions(+), 54 deletions(-)

New commits:
commit fc89249eddd42c5020307757a1e31a87b6302ec1
Author: Jürgen Schmidt 
Date:   Thu Aug 29 11:38:06 2013 +

#122864# merge fix from AOO401 branch

diff --git a/pyuno/zipcore/python.cxx b/pyuno/zipcore/python.cxx
index 04e4ec7..2fb708e 100644
--- a/pyuno/zipcore/python.cxx
+++ b/pyuno/zipcore/python.cxx
@@ -93,51 +93,46 @@ int wmain(int argc, wchar_t ** argv, wchar_t **) {
 exit(EXIT_FAILURE);
 }
 }
+
 wchar_t bootstrap[MY_LENGTH(L"vnd.sun.star.pathname:") + MAX_PATH] =
 L"vnd.sun.star.pathname:"; //TODO: overflow
 wchar_t * bootstrapEnd = tools::buildPath(
 bootstrap + MY_LENGTH(L"vnd.sun.star.pathname:"), path, pathEnd,
 MY_STRING(L"fundamental.ini"));
-if (bootstrapEnd == NULL ||
-(tools::buildPath(path, path, pathEnd, MY_STRING(L"..\\basis-link"))
- == NULL))
+if (bootstrapEnd == NULL)
 {
 exit(EXIT_FAILURE);
 }
-pathEnd = tools::resolveLink(path);
-wchar_t path1[MAX_PATH];
-wchar_t * path1End = tools::buildPath(
-path1, path, pathEnd, MY_STRING(L"\\program"));
-if (path1End == NULL) {
-exit(EXIT_FAILURE);
-}
+
 wchar_t pythonpath2[MAX_PATH];
 wchar_t * pythonpath2End = tools::buildPath(
 pythonpath2, path, pathEnd,
-MY_STRING(L"\\program\\python-core-" MY_PYVERSION L"\\lib"));
+MY_STRING(L"python-core-" MY_PYVERSION L"\\lib"));
 if (pythonpath2End == NULL) {
 exit(EXIT_FAILURE);
 }
+
 wchar_t pythonpath3[MAX_PATH];
 wchar_t * pythonpath3End = tools::buildPath(
 pythonpath3, path, pathEnd,
 MY_STRING(
-L"\\program\\python-core-" MY_PYVERSION L"\\lib\\site-packages"));
+L"python-core-" MY_PYVERSION L"\\lib\\site-packages"));
 if (pythonpath3End == NULL) {
 exit(EXIT_FAILURE);
 }
+
 #ifdef __MINGW32__
 wchar_t pythonpath4[MAX_PATH];
 wchar_t * pythonpath4End = tools::buildPath(
 pythonpath4, path, pathEnd,
-MY_STRING(L"\\program\\python-core-" MY_PYVERSION 
L"\\lib\\lib-dynload"));
+MY_STRING(L"python-core-" MY_PYVERSION L"\\lib\\lib-dynload"));
 if (pythonpath4End == NULL) {
 exit(EXIT_FAILURE);
 }
 wchar_t pythonpath5[MAX_PATH];
 wchar_t * pythonpath5End = tools::buildPath(
 pythonpath5, path, pathEnd,
-MY_STRING(L"\\program\\python-core-" MY_PYVERSION 
L"\\lib\\lib-dynload"));
+MY_STRING(L"python-core-" MY_PYVERSION L"\\lib\\lib-dynload"));
 if (pythonpath5End == NULL) {
 exit(EXIT_FAILURE);
 }
@@ -145,7 +140,7 @@ int wmain(int argc, wchar_t ** argv, wchar_t **) {
 wchar_t pythonhome[MAX_PATH];
 wchar_t * pythonhomeEnd = tools::buildPath(
 pythonhome, path, pathEnd,
-MY_STRING(L"\\program\\python-core-" MY_PYVERSION));
+MY_STRING(L"python-core-" MY_PYVERSION));
 if (pythonhomeEnd == NULL) {
 exit(EXIT_FAILURE);
 }
@@ -154,26 +149,15 @@ int wmain(int argc, wchar_t ** argv, wchar_t **) {
 pythonexe, path, pathEnd,
 #ifdef __MINGW32__
 MY_STRING(
-L"\\program\\python-core-" MY_PYVERSION L"\\bin\\python.bin"));
+L"python-core-" MY_PYVERSION L"\\bin\\python.bin"));
 #else
 MY_STRING(
-L"\\program\\python-core-" MY_PYVERSION L"\\bin\\python.exe"));
+L"python-core-" MY_PYVERSION L"\\bin\\python.exe"));
 #endif
 if (pythonexeEnd == NULL) {
 exit(EXIT_FAILURE);
 }
-if (tools::buildPath(path, path, pathEnd, MY_STRING(L"\\ure-link")) == 
NULL)
-{
-exit(EXIT_FAILURE);
-}
-pathEnd = tools::resolveLink(path);
-if (pathEnd == NULL) {
-exit(EXIT_FAILURE);
-}
-pathEnd = tools::buildPath(path, path, pathEnd, MY_STRING(L"\\bin"));
-if (pathEnd == NULL) {
-exit(EXIT_FAILURE);
-}
+
 std::size_t clSize = MY_LENGTH(L"\"") + 4 * (pythonexeEnd - pythonexe) +
 MY_LENGTH(L"\"\0"); //TODO: overflow
 // 4 * len: each char preceded by backslash, each trailing backslash
@@ -221,9 +205,11 @@ int wmain(int argc, wchar_t ** argv, wchar_t **) {
 }
 }
 wchar_t * value = new wchar_t[
-(pathEnd - path) + MY_LENGTH(L";") + (path1End - path1) +
-(n == 0 ? 0 : MY_LENGTH(L";") + (n - 1)) + 1]; //TODO: overflow
-wsprintfW(value, L"%s;%s%s%s", path, path1, n == 0 ? L"" : L";", orig);
+   (pathEnd - path) + MY_LENGTH(L";") +
+   (n == 0 ? 0 : MY_LENGTH(L";") + (n - 1)) + 1]; //TODO: overflow
+
+wsprintfW(value, L"%s%s%s", path, n == 0 ? L"" : L";", orig);
+
 if (!SetEnvironmentVariableW(L"PATH", value)) {
 exit(EXIT_FAILURE);
 }
@@ -258,11 +244,11 @@ int wmain(int argc, wchar_t ** argv, wchar_t **) {
 n == 0 ? 

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

2013-08-29 Thread Eike Rathke
 i18nlangtag/qa/cppunit/test_languagetag.cxx   |   11 ++
 i18nlangtag/source/languagetag/simple-langtag.cxx |   89 +-
 2 files changed, 98 insertions(+), 2 deletions(-)

New commits:
commit 71902872bfffbbc73f11d5a12fae6115d9bd458b
Author: Eike Rathke 
Date:   Thu Aug 29 14:05:32 2013 +0200

implemented missing replacement bits for Android build

Change-Id: I7492cb80f37dc99b3b4a16d2d812c9e301a1a4a7

diff --git a/i18nlangtag/qa/cppunit/test_languagetag.cxx 
b/i18nlangtag/qa/cppunit/test_languagetag.cxx
index 915d5cb..fd55e0b 100644
--- a/i18nlangtag/qa/cppunit/test_languagetag.cxx
+++ b/i18nlangtag/qa/cppunit/test_languagetag.cxx
@@ -167,11 +167,19 @@ void TestLanguageTag::testAllTags()
 CPPUNIT_ASSERT( ca_ES_valencia.getScript() == "" );
 CPPUNIT_ASSERT( ca_ES_valencia.getLanguageAndScript() == "ca" );
 ::std::vector< OUString > ca_ES_valencia_Fallbacks( 
ca_ES_valencia.getFallbackStrings());
+/* TODO: replacement doesn't handle variants yet. */
+#if USE_LIBLANGTAG
 CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks.size() == 4);
 CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks[0] == "ca-ES-valencia");
 CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks[1] == "ca-valencia");
 CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks[2] == "ca-ES");
 CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks[3] == "ca");
+#else
+CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks.size() == 3);
+CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks[0] == "ca-ES-valencia");
+CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks[1] == "ca-ES");
+CPPUNIT_ASSERT( ca_ES_valencia_Fallbacks[2] == "ca");
+#endif
 /* TODO: conversion doesn't know this yet, once it does activate test. 
*/
 #if 0
 CPPUNIT_ASSERT( ca_ES_valencia.makeFallback().getBcp47() == 
"ca-ES-valencia");
@@ -181,6 +189,8 @@ void TestLanguageTag::testAllTags()
 }
 
 {
+/* TODO: replacement doesn't handle variants yet. */
+#if USE_LIBLANGTAG
 OUString s_ca_valencia( "ca-valencia" );
 LanguageTag ca_valencia( s_ca_valencia, true );
 lang::Locale aLocale = ca_valencia.getLocale();
@@ -206,6 +216,7 @@ void TestLanguageTag::testAllTags()
 #else
 CPPUNIT_ASSERT( ca_valencia.makeFallback().getBcp47() == "ca-ES");
 #endif
+#endif
 }
 
 {
diff --git a/i18nlangtag/source/languagetag/simple-langtag.cxx 
b/i18nlangtag/source/languagetag/simple-langtag.cxx
index d96f721..eb92e42 100644
--- a/i18nlangtag/source/languagetag/simple-langtag.cxx
+++ b/i18nlangtag/source/languagetag/simple-langtag.cxx
@@ -19,10 +19,12 @@
 #include 
 #include 
 #include 
+#include 
 
 namespace {
 
 typedef int lt_bool_t;
+typedef void* lt_pointer_t;
 
 struct lt_error_t {
 void *something;
@@ -134,19 +136,87 @@ struct lt_region_t : public my_t_impl
 virtual ~lt_region_t() {}
 };
 
+struct lt_variant_t : public my_t_impl
+{
+explicit lt_variant_t() : my_t_impl() {}
+virtual ~lt_variant_t() {}
+};
+
+struct lt_list_t : public my_t_impl
+{
+lt_list_t* mpPrev;
+lt_list_t* mpNext;
+explicit lt_list_t() : my_t_impl(), mpPrev(NULL), mpNext(NULL) {}
+explicit lt_list_t( const lt_list_t& r )
+:
+my_t_impl( r), mpPrev(NULL), mpNext(NULL)
+{
+}
+virtual ~lt_list_t()
+{
+if (mpPrev)
+mpPrev->mpNext = mpNext;
+if (mpNext)
+mpNext->mpPrev = mpPrev;
+}
+};
+
+static lt_pointer_t lt_list_value( const lt_list_t* p )
+{
+// Assuming only char* here.
+return p ? p->mpStr : NULL;
+}
+
+static const lt_list_t* lt_list_next( const lt_list_t* p )
+{
+return p ? p->mpNext : NULL;
+}
+
+static lt_list_t* my_copyList( const lt_list_t * pList )
+{
+lt_list_t* pNewList = NULL;
+lt_list_t* pLast = NULL;
+while (pList)
+{
+lt_list_t* p = new lt_list_t( *pList);
+if (!pNewList)
+pNewList = p;
+if (pLast)
+{
+pLast->mpNext = p;
+p->mpPrev = pLast;
+}
+pLast = p;
+pList = pList->mpNext;
+}
+return pNewList;
+}
+
+static void my_unrefList( lt_list_t* pList )
+{
+while (pList)
+{
+lt_list_t* pNext = pList->mpNext;
+pList->decRef();
+pList = pNext;
+}
+}
+
 struct lt_tag_t : public my_t_impl
 {
 lt_lang_t   maLanguage;
 lt_script_t maScript;
 lt_region_t maRegion;
-explicit lt_tag_t() : my_t_impl(), maLanguage(), maScript(), maRegion() {}
+lt_list_t*  mpVariants;
+explicit lt_tag_t() : my_t_impl(), maLanguage(), maScript(), maRegion(), 
mpVariants(NULL) {}
 virtual ~lt_tag_t() {}
 explicit lt_tag_t( const lt_tag_t& r )
 :
 my_t_impl( r),
 maLanguage( r.maLanguage),
 maScript( r.maScript),
-maRegion( r.maRegion)
+maRegion( r.maRegion),
+mpVariants( my_copyList( r.mpVariants))
 {
 }
 lt_tag_t& operator=( const lt_tag_t

Re: Langpack FR 4.1 for OSX applescript launched mdfind scans whole disk from root folder

2013-08-29 Thread Alexander Thurgood
Le 29/08/13 12:30, Alexander Thurgood a écrit :

Hmm, according to opengrok it is this commit that causes the problem as
this is the code present in the 4.1 langpack applescript file :

2b4fd2c89a38ccac13c72f2e94501a8702e7da4b


Alex

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


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

2013-08-29 Thread Miklos Vajna
 sw/inc/IDocumentStatistics.hxx |6 --
 sw/inc/doc.hxx |7 ---
 sw/source/core/doc/doc.cxx |   21 -
 sw/source/ui/uiview/view2.cxx  |2 +-
 4 files changed, 21 insertions(+), 15 deletions(-)

New commits:
commit 563d441f9401d8868fae0dc379e9b712019325e7
Author: Miklos Vajna 
Date:   Tue Jul 16 18:26:18 2013 +0200

fdo#63273 sw: let word count not update stat. fields

Updating fields would generate loads of selection change events and it's
not what we asked for.

Regression from ce14342c4292628a641a72d4f63d9c048e030c6a.

(cherry picked from commit e2484e3998f2c5036fb8e3584d4b1c72db19bfd3)

Change-Id: If237df1f31436357022ca8d77b924681e403abd8
Reviewed-on: https://gerrit.libreoffice.org/4943
Reviewed-by: Björn Michaelsen 
Tested-by: Björn Michaelsen 
(cherry picked from commit 699b7626222ea8be1c9713a7f5e274dbfbc029ff)

This also fixes fdo#67223.

Signed-off-by: Michael Stahl 

Conflicts:
sw/inc/doc.hxx
sw/source/core/doc/doc.cxx

diff --git a/sw/inc/IDocumentStatistics.hxx b/sw/inc/IDocumentStatistics.hxx
index 2c5a0501..950ea49 100644
--- a/sw/inc/IDocumentStatistics.hxx
+++ b/sw/inc/IDocumentStatistics.hxx
@@ -43,8 +43,9 @@
   * modified and returns a reference to the result.
   * \param bCompleteAsync if true will return a partial result,
   * and potentially trigger a timeout to complete the work.
+  * \param bFields if stat. fields should be updated
   */
-virtual const SwDocStat &GetUpdatedDocStat(bool bCompleteAsync) = 0;
+virtual const SwDocStat &GetUpdatedDocStat(bool bCompleteAsync, bool 
bFields) = 0;
 
 /// Set the document statistics
 virtual void SetDocStat(const SwDocStat& rStat) = 0;
@@ -53,8 +54,9 @@
   * Updates the internal document's statistics
   * \param bCompleteAsync if true it may do part of the
   * work and trigger a timeout to complete it.
+  * \param bFields if stat. fields should be updated
   */
-virtual void UpdateDocStat(bool bCompleteAsync) = 0;
+virtual void UpdateDocStat(bool bCompleteAsync, bool bFields) = 0;
 
 protected:
 virtual ~IDocumentStatistics() {};
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index 7f5488c..6bccac2 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -909,9 +909,9 @@ public:
 */
 virtual void DocInfoChgd();
 virtual const SwDocStat &GetDocStat() const;
-virtual const SwDocStat &GetUpdatedDocStat(bool bCompleteAsync = false);
+virtual const SwDocStat &GetUpdatedDocStat(bool bCompleteAsync = false, 
bool bFields = true);
 virtual void SetDocStat(const SwDocStat& rStat);
-virtual void UpdateDocStat(bool bCompleteAsync = false);
+virtual void UpdateDocStat(bool bCompleteAsync = false, bool bFields = 
true);
 
 /** IDocumentState
 */
@@ -2071,10 +2071,11 @@ private:
 
 /** continue computing a chunk of document statistics
   * \param nChars  number of characters to count before exiting
+  * \param bFields if stat. fields should be updated
   *
   * returns false when there is no more to calculate
   */
-bool IncrementalDocStatCalculate(long nChars);
+bool IncrementalDocStatCalculate(long nChars, bool bFields);
 
 /// Our own 'StatsUpdateTimer' calls the following method
 DECL_LINK( DoIdleStatsUpdate, Timer * );
diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx
index ad19161..667ef5c 100644
--- a/sw/source/core/doc/doc.cxx
+++ b/sw/source/core/doc/doc.cxx
@@ -1157,11 +1157,11 @@ const SwDocStat& SwDoc::GetDocStat() const
 return *pDocStat;
 }
 
-const SwDocStat& SwDoc::GetUpdatedDocStat( bool bCompleteAsync )
+const SwDocStat& SwDoc::GetUpdatedDocStat( bool bCompleteAsync, bool bFields )
 {
 if( pDocStat->bModified )
 {
-UpdateDocStat( bCompleteAsync );
+UpdateDocStat( bCompleteAsync, bFields );
 }
 return *pDocStat;
 }
@@ -1684,7 +1684,7 @@ void SwDoc::CalculatePagePairsForProspectPrinting(
 }
 
 // returns true while there is more to do
-bool SwDoc::IncrementalDocStatCalculate(long nChars)
+bool SwDoc::IncrementalDocStatCalculate( long nChars, bool bFields )
 {
 pDocStat->Reset();
 pDocStat->nPara = 0; // default is 1!
@@ -1771,8 +1771,11 @@ bool SwDoc::IncrementalDocStatCalculate(long nChars)
 }
 
 // optionally update stat. fields
-SwFieldType *pType = GetSysFldType(RES_DOCSTATFLD);
-pType->UpdateFlds();
+if (bFields)
+{
+SwFieldType *pType = GetSysFldType(RES_DOCSTATFLD);
+pType->UpdateFlds();
+}
 
 return nChars <= 0;
 }
@@ -1780,7 +1783,7 @@ bool SwDoc::IncrementalDocStatCalculate(long nChars)
 IMPL_LINK( SwDoc, DoIdleStatsUpdate, Timer *, pTimer )
 {
 (void)pTimer;
-if (IncrementalDocStatCalculate(32000))
+if (IncrementalDocStatCalculate(32000, true))
 aStatsUpdateTimer.Start();
 
 SwView* pView = GetDocShell() ? Get

Re: Langpack FR 4.1 for OSX applescript launched mdfind scans whole disk from root folder

2013-08-29 Thread Alexander Thurgood
Le 29/08/13 12:30, Alexander Thurgood a écrit :

Seems that commit bd242a8768b8e2f457af581c782ef8a9f2ba0be7 was
responsible for this change.


Alex


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


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

2013-08-29 Thread Michael Stahl
 editeng/source/items/numitem.cxx |   11 ++-
 1 file changed, 6 insertions(+), 5 deletions(-)

New commits:
commit 09a894477f326af5683a8f5e51038e0c88453806
Author: Michael Stahl 
Date:   Wed Aug 28 23:19:43 2013 +0200

fdo#68648: SvxNumRule: serialize the aFmtsSet flags too

The constructor of SvxNumRule initializes aFmts[i] with a format but
always sets aFmtsSet[i] to false, so SvxNumRule::Store()
and SvxNumRule::SvxNumRule(SvStream &rStream) need to be able
to round-trip that combination to prevent spurious numberings.

It is unlikely that this class is serialized in the table auto-format
files but i haven't checked; this change does not change the size of the
serialization so shouldn't cause trouble anyway.

(regression from a95cce27295f9cd255fa72eaded00972e3efb69b)

Change-Id: I589ea108ac069624aaa7b26cdc3bfe8182b15851
(cherry picked from commit 4b798d89a55714218dc9a7de161f93f9c4d6fc80)
Reviewed-on: https://gerrit.libreoffice.org/5671
Reviewed-by: Fridrich Strba 
Tested-by: Fridrich Strba 

diff --git a/editeng/source/items/numitem.cxx b/editeng/source/items/numitem.cxx
index 973dd63..7090abc 100644
--- a/editeng/source/items/numitem.cxx
+++ b/editeng/source/items/numitem.cxx
@@ -694,15 +694,15 @@ SvxNumRule::SvxNumRule( SvStream &rStream )
 for (sal_uInt16 i = 0; i < SVX_MAX_NUM; i++)
 {
 rStream >> nTmp16;
-sal_Bool hasNumberingFormat = nTmp16;
+sal_Bool hasNumberingFormat = nTmp16 & 1;
+aFmtsSet[i] = nTmp16 & 2; // fdo#68648 reset flag
 if ( hasNumberingFormat ){
 aFmts[i] = new SvxNumberFormat( rStream );
-aFmtsSet[i] = sal_True;
 }
 else
 {
 aFmts[i] = 0;
-aFmtsSet[i] = sal_False;
+aFmtsSet[i] = sal_False; // actually only false is valid
 }
 }
 //second nFeatureFlags for new versions
@@ -727,9 +727,10 @@ SvStream& SvxNumRule::Store( SvStream &rStream )
 sal_Bool bConvertBulletFont = ( rStream.GetVersion() <= 
SOFFICE_FILEFORMAT_50 ) && ( rStream.GetVersion() );
 for(sal_uInt16 i = 0; i < SVX_MAX_NUM; i++)
 {
+sal_uInt16 nSetFlag(aFmtsSet[i] ? 2 : 0); // fdo#68648 store that too
 if(aFmts[i])
 {
-rStream << sal_uInt16(1);
+rStream << sal_uInt16(1 | nSetFlag);
 if(bConvertBulletFont && aFmts[i]->GetBulletFont())
 {
 if(!pConverter)
@@ -740,7 +741,7 @@ SvStream& SvxNumRule::Store( SvStream &rStream )
 aFmts[i]->Store(rStream, pConverter);
 }
 else
-rStream << sal_uInt16(0);
+rStream << sal_uInt16(0 | nSetFlag);
 }
 //second save of nFeatureFlags for new versions
 rStream<<(sal_uInt16)nFeatureFlags;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2013-08-29 Thread Tor Lillqvist
 cui/source/dialogs/about.cxx |   11 +++
 1 file changed, 7 insertions(+), 4 deletions(-)

New commits:
commit c83ee34a642ead0007b69b2dd93e18d25e6606fa
Author: Tor Lillqvist 
Date:   Thu Aug 29 14:50:10 2013 +0300

Include  for EXTRA_BUILDID

Fix loplugin error: checking whether a config macro EXTRA_BUILDID is 
defined.

Change-Id: Ieb04a8da4dc54b41f4df1d63b5e70ffb7ca7bb01

diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index 73fe04e..54d4fbf 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -17,6 +17,8 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
+#include 
+
 #include 
 #include 
 #include 
@@ -242,10 +244,11 @@ OUString AboutDialog::GetVersionString()
 sVersion += m_sBuildStr.replaceAll("$BUILDID", sBuildId);
 }
 
-#ifdef EXTRA_BUILDID
-sVersion += "\n";
-sVersion += EXTRA_BUILDID;
-#endif
+if (strlen(EXTRA_BUILDID) > 0)
+{
+sVersion += "\n";
+sVersion += EXTRA_BUILDID;
+}
 
 return sVersion;
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2013-08-29 Thread Michael Stahl
 comphelper/source/misc/accessibleeventnotifier.cxx |   33 -
 1 file changed, 19 insertions(+), 14 deletions(-)

New commits:
commit 9888a00405dc320e12ca2fc12446b85572144795
Author: Michael Stahl 
Date:   Tue Aug 27 21:43:48 2013 +0200

rhbz#1001768: avoid deadlock in AccessibleEventNotifier

revokeClientNotifyDisposing(): drop the static lclMutex before calling
pListeners->disposeAndClear(), which may want to acquire the SolarMutex
and deadlock.

Change-Id: Ib35fc7fad6596450a3b10d58d5193b9b55c575cb
(cherry picked from commit cafff1bbc4effac74bbd2607fb83dd2547c8fa2e)
Reviewed-on: https://gerrit.libreoffice.org/5659
Reviewed-by: Fridrich Strba 
Tested-by: Fridrich Strba 

diff --git a/comphelper/source/misc/accessibleeventnotifier.cxx 
b/comphelper/source/misc/accessibleeventnotifier.cxx
index e6e88de..14ac88c7 100644
--- a/comphelper/source/misc/accessibleeventnotifier.cxx
+++ b/comphelper/source/misc/accessibleeventnotifier.cxx
@@ -133,29 +133,34 @@ namespace comphelper
 void AccessibleEventNotifier::revokeClientNotifyDisposing( const TClientId 
_nClient,
 const Reference< XInterface >& _rxEventSource ) SAL_THROW( ( ) )
 {
-::osl::MutexGuard aGuard( lclMutex::get() );
+EventListeners * pListeners(0);
 
-ClientMap::iterator aClientPos;
-if ( !implLookupClient( _nClient, aClientPos ) )
-// already asserted in implLookupClient
-return;
+{
+// rhbz#1001768 drop the mutex before calling disposeAndClear
+::osl::MutexGuard aGuard( lclMutex::get() );
+
+ClientMap::iterator aClientPos;
+if (!implLookupClient(_nClient, aClientPos))
+// already asserted in implLookupClient
+return;
+
+// notify the listeners
+pListeners = aClientPos->second;
+
+// we do not need the entry in the clients map anymore
+// (do this before actually notifying, because some client
+// implementations have re-entrance problems and call into
+// revokeClient while we are notifying from here)
+Clients::get().erase(aClientPos);
+}
 
 // notify the "disposing" event for this client
 EventObject aDisposalEvent;
 aDisposalEvent.Source = _rxEventSource;
 
-// notify the listeners
-EventListeners* pListeners = aClientPos->second;
-
-// we do not need the entry in the clients map anymore
-// (do this before actually notifying, because some client 
implementations have re-entrance
-// problems and call into revokeClient while we are notifying from 
hereing)
-Clients::get().erase( aClientPos );
-
 // now really do the notification
 pListeners->disposeAndClear( aDisposalEvent );
 delete pListeners;
-
 }
 
 //-
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - config_host/config_buildid.h.in config_host.mk.in configure.ac cui/Library_cui.mk cui/source

2013-08-29 Thread Petr Mladek
 config_host.mk.in   |1 -
 config_host/config_buildid.h.in |   10 ++
 configure.ac|3 ++-
 cui/Library_cui.mk  |1 -
 cui/source/dialogs/about.cxx|1 +
 5 files changed, 13 insertions(+), 3 deletions(-)

New commits:
commit ea316c964a8e4405ccbfdd0f27b5e07ede2c5239
Author: Petr Mladek 
Date:   Thu Aug 29 13:14:29 2013 +0200

make the tinderbox information more reliable in the about dialog (fdo#58034)

Pass the information via config_host/config_buildid.h. Then
cui/source/dialogs/about.cxx will get rebuilt also in the incremental build.

Change-Id: I058cbe162e7015cbea6c71253c20db097477708f
Reviewed-on: https://gerrit.libreoffice.org/5677
Reviewed-by: Fridrich Strba 
Tested-by: Fridrich Strba 

diff --git a/config_host.mk.in b/config_host.mk.in
index 48667ca..9268c7b 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -368,7 +368,6 @@ export NUMBERTEXT_EXTENSION_PACK=@NUMBERTEXT_EXTENSION_PACK@
 export nodep=@nodep@
 @x_OBJCFLAGS@ export OBJCFLAGS=@OBJCFLAGS@
 @x_OBJCXXFLAGS@ export OBJCXXFLAGS=@OBJCXXFLAGS@
-export EXTRA_BUILDID=@EXTRA_BUILDID@
 export OBJDUMP=@OBJDUMP@
 export ODFGEN_CFLAGS=$(gb_SPACE)@ODFGEN_CFLAGS@
 export ODFGEN_LIBS=$(gb_SPACE)@ODFGEN_LIBS@
diff --git a/config_host/config_buildid.h.in b/config_host/config_buildid.h.in
new file mode 100644
index 000..04f03b8
--- /dev/null
+++ b/config_host/config_buildid.h.in
@@ -0,0 +1,10 @@
+/*
+Optional Build ID displayed in the about dialog
+*/
+
+#ifndef CONFIG_BUILDID_H
+#define CONFIG_BUILDID_H
+
+#undef EXTRA_BUILDID
+
+#endif
diff --git a/configure.ac b/configure.ac
index fd531de..1d5acd2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11485,7 +11485,7 @@ if test -n "$with_extra_buildid" -a 
"$with_extra_buildid" != "yes" ; then
 else
 AC_MSG_RESULT([not set])
 fi
-AC_SUBST(EXTRA_BUILDID)
+AC_DEFINE_UNQUOTED([EXTRA_BUILDID], ["$EXTRA_BUILDID"])
 
 OOO_VENDOR=
 AC_MSG_CHECKING([for vendor])
@@ -11900,6 +11900,7 @@ if test -f config_host.mk; then
 fi
 
 AC_CONFIG_FILES([config_host.mk Makefile lo.xcent 
instsetoo_native/util/openoffice.lst])
+AC_CONFIG_HEADERS([config_host/config_buildid.h])
 AC_CONFIG_HEADERS([config_host/config_clang.h])
 AC_CONFIG_HEADERS([config_host/config_features.h])
 AC_CONFIG_HEADERS([config_host/config_global.h])
diff --git a/cui/Library_cui.mk b/cui/Library_cui.mk
index ade10e4..987481b 100644
--- a/cui/Library_cui.mk
+++ b/cui/Library_cui.mk
@@ -21,7 +21,6 @@ $(eval $(call gb_Library_add_defs,cui,\
 $(if $(filter TRUE,$(ENABLE_TDE)),-DENABLE_TDE) \
 $(if $(filter TRUE,$(ENABLE_KDE)),-DENABLE_KDE) \
 $(if $(filter TRUE,$(ENABLE_KDE4)),-DENABLE_KDE4) \
-$(if $(EXTRA_BUILDID),-DEXTRA_BUILDID=\""$(EXTRA_BUILDID)"\") \
 ))
 
 $(eval $(call gb_Library_use_custom_headers,cui,\
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index ee943f8..73fe04e 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -42,6 +42,7 @@
 #include 
 #include 
 #include "about.hxx"
+#include 
 #include 
 #include 
 #include 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] help.git: Branch 'libreoffiec-4-1' - 0 commits -

2013-08-29 Thread Unknown
Rebased ref, commits from common ancestor:
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] help.git: Branch 'libreoffice-4-1' - helpers/help_hid.lst source/text

2013-08-29 Thread Caolán McNamara
 helpers/help_hid.lst   |   10 --
 source/text/shared/01/05020300.xhp |   58 ++---
 source/text/shared/01/05340300.xhp |   46 ++---
 3 files changed, 52 insertions(+), 62 deletions(-)

New commits:
commit 0d8b37cd9e0b89d1136b09a81671c88fc91fee3e
Author: Caolán McNamara 
Date:   Thu Aug 29 11:52:10 2013 +0100

text alignment help text got detacted from the tabpage

(cherry picked from commit 2ce8cb8c7b0ee203f2df743849e959949ccc2fc1)

Change-Id: Idf28d8a969f01761e82b32c12ee2b9ab745719ed

numberformatpage->numberingformatpage

Change-Id: Idb74e753b64e3d575d5a951a0cdca6aae69f543d
(cherry picked from commit fad218bb130d6134c05206e0018ed50834829fd4)

diff --git a/helpers/help_hid.lst b/helpers/help_hid.lst
index a73fe62..100bf46 100644
--- a/helpers/help_hid.lst
+++ b/helpers/help_hid.lst
@@ -7554,9 +7554,6 @@ svx_ListBox_RID_SVXFLOAT_3D_LB_MAT_EMISSION,3388493428,
 svx_ListBox_RID_SVXFLOAT_3D_LB_MAT_FAVORITES,3388493437,
 svx_ListBox_RID_SVXFLOAT_3D_LB_MAT_SPECULAR,3388493431,
 svx_ListBox_RID_SVXFLOAT_3D_LB_SHADEMODE,3388493358,
-svx_ListBox_RID_SVXPAGE_ALIGNMENT_LB_FRAMEDIR,702189100,
-svx_ListBox_RID_SVXPAGE_ALIGNMENT_LB_HORALIGN,702189068,
-svx_ListBox_RID_SVXPAGE_ALIGNMENT_LB_VERALIGN,702189072,
 svx_ListBox_RID_SVXPAGE_ALIGN_PARAGRAPH_LB_LASTLINE,703778354,
 svx_ListBox_RID_SVXPAGE_ALIGN_PARAGRAPH_LB_TEXTDIRECTION,703778396,
 svx_ListBox_RID_SVXPAGE_ALIGN_PARAGRAPH_LB_VERTALIGN,703778340,
@@ -7651,7 +7648,6 @@ 
svx_MetricField_RID_SVXFLOAT_3D_MTR_FOCAL_LENGTH,3388496438,
 svx_MetricField_RID_SVXFLOAT_3D_MTR_MAT_SPECULAR_INTENSITY,3388496506,
 svx_MetricField_RID_SVXFLOAT_3D_MTR_PERCENT_DIAGONAL,3388496414,
 svx_MetricField_RID_SVXFLOAT_3D_MTR_SLANT,3388496433,
-svx_MetricField_RID_SVXPAGE_ALIGNMENT_ED_INDENT,702192142,
 svx_MetricField_RID_SVXPAGE_ANGLE_MTR_FLD_ANGLE,701504019,
 svx_MetricField_RID_SVXPAGE_ANGLE_MTR_FLD_POS_X,701504007,
 svx_MetricField_RID_SVXPAGE_ANGLE_MTR_FLD_POS_Y,701504008,
@@ -7807,7 +7803,6 @@ 
svx_NumericField_RID_SVXDLG_SEARCHSIMILARITY_NF_OTHER,1237964817,
 svx_NumericField_RID_SVXDLG_SEARCHSIMILARITY_NF_SHORTER,1237964819,
 svx_NumericField_RID_SVXFLOAT_3D_NUM_HORIZONTAL,3388495897,
 svx_NumericField_RID_SVXFLOAT_3D_NUM_VERTICAL,3388495899,
-svx_NumericField_RID_SVXPAGE_ALIGNMENT_NF_DEGREES,702191640,
 svx_NumericField_RID_SVXPAGE_AREA_NUM_FLD_STEPCOUNT,701634561,
 svx_NumericField_RID_SVXPAGE_GRID_NUM_FLD_DIVISION_X,703207437,
 svx_NumericField_RID_SVXPAGE_GRID_NUM_FLD_DIVISION_Y,703207438,
@@ -8052,11 +8047,6 @@ svx_TabPage_RID_SVXPAGE_MACROASSIGN,705560576,
 svx_TabPage_RID_SVXPAGE_TEXTANIMATION,703725568,
 svx_TabPage_RID_SVX_GRFFILTER_DLG_EMBOSS_TAB,706232320,
 svx_TabPage_RID_SVX_XFORMS_TABPAGES,832110592,
-svx_TriStateBox_RID_SVXPAGE_ALIGNMENT_BTN_ASIAN_VERTICAL,702187035,
-svx_TriStateBox_RID_SVXPAGE_ALIGNMENT_BTN_HYPH,702187050,
-svx_TriStateBox_RID_SVXPAGE_ALIGNMENT_BTN_SHRINK,702187053,
-svx_TriStateBox_RID_SVXPAGE_ALIGNMENT_BTN_TXTSTACKED,702187029,
-svx_TriStateBox_RID_SVXPAGE_ALIGNMENT_BTN_WRAP,702187049,
 svx_TriStateBox_RID_SVXPAGE_AREA_TSB_ORIGINAL,701629958,
 svx_TriStateBox_RID_SVXPAGE_AREA_TSB_SCALE,701629953,
 svx_TriStateBox_RID_SVXPAGE_AREA_TSB_STEPCOUNT,701629955,
diff --git a/source/text/shared/01/05020300.xhp 
b/source/text/shared/01/05020300.xhp
index c8ab7a0..9363b55 100644
--- a/source/text/shared/01/05020300.xhp
+++ b/source/text/shared/01/05020300.xhp
@@ -39,7 +39,7 @@
 
   mw transferred "format codes;" to Calc guide 
Format_value_userdef.xhp and "numers;" and "cells;" to Calc guide 
Format_table.xhp. Changed "currencies;"
   
-
+
   
 
   
@@ -49,9 +49,9 @@
 
   
 
-
+
   Category
-  Select a category 
from the list, and then select a formatting style in the Format 
box.
+  Select a category 
from the list, and then select a formatting style in the Format 
box.
   
 
   
@@ -62,67 +62,67 @@
   
 
   
-
+
   Format
-  Select how you want 
the contents of the selected cell(s) to be displayed. The code for the 
selected option is displayed in the Format Code box.
+  Select how you want 
the contents of the selected cell(s) to be displayed. The code for the 
selected option is displayed in the Format Code box.
   
-
+
   Currency category list boxes
-  Select a currency, 
and then scroll to the top of the Format list to view the 
formatting options for the currency.
+  Select a 
currency, and then scroll to the top of the Format list to view 
the formatting options for the currency.
   

The format code for currencies uses the form [$xxx-nnn], where xxx 
is the currency symbol, and nnn the country code. Special banking symbols, such 
as EUR (for Euro), do not require the country code. The currency format is not 
dependent on the language that you select in the Language box. 


   
   
-
+
   Language
-  Specifies the 
language setting for the selected cells 
+  Specifies the 
language setting for the selected cells 
 fields. W

[Libreoffice-commits] help.git: Changes to 'libreoffiec-4-1'

2013-08-29 Thread Caolán McNamara
New branch 'libreoffiec-4-1' available with the following commits:
commit 0d8b37cd9e0b89d1136b09a81671c88fc91fee3e
Author: Caolán McNamara 
Date:   Thu Aug 29 11:52:10 2013 +0100

text alignment help text got detacted from the tabpage

(cherry picked from commit 2ce8cb8c7b0ee203f2df743849e959949ccc2fc1)

Change-Id: Idf28d8a969f01761e82b32c12ee2b9ab745719ed

numberformatpage->numberingformatpage

Change-Id: Idb74e753b64e3d575d5a951a0cdca6aae69f543d
(cherry picked from commit fad218bb130d6134c05206e0018ed50834829fd4)

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


[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - helpcontent2

2013-08-29 Thread Caolán McNamara
 helpcontent2 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9000d1960d0ceae77ed236dc7c821a591f468fe3
Author: Caolán McNamara 
Date:   Thu Aug 29 11:52:10 2013 +0100

Updated core
Project: help  0d8b37cd9e0b89d1136b09a81671c88fc91fee3e

diff --git a/helpcontent2 b/helpcontent2
index 2fbadc6..0d8b37c 16
--- a/helpcontent2
+++ b/helpcontent2
@@ -1 +1 @@
-Subproject commit 2fbadc6dc2dc9ffb22764a41ec58cffb8674f926
+Subproject commit 0d8b37cd9e0b89d1136b09a81671c88fc91fee3e
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[PATCH] text alignment help text got detacted from the tabpage

2013-08-29 Thread via Code Review
Hi,

I would like you to review the following patch:

https://gerrit.libreoffice.org/5676

To pull it, you can do:

git pull ssh://gerrit.libreoffice.org:29418/help refs/changes/76/5676/1

text alignment help text got detacted from the tabpage

(cherry picked from commit 2ce8cb8c7b0ee203f2df743849e959949ccc2fc1)

Change-Id: Idf28d8a969f01761e82b32c12ee2b9ab745719ed

numberformatpage->numberingformatpage

Change-Id: Idb74e753b64e3d575d5a951a0cdca6aae69f543d
(cherry picked from commit fad218bb130d6134c05206e0018ed50834829fd4)
---
M helpers/help_hid.lst
M source/text/shared/01/05020300.xhp
M source/text/shared/01/05340300.xhp
3 files changed, 52 insertions(+), 62 deletions(-)



diff --git a/helpers/help_hid.lst b/helpers/help_hid.lst
index a73fe62..100bf46 100644
--- a/helpers/help_hid.lst
+++ b/helpers/help_hid.lst
@@ -7554,9 +7554,6 @@
 svx_ListBox_RID_SVXFLOAT_3D_LB_MAT_FAVORITES,3388493437,
 svx_ListBox_RID_SVXFLOAT_3D_LB_MAT_SPECULAR,3388493431,
 svx_ListBox_RID_SVXFLOAT_3D_LB_SHADEMODE,3388493358,
-svx_ListBox_RID_SVXPAGE_ALIGNMENT_LB_FRAMEDIR,702189100,
-svx_ListBox_RID_SVXPAGE_ALIGNMENT_LB_HORALIGN,702189068,
-svx_ListBox_RID_SVXPAGE_ALIGNMENT_LB_VERALIGN,702189072,
 svx_ListBox_RID_SVXPAGE_ALIGN_PARAGRAPH_LB_LASTLINE,703778354,
 svx_ListBox_RID_SVXPAGE_ALIGN_PARAGRAPH_LB_TEXTDIRECTION,703778396,
 svx_ListBox_RID_SVXPAGE_ALIGN_PARAGRAPH_LB_VERTALIGN,703778340,
@@ -7651,7 +7648,6 @@
 svx_MetricField_RID_SVXFLOAT_3D_MTR_MAT_SPECULAR_INTENSITY,3388496506,
 svx_MetricField_RID_SVXFLOAT_3D_MTR_PERCENT_DIAGONAL,3388496414,
 svx_MetricField_RID_SVXFLOAT_3D_MTR_SLANT,3388496433,
-svx_MetricField_RID_SVXPAGE_ALIGNMENT_ED_INDENT,702192142,
 svx_MetricField_RID_SVXPAGE_ANGLE_MTR_FLD_ANGLE,701504019,
 svx_MetricField_RID_SVXPAGE_ANGLE_MTR_FLD_POS_X,701504007,
 svx_MetricField_RID_SVXPAGE_ANGLE_MTR_FLD_POS_Y,701504008,
@@ -7807,7 +7803,6 @@
 svx_NumericField_RID_SVXDLG_SEARCHSIMILARITY_NF_SHORTER,1237964819,
 svx_NumericField_RID_SVXFLOAT_3D_NUM_HORIZONTAL,3388495897,
 svx_NumericField_RID_SVXFLOAT_3D_NUM_VERTICAL,3388495899,
-svx_NumericField_RID_SVXPAGE_ALIGNMENT_NF_DEGREES,702191640,
 svx_NumericField_RID_SVXPAGE_AREA_NUM_FLD_STEPCOUNT,701634561,
 svx_NumericField_RID_SVXPAGE_GRID_NUM_FLD_DIVISION_X,703207437,
 svx_NumericField_RID_SVXPAGE_GRID_NUM_FLD_DIVISION_Y,703207438,
@@ -8052,11 +8047,6 @@
 svx_TabPage_RID_SVXPAGE_TEXTANIMATION,703725568,
 svx_TabPage_RID_SVX_GRFFILTER_DLG_EMBOSS_TAB,706232320,
 svx_TabPage_RID_SVX_XFORMS_TABPAGES,832110592,
-svx_TriStateBox_RID_SVXPAGE_ALIGNMENT_BTN_ASIAN_VERTICAL,702187035,
-svx_TriStateBox_RID_SVXPAGE_ALIGNMENT_BTN_HYPH,702187050,
-svx_TriStateBox_RID_SVXPAGE_ALIGNMENT_BTN_SHRINK,702187053,
-svx_TriStateBox_RID_SVXPAGE_ALIGNMENT_BTN_TXTSTACKED,702187029,
-svx_TriStateBox_RID_SVXPAGE_ALIGNMENT_BTN_WRAP,702187049,
 svx_TriStateBox_RID_SVXPAGE_AREA_TSB_ORIGINAL,701629958,
 svx_TriStateBox_RID_SVXPAGE_AREA_TSB_SCALE,701629953,
 svx_TriStateBox_RID_SVXPAGE_AREA_TSB_STEPCOUNT,701629955,
diff --git a/source/text/shared/01/05020300.xhp 
b/source/text/shared/01/05020300.xhp
index c8ab7a0..9363b55 100644
--- a/source/text/shared/01/05020300.xhp
+++ b/source/text/shared/01/05020300.xhp
@@ -39,7 +39,7 @@
 
   mw transferred "format codes;" to Calc guide 
Format_value_userdef.xhp and "numers;" and "cells;" to Calc guide 
Format_table.xhp. Changed "currencies;"
   
-
+
   
 
   
@@ -49,9 +49,9 @@
 
   
 
-
+
   Category
-  Select a category 
from the list, and then select a formatting style in the Format 
box.
+  Select a category 
from the list, and then select a formatting style in the Format 
box.
   
 
   
@@ -62,67 +62,67 @@
   
 
   
-
+
   Format
-  Select how you want 
the contents of the selected cell(s) to be displayed. The code for the 
selected option is displayed in the Format Code box.
+  Select how you want 
the contents of the selected cell(s) to be displayed. The code for the 
selected option is displayed in the Format Code box.
   
-
+
   Currency category list boxes
-  Select a currency, 
and then scroll to the top of the Format list to view the 
formatting options for the currency.
+  Select a 
currency, and then scroll to the top of the Format list to view 
the formatting options for the currency.
   

The format code for currencies uses the form [$xxx-nnn], where xxx 
is the currency symbol, and nnn the country code. Special banking symbols, such 
as EUR (for Euro), do not require the country code. The currency format is not 
dependent on the language that you select in the Language box. 


   
   
-
+
   Language
-  Specifies the 
language setting for the selected cells 
+  Specifies the 
language setting for the selected cells 
 fields. With the 
language set to Automatic, $[officename] automatically applies the 
number formats associated with the system default language. Select any language 
to fix the settings for the selected cells 
 
fields.
   The language setting ensures that date and currency formats are 
preserved even when the d

[ABANDONED] text alignment help text got detacted from the tabpage

2013-08-29 Thread via Code Review
Caolán McNamara has abandoned this change.

Change subject: text alignment help text got detacted from the tabpage
..


Patch Set 1: Abandoned

-- 
To view, visit https://gerrit.libreoffice.org/5676
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: abandon
Gerrit-Change-Id: Idb74e753b64e3d575d5a951a0cdca6aae69f543d
Gerrit-PatchSet: 1
Gerrit-Project: help
Gerrit-Branch: master
Gerrit-Owner: Caolán McNamara 

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


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

2013-08-29 Thread Stephan Bergmann
 include/basebmp/packedpixeliterator.hxx |2 +-
 include/basebmp/polypolygonrenderer.hxx |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 616197d8077fa3936b609a41557036184d45367d
Author: Stephan Bergmann 
Date:   Thu Aug 29 13:30:44 2013 +0200

left shift of negative values (Clang -fsanitize=undefined)

Change-Id: I1747959bd51f066b017cbf5d161ebe37f3df02e6

diff --git a/include/basebmp/packedpixeliterator.hxx 
b/include/basebmp/packedpixeliterator.hxx
index 89a8850..55cc174 100644
--- a/include/basebmp/packedpixeliterator.hxx
+++ b/include/basebmp/packedpixeliterator.hxx
@@ -47,7 +47,7 @@ inline value_type get_mask( difference_type d )
 const unsigned int nIntraWordPositions( sizeof(value_type)*8 / 
bits_per_pixel );
 
 //  create bits_per_pixel 1s  shift to intra-word position
-return ((~(~0 << bits_per_pixel)) << bits_per_pixel*(MsbFirst ?
+return ((~(~0U << bits_per_pixel)) << bits_per_pixel*(MsbFirst ?
  
(nIntraWordPositions-1 - (d % nIntraWordPositions)) :
  (d % 
nIntraWordPositions)));
 }
diff --git a/include/basebmp/polypolygonrenderer.hxx 
b/include/basebmp/polypolygonrenderer.hxx
index 80f73ac..09bd18a 100644
--- a/include/basebmp/polypolygonrenderer.hxx
+++ b/include/basebmp/polypolygonrenderer.hxx
@@ -39,7 +39,7 @@ namespace basebmp
 namespace detail
 {
 /// convert int32 to 32:32 fixed point
-inline sal_Int64 toFractional( sal_Int32 v ) { return (sal_Int64)v << 
32; }
+inline sal_Int64 toFractional( sal_Int32 v ) { return 
sal_Int64(sal_uInt64(v) << 32); }
 /// convert double to 32:32 fixed point
 inline sal_Int64 toFractional( double v ) { return 
(sal_Int64)(v*SAL_MAX_UINT32 + (v < 0.0 ? -0.5 : 0.5 )); }
 /// convert 32:32 fixed point to int32 (truncate)
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: config_host/config_buildid.h.in config_host.mk.in configure.ac cui/Library_cui.mk cui/source

2013-08-29 Thread Petr Mladek
 config_host.mk.in   |1 -
 config_host/config_buildid.h.in |   10 ++
 configure.ac|3 ++-
 cui/Library_cui.mk  |1 -
 cui/source/dialogs/about.cxx|1 +
 5 files changed, 13 insertions(+), 3 deletions(-)

New commits:
commit 28cc89aad16e8ea3c9eec7f45749c1cfaaf1d7af
Author: Petr Mladek 
Date:   Thu Aug 29 13:14:29 2013 +0200

make the tinderbox information more reliable in the about dialog (fdo#58034)

Pass the information via config_host/config_buildid.h. Then
cui/source/dialogs/about.cxx will get rebuilt also in the incremental build.

Change-Id: I058cbe162e7015cbea6c71253c20db097477708f

diff --git a/config_host.mk.in b/config_host.mk.in
index 094f730..3b586af 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -387,7 +387,6 @@ export NUMBERTEXT_EXTENSION_PACK=@NUMBERTEXT_EXTENSION_PACK@
 export nodep=@nodep@
 @x_OBJCFLAGS@ export OBJCFLAGS=@OBJCFLAGS@
 @x_OBJCXXFLAGS@ export OBJCXXFLAGS=@OBJCXXFLAGS@
-export EXTRA_BUILDID=@EXTRA_BUILDID@
 export OBJDUMP=@OBJDUMP@
 export ODFGEN_CFLAGS=$(gb_SPACE)@ODFGEN_CFLAGS@
 export ODFGEN_LIBS=$(gb_SPACE)@ODFGEN_LIBS@
diff --git a/config_host/config_buildid.h.in b/config_host/config_buildid.h.in
new file mode 100644
index 000..04f03b8
--- /dev/null
+++ b/config_host/config_buildid.h.in
@@ -0,0 +1,10 @@
+/*
+Optional Build ID displayed in the about dialog
+*/
+
+#ifndef CONFIG_BUILDID_H
+#define CONFIG_BUILDID_H
+
+#undef EXTRA_BUILDID
+
+#endif
diff --git a/configure.ac b/configure.ac
index bda7c01..8647bdd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12115,7 +12115,7 @@ if test -n "$with_extra_buildid" -a 
"$with_extra_buildid" != "yes" ; then
 else
 AC_MSG_RESULT([not set])
 fi
-AC_SUBST(EXTRA_BUILDID)
+AC_DEFINE_UNQUOTED([EXTRA_BUILDID], ["$EXTRA_BUILDID"])
 
 OOO_VENDOR=
 AC_MSG_CHECKING([for vendor])
@@ -12539,6 +12539,7 @@ if test -f config_host.mk; then
 fi
 
 AC_CONFIG_FILES([config_host.mk Makefile lo.xcent 
instsetoo_native/util/openoffice.lst])
+AC_CONFIG_HEADERS([config_host/config_buildid.h])
 AC_CONFIG_HEADERS([config_host/config_clang.h])
 AC_CONFIG_HEADERS([config_host/config_features.h])
 AC_CONFIG_HEADERS([config_host/config_folders.h])
diff --git a/cui/Library_cui.mk b/cui/Library_cui.mk
index aafede3..0a08baa 100644
--- a/cui/Library_cui.mk
+++ b/cui/Library_cui.mk
@@ -23,7 +23,6 @@ $(eval $(call gb_Library_add_defs,cui,\
 $(if $(filter TRUE,$(ENABLE_TDE)),-DENABLE_TDE) \
 $(if $(filter TRUE,$(ENABLE_KDE)),-DENABLE_KDE) \
 $(if $(filter TRUE,$(ENABLE_KDE4)),-DENABLE_KDE4) \
-$(if $(EXTRA_BUILDID),-DEXTRA_BUILDID=\""$(EXTRA_BUILDID)"\") \
 ))
 
 $(eval $(call gb_Library_use_custom_headers,cui,\
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index ee943f8..73fe04e 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -42,6 +42,7 @@
 #include 
 #include 
 #include "about.hxx"
+#include 
 #include 
 #include 
 #include 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


Re: [PUSHED][PATCH] fdo#58942 Help: replace "Standard number format" by "General number format"

2013-08-29 Thread Caolán McNamara
On Fri, 2013-08-23 at 23:12 -0700, Laurent BP wrote:
> Hello,
> 
> Second try ;)
> 
> I'd like to submit a small patch for Help for Tools > Options > LibreOffice
> Calc > Calculate
> https://help.libreoffice.org/Common/Calculate#Limit_decimals_for_general_number_format
> use "General number format"
> and 
> https://help.libreoffice.org/Common/Calculate#Decimal_places
> use "Standard number format"

pushed now, thanks for that.

C.

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


[Libreoffice-commits] core.git: helpcontent2

2013-08-29 Thread Laurent Balland-Poirier
 helpcontent2 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1138f52d33bde427fba2fed0199e78210343
Author: Laurent Balland-Poirier 
Date:   Sat Aug 24 07:52:54 2013 +0200

Updated core
Project: help  ee477f38f8f425f5bde8105be49b9a6d9e5c4321

diff --git a/helpcontent2 b/helpcontent2
index fad218b..ee477f3 16
--- a/helpcontent2
+++ b/helpcontent2
@@ -1 +1 @@
-Subproject commit fad218bb130d6134c05206e0018ed50834829fd4
+Subproject commit ee477f38f8f425f5bde8105be49b9a6d9e5c4321
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] help.git: source/text

2013-08-29 Thread Laurent Balland-Poirier
 source/text/shared/optionen/01060500.xhp |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ee477f38f8f425f5bde8105be49b9a6d9e5c4321
Author: Laurent Balland-Poirier 
Date:   Sat Aug 24 07:52:54 2013 +0200

fdo#58942 Help Standard number format stands for General

Change-Id: Ifdd2022baaf3aaee2ddab5e47e5e4266c02e8ef8

diff --git a/source/text/shared/optionen/01060500.xhp 
b/source/text/shared/optionen/01060500.xhp
index ffbad49..43e95da 100644
--- a/source/text/shared/optionen/01060500.xhp
+++ b/source/text/shared/optionen/01060500.xhp
@@ -217,7 +217,7 @@
 
 Decimal places
-  Defines the number of decimals to 
be displayed for numbers with the Standard number format. The 
numbers are displayed as rounded numbers, but are not saved as rounded 
numbers.
+  Defines the number of decimals to 
be displayed for numbers with the General number format. The 
numbers are displayed as rounded numbers, but are not saved as rounded 
numbers.
 
 
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] help.git: 3 commits - helpers/help_hid.lst source/text

2013-08-29 Thread Caolán McNamara
 helpers/help_hid.lst |   12 --
 source/text/shared/01/05020300.xhp   |   58 +++
 source/text/shared/01/05340300.xhp   |   46 
 source/text/shared/optionen/01010400.xhp |5 +-
 4 files changed, 54 insertions(+), 67 deletions(-)

New commits:
commit fad218bb130d6134c05206e0018ed50834829fd4
Author: Caolán McNamara 
Date:   Thu Aug 29 11:54:41 2013 +0100

numberformatpage->numberingformatpage

Change-Id: Idb74e753b64e3d575d5a951a0cdca6aae69f543d

diff --git a/source/text/shared/01/05020300.xhp 
b/source/text/shared/01/05020300.xhp
index c8ab7a0..9363b55 100644
--- a/source/text/shared/01/05020300.xhp
+++ b/source/text/shared/01/05020300.xhp
@@ -39,7 +39,7 @@
 
   mw transferred "format codes;" to Calc guide 
Format_value_userdef.xhp and "numers;" and "cells;" to Calc guide 
Format_table.xhp. Changed "currencies;"
   
-
+
   
 
   
@@ -49,9 +49,9 @@
 
   
 
-
+
   Category
-  Select a category 
from the list, and then select a formatting style in the Format 
box.
+  Select a category 
from the list, and then select a formatting style in the Format 
box.
   
 
   
@@ -62,67 +62,67 @@
   
 
   
-
+
   Format
-  Select how you want 
the contents of the selected cell(s) to be displayed. The code for the 
selected option is displayed in the Format Code box.
+  Select how you want 
the contents of the selected cell(s) to be displayed. The code for the 
selected option is displayed in the Format Code box.
   
-
+
   Currency category list boxes
-  Select a currency, 
and then scroll to the top of the Format list to view the 
formatting options for the currency.
+  Select a 
currency, and then scroll to the top of the Format list to view 
the formatting options for the currency.
   

The format code for currencies uses the form [$xxx-nnn], where xxx 
is the currency symbol, and nnn the country code. Special banking symbols, such 
as EUR (for Euro), do not require the country code. The currency format is not 
dependent on the language that you select in the Language box. 


   
   
-
+
   Language
-  Specifies the 
language setting for the selected cells 
+  Specifies the 
language setting for the selected cells 
 fields. With the 
language set to Automatic, $[officename] automatically applies the 
number formats associated with the system default language. Select any language 
to fix the settings for the selected cells 
 
fields.
   The language setting ensures that date and currency formats are 
preserved even when the document is opened in an operating system that uses a 
different default language setting.
   
-
+
   Source format
-  Uses the same 
number format as the cells containing the data for the 
chart.
+  Uses the same 
number format as the cells containing the data for the 
chart.
   Options
   Specify the options for the selected format.
   
-
+
   Decimal places
-  Enter the number of 
decimal places that you want to display.
+  Enter the number 
of decimal places that you want to display.
   
-
+
   Leading zeroes
-  Enter the maximum 
number of zeroes to display in front of the decimal point.
+  Enter the 
maximum number of zeroes to display in front of the decimal 
point.
   
-
+
   Negative numbers in red
-  Changes the font 
color of negative numbers to red.
+  Changes the font 
color of negative numbers to red.
   
-
+
   Use thousands separator
-  Inserts a separator 
between thousands. The type of separator that is used depends on your language 
settings.
+  Inserts a 
separator between thousands. The type of separator that is used depends on your 
language settings.
   
-
+
   Format code
-  Displays the number 
format code for the selected format. You can also enter a custom 
format. The following options are only available for user-defined 
number formats.
+  Displays the 
number format code for the selected format. You can also enter a custom 
format. The following options are only available for user-defined 
number formats.
   
-
+
   Add
-  Adds the number format 
code that you entered to the user-defined category.
+  Adds the number format 
code that you entered to the user-defined category.
   
-
+
   Delete
-  Deletes the selected 
number format. The changes are effective after you restart 
$[officename].
+  Deletes the selected 
number format. The changes are effective after you restart 
$[officename].
   
-
+
   Edit Comment
-  Adds a comment to the 
selected number format.
+  Adds a comment to the 
selected number format.
   
-
+
   Name line
-  Enter a comment for 
the selected number format, and then click outside this box.
+  Enter a comment 
for the selected number format, and then click outside this 
box.
   
   

commit 2ce8cb8c7b0ee203f2df743849e959949ccc2fc1
Author: Caolán McNamara 
Date:   Thu Aug 29 11:52:10 2013 +0100

text alignment help text got detacted from the tabpage

Change-Id: Idf28d8a969f01761e82b32c12ee2b9ab745719ed

diff --git a/helpers

[Libreoffice-commits] core.git: helpcontent2

2013-08-29 Thread Caolán McNamara
 helpcontent2 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a932be6923abb6b9e6edea35de067136b58ec6bf
Author: Caolán McNamara 
Date:   Thu Aug 29 11:54:41 2013 +0100

Updated core
Project: help  fad218bb130d6134c05206e0018ed50834829fd4

diff --git a/helpcontent2 b/helpcontent2
index 16b65fa..fad218b 16
--- a/helpcontent2
+++ b/helpcontent2
@@ -1 +1 @@
-Subproject commit 16b65faf0107a28c44eb590e3c4b008781929366
+Subproject commit fad218bb130d6134c05206e0018ed50834829fd4
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2013-08-29 Thread Caolán McNamara
 cui/source/inc/cuires.hrc|5 -
 cui/source/options/optlingu.cxx  |  104 +++
 cui/source/options/optlingu.src  |   15 -
 cui/uiconfig/ui/breaknumberoption.ui |   86 
 4 files changed, 81 insertions(+), 129 deletions(-)

New commits:
commit bf431c912497d1f895d9d2f7bfe59adad7f093b7
Author: Caolán McNamara 
Date:   Thu Aug 29 10:55:42 2013 +0100

lets just switch directly on the EID_OPTIONS

and remove the intermediate resource ids used
as proxies for them

Change-Id: I3ef542d1eaef274dbefed0b0bb76c6e413c6ce80

diff --git a/cui/source/inc/cuires.hrc b/cui/source/inc/cuires.hrc
index e8960ba..d7fd464 100644
--- a/cui/source/inc/cuires.hrc
+++ b/cui/source/inc/cuires.hrc
@@ -422,11 +422,6 @@
 #define RID_SVXSTR_DEL_SPACES_AT_STT_END(RID_SVX_START + 
1223)
 #define RID_SVXSTR_DEL_SPACES_BETWEEN_LINES (RID_SVX_START + 
1224)
 
-// from optlingu.src
-#define STR_NUM_PRE_BREAK_DLG   (RID_SVX_START + 
1225)
-#define STR_NUM_POST_BREAK_DLG  (RID_SVX_START + 
1226)
-#define STR_NUM_MIN_WORDLEN_DLG (RID_SVX_START + 
1227)
-
 #endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx
index d771d29..5ba3f76 100644
--- a/cui/source/options/optlingu.cxx
+++ b/cui/source/options/optlingu.cxx
@@ -306,53 +306,6 @@ void BrwStringDic_Impl::Paint(
 rDev.SetFont( aOldFont );
 }
 
-class OptionsBreakSet : public ModalDialog
-{
-VclFrame*   m_pBeforeFrame;
-VclFrame*   m_pAfterFrame;
-VclFrame*   m_pMinimalFrame;
-NumericField*   m_pBreakNF;
-
-public:
-OptionsBreakSet(Window* pParent, int nRID) :
-ModalDialog(pParent, "BreakNumberOption", 
"cui/ui/breaknumberoption.ui")
-{
-get( m_pBeforeFrame, "beforeframe");
-get( m_pAfterFrame, "afterframe");
-get( m_pMinimalFrame, "miniframe");
-get( m_pBreakNF, "breaknumber");
-
-DBG_ASSERT( STR_NUM_PRE_BREAK_DLG   == nRID ||
-STR_NUM_POST_BREAK_DLG  == nRID ||
-STR_NUM_MIN_WORDLEN_DLG == nRID, "unexpected RID" );
-
-if ( nRID != -1 )
-{
-if( nRID == STR_NUM_PRE_BREAK_DLG )
-{
-m_pAfterFrame  ->Hide();
-m_pMinimalFrame->Hide();
-}
-if( nRID == STR_NUM_POST_BREAK_DLG )
-{
-m_pBeforeFrame ->Hide();
-m_pMinimalFrame->Hide();
-}
-if( nRID == STR_NUM_MIN_WORDLEN_DLG )
-{
-m_pAfterFrame ->Hide();
-m_pBeforeFrame->Hide();
-}
-}
-}
-
-NumericField&   GetNumericFld()
-{
-return *m_pBreakNF;
-}
-};
-
-
 /*--
 Entry IDs for options listbox of dialog
 --*/
@@ -387,13 +340,55 @@ static const char * aEidToPropName[] =
 UPN_IS_HYPH_SPECIAL // EID_HYPH_SPECIAL
 };
 
-
-static inline String lcl_GetPropertyName( EID_OPTIONS eEntryId )
+static inline OUString lcl_GetPropertyName( EID_OPTIONS eEntryId )
 {
 DBG_ASSERT( (unsigned int) eEntryId < SAL_N_ELEMENTS(aEidToPropName), 
"index out of range" );
 return OUString::createFromAscii( aEidToPropName[ (int) eEntryId ] );
 }
 
+class OptionsBreakSet : public ModalDialog
+{
+VclFrame*   m_pBeforeFrame;
+VclFrame*   m_pAfterFrame;
+VclFrame*   m_pMinimalFrame;
+NumericField*   m_pBreakNF;
+
+public:
+OptionsBreakSet(Window* pParent, sal_uInt16 nRID)
+: ModalDialog(pParent, "BreakNumberOption",
+"cui/ui/breaknumberoption.ui")
+{
+get(m_pBeforeFrame, "beforeframe");
+get(m_pAfterFrame, "afterframe");
+get(m_pMinimalFrame, "miniframe");
+
+assert(EID_NUM_PRE_BREAK == nRID ||
+   EID_NUM_POST_BREAK == nRID ||
+   EID_NUM_MIN_WORDLEN == nRID); //unexpected ID
+
+if (nRID == EID_NUM_PRE_BREAK)
+{
+m_pBeforeFrame->Show();
+get(m_pBreakNF, "beforebreak");
+}
+else if(nRID == EID_NUM_POST_BREAK)
+{
+m_pAfterFrame->Show();
+get(m_pBreakNF, "afterbreak");
+}
+else if(nRID == EID_NUM_MIN_WORDLEN)
+{
+m_pMinimalFrame->Show();
+get(m_pBreakNF, "wordlength");
+}
+}
+
+NumericField&   GetNumericFld()
+{
+return *m_pBreakNF;
+}
+};
+
 // class OptionsUserData -
 
 class OptionsUserData
@@ -1788,16 +1783,7 @@ IMPL_LINK( SvxLinguTabPage, ClickHdl_Impl, PushButton *, 
pBtn )
 OptionsUserData aData( (sal_uLong)pEntry->GetUserData() );
 if(a

  1   2   >