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

2012-01-06 Thread David Tardon
 basic/source/runtime/methods.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e4851f276624340401c0556015d681e574b178a6
Author: August Sodora aug...@gmail.com
Date:   Thu Jan 5 14:45:10 2012 -0500

fdo#44172: Basic function VAL produces bad result

Signed-off-by: David Tardon dtar...@redhat.com

diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index e3d5d48..352351e 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -128,7 +128,7 @@ static void FilterWhiteSpace( String rStr )
 if (!rStr.Len())
 return;
 
-rtl::OUStringBuffer aRet(rStr);
+rtl::OUStringBuffer aRet;
 
 for (xub_StrLen i = 0; i  rStr.Len(); ++i)
 {
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: sw/source

2012-01-06 Thread Cédric Bosdonnat
 sw/source/core/edit/edtox.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 41cd78b805a36d5676b2075a4860e9aee7bc5491
Author: Cédric Bosdonnat cedric.bosdonnat@free.fr
Date:   Fri Jan 6 10:01:22 2012 +0100

fdo#32726: search for index entries in the whole document, not only the body

diff --git a/sw/source/core/edit/edtox.cxx b/sw/source/core/edit/edtox.cxx
index 6ce4b44..3a178ed 100644
--- a/sw/source/core/edit/edtox.cxx
+++ b/sw/source/core/edit/edtox.cxx
@@ -428,7 +428,7 @@ void SwEditShell::ApplyAutoMark()
 // todo/mba: assuming that notes shouldn't be searched
 sal_Bool bSearchInNotes = sal_False;
 sal_uLong nRet = Find( aSearchOpt,  bSearchInNotes, 
DOCPOS_START, DOCPOS_END, bCancel,
-
(FindRanges)(FND_IN_SELALL|FND_IN_BODYONLY),
+
(FindRanges)(FND_IN_SELALL|FND_IN_BODYONLY|FND_IN_OTHER),
 sal_False );
 
 if(nRet)
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-01-06 Thread Cédric Bosdonnat
 sw/source/core/edit/edtox.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 376488f5747cdbcfc4905aa12a531a266303658d
Author: Cédric Bosdonnat cedric.bosdonnat@free.fr
Date:   Fri Jan 6 10:01:22 2012 +0100

fdo#32726: search for index entries in the whole document, not only the body

diff --git a/sw/source/core/edit/edtox.cxx b/sw/source/core/edit/edtox.cxx
index ba104fc..282becc 100644
--- a/sw/source/core/edit/edtox.cxx
+++ b/sw/source/core/edit/edtox.cxx
@@ -430,7 +430,7 @@ void SwEditShell::ApplyAutoMark()
 // todo/mba: assuming that notes shouldn't be searched
 sal_Bool bSearchInNotes = sal_False;
 sal_uLong nRet = Find( aSearchOpt,  bSearchInNotes, 
DOCPOS_START, DOCPOS_END, bCancel,
-
(FindRanges)(FND_IN_SELALL|FND_IN_BODYONLY),
+
(FindRanges)(FND_IN_SELALL|FND_IN_BODYONLY|FND_IN_OTHER),
 sal_False );
 
 if(nRet)
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-01-06 Thread David Tardon
 svtools/source/graphic/graphic.hxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 47c85a818ecd956d26fa7790ca9c0e7835c5c0b0
Author: Matúš Kukan matus.ku...@gmail.com
Date:   Sat Dec 17 13:29:50 2011 +0100

gcc-trunk: avoid confusion

Signed-off-by: David Tardon dtar...@redhat.com

diff --git a/svtools/source/graphic/graphic.hxx 
b/svtools/source/graphic/graphic.hxx
index 7b4f5e0..a1efca0 100644
--- a/svtools/source/graphic/graphic.hxx
+++ b/svtools/source/graphic/graphic.hxx
@@ -58,7 +58,7 @@ public:
 Graphic();
 ~Graphic() throw();
 
-using unographic::GraphicDescriptor::init;
+using ::unographic::GraphicDescriptor::init;
 void init( const ::Graphic rGraphic ) throw();
 
 static const ::Graphic* getImplementation( const 
::com::sun::star::uno::Reference ::com::sun::star::uno::XInterface  rxIFace 
) throw();
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: xmloff/source

2012-01-06 Thread Cédric Bosdonnat
 xmloff/source/style/PageMasterExportPropMapper.cxx |   10 ++
 1 file changed, 2 insertions(+), 8 deletions(-)

New commits:
commit 0100280a5c5b121fab2aa932092a7a887bbb507c
Author: Cédric Bosdonnat cedric.bosdonnat@free.fr
Date:   Fri Jan 6 10:33:19 2012 +0100

fdo#43862: reintroduce fo:margin-* on top of fo:margin for backward compat

diff --git a/xmloff/source/style/PageMasterExportPropMapper.cxx 
b/xmloff/source/style/PageMasterExportPropMapper.cxx
index ba0f45b..eedb4a4 100644
--- a/xmloff/source/style/PageMasterExportPropMapper.cxx
+++ b/xmloff/source/style/PageMasterExportPropMapper.cxx
@@ -151,14 +151,8 @@ void XMLPropertyStateBuffer::ContextFilter( ::std::vector 
XMLPropertyState  )
 pPMMarginLeft-maValue = nLeft;
 pPMMarginRight-maValue = nRight;
 
-if ((nTop == nBottom)  (nBottom == nLeft)  (nLeft == nRight))
-{
-lcl_RemoveState( pPMMarginTop );
-lcl_RemoveState( pPMMarginBottom );
-lcl_RemoveState( pPMMarginLeft );
-lcl_RemoveState( pPMMarginRight );
-}
-else
+// Don't remove the Margin Left,Right,Top,Bottom for backward 
compatibility
+if ((nTop != nBottom) || (nBottom != nLeft) || (nLeft != nRight))
 lcl_RemoveState( pPMMarginAll );
 }
 else
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: 3 commits - basic/source cairo/cairo cairo/cairo.dlsym.lcdfilter.patch cppu/source dbaccess/source editeng/source idl/source sc/source sfx2/source svl/source svtools/source sv

2012-01-06 Thread Caolán McNamara
 basic/source/basmgr/basmgr.cxx  |   15 ++-
 basic/source/classes/image.cxx  |   11 ++---
 basic/source/classes/sbxmod.cxx |4 --
 basic/source/runtime/methods1.cxx   |3 -
 cairo/cairo.dlsym.lcdfilter.patch   |   56 
 cairo/cairo/makefile.mk |4 +-
 cppu/source/typelib/typelib.cxx |2 -
 dbaccess/source/ui/tabledesign/TableRow.cxx |9 ++--
 editeng/source/editeng/editobj.cxx  |6 +--
 editeng/source/items/bulitem.cxx|7 +--
 editeng/source/items/flditem.cxx|2 -
 editeng/source/items/frmitems.cxx   |5 +-
 editeng/source/items/textitem.cxx   |8 ++--
 idl/source/objects/module.cxx   |2 -
 sc/source/core/data/patattr.cxx |2 -
 sc/source/core/tool/autoform.cxx|4 +-
 sc/source/core/tool/ddelink.cxx |6 +--
 sc/source/core/tool/zforauto.cxx|2 -
 sfx2/source/appl/appmisc.cxx|5 +-
 svl/source/items/poolitem.cxx   |5 +-
 svl/source/numbers/zformat.cxx  |2 -
 svtools/source/misc/templatefoldercache.cxx |6 +--
 svtools/source/misc/transfer.cxx|4 +-
 svx/source/items/hlnkitem.cxx   |   16 
 svx/source/items/pageitem.cxx   |3 -
 sw/source/core/doc/tblafmt.cxx  |8 ++--
 sw/source/ui/config/uinums.cxx  |   14 +++
 tools/inc/tools/stream.hxx  |2 -
 tools/source/stream/stream.cxx  |   21 +-
 vcl/source/gdi/font.cxx |4 +-
 vcl/source/gdi/metaact.cxx  |8 ++--
 31 files changed, 143 insertions(+), 103 deletions(-)

New commits:
commit 79f5f4c97188e8584aceb6af98473c06f40f7500
Author: Caolán McNamara caol...@redhat.com
Date:   Fri Jan 6 09:37:16 2012 +

Resolves: fdo#44219 RHEL-4 buildbox doesn't have FT_Library_SetLcdFilter

diff --git a/cairo/cairo.dlsym.lcdfilter.patch 
b/cairo/cairo.dlsym.lcdfilter.patch
new file mode 100644
index 000..46f7ac7
--- /dev/null
+++ b/cairo/cairo.dlsym.lcdfilter.patch
@@ -0,0 +1,56 @@
+--- misc/cairo-1.10.2/src/cairo-ft-font.c  2012-01-06 09:09:21.500373823 
+
 misc/build/cairo-1.10.2/src/cairo-ft-font.c2012-01-06 
09:31:01.645238786 +
+@@ -59,6 +59,8 @@
+ 
+ #if HAVE_FT_LIBRARY_SETLCDFILTER
+ #include FT_LCD_FILTER_H
++#elif HAVE_DLFCN_H
++#include dlfcn.h
+ #endif
+ 
+ /* Fontconfig version older than 2.6 didn't have these options */
+@@ -1217,6 +1219,26 @@
+ return CAIRO_STATUS_SUCCESS;
+ }
+ 
++static void try_FT_Library_SetLcdFilter( FT_Library library,
++int lcd_filter )
++{
++#if HAVE_FT_LIBRARY_SETLCDFILTER
++FT_Library_SetLcdFilter (library, lcd_filter);
++#elif HAVE_DLFCN_H
++static void (*pFT_Library_SetLcdFilter) (FT_Library, int);
++static int dlsymed = 0;
++
++if (!dlsymed)
++{
++pFT_Library_SetLcdFilter = dlsym(RTLD_DEFAULT, 
FT_Library_SetLcdFilter);
++dlsymed = 1;
++}
++
++if (pFT_Library_SetLcdFilter)
++  (*pFT_Library_SetLcdFilter) (library, lcd_filter); 
++#endif
++}
++
+ /* Converts an outline FT_GlyphSlot into an image
+  *
+  * This could go through _render_glyph_bitmap as well, letting
+@@ -1350,15 +1372,11 @@
+   break;
+   }
+ 
+-#if HAVE_FT_LIBRARY_SETLCDFILTER
+-  FT_Library_SetLcdFilter (library, lcd_filter);
+-#endif
++  try_FT_Library_SetLcdFilter(library, lcd_filter);
+ 
+   fterror = FT_Render_Glyph (face-glyph, render_mode);
+ 
+-#if HAVE_FT_LIBRARY_SETLCDFILTER
+-  FT_Library_SetLcdFilter (library, FT_LCD_FILTER_NONE);
+-#endif
++  try_FT_Library_SetLcdFilter(library, FT_LCD_FILTER_NONE);
+ 
+   if (fterror != 0)
+   return _cairo_error (CAIRO_STATUS_NO_MEMORY);
diff --git a/cairo/cairo/makefile.mk b/cairo/cairo/makefile.mk
index 7f84e3d..1c06c74 100644
--- a/cairo/cairo/makefile.mk
+++ b/cairo/cairo/makefile.mk
@@ -47,7 +47,9 @@ CAIROVERSION=1.10.2
 TARFILE_NAME=$(PRJNAME)-$(CAIROVERSION)
 TARFILE_MD5=f101a9e88b783337b20b2e26dfd26d5f
 
-PATCH_FILES=..$/$(TARFILE_NAME).patch
+PATCH_FILES=\
+..$/cairo-1.10.2.patch \
+..$/cairo.dlsym.lcdfilter.patch
 
 .IF $(OS)$(COM) == WNTMSC
 PATCH_FILES+= ..$/$(TARFILE_NAME).wntmsc.patch
commit 504e01e52e38583c6bcbd620973b314596633cdb
Author: Caolán McNamara caol...@redhat.com
Date:   Fri Jan 6 08:59:45 2012 +

typo in OSL_DEBUG_LEVEL  1 code

diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index a0ed525..169d29d 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -737,7 +737,7 @@ extern C void SAL_CALL typelib_typedescription_newEmpty(
 pRet = (typelib_TypeDescription *)pTmp;
 #if OSL_DEBUG_LEVEL  1
 osl_incrementInterlockedCount(
-

[Libreoffice-commits] .: fpicker/source

2012-01-06 Thread Lubos Lunak
 fpicker/source/unx/kde4/KDE4FilePicker.cxx |8 
 1 file changed, 8 insertions(+)

New commits:
commit 0d7e2108425da1f81c20a605145679168486df59
Author: Luboš Luňák l.lu...@suse.cz
Date:   Fri Jan 6 10:55:03 2012 +0100

workaround for LO namespace pollution breaking KDE4 fpicker build

diff --git a/fpicker/source/unx/kde4/KDE4FilePicker.cxx 
b/fpicker/source/unx/kde4/KDE4FilePicker.cxx
index f282645..69be3b1 100644
--- a/fpicker/source/unx/kde4/KDE4FilePicker.cxx
+++ b/fpicker/source/unx/kde4/KDE4FilePicker.cxx
@@ -56,7 +56,10 @@
 #define Region QtXRegion
 
 //kde has an enum that uses this...OO does too
+#define LO_SETTINGS_MOUSE SETTINGS_MOUSE
 #undef SETTINGS_MOUSE
+#define LO_SETTINGS_LOCALE SETTINGS_LOCALE
+#undef SETTINGS_LOCALE
 
 #include kfiledialog.h
 #include kwindowsystem.h
@@ -70,6 +73,11 @@
 
 #undef Region
 
+#define SETTINGS_MOUSE LO_SETTINGS_MOUSE
+#undef LO_SETTINGS_MOUSE
+#define SETTINGS_LOCALE LO_SETTINGS_LOCALE
+#undef LO_SETTINGS_LOCALE
+
 using namespace ::com::sun::star;
 
 using namespace ::com::sun::star::ui::dialogs;
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-01-06 Thread Lubos Lunak
 fpicker/source/unx/kde4/KDE4FilePicker.cxx |8 
 1 file changed, 8 insertions(+)

New commits:
commit 0c1cf6119556969f7875dc587905070e3f1b6f60
Author: Luboš Luňák l.lu...@suse.cz
Date:   Fri Jan 6 10:55:03 2012 +0100

workaround for LO namespace pollution breaking KDE4 fpicker build

diff --git a/fpicker/source/unx/kde4/KDE4FilePicker.cxx 
b/fpicker/source/unx/kde4/KDE4FilePicker.cxx
index f282645..69be3b1 100644
--- a/fpicker/source/unx/kde4/KDE4FilePicker.cxx
+++ b/fpicker/source/unx/kde4/KDE4FilePicker.cxx
@@ -56,7 +56,10 @@
 #define Region QtXRegion
 
 //kde has an enum that uses this...OO does too
+#define LO_SETTINGS_MOUSE SETTINGS_MOUSE
 #undef SETTINGS_MOUSE
+#define LO_SETTINGS_LOCALE SETTINGS_LOCALE
+#undef SETTINGS_LOCALE
 
 #include kfiledialog.h
 #include kwindowsystem.h
@@ -70,6 +73,11 @@
 
 #undef Region
 
+#define SETTINGS_MOUSE LO_SETTINGS_MOUSE
+#undef LO_SETTINGS_MOUSE
+#define SETTINGS_LOCALE LO_SETTINGS_LOCALE
+#undef LO_SETTINGS_LOCALE
+
 using namespace ::com::sun::star;
 
 using namespace ::com::sun::star::ui::dialogs;
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: connectivity/source

2012-01-06 Thread Caolán McNamara
 connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx |8 
 1 file changed, 8 insertions(+)

New commits:
commit 6be6357cce999e5a1a692da1f682847be3723587
Author: Caolán McNamara caol...@redhat.com
Date:   Fri Jan 6 10:24:30 2012 +

generic unix .mozilla dir is under home dir, not xdg-config-dir

diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx 
b/connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx
index 3625e56..4db639b 100644
--- a/connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx
+++ b/connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx
@@ -56,7 +56,15 @@ namespace
 ::osl::Security   aSecurity;
 ::rtl::OUString   aConfigPath;
 
+#if defined(XP_WIN) || defined(MACOSX)
 aSecurity.getConfigDir( aConfigPath );
+#else
+//This is to find the dir under which .mozilla/.thunderbird is created.
+//mozilla doesn't honour XDG_CONFIG_HOME, so raw home dir required here
+//not xdg-config dir
+aSecurity.getHomeDir( aConfigPath );
+#endif
+
 return aConfigPath + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(/));
 }
 
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: basegfx/CppunitTest_basegfx.mk basegfx/Executable_basegfx_cppunittester_all.mk basegfx/test unusedcode.easy

2012-01-06 Thread Matus Kukan
 basegfx/CppunitTest_basegfx.mk  |6 
 basegfx/Executable_basegfx_cppunittester_all.mk |1 
 basegfx/test/testtools.cxx  |  235 
 basegfx/test/testtools.hxx  |  101 --
 unusedcode.easy |4 
 5 files changed, 347 deletions(-)

New commits:
commit ef41022c112924b339b8c9a426b161d81aa8a947
Author: Matúš Kukan matus.ku...@gmail.com
Date:   Fri Jan 6 11:28:01 2012 +0100

unusedcode: remove Plotter

diff --git a/basegfx/CppunitTest_basegfx.mk b/basegfx/CppunitTest_basegfx.mk
index 2c3da08..3acabef 100644
--- a/basegfx/CppunitTest_basegfx.mk
+++ b/basegfx/CppunitTest_basegfx.mk
@@ -36,7 +36,6 @@ $(eval $(call 
gb_CppunitTest_add_exception_objects,basegfx_test, \
basegfx/test/basegfxtools \
basegfx/test/clipstate \
basegfx/test/genericclipper \
-   basegfx/test/testtools \
 ))
 
 $(eval $(call gb_CppunitTest_add_linked_libs,basegfx_test, \
@@ -47,11 +46,6 @@ $(eval $(call gb_CppunitTest_add_linked_libs,basegfx_test, \
 $(gb_STDLIBS) \
 ))
 
-$(eval $(call gb_CppunitTest_set_include,basegfx_test,\
-   $$(INCLUDE) \
-   -I$(OUTDIR)/inc/offuh \
-))
-
 $(eval $(call gb_CppunitTest_add_api,basegfx_test,\
 offapi \
 udkapi \
diff --git a/basegfx/Executable_basegfx_cppunittester_all.mk 
b/basegfx/Executable_basegfx_cppunittester_all.mk
index 0a6e80b..3c09e85 100644
--- a/basegfx/Executable_basegfx_cppunittester_all.mk
+++ b/basegfx/Executable_basegfx_cppunittester_all.mk
@@ -61,7 +61,6 @@ $(eval $(call 
gb_Executable_add_exception_objects,basegfx_cppunittester_all, \
basegfx/test/basegfxtools \
basegfx/test/clipstate \
basegfx/test/genericclipper \
-   basegfx/test/testtools \
 ))
 
 $(eval $(call gb_Executable_add_api,basegfx_cppunittester_all, \
diff --git a/basegfx/test/testtools.cxx b/basegfx/test/testtools.cxx
deleted file mode 100644
index f467c2d..000
--- a/basegfx/test/testtools.cxx
+++ /dev/null
@@ -1,235 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org.  If not, see
- * http://www.openoffice.org/license.html
- * for a copy of the LGPLv3 License.
- *
- /
-
-#include testtools.hxx
-
-#include basegfx/point/b2dpoint.hxx
-#include basegfx/vector/b2dvector.hxx
-#include basegfx/range/b2drange.hxx
-#include basegfx/curve/b2dcubicbezier.hxx
-#include basegfx/polygon/b2dpolygon.hxx
-#include basegfx/polygon/b2dpolypolygon.hxx
-
-#include algorithm
-
-
-namespace basegfx
-{
-namespace testtools
-{
-Plotter::Plotter( ::std::ostream rOutputStream ) :
-mrOutputStream(rOutputStream),
-maPoints(),
-mbFirstElement( true )
-{
-// output gnuplot setup. We switch gnuplot to parametric
-// mode, therefore every plot has at least _two_
-// functions: one for the x and one for the y value, both
-// depending on t.
-mrOutputStream  #!/usr/bin/gnuplot -persist  ::std::endl
-#  ::std::endl
-# automatically generated by 
basegfx::testtools::Plotter, don't change!  ::std::endl
-#  ::std::endl
-set parametric  ::std::endl
-// This function plots a cubic bezier curve. P,q,r,s
-// are the control point elements of the corresponding
-// output coordinate component (i.e. x components for
-// the x plot, and y components for the y plot)
-cubicBezier(p,q,r,s,t) = 
p*(1-t)**3+q*3*(1-t)**2*t+r*3*(1-t)*t**2+s*t**3  ::std::endl
-
-// This function plots the derivative of a cubic
-// bezier curve. P,q,r,s are the control point
-// components of the _original_ curve
-

[Libreoffice-commits] .: Branch 'libreoffice-3-5' - cairo/cairo cairo/cairo.dlsym.lcdfilter.patch

2012-01-06 Thread Jan Holesovsky
 cairo/cairo.dlsym.lcdfilter.patch |   56 ++
 cairo/cairo/makefile.mk   |4 ++
 2 files changed, 59 insertions(+), 1 deletion(-)

New commits:
commit d58120ef8b3012087c92406fc1dd4858df3807d0
Author: Caolán McNamara caol...@redhat.com
Date:   Fri Jan 6 09:37:16 2012 +

Resolves: fdo#44219 RHEL-4 buildbox doesn't have FT_Library_SetLcdFilter

diff --git a/cairo/cairo.dlsym.lcdfilter.patch 
b/cairo/cairo.dlsym.lcdfilter.patch
new file mode 100644
index 000..46f7ac7
--- /dev/null
+++ b/cairo/cairo.dlsym.lcdfilter.patch
@@ -0,0 +1,56 @@
+--- misc/cairo-1.10.2/src/cairo-ft-font.c  2012-01-06 09:09:21.500373823 
+
 misc/build/cairo-1.10.2/src/cairo-ft-font.c2012-01-06 
09:31:01.645238786 +
+@@ -59,6 +59,8 @@
+ 
+ #if HAVE_FT_LIBRARY_SETLCDFILTER
+ #include FT_LCD_FILTER_H
++#elif HAVE_DLFCN_H
++#include dlfcn.h
+ #endif
+ 
+ /* Fontconfig version older than 2.6 didn't have these options */
+@@ -1217,6 +1219,26 @@
+ return CAIRO_STATUS_SUCCESS;
+ }
+ 
++static void try_FT_Library_SetLcdFilter( FT_Library library,
++int lcd_filter )
++{
++#if HAVE_FT_LIBRARY_SETLCDFILTER
++FT_Library_SetLcdFilter (library, lcd_filter);
++#elif HAVE_DLFCN_H
++static void (*pFT_Library_SetLcdFilter) (FT_Library, int);
++static int dlsymed = 0;
++
++if (!dlsymed)
++{
++pFT_Library_SetLcdFilter = dlsym(RTLD_DEFAULT, 
FT_Library_SetLcdFilter);
++dlsymed = 1;
++}
++
++if (pFT_Library_SetLcdFilter)
++  (*pFT_Library_SetLcdFilter) (library, lcd_filter); 
++#endif
++}
++
+ /* Converts an outline FT_GlyphSlot into an image
+  *
+  * This could go through _render_glyph_bitmap as well, letting
+@@ -1350,15 +1372,11 @@
+   break;
+   }
+ 
+-#if HAVE_FT_LIBRARY_SETLCDFILTER
+-  FT_Library_SetLcdFilter (library, lcd_filter);
+-#endif
++  try_FT_Library_SetLcdFilter(library, lcd_filter);
+ 
+   fterror = FT_Render_Glyph (face-glyph, render_mode);
+ 
+-#if HAVE_FT_LIBRARY_SETLCDFILTER
+-  FT_Library_SetLcdFilter (library, FT_LCD_FILTER_NONE);
+-#endif
++  try_FT_Library_SetLcdFilter(library, FT_LCD_FILTER_NONE);
+ 
+   if (fterror != 0)
+   return _cairo_error (CAIRO_STATUS_NO_MEMORY);
diff --git a/cairo/cairo/makefile.mk b/cairo/cairo/makefile.mk
index fc0111c..3abc352 100644
--- a/cairo/cairo/makefile.mk
+++ b/cairo/cairo/makefile.mk
@@ -47,7 +47,9 @@ CAIROVERSION=1.10.2
 TARFILE_NAME=$(PRJNAME)-$(CAIROVERSION)
 TARFILE_MD5=f101a9e88b783337b20b2e26dfd26d5f
 
-PATCH_FILES=..$/$(TARFILE_NAME).patch
+PATCH_FILES=\
+..$/cairo-1.10.2.patch \
+..$/cairo.dlsym.lcdfilter.patch
 
 .IF $(OS)$(COM) == WNTMSC
 PATCH_FILES+= ..$/$(TARFILE_NAME).wntmsc.patch
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: starmath/source

2012-01-06 Thread Lubos Lunak
 starmath/source/ooxmlexport.cxx |2 +-
 starmath/source/ooxmlimport.cxx |5 -
 2 files changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 6977d658e16d7c2042eb4ac7db20a1aaf7b3beab
Author: Luboš Luňák l.lu...@suse.cz
Date:   Fri Jan 6 12:20:54 2012 +0100

write TBAR rather as an accent, use over/underline for m:bar

seems to match the docx semantics better, despite the names

diff --git a/starmath/source/ooxmlexport.cxx b/starmath/source/ooxmlexport.cxx
index a7740da..fd12301 100644
--- a/starmath/source/ooxmlexport.cxx
+++ b/starmath/source/ooxmlexport.cxx
@@ -324,6 +324,7 @@ void SmOoxmlExport::HandleAttribute( const SmAttributNode* 
pNode, int nLevel )
 case TWIDETILDE:
 case TWIDEHAT:
 case TWIDEVEC:
+case TBAR:
 {
 m_pSerializer-startElementNS( XML_m, XML_acc, FSEND );
 m_pSerializer-startElementNS( XML_m, XML_accPr, FSEND );
@@ -337,7 +338,6 @@ void SmOoxmlExport::HandleAttribute( const SmAttributNode* 
pNode, int nLevel )
 m_pSerializer-endElementNS( XML_m, XML_acc );
 break;
 }
-case TBAR:
 case TOVERLINE:
 case TUNDERLINE:
 m_pSerializer-startElementNS( XML_m, XML_bar, FSEND );
diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx
index 2fa59e1..6d40375 100644
--- a/starmath/source/ooxmlimport.cxx
+++ b/starmath/source/ooxmlimport.cxx
@@ -191,6 +191,9 @@ OUString SmOoxmlImport::handleAcc()
 OUString acc;
 switch( accChr )
 {
+case MS_BAR:
+acc = STR( bar );
+break;
 case MS_CHECK:
 acc = STR( check );
 break;
@@ -256,7 +259,7 @@ OUString SmOoxmlImport::handleBar()
 OUString e = readOMathArgInElement( M_TOKEN( e ));
 stream.ensureClosingTag( M_TOKEN( bar ));
 if( topbot == top )
-return STR( bar { ) + e + STR( } );
+return STR( overline { ) + e + STR( } );
 else
 return STR( underline { ) + e + STR( } );
 }
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-01-06 Thread Lubos Lunak
 starmath/source/ooxmlexport.cxx |2 +-
 starmath/source/ooxmlimport.cxx |5 -
 2 files changed, 5 insertions(+), 2 deletions(-)

New commits:
commit cedaffbc1323f7ae3dd0ba9426385e205ff513a7
Author: Luboš Luňák l.lu...@suse.cz
Date:   Fri Jan 6 12:20:54 2012 +0100

write TBAR rather as an accent, use over/underline for m:bar

seems to match the docx semantics better, despite the names

diff --git a/starmath/source/ooxmlexport.cxx b/starmath/source/ooxmlexport.cxx
index a7740da..fd12301 100644
--- a/starmath/source/ooxmlexport.cxx
+++ b/starmath/source/ooxmlexport.cxx
@@ -324,6 +324,7 @@ void SmOoxmlExport::HandleAttribute( const SmAttributNode* 
pNode, int nLevel )
 case TWIDETILDE:
 case TWIDEHAT:
 case TWIDEVEC:
+case TBAR:
 {
 m_pSerializer-startElementNS( XML_m, XML_acc, FSEND );
 m_pSerializer-startElementNS( XML_m, XML_accPr, FSEND );
@@ -337,7 +338,6 @@ void SmOoxmlExport::HandleAttribute( const SmAttributNode* 
pNode, int nLevel )
 m_pSerializer-endElementNS( XML_m, XML_acc );
 break;
 }
-case TBAR:
 case TOVERLINE:
 case TUNDERLINE:
 m_pSerializer-startElementNS( XML_m, XML_bar, FSEND );
diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx
index 1cdee7f..34c6831 100644
--- a/starmath/source/ooxmlimport.cxx
+++ b/starmath/source/ooxmlimport.cxx
@@ -191,6 +191,9 @@ OUString SmOoxmlImport::handleAcc()
 OUString acc;
 switch( accChr )
 {
+case MS_BAR:
+acc = STR( bar );
+break;
 case MS_CHECK:
 acc = STR( check );
 break;
@@ -256,7 +259,7 @@ OUString SmOoxmlImport::handleBar()
 OUString e = readOMathArgInElement( M_TOKEN( e ));
 stream.ensureClosingTag( M_TOKEN( bar ));
 if( topbot == top )
-return STR( bar { ) + e + STR( } );
+return STR( overline { ) + e + STR( } );
 else
 return STR( underline { ) + e + STR( } );
 }
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: starmath/source

2012-01-06 Thread Lubos Lunak
 starmath/source/node.cxx |   24 
 1 file changed, 12 insertions(+), 12 deletions(-)

New commits:
commit 608c927c0faac0b1e143cf50ce88003a2aaea73f
Author: Luboš Luňák l.lu...@suse.cz
Date:   Fri Jan 6 12:45:00 2012 +0100

symbolic names instead of hex values for math symbols where possible

diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index d5866cd..09d2ee8 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -2824,46 +2824,46 @@ void SmAttributNode::CreateTextFromNode(String rText)
 case 0xAF: // MACRON
 APPEND(rText,overline );
 break;
-case 0x2d9: // DOT ABOVE
+case MS_DOT: // DOT ABOVE
 APPEND(rText,dot );
 break;
 case 0x2dc: // SMALL TILDE
 APPEND(rText,widetilde );
 break;
-case 0xA8: // DIAERESIS
+case MS_DDOT: // DIAERESIS
 APPEND(rText,ddot );
 break;
 case 0xE082:
 break;
 case 0xE09B:
-case 0x20DB: // COMBINING THREE DOTS ABOVE
+case MS_DDDOT: // COMBINING THREE DOTS ABOVE
 APPEND(rText,dddot );
 break;
-case 0x301: // COMBINING ACUTE ACCENT
+case MS_ACUTE: // COMBINING ACUTE ACCENT
 APPEND(rText,acute );
 break;
-case 0x300: // COMBINING GRAVE ACCENT
+case MS_GRAVE: // COMBINING GRAVE ACCENT
 APPEND(rText,grave );
 break;
-case 0x30C: // COMBINING CARON
+case MS_CHECK: // COMBINING CARON
 APPEND(rText,check );
 break;
-case 0x306: // COMBINING BREVE
+case MS_BREVE: // COMBINING BREVE
 APPEND(rText,breve );
 break;
-case 0x30A: // COMBINING RING ABOVE
+case MS_CIRCLE: // COMBINING RING ABOVE
 APPEND(rText,circle );
 break;
-case 0x20D7: // COMBINING RIGHT ARROW ABOVE
+case MS_VEC: // COMBINING RIGHT ARROW ABOVE
 APPEND(rText,vec );
 break;
-case 0x303: // COMBINING TILDE
+case MS_TILDE: // COMBINING TILDE
 APPEND(rText,tilde );
 break;
-case 0x302: // COMBINING CIRCUMFLEX ACCENT
+case MS_HAT: // COMBINING CIRCUMFLEX ACCENT
 APPEND(rText,hat );
 break;
-case 0x304: // COMBINING MACRON
+case MS_BAR: // COMBINING MACRON
 APPEND(rText,bar );
 break;
 default:
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-01-06 Thread Lubos Lunak
 starmath/source/node.cxx |   36 
 1 file changed, 32 insertions(+), 4 deletions(-)

New commits:
commit c3e17714831bf80270a29a5e09194c8f141e42f3
Author: Joshua Cogliati jjcogliati...@yahoo.com
Date:   Fri Jan 6 10:48:01 2012 +

smath does not handle accents in MathML

diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 58010e7..d5866cd 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -2821,23 +2821,51 @@ void SmAttributNode::CreateTextFromNode(String rText)
 nLast = aStr.GetChar(0);
 switch (nLast)
 {
-case 0xAF:
+case 0xAF: // MACRON
 APPEND(rText,overline );
 break;
-case 0x2d9:
+case 0x2d9: // DOT ABOVE
 APPEND(rText,dot );
 break;
-case 0x2dc:
+case 0x2dc: // SMALL TILDE
 APPEND(rText,widetilde );
 break;
-case 0xA8:
+case 0xA8: // DIAERESIS
 APPEND(rText,ddot );
 break;
 case 0xE082:
 break;
 case 0xE09B:
+case 0x20DB: // COMBINING THREE DOTS ABOVE
 APPEND(rText,dddot );
 break;
+case 0x301: // COMBINING ACUTE ACCENT
+APPEND(rText,acute );
+break;
+case 0x300: // COMBINING GRAVE ACCENT
+APPEND(rText,grave );
+break;
+case 0x30C: // COMBINING CARON
+APPEND(rText,check );
+break;
+case 0x306: // COMBINING BREVE
+APPEND(rText,breve );
+break;
+case 0x30A: // COMBINING RING ABOVE
+APPEND(rText,circle );
+break;
+case 0x20D7: // COMBINING RIGHT ARROW ABOVE
+APPEND(rText,vec );
+break;
+case 0x303: // COMBINING TILDE
+APPEND(rText,tilde );
+break;
+case 0x302: // COMBINING CIRCUMFLEX ACCENT
+APPEND(rText,hat );
+break;
+case 0x304: // COMBINING MACRON
+APPEND(rText,bar );
+break;
 default:
 rText.Append(nLast);
 break;
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: sal/osl

2012-01-06 Thread Caolán McNamara
 sal/osl/unx/file.cxx |8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit c11bcb5be5a282864ffc35d2b29d530f07a7e8fd
Author: Caolán McNamara caol...@redhat.com
Date:   Fri Jan 6 12:10:45 2012 +

valgrind: error on startup in osl_unmapMappedFile

diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index bb31902..4bb30cf 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -1045,13 +1045,16 @@ SAL_CALL osl_closeFile( oslFileHandle Handle )
 {
 FileHandle_Impl* pImpl = static_castFileHandle_Impl*(Handle);
 
+if (pImpl == 0)
+return osl_File_E_INVAL;
+
 if (pImpl-m_kind == FileHandle_Impl::KIND_MEM)
 {
 delete pImpl;
 return osl_File_E_None;
 }
 
-if ((pImpl == 0) || (pImpl-m_fd  0))
+if (pImpl-m_fd  0)
 return osl_File_E_INVAL;
 
 (void) pthread_mutex_lock ((pImpl-m_mutex));
@@ -1239,6 +1242,9 @@ SAL_CALL osl_unmapMappedFile (oslFileHandle Handle, void* 
pAddr, sal_uInt64 uLen
 {
 FileHandle_Impl * pImpl = static_castFileHandle_Impl*(Handle);
 
+if (pImpl == 0)
+return osl_File_E_INVAL;
+
 if (pImpl-m_kind == FileHandle_Impl::KIND_FD)
 return unmapFile (pAddr, uLength);
 
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-01-06 Thread Andras Timar
 solenv/gbuild/Extension.mk |   21 ++---
 1 file changed, 18 insertions(+), 3 deletions(-)

New commits:
commit 7cebed268a11ae9193cd0d7323e32cd138c7ef9d
Author: Andras Timar ati...@suse.com
Date:   Fri Jan 6 14:51:07 2012 +0100

gbuild: fix extension localization on Windows

diff --git a/solenv/gbuild/Extension.mk b/solenv/gbuild/Extension.mk
index 7f004f6..0f1e092 100644
--- a/solenv/gbuild/Extension.mk
+++ b/solenv/gbuild/Extension.mk
@@ -36,13 +36,13 @@ endif
 gb_Extension_XRMEXTARGET := $(call gb_Executable_get_target,xrmex)
 gb_Extension_XRMEXCOMMAND := \
$(gb_Helper_set_ld_path) $(gb_Extension_XRMEXTARGET)
-gb_Extension_PROPMERGETARGET := $(call gb_Executable_get_target,propmerge)
+gb_Extension_PROPMERGETARGET := $(OUTDIR)/bin/propmerge
 gb_Extension_PROPMERGECOMMAND := \
$(PERL) $(gb_Extension_PROPMERGETARGET)
 gb_Extension_HELPEXTARGET := $(call gb_Executable_get_target,helpex)
 gb_Extension_HELPEXCOMMAND := \
$(gb_Helper_set_ld_path) $(gb_Extension_HELPEXTARGET)
-gb_Extension_SDFLOCATION := $(SRCDIR)/translations/$(INPATH)/misc/sdf/
+gb_Extension_SDFLOCATION := $(L10N_MODULE)/$(INPATH)/misc/sdf/
 # does not contain en-US because it is special cased in gb_Extension_Extension
 gb_Extension_LANGS := $(filter-out en-US,$(gb_WITH_LANG))
 
@@ -64,6 +64,16 @@ else
 $(call gb_Extension_get_workdir,%)/description.xml : | \
$(gb_Extension_XRMEXTARGET)
$(call gb_Output_announce,$*/description.xml,$(true),XRM,3)
+ifeq ($(OS_FOR_BUILD),WNT)
+   $(call gb_Helper_abbreviate_dirs_native,\
+   mkdir -p $(call gb_Extension_get_workdir,$*)  \
+   $(gb_Extension_XRMEXCOMMAND) \
+   -p $(PRJNAME) \
+   -i $(shell cygpath -m $(filter %.xml,$^)) \
+   -o $(shell cygpath -m $@) \
+   -m $(SDF) \
+   -l all)
+else
$(call gb_Helper_abbreviate_dirs_native,\
mkdir -p $(call gb_Extension_get_workdir,$*)  \
$(gb_Extension_XRMEXCOMMAND) \
@@ -73,6 +83,7 @@ $(call gb_Extension_get_workdir,%)/description.xml : | \
-m $(SDF) \
-l all)
 endif
+endif
 
 # rule to create oxt package in workdir
 # --filesync makes sure that all files in the oxt package will be removed that 
no longer are in $(FILES)
@@ -148,7 +159,7 @@ endef
 define gb_Extension_localize_help
 ifneq ($(strip $(gb_WITH_LANG)),)
 $(call gb_Extension_get_target,$(1)) : FILES += $(foreach 
lang,$(gb_Extension_LANGS),$(subst lang,$(lang),$(2)))
-$(call gb_Extension_get_target,$(1)) : SDF3 := $(realpath 
$(gb_Extension_SDFLOCATION)$(subst $(SRCDIR),,$(dir $(3)))localize.sdf)
+$(call gb_Extension_get_target,$(1)) : SDF3 := 
$(gb_Extension_SDFLOCATION)$(subst $(SRCDIR),,$(dir $(3)))localize.sdf
 $(call gb_Extension_get_target,$(1)) : $$(SDF3)
 $(foreach lang,$(gb_Extension_LANGS),$(call 
gb_Extension_localize_help_onelang,$(1),$(subst 
lang,$(lang),$(2)),$(3),$(lang)))
 endif
@@ -160,7 +171,11 @@ $(call gb_Extension_get_target,$(1)) : $(call 
gb_Extension_get_workdir,$(1))/$(2
 $(call gb_Extension_get_workdir,$(1))/$(2) : $(3)
$(call gb_Output_announce,$(2),$(true),XHP,3)
mkdir -p $$(dir $$@)
+ifeq ($(OS_FOR_BUILD),WNT)
+   $(gb_Extension_HELPEXCOMMAND) -i $$(shell cygpath -m $$) -o $$(shell 
cygpath -m $$@) -l $(4) -m $$(SDF3)
+else
$(gb_Extension_HELPEXCOMMAND) -i $$ -o $$@ -l $(4) -m $$(SDF3)
+endif
 
 endef
 
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-01-06 Thread Andras Timar
 solenv/gbuild/Extension.mk |   19 +--
 1 file changed, 17 insertions(+), 2 deletions(-)

New commits:
commit 643a4487772b6d1ca37e13ba5651d45a0a2d3c04
Author: Andras Timar ati...@suse.com
Date:   Fri Jan 6 14:51:07 2012 +0100

gbuild: fix extension localization on Windows

diff --git a/solenv/gbuild/Extension.mk b/solenv/gbuild/Extension.mk
index 3069408..5ee8a97 100644
--- a/solenv/gbuild/Extension.mk
+++ b/solenv/gbuild/Extension.mk
@@ -36,13 +36,13 @@ endif
 gb_Extension_XRMEXTARGET := $(call gb_Executable_get_target,xrmex)
 gb_Extension_XRMEXCOMMAND := \
$(gb_Helper_set_ld_path) $(gb_Extension_XRMEXTARGET)
-gb_Extension_PROPMERGETARGET := $(call gb_Executable_get_target,propmerge)
+gb_Extension_PROPMERGETARGET := $(OUTDIR)/bin/propmerge
 gb_Extension_PROPMERGECOMMAND := \
$(PERL) $(gb_Extension_PROPMERGETARGET)
 gb_Extension_HELPEXTARGET := $(call gb_Executable_get_target,helpex)
 gb_Extension_HELPEXCOMMAND := \
$(gb_Helper_set_ld_path) $(gb_Extension_HELPEXTARGET)
-gb_Extension_SDFLOCATION := $(SRCDIR)/translations/$(INPATH)/misc/sdf/
+gb_Extension_SDFLOCATION := $(L10N_MODULE)/$(INPATH)/misc/sdf/
 # does not contain en-US because it is special cased in gb_Extension_Extension
 gb_Extension_LANGS := $(filter-out en-US,$(gb_WITH_LANG))
 
@@ -64,6 +64,16 @@ else
 $(call gb_Extension_get_workdir,%)/description.xml : | \
$(gb_Extension_XRMEXTARGET)
$(call gb_Output_announce,$*/description.xml,$(true),XRM,3)
+ifeq ($(OS_FOR_BUILD),WNT)
+   $(call gb_Helper_abbreviate_dirs_native,\
+   mkdir -p $(call gb_Extension_get_workdir,$*)  \
+   $(gb_Extension_XRMEXCOMMAND) \
+   -p $(PRJNAME) \
+   -i $(shell cygpath -m $(filter %.xml,$^)) \
+   -o $(shell cygpath -m $@) \
+   -m $(SDF) \
+   -l all)
+else
$(call gb_Helper_abbreviate_dirs_native,\
mkdir -p $(call gb_Extension_get_workdir,$*)  \
$(gb_Extension_XRMEXCOMMAND) \
@@ -73,6 +83,7 @@ $(call gb_Extension_get_workdir,%)/description.xml : | \
-m $(SDF) \
-l all)
 endif
+endif
 
 # rule to create oxt package in workdir
 # --filesync makes sure that all files in the oxt package will be removed that 
no longer are in $(FILES)
@@ -148,7 +159,7 @@ endef
 define gb_Extension_localize_help
 ifneq ($(strip $(gb_WITH_LANG)),)
 $(call gb_Extension_get_target,$(1)) : FILES += $(foreach 
lang,$(gb_Extension_LANGS),$(subst lang,$(lang),$(2)))
-$(call gb_Extension_get_target,$(1)) : SDF3 := $(realpath 
$(gb_Extension_SDFLOCATION)$(subst $(SRCDIR),,$(dir $(3)))localize.sdf)
+$(call gb_Extension_get_target,$(1)) : SDF3 := 
$(gb_Extension_SDFLOCATION)$(subst $(SRCDIR),,$(dir $(3)))localize.sdf
 $(call gb_Extension_get_target,$(1)) : $$(SDF3)
 $(foreach lang,$(gb_Extension_LANGS),$(call 
gb_Extension_localize_help_onelang,$(1),$(subst 
lang,$(lang),$(2)),$(3),$(lang)))
 endif
@@ -160,7 +171,11 @@ $(call gb_Extension_get_target,$(1)) : $(call 
gb_Extension_get_workdir,$(1))/$(2
 $(call gb_Extension_get_workdir,$(1))/$(2) : $(3)
$(call gb_Output_announce,$(2),$(true),XHP,3)
mkdir -p $$(dir $$@)
+ifeq ($(OS_FOR_BUILD),WNT)
+   $(gb_Extension_HELPEXCOMMAND) -i $$(shell cygpath -m $$) -o $$(shell 
cygpath -m $$@) -l $(4) -m $$(SDF3)
+else
$(gb_Extension_HELPEXCOMMAND) -i $$ -o $$@ -l $(4) -m $$(SDF3)
+endif
 
 endef
 
commit 76f05b89ecc35fa4c3048a684d787b3052e8efc1
Author: Andras Timar ati...@suse.com
Date:   Fri Jan 6 15:03:14 2012 +0100

Revert propmerge is not executable

This reverts commit 3082565d6291176ef1fcdc053f9851c82a02d19a.

diff --git a/solenv/gbuild/Extension.mk b/solenv/gbuild/Extension.mk
index 76fdccf..3069408 100644
--- a/solenv/gbuild/Extension.mk
+++ b/solenv/gbuild/Extension.mk
@@ -36,7 +36,7 @@ endif
 gb_Extension_XRMEXTARGET := $(call gb_Executable_get_target,xrmex)
 gb_Extension_XRMEXCOMMAND := \
$(gb_Helper_set_ld_path) $(gb_Extension_XRMEXTARGET)
-gb_Extension_PROPMERGETARGET := $(OUTDIR)/bin/propmerge
+gb_Extension_PROPMERGETARGET := $(call gb_Executable_get_target,propmerge)
 gb_Extension_PROPMERGECOMMAND := \
$(PERL) $(gb_Extension_PROPMERGETARGET)
 gb_Extension_HELPEXTARGET := $(call gb_Executable_get_target,helpex)
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] Changes to 'feature/gbuild_help'

2012-01-06 Thread David Tardon
New branch 'feature/gbuild_help' available with the following commits:
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: sd/source

2012-01-06 Thread Ivan Timofeev
 sd/source/ui/dlg/present.src |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e2b57677d3fcb184606b4efb02c79b3e4847c1a0
Author: Ivan Timofeev timofeev@gmail.com
Date:   Fri Jan 6 17:08:54 2012 +0400

fdo#44294: overlapped controls

diff --git a/sd/source/ui/dlg/present.src b/sd/source/ui/dlg/present.src
index b53facb..6ee3fd8 100644
--- a/sd/source/ui/dlg/present.src
+++ b/sd/source/ui/dlg/present.src
@@ -86,8 +86,8 @@ ModalDialog DLG_START_PRESENTATION
 {
 HelpID = sd:ListBox:DLG_START_PRESENTATION:LB_DIAS;
 Border = TRUE ;
-Pos = MAP_APPFONT ( 82, 24 ) ;
-Size = MAP_APPFONT ( 111, 80 ) ;
+Pos = MAP_APPFONT ( 96, 24 ) ;
+Size = MAP_APPFONT ( 97, 80 ) ;
 TabStop = TRUE ;
 DropDown = TRUE ;
  //DDExtraWidth = TRUE;
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-01-06 Thread Ivan Timofeev
 sd/source/ui/dlg/present.src |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 58174c2a1e9291cf8cef63dcd51fd6357233c797
Author: Ivan Timofeev timofeev@gmail.com
Date:   Fri Jan 6 17:08:54 2012 +0400

fdo#44294: overlapped controls

diff --git a/sd/source/ui/dlg/present.src b/sd/source/ui/dlg/present.src
index b53facb..6ee3fd8 100644
--- a/sd/source/ui/dlg/present.src
+++ b/sd/source/ui/dlg/present.src
@@ -86,8 +86,8 @@ ModalDialog DLG_START_PRESENTATION
 {
 HelpID = sd:ListBox:DLG_START_PRESENTATION:LB_DIAS;
 Border = TRUE ;
-Pos = MAP_APPFONT ( 82, 24 ) ;
-Size = MAP_APPFONT ( 111, 80 ) ;
+Pos = MAP_APPFONT ( 96, 24 ) ;
+Size = MAP_APPFONT ( 97, 80 ) ;
 TabStop = TRUE ;
 DropDown = TRUE ;
  //DDExtraWidth = TRUE;
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: l10ntools/source

2012-01-06 Thread Andras Timar
 l10ntools/source/helpmerge.cxx |1 -
 1 file changed, 1 deletion(-)

New commits:
commit 82558fc4ea28427857ea82232e8edc5c8d6daa6d
Author: Andras Timar ati...@suse.com
Date:   Fri Jan 6 16:32:38 2012 +0100

remove a printf

diff --git a/l10ntools/source/helpmerge.cxx b/l10ntools/source/helpmerge.cxx
index 47d1ddf..46bee59 100644
--- a/l10ntools/source/helpmerge.cxx
+++ b/l10ntools/source/helpmerge.cxx
@@ -260,7 +260,6 @@ bool HelpParser::Merge( const ByteString rSDFFile, const 
ByteString rDestinati
 DirEntry aFile( sXmlFile );
 
 XMLFile* xmlfile = ( aParser.Execute( aFile.GetFull() , sOUHelpFile, new 
XMLFile( '0' ) ) );
-printf(Dest file %s\n,rDestinationFile.GetBuffer());
 hasNoError = MergeSingleFile( xmlfile , aMergeDataFile , rLanguage , 
rDestinationFile );
 delete xmlfile;
 if( !sUsedTempFile.EqualsIgnoreCaseAscii(  ) ){
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-01-06 Thread Kohei Yoshida
 sc/source/ui/inc/datafdlg.hrc  |2 -
 sc/source/ui/inc/datafdlg.hxx  |6 +--
 sc/source/ui/miscdlgs/datafdlg.cxx |   60 +++--
 sc/source/ui/src/datafdlg.src  |4 +-
 4 files changed, 37 insertions(+), 35 deletions(-)

New commits:
commit 81b5a2d152f1e19a5c4f0001e7314a67b531a164
Author: Kohei Yoshida kohei.yosh...@suse.com
Date:   Fri Jan 6 11:03:05 2012 -0500

The data range may not always start at row 0, use 'n' prefix for int.

diff --git a/sc/source/ui/inc/datafdlg.hxx b/sc/source/ui/inc/datafdlg.hxx
index fbad64e..5600d2c 100644
--- a/sc/source/ui/inc/datafdlg.hxx
+++ b/sc/source/ui/inc/datafdlg.hxx
@@ -67,7 +67,7 @@ private:
 ScTabViewShell* pTabViewShell;
 ScDocument* pDoc;
 sal_uInt16  aColLength;
-SCROW   aCurrentRow;
+SCROW   nCurrentRow;
 SCCOL   nStartCol;
 SCCOL   nEndCol;
 SCROW   nStartRow;
diff --git a/sc/source/ui/miscdlgs/datafdlg.cxx 
b/sc/source/ui/miscdlgs/datafdlg.cxx
index f5926c2..698eb7b 100644
--- a/sc/source/ui/miscdlgs/datafdlg.cxx
+++ b/sc/source/ui/miscdlgs/datafdlg.cxx
@@ -159,7 +159,7 @@ ScDataFormDlg::ScDataFormDlg( Window* pParent, 
ScTabViewShell*  pTabViewShellOri
 nEndRow = nStartRow;
 }
 
-aCurrentRow = nStartRow + 1;
+nCurrentRow = nStartRow + 1;
 
 String  aFieldName;
 
@@ -213,7 +213,7 @@ ScDataFormDlg::ScDataFormDlg( Window* pParent, 
ScTabViewShell*  pTabViewShellOri
 aSlider.SetSizePixel(nScrollSize);
 }
 
-FillCtrls(aCurrentRow);
+FillCtrls(nCurrentRow);
 
 aSlider.SetPageSize( 10 );
 aSlider.SetVisibleSize( 1 );
@@ -246,9 +246,9 @@ void ScDataFormDlg::FillCtrls(SCROW /*nCurrentRow*/)
 {
 if (!maEdits.is_null(i))
 {
-if (aCurrentRow=nEndRow)
+if (nCurrentRow=nEndRow)
 {
-pDoc-GetString( i + nStartCol, aCurrentRow, nTab, aFieldName 
);
+pDoc-GetString( i + nStartCol, nCurrentRow, nTab, aFieldName 
);
 maEdits[i].SetText(aFieldName);
 }
 else
@@ -256,10 +256,10 @@ void ScDataFormDlg::FillCtrls(SCROW /*nCurrentRow*/)
 }
 }
 
-if (aCurrentRow = nEndRow)
+if (nCurrentRow = nEndRow)
 {
 OUStringBuffer aBuf;
-aBuf.append(static_castsal_Int32(aCurrentRow - nStartRow));
+aBuf.append(static_castsal_Int32(nCurrentRow - nStartRow));
 aBuf.appendAscii( / );
 aBuf.append(static_castsal_Int32(nEndRow - nStartRow));
 aFixedText.SetText(aBuf.makeStringAndClear());
@@ -267,7 +267,7 @@ void ScDataFormDlg::FillCtrls(SCROW /*nCurrentRow*/)
 else
 aFixedText.SetText(String(ScResId(STR_NEW_RECORD)));
 
-aSlider.SetThumbPos(aCurrentRow-nStartRow-1);
+aSlider.SetThumbPos(nCurrentRow-nStartRow-1);
 }
 
 IMPL_LINK( ScDataFormDlg, Impl_DataModifyHdl, Edit*, pEdit)
@@ -295,15 +295,15 @@ IMPL_LINK( ScDataFormDlg, Impl_NewHdl, PushButton*, 
EMPTYARG )
 
 if ( bHasData )
 {
-pTabViewShell-DataFormPutData( aCurrentRow , nStartRow , 
nStartCol , nEndRow , nEndCol , maEdits , aColLength );
-aCurrentRow++;
-if (aCurrentRow = nEndRow + 2)
+pTabViewShell-DataFormPutData( nCurrentRow , nStartRow , 
nStartCol , nEndRow , nEndCol , maEdits , aColLength );
+nCurrentRow++;
+if (nCurrentRow = nEndRow + 2)
 {
 nEndRow ++ ;
 aSlider.SetRange( Range( 0, nEndRow - nStartRow + 1) );
 }
 SetButtonState();
-FillCtrls(aCurrentRow);
+FillCtrls(nCurrentRow);
 pDocSh-SetDocumentModified();
 pDocSh-PostPaintGridAll();
 }
@@ -315,11 +315,11 @@ IMPL_LINK( ScDataFormDlg, Impl_PrevHdl, PushButton*, 
EMPTYARG )
 {
 if (pDoc)
 {
-if ( aCurrentRow  nStartRow +1 )
-aCurrentRow--;
+if ( nCurrentRow  nStartRow +1 )
+nCurrentRow--;
 
 SetButtonState();
-FillCtrls(aCurrentRow);
+FillCtrls(nCurrentRow);
 }
 return 0;
 }
@@ -328,11 +328,11 @@ IMPL_LINK( ScDataFormDlg, Impl_NextHdl, PushButton*, 
EMPTYARG )
 {
 if (pDoc)
 {
-if ( aCurrentRow = nEndRow)
-aCurrentRow++;
+if ( nCurrentRow = nEndRow)
+nCurrentRow++;
 
 SetButtonState();
-FillCtrls(aCurrentRow);
+FillCtrls(nCurrentRow);
 }
 return 0;
 }
@@ -341,7 +341,7 @@ IMPL_LINK( ScDataFormDlg, Impl_RestoreHdl, PushButton*, 
EMPTYARG )
 {
 if (pDoc)
 {
-FillCtrls(aCurrentRow);
+FillCtrls(nCurrentRow);
 }
 return 0;
 }
@@ -352,14 +352,14 @@ IMPL_LINK( ScDataFormDlg, Impl_DeleteHdl, PushButton*, 
EMPTYARG )
 ScDocShell* pDocSh = pViewData-GetDocShell();
 if (pDoc)
 {
-ScRange aRange(nStartCol, aCurrentRow, nTab, nEndCol, 

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

2012-01-06 Thread Kohei Yoshida
 sc/source/ui/inc/datafdlg.hrc  |2 -
 sc/source/ui/inc/datafdlg.hxx  |6 +--
 sc/source/ui/miscdlgs/datafdlg.cxx |   60 +++--
 sc/source/ui/src/datafdlg.src  |4 +-
 4 files changed, 37 insertions(+), 35 deletions(-)

New commits:
commit e950930390bfef50a632281048b8e04b5f11ff32
Author: Kohei Yoshida kohei.yosh...@suse.com
Date:   Fri Jan 6 11:03:05 2012 -0500

The data range may not always start at row 0, use 'n' prefix for int.

diff --git a/sc/source/ui/inc/datafdlg.hxx b/sc/source/ui/inc/datafdlg.hxx
index fbad64e..5600d2c 100644
--- a/sc/source/ui/inc/datafdlg.hxx
+++ b/sc/source/ui/inc/datafdlg.hxx
@@ -67,7 +67,7 @@ private:
 ScTabViewShell* pTabViewShell;
 ScDocument* pDoc;
 sal_uInt16  aColLength;
-SCROW   aCurrentRow;
+SCROW   nCurrentRow;
 SCCOL   nStartCol;
 SCCOL   nEndCol;
 SCROW   nStartRow;
diff --git a/sc/source/ui/miscdlgs/datafdlg.cxx 
b/sc/source/ui/miscdlgs/datafdlg.cxx
index f5926c2..698eb7b 100644
--- a/sc/source/ui/miscdlgs/datafdlg.cxx
+++ b/sc/source/ui/miscdlgs/datafdlg.cxx
@@ -159,7 +159,7 @@ ScDataFormDlg::ScDataFormDlg( Window* pParent, 
ScTabViewShell*  pTabViewShellOri
 nEndRow = nStartRow;
 }
 
-aCurrentRow = nStartRow + 1;
+nCurrentRow = nStartRow + 1;
 
 String  aFieldName;
 
@@ -213,7 +213,7 @@ ScDataFormDlg::ScDataFormDlg( Window* pParent, 
ScTabViewShell*  pTabViewShellOri
 aSlider.SetSizePixel(nScrollSize);
 }
 
-FillCtrls(aCurrentRow);
+FillCtrls(nCurrentRow);
 
 aSlider.SetPageSize( 10 );
 aSlider.SetVisibleSize( 1 );
@@ -246,9 +246,9 @@ void ScDataFormDlg::FillCtrls(SCROW /*nCurrentRow*/)
 {
 if (!maEdits.is_null(i))
 {
-if (aCurrentRow=nEndRow)
+if (nCurrentRow=nEndRow)
 {
-pDoc-GetString( i + nStartCol, aCurrentRow, nTab, aFieldName 
);
+pDoc-GetString( i + nStartCol, nCurrentRow, nTab, aFieldName 
);
 maEdits[i].SetText(aFieldName);
 }
 else
@@ -256,10 +256,10 @@ void ScDataFormDlg::FillCtrls(SCROW /*nCurrentRow*/)
 }
 }
 
-if (aCurrentRow = nEndRow)
+if (nCurrentRow = nEndRow)
 {
 OUStringBuffer aBuf;
-aBuf.append(static_castsal_Int32(aCurrentRow - nStartRow));
+aBuf.append(static_castsal_Int32(nCurrentRow - nStartRow));
 aBuf.appendAscii( / );
 aBuf.append(static_castsal_Int32(nEndRow - nStartRow));
 aFixedText.SetText(aBuf.makeStringAndClear());
@@ -267,7 +267,7 @@ void ScDataFormDlg::FillCtrls(SCROW /*nCurrentRow*/)
 else
 aFixedText.SetText(String(ScResId(STR_NEW_RECORD)));
 
-aSlider.SetThumbPos(aCurrentRow-nStartRow-1);
+aSlider.SetThumbPos(nCurrentRow-nStartRow-1);
 }
 
 IMPL_LINK( ScDataFormDlg, Impl_DataModifyHdl, Edit*, pEdit)
@@ -295,15 +295,15 @@ IMPL_LINK( ScDataFormDlg, Impl_NewHdl, PushButton*, 
EMPTYARG )
 
 if ( bHasData )
 {
-pTabViewShell-DataFormPutData( aCurrentRow , nStartRow , 
nStartCol , nEndRow , nEndCol , maEdits , aColLength );
-aCurrentRow++;
-if (aCurrentRow = nEndRow + 2)
+pTabViewShell-DataFormPutData( nCurrentRow , nStartRow , 
nStartCol , nEndRow , nEndCol , maEdits , aColLength );
+nCurrentRow++;
+if (nCurrentRow = nEndRow + 2)
 {
 nEndRow ++ ;
 aSlider.SetRange( Range( 0, nEndRow - nStartRow + 1) );
 }
 SetButtonState();
-FillCtrls(aCurrentRow);
+FillCtrls(nCurrentRow);
 pDocSh-SetDocumentModified();
 pDocSh-PostPaintGridAll();
 }
@@ -315,11 +315,11 @@ IMPL_LINK( ScDataFormDlg, Impl_PrevHdl, PushButton*, 
EMPTYARG )
 {
 if (pDoc)
 {
-if ( aCurrentRow  nStartRow +1 )
-aCurrentRow--;
+if ( nCurrentRow  nStartRow +1 )
+nCurrentRow--;
 
 SetButtonState();
-FillCtrls(aCurrentRow);
+FillCtrls(nCurrentRow);
 }
 return 0;
 }
@@ -328,11 +328,11 @@ IMPL_LINK( ScDataFormDlg, Impl_NextHdl, PushButton*, 
EMPTYARG )
 {
 if (pDoc)
 {
-if ( aCurrentRow = nEndRow)
-aCurrentRow++;
+if ( nCurrentRow = nEndRow)
+nCurrentRow++;
 
 SetButtonState();
-FillCtrls(aCurrentRow);
+FillCtrls(nCurrentRow);
 }
 return 0;
 }
@@ -341,7 +341,7 @@ IMPL_LINK( ScDataFormDlg, Impl_RestoreHdl, PushButton*, 
EMPTYARG )
 {
 if (pDoc)
 {
-FillCtrls(aCurrentRow);
+FillCtrls(nCurrentRow);
 }
 return 0;
 }
@@ -352,14 +352,14 @@ IMPL_LINK( ScDataFormDlg, Impl_DeleteHdl, PushButton*, 
EMPTYARG )
 ScDocShell* pDocSh = pViewData-GetDocShell();
 if (pDoc)
 {
-ScRange aRange(nStartCol, aCurrentRow, nTab, nEndCol, 

[Libreoffice-commits] .: binfilter/inc

2012-01-06 Thread Caolán McNamara
 binfilter/inc/bf_sfx2/sfxsids.hrc |3 ---
 1 file changed, 3 deletions(-)

New commits:
commit 6b7448e04adfd2ecf27f0a28f02ba050826b44c7
Author: Caolán McNamara caol...@redhat.com
Date:   Fri Jan 6 16:35:16 2012 +

ditch commented out SID

diff --git a/binfilter/inc/bf_sfx2/sfxsids.hrc 
b/binfilter/inc/bf_sfx2/sfxsids.hrc
index 6961af7..52400dd 100644
--- a/binfilter/inc/bf_sfx2/sfxsids.hrc
+++ b/binfilter/inc/bf_sfx2/sfxsids.hrc
@@ -705,9 +705,6 @@
 #define SID_COPY(SID_SFX_START + 711)
 #define SID_PASTE   (SID_SFX_START + 712)
 
-// steht unter diesem Wert in chaos/cntids.hrc!!!
-//#define SID_DELETE(SID_SFX_START + 713)
-
 #define SID_BACKSPACE   (SID_SFX_START + 714)
 #define SID_SELECT  (SID_SFX_START + 720)
 #define SID_EXPANDSELECTION (SID_SFX_START + 721)
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: 2 commits - desktop/util desktop/win32 solenv/inc

2012-01-06 Thread Andras Timar
 desktop/util/officeloader.rc |   65 -
 desktop/win32/source/applauncher/launcher.rc |   64 -
 solenv/inc/shlinfo.rc|   68 +--
 3 files changed, 95 insertions(+), 102 deletions(-)

New commits:
commit 53faaceac6916d0d35386b7cedd75b8d2171e6ef
Author: Andras Timar ati...@suse.com
Date:   Fri Jan 6 18:28:41 2012 +0100

remove unused VER_FIRSTYEAR

diff --git a/desktop/util/officeloader.rc b/desktop/util/officeloader.rc
index 1e00af6..69710f2 100644
--- a/desktop/util/officeloader.rc
+++ b/desktop/util/officeloader.rc
@@ -25,8 +25,6 @@
  *
  */
 
-#define VER_FIRSTYEAR2000
-
 #include windows.h
 #include version.hrc
 
diff --git a/desktop/win32/source/applauncher/launcher.rc 
b/desktop/win32/source/applauncher/launcher.rc
index 04dbe9f..3857d62 100644
--- a/desktop/win32/source/applauncher/launcher.rc
+++ b/desktop/win32/source/applauncher/launcher.rc
@@ -25,8 +25,6 @@
  *
  */
 
-#define VER_FIRSTYEAR2009
-
 #include windows.h
 #include version.hrc
 
diff --git a/solenv/inc/shlinfo.rc b/solenv/inc/shlinfo.rc
index 1fca687..2176bbf 100644
--- a/solenv/inc/shlinfo.rc
+++ b/solenv/inc/shlinfo.rc
@@ -25,8 +25,6 @@
  *
  /
 
-#define VER_FIRSTYEAR2010
-
 #include windows.h
 #include version.hrc
 
commit 19eaa578790c6b7c72838353954d1e8f7b26fb3e
Author: Andras Timar ati...@suse.com
Date:   Fri Jan 6 18:27:25 2012 +0100

tabs to spaces

diff --git a/desktop/util/officeloader.rc b/desktop/util/officeloader.rc
index b6e2687..1e00af6 100644
--- a/desktop/util/officeloader.rc
+++ b/desktop/util/officeloader.rc
@@ -25,51 +25,51 @@
  *
  */
 
-#define VER_FIRSTYEAR  2000
+#define VER_FIRSTYEAR2000
 
 #include windows.h
 #include version.hrc
 
 // ---
-// version information
+// version information
 // ---
 
 VS_VERSION_INFO VERSIONINFO
-   FILEVERSIONVERSION, SUBVERSION, MICROVERSION, VERVARIANT
-   PRODUCTVERSION VERSION, SUBVERSION, MICROVERSION, VERVARIANT
-   FILEFLAGSMASK 0x3F
-   FILEFLAGS
+FILEVERSIONVERSION, SUBVERSION, MICROVERSION, VERVARIANT
+PRODUCTVERSION VERSION, SUBVERSION, MICROVERSION, VERVARIANT
+FILEFLAGSMASK 0x3F
+FILEFLAGS
 #if defined(DEBUG)
-   VS_FF_DEBUG |
+VS_FF_DEBUG |
 #endif
 #ifdef VER_PREL
-   VS_FF_PRERELEASE |
+VS_FF_PRERELEASE |
 #endif
-   0
-   FILEOS VOS_NT_WINDOWS32
-   FILETYPE VFT_APP
-   {
-   BLOCK StringFileInfo
-   {
-   BLOCK 040904E4
-   {
-   // International StringTable
-VALUE CompanyName,   PPS(RES_APP_VENDOR) \0
-   VALUE FileDescription,
\0
-   VALUE FileVersion,PPS(VER_LEVEL) 
\0
-   VALUE ProductVersion, PPS(VER_LEVEL) 
\0
-   VALUE ProductName,LibreOffice\0
-   VALUE OriginalFilename,   
PPS(RES_APP_NAME) .exe\0
-   VALUE InternalName,   
PPS(RES_APP_NAME) \0
-   VALUE LegalCopyright, S_CRIGHT  
LibreOffice contributors and/or their affiliates. All rights reserved.\0
-   }
-   }
+0
+FILEOS VOS_NT_WINDOWS32
+FILETYPE VFT_APP
+{
+BLOCK StringFileInfo
+{
+BLOCK 040904E4
+{
+// International StringTable
+VALUE CompanyName,  PPS(RES_APP_VENDOR) \0
+VALUE FileDescription,  
\0
+VALUE FileVersion,  PPS(VER_LEVEL) \0
+VALUE ProductVersion,   PPS(VER_LEVEL) \0
+VALUE ProductName,  LibreOffice\0
+VALUE OriginalFilename, PPS(RES_APP_NAME) .exe\0
+VALUE InternalName, PPS(RES_APP_NAME) \0
+VALUE LegalCopyright,   S_CRIGHT  LibreOffice contributors 
and/or their affiliates. All rights reserved.\0
+}
+}
 
-   BLOCK VarFileInfo
-   {
-   VALUE Translation, 0x0409, 1252
-   }
-   }
+BLOCK VarFileInfo
+{
+VALUE Translation, 0x0409, 1252
+}
+

[Libreoffice-commits] .: basegfx/source

2012-01-06 Thread Julien Nabet
 basegfx/source/polygon/b2dpolypolygoncutter.cxx |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 66fd9a610cd876c236486a2089d8d58dca866e25
Author: Julien Nabet serval2...@yahoo.fr
Date:   Fri Jan 6 18:57:39 2012 +0100

Fix Same expression on both sides of '' (reported by cppcheck)

diff --git a/basegfx/source/polygon/b2dpolypolygoncutter.cxx 
b/basegfx/source/polygon/b2dpolypolygoncutter.cxx
index d32ee87..8745241 100644
--- a/basegfx/source/polygon/b2dpolypolygoncutter.cxx
+++ b/basegfx/source/polygon/b2dpolypolygoncutter.cxx
@@ -282,7 +282,7 @@ namespace basegfx
 bOnEdge = false;
 }
 }
-while(bOnEdge  pPNa2 != rPNa  pPNa2 != rPNa);
+while(bOnEdge  pPNa2 != rPNa  pPNb2 != rPNb);
 
 if(bOnEdge)
 {
@@ -408,7 +408,7 @@ namespace basegfx
 bOnEdge = false;
 }
 }
-while(bOnEdge  pPNa2 != rPNa  pPNa2 != rPNa);
+while(bOnEdge  pPNa2 != rPNa  pPNb2 != rPNb);
 
 if(bOnEdge)
 {
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: scp2/source scp2/util

2012-01-06 Thread Andras Timar
 scp2/source/ooo/makefile.mk   |1 
 scp2/source/ooo/vc_redist.scp |   60 --
 scp2/util/makefile.mk |1 
 3 files changed, 62 deletions(-)

New commits:
commit 7a3ef2719eb68d2862354181ca5a906129569a57
Author: Andras Timar ati...@suse.com
Date:   Fri Jan 6 19:33:42 2012 +0100

remove vc_redist from scp2

diff --git a/scp2/source/ooo/makefile.mk b/scp2/source/ooo/makefile.mk
index 96bcb5f..c5443e9 100644
--- a/scp2/source/ooo/makefile.mk
+++ b/scp2/source/ooo/makefile.mk
@@ -343,7 +343,6 @@ PARFILES +=\
 folder_ooo.par \
 folderitem_ooo.par \
 registryitem_ooo.par   \
-vc_redist.par  \
 mingw_dlls.par \
 windowscustomaction_ooo.par
 .ENDIF
diff --git a/scp2/source/ooo/vc_redist.scp b/scp2/source/ooo/vc_redist.scp
deleted file mode 100644
index a01f891..000
--- a/scp2/source/ooo/vc_redist.scp
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
-*
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- * 
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org.  If not, see
- * http://www.openoffice.org/license.html
- * for a copy of the LGPLv3 License.
- *
-/
-
-#include macros.inc
-
-#if defined(WITH_VC_REDIST)
-
-MergeModule gid_MergeModule_Microsoft_VC90_CRT_x86
-Feature = gm_Root;
-Name = Microsoft_VC90_CRT_x86.msm;
-RootDir = TARGETDIR;
-End
-
-MergeModule gid_MergeModule_policy_9_0_Microsoft_VC90_CRT_x86
-Feature = gm_Root;
-Name = policy_9_0_Microsoft_VC90_CRT_x86.msm;
-RootDir = TARGETDIR;
-End
-
-#if defined(BUILD_X64)
-
-MergeModule gid_MergeModule_Microsoft_VC90_CRT_x86_x64
-Feature = gm_Root;
-Name = Microsoft_VC90_CRT_x86_x64.msm;
-RootDir = TARGETDIR;
-End
-
-MergeModule gid_MergeModule_policy_9_0_Microsoft_VC90_CRT_x86_x64
-Feature = gm_Root;
-Name = policy_9_0_Microsoft_VC90_CRT_x86_x64.msm;
-RootDir = TARGETDIR;
-End
-
-#endif
-
-#endif
diff --git a/scp2/util/makefile.mk b/scp2/util/makefile.mk
index 9af2c3a..42e026d 100644
--- a/scp2/util/makefile.mk
+++ b/scp2/util/makefile.mk
@@ -148,7 +148,6 @@ SCP1FILES +=   \
  folder_ooo.par\
  folderitem_ooo.par\
  windowscustomaction_ooo.par \
- vc_redist.par \
  mingw_dlls.par\
  registryitem_writer.par   \
  folderitem_writer.par \
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: scp2/source scp2/util

2012-01-06 Thread Andras Timar
 scp2/source/ooo/makefile.mk   |1 
 scp2/source/ooo/vc_redist.scp |   60 ++
 scp2/util/makefile.mk |1 
 3 files changed, 62 insertions(+)

New commits:
commit c586383617e7b9f2a0e24db8aaf1e1fd560bdbc4
Author: Andras Timar ati...@suse.com
Date:   Fri Jan 6 19:36:54 2012 +0100

Revert remove vc_redist from scp2

This reverts commit 7a3ef2719eb68d2862354181ca5a906129569a57.
Eh, better to stop for now...

diff --git a/scp2/source/ooo/makefile.mk b/scp2/source/ooo/makefile.mk
index c5443e9..96bcb5f 100644
--- a/scp2/source/ooo/makefile.mk
+++ b/scp2/source/ooo/makefile.mk
@@ -343,6 +343,7 @@ PARFILES +=\
 folder_ooo.par \
 folderitem_ooo.par \
 registryitem_ooo.par   \
+vc_redist.par  \
 mingw_dlls.par \
 windowscustomaction_ooo.par
 .ENDIF
diff --git a/scp2/source/ooo/vc_redist.scp b/scp2/source/ooo/vc_redist.scp
new file mode 100644
index 000..a01f891
--- /dev/null
+++ b/scp2/source/ooo/vc_redist.scp
@@ -0,0 +1,60 @@
+/*
+*
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ * 
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org.  If not, see
+ * http://www.openoffice.org/license.html
+ * for a copy of the LGPLv3 License.
+ *
+/
+
+#include macros.inc
+
+#if defined(WITH_VC_REDIST)
+
+MergeModule gid_MergeModule_Microsoft_VC90_CRT_x86
+Feature = gm_Root;
+Name = Microsoft_VC90_CRT_x86.msm;
+RootDir = TARGETDIR;
+End
+
+MergeModule gid_MergeModule_policy_9_0_Microsoft_VC90_CRT_x86
+Feature = gm_Root;
+Name = policy_9_0_Microsoft_VC90_CRT_x86.msm;
+RootDir = TARGETDIR;
+End
+
+#if defined(BUILD_X64)
+
+MergeModule gid_MergeModule_Microsoft_VC90_CRT_x86_x64
+Feature = gm_Root;
+Name = Microsoft_VC90_CRT_x86_x64.msm;
+RootDir = TARGETDIR;
+End
+
+MergeModule gid_MergeModule_policy_9_0_Microsoft_VC90_CRT_x86_x64
+Feature = gm_Root;
+Name = policy_9_0_Microsoft_VC90_CRT_x86_x64.msm;
+RootDir = TARGETDIR;
+End
+
+#endif
+
+#endif
diff --git a/scp2/util/makefile.mk b/scp2/util/makefile.mk
index 42e026d..9af2c3a 100644
--- a/scp2/util/makefile.mk
+++ b/scp2/util/makefile.mk
@@ -148,6 +148,7 @@ SCP1FILES +=   \
  folder_ooo.par\
  folderitem_ooo.par\
  windowscustomaction_ooo.par \
+ vc_redist.par \
  mingw_dlls.par\
  registryitem_writer.par   \
  folderitem_writer.par \
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-01-06 Thread Andras Timar
 sc/source/ui/inc/anyrefdg.hxx |8 
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit cf31d38e36690c21fba0c218847bb89e1395df19
Author: Korrawit Pruegsanusak detective.conan.1...@gmail.com
Date:   Wed Dec 21 21:50:46 2011 +0700

Revert this to build on msvc 2008

diff --git a/sc/source/ui/inc/anyrefdg.hxx b/sc/source/ui/inc/anyrefdg.hxx
index ef44b61..8bca700 100644
--- a/sc/source/ui/inc/anyrefdg.hxx
+++ b/sc/source/ui/inc/anyrefdg.hxx
@@ -189,7 +189,7 @@ public:
 //
 
 template  class TWindow, bool bBindRef = true 
-class SC_DLLPUBLIC ScRefHdlrImplBase:public TWindow, public ScRefHandler
+class ScRefHdlrImplBase:public TWindow, public ScRefHandler
 {
 public:
 //Overwrite TWindow
@@ -211,16 +211,16 @@ private:
 
 templateclass TWindow, bool bBindRef
 templateclass TBindings, class TChildWindow, class TParentWindow, class 
TResId
-SC_DLLPUBLIC ScRefHdlrImplBaseTWindow, bBindRef::ScRefHdlrImplBase( 
TBindings* pB, TChildWindow* pCW,
+ScRefHdlrImplBaseTWindow, bBindRef::ScRefHdlrImplBase( TBindings* pB, 
TChildWindow* pCW,
  TParentWindow* pParent, TResId nResId):TWindow(pB, pCW, 
pParent, ScResId(static_castsal_uInt16( nResId ) ) ), ScRefHandler( 
*static_castTWindow*(this), pB, bBindRef ){}
 
 templateclass TWindow, bool bBindRef 
 templateclass TParentWindow, class TResId, class TArg
-SC_DLLPUBLIC ScRefHdlrImplBaseTWindow,bBindRef::ScRefHdlrImplBase( 
TParentWindow* pParent, TResId nResIdP, const TArg rArg, SfxBindings *pB /*= 
NULL*/ )
+ScRefHdlrImplBaseTWindow,bBindRef::ScRefHdlrImplBase( TParentWindow* 
pParent, TResId nResIdP, const TArg rArg, SfxBindings *pB /*= NULL*/ )
 :TWindow( pParent, ScResId(static_castsal_uInt16( nResIdP )), rArg ), 
ScRefHandler( *static_castTWindow*(this), pB, bBindRef ){}
 
 templateclass TWindow, bool bBindRef 
-SC_DLLPUBLIC ScRefHdlrImplBaseTWindow,bBindRef::~ScRefHdlrImplBase(){}
+ScRefHdlrImplBaseTWindow,bBindRef::~ScRefHdlrImplBase(){}
 
 //
 templateclass TDerived, class TBase, bool bBindRef = true
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-01-06 Thread Kohei Yoshida
 sc/inc/userdat.hxx   |4 +++-
 sc/source/core/data/drwlayer.cxx |   11 +--
 sc/source/core/data/postit.cxx   |2 +-
 sc/source/core/data/userdat.cxx  |2 +-
 sc/source/core/tool/detfunc.cxx  |1 +
 sc/source/ui/view/drawvie3.cxx   |2 +-
 6 files changed, 12 insertions(+), 10 deletions(-)

New commits:
commit 753259a6b5a1b9ac4a270d4a38c7111714b9
Author: Kohei Yoshida kohei.yosh...@suse.com
Date:   Fri Jan 6 16:24:07 2012 -0500

Fix re-calculation of the position of circular drawing objects.

Cell-anchored circular drawing objects would get distorted whenever
its bounding rectangle changes, either via insertion / removal of
columns / rows, or changing the row height / column width.

This commit fixes it by differentiating the validation circles, which
needs its own re-calc algorithm, from the normal circular drawing
objects.

diff --git a/sc/inc/userdat.hxx b/sc/inc/userdat.hxx
index 259e99d..ed6adc2 100644
--- a/sc/inc/userdat.hxx
+++ b/sc/inc/userdat.hxx
@@ -59,11 +59,13 @@ public:
 class ScDrawObjData : public SdrObjUserData
 {
 public:
+enum Type { CellNote, ValidationCircle, DrawingObject };
+
 ScAddress   maStart;
 ScAddress   maEnd;
 Point   maStartOffset;
 Point   maEndOffset;
-boolmbNote;
+TypemeType;
 Rectangle   maLastRect;
 
 explicitScDrawObjData();
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index 2e2d00a..91820f4 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -610,7 +610,7 @@ void ScDrawLayer::RecalcPos( SdrObject* pObj, 
ScDrawObjData rData, bool bNegati
 if( !pDoc )
 return;
 
-if( rData.mbNote )
+if (rData.meType == ScDrawObjData::CellNote)
 {
 OSL_ENSURE( rData.maStart.IsValid(), ScDrawLayer::RecalcPos - invalid 
position for cell note );
 /*  #i109372# On insert/remove rows/columns/cells: Updating the caption
@@ -636,13 +636,12 @@ void ScDrawLayer::RecalcPos( SdrObject* pObj, 
ScDrawObjData rData, bool bNegati
 SCROW nRow2 = rData.maEnd.Row();
 SCTAB nTab2 = rData.maEnd.Tab();
 
-// validation circle
-bool bCircle = pObj-ISA( SdrCircObj );
 // detective arrow
 bool bArrow = pObj-IsPolyObj()  (pObj-GetPointCount() == 2);
 
-if( bCircle )
+if (rData.meType == ScDrawObjData::ValidationCircle)
 {
+// Validation circle for detective.
 rData.maLastRect = pObj-GetLogicRect();
 
 Point aPos( pDoc-GetColOffset( nCol1, nTab1 ), pDoc-GetRowOffset( 
nRow1, nTab1 ) );
@@ -1835,13 +1834,13 @@ ScDrawObjData* ScDrawLayer::GetObjDataTab( SdrObject* 
pObj, SCTAB nTab )
 bool ScDrawLayer::IsNoteCaption( SdrObject* pObj )
 {
 ScDrawObjData* pData = pObj ? GetObjData( pObj ) : 0;
-return pData  pData-mbNote;
+return pData  pData-meType == ScDrawObjData::CellNote;
 }
 
 ScDrawObjData* ScDrawLayer::GetNoteCaptionData( SdrObject* pObj, SCTAB nTab )
 {
 ScDrawObjData* pData = pObj ? GetObjDataTab( pObj, nTab ) : 0;
-return (pData  pData-mbNote) ? pData : 0;
+return (pData  pData-meType == ScDrawObjData::CellNote) ? pData : 0;
 }
 
 ScIMapInfo* ScDrawLayer::GetIMapInfo( SdrObject* pObj )
diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx
index a8881c0..04001c3 100644
--- a/sc/source/core/data/postit.cxx
+++ b/sc/source/core/data/postit.cxx
@@ -109,7 +109,7 @@ void ScCaptionUtil::SetCaptionUserData( SdrCaptionObj 
rCaption, const ScAddress
 ScDrawObjData* pObjData = ScDrawLayer::GetObjData( rCaption, true );
 OSL_ENSURE( pObjData, ScCaptionUtil::SetCaptionUserData - missing drawing 
object user data );
 pObjData-maStart = rPos;
-pObjData-mbNote = true;
+pObjData-meType = ScDrawObjData::CellNote;
 }
 
 void ScCaptionUtil::SetDefaultItems( SdrCaptionObj rCaption, ScDocument rDoc 
)
diff --git a/sc/source/core/data/userdat.cxx b/sc/source/core/data/userdat.cxx
index 2b2db80..6947634 100644
--- a/sc/source/core/data/userdat.cxx
+++ b/sc/source/core/data/userdat.cxx
@@ -70,7 +70,7 @@ ScDrawObjData::ScDrawObjData() :
 SdrObjUserData( SC_DRAWLAYER, SC_UD_OBJDATA, 0 ),
 maStart( ScAddress::INITIALIZE_INVALID ),
 maEnd( ScAddress::INITIALIZE_INVALID ),
-mbNote( false )
+meType( DrawingObject )
 {
 }
 
diff --git a/sc/source/core/tool/detfunc.cxx b/sc/source/core/tool/detfunc.cxx
index 567ba49..ebf9ef8 100644
--- a/sc/source/core/tool/detfunc.cxx
+++ b/sc/source/core/tool/detfunc.cxx
@@ -681,6 +681,7 @@ void ScDetectiveFunc::DrawCircle( SCCOL nCol, SCROW nRow, 
ScDetectiveData rData
 ScDrawObjData* pData = ScDrawLayer::GetObjData( pCircle, sal_True );
 pData-maStart.Set( nCol, nRow, nTab);
 pData-maEnd.SetInvalid();
+pData-meType = ScDrawObjData::ValidationCircle;
 
 Modified();
 }
diff --git a/sc/source/ui/view/drawvie3.cxx 

[Libreoffice-commits] .: solenv/bin

2012-01-06 Thread Michael Stahl
 solenv/bin/make_installer.pl |1 -
 1 file changed, 1 deletion(-)

New commits:
commit bf6ccec6334141be5e0247f9cf3f34762f668e40
Author: Michael Stahl mst...@redhat.com
Date:   Fri Jan 6 22:27:42 2012 +0100

solenv: that perl crud looks unhappy

diff --git a/solenv/bin/make_installer.pl b/solenv/bin/make_installer.pl
index 57dd86c..5bcee7f 100644
--- a/solenv/bin/make_installer.pl
+++ b/solenv/bin/make_installer.pl
@@ -73,7 +73,6 @@ use installer::windows::font;
 use installer::windows::icon;
 use installer::windows::idtglobal;
 use installer::windows::inifile;
-use installer::windows::java;
 use installer::windows::media;
 use installer::windows::mergemodule;
 use installer::windows::msiglobal;
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-01-06 Thread Kohei Yoshida
 sc/inc/userdat.hxx   |4 +++-
 sc/source/core/data/drwlayer.cxx |   11 +--
 sc/source/core/data/postit.cxx   |2 +-
 sc/source/core/data/userdat.cxx  |2 +-
 sc/source/core/tool/detfunc.cxx  |1 +
 sc/source/ui/view/drawvie3.cxx   |2 +-
 6 files changed, 12 insertions(+), 10 deletions(-)

New commits:
commit 248a6136b898389a5d3d351859591b2de458ce90
Author: Kohei Yoshida kohei.yosh...@suse.com
Date:   Fri Jan 6 16:24:07 2012 -0500

Fix re-calculation of the position of circular drawing objects.

Cell-anchored circular drawing objects would get distorted whenever
its bounding rectangle changes, either via insertion / removal of
columns / rows, or changing the row height / column width.

This commit fixes it by differentiating the validation circles, which
needs its own re-calc algorithm, from the normal circular drawing
objects.

diff --git a/sc/inc/userdat.hxx b/sc/inc/userdat.hxx
index 259e99d..ed6adc2 100644
--- a/sc/inc/userdat.hxx
+++ b/sc/inc/userdat.hxx
@@ -59,11 +59,13 @@ public:
 class ScDrawObjData : public SdrObjUserData
 {
 public:
+enum Type { CellNote, ValidationCircle, DrawingObject };
+
 ScAddress   maStart;
 ScAddress   maEnd;
 Point   maStartOffset;
 Point   maEndOffset;
-boolmbNote;
+TypemeType;
 Rectangle   maLastRect;
 
 explicitScDrawObjData();
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index 2e2d00a..91820f4 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -610,7 +610,7 @@ void ScDrawLayer::RecalcPos( SdrObject* pObj, 
ScDrawObjData rData, bool bNegati
 if( !pDoc )
 return;
 
-if( rData.mbNote )
+if (rData.meType == ScDrawObjData::CellNote)
 {
 OSL_ENSURE( rData.maStart.IsValid(), ScDrawLayer::RecalcPos - invalid 
position for cell note );
 /*  #i109372# On insert/remove rows/columns/cells: Updating the caption
@@ -636,13 +636,12 @@ void ScDrawLayer::RecalcPos( SdrObject* pObj, 
ScDrawObjData rData, bool bNegati
 SCROW nRow2 = rData.maEnd.Row();
 SCTAB nTab2 = rData.maEnd.Tab();
 
-// validation circle
-bool bCircle = pObj-ISA( SdrCircObj );
 // detective arrow
 bool bArrow = pObj-IsPolyObj()  (pObj-GetPointCount() == 2);
 
-if( bCircle )
+if (rData.meType == ScDrawObjData::ValidationCircle)
 {
+// Validation circle for detective.
 rData.maLastRect = pObj-GetLogicRect();
 
 Point aPos( pDoc-GetColOffset( nCol1, nTab1 ), pDoc-GetRowOffset( 
nRow1, nTab1 ) );
@@ -1835,13 +1834,13 @@ ScDrawObjData* ScDrawLayer::GetObjDataTab( SdrObject* 
pObj, SCTAB nTab )
 bool ScDrawLayer::IsNoteCaption( SdrObject* pObj )
 {
 ScDrawObjData* pData = pObj ? GetObjData( pObj ) : 0;
-return pData  pData-mbNote;
+return pData  pData-meType == ScDrawObjData::CellNote;
 }
 
 ScDrawObjData* ScDrawLayer::GetNoteCaptionData( SdrObject* pObj, SCTAB nTab )
 {
 ScDrawObjData* pData = pObj ? GetObjDataTab( pObj, nTab ) : 0;
-return (pData  pData-mbNote) ? pData : 0;
+return (pData  pData-meType == ScDrawObjData::CellNote) ? pData : 0;
 }
 
 ScIMapInfo* ScDrawLayer::GetIMapInfo( SdrObject* pObj )
diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx
index a8881c0..04001c3 100644
--- a/sc/source/core/data/postit.cxx
+++ b/sc/source/core/data/postit.cxx
@@ -109,7 +109,7 @@ void ScCaptionUtil::SetCaptionUserData( SdrCaptionObj 
rCaption, const ScAddress
 ScDrawObjData* pObjData = ScDrawLayer::GetObjData( rCaption, true );
 OSL_ENSURE( pObjData, ScCaptionUtil::SetCaptionUserData - missing drawing 
object user data );
 pObjData-maStart = rPos;
-pObjData-mbNote = true;
+pObjData-meType = ScDrawObjData::CellNote;
 }
 
 void ScCaptionUtil::SetDefaultItems( SdrCaptionObj rCaption, ScDocument rDoc 
)
diff --git a/sc/source/core/data/userdat.cxx b/sc/source/core/data/userdat.cxx
index 2b2db80..6947634 100644
--- a/sc/source/core/data/userdat.cxx
+++ b/sc/source/core/data/userdat.cxx
@@ -70,7 +70,7 @@ ScDrawObjData::ScDrawObjData() :
 SdrObjUserData( SC_DRAWLAYER, SC_UD_OBJDATA, 0 ),
 maStart( ScAddress::INITIALIZE_INVALID ),
 maEnd( ScAddress::INITIALIZE_INVALID ),
-mbNote( false )
+meType( DrawingObject )
 {
 }
 
diff --git a/sc/source/core/tool/detfunc.cxx b/sc/source/core/tool/detfunc.cxx
index 567ba49..ebf9ef8 100644
--- a/sc/source/core/tool/detfunc.cxx
+++ b/sc/source/core/tool/detfunc.cxx
@@ -681,6 +681,7 @@ void ScDetectiveFunc::DrawCircle( SCCOL nCol, SCROW nRow, 
ScDetectiveData rData
 ScDrawObjData* pData = ScDrawLayer::GetObjData( pCircle, sal_True );
 pData-maStart.Set( nCol, nRow, nTab);
 pData-maEnd.SetInvalid();
+pData-meType = ScDrawObjData::ValidationCircle;
 
 Modified();
 }
diff --git a/sc/source/ui/view/drawvie3.cxx 

[Libreoffice-commits] .: solenv/gbuild

2012-01-06 Thread Andras Timar
 solenv/gbuild/platform/WNT_INTEL_MSC.mk |   14 +-
 1 file changed, 9 insertions(+), 5 deletions(-)

New commits:
commit c7c65bc0d746b7fa6f63d7e76dc22202e689db09
Author: Andras Timar ati...@suse.com
Date:   Fri Jan 6 23:17:43 2012 +0100

link versioninfo resource to dlls

diff --git a/solenv/gbuild/platform/WNT_INTEL_MSC.mk 
b/solenv/gbuild/platform/WNT_INTEL_MSC.mk
index 318e0d2..284572a 100644
--- a/solenv/gbuild/platform/WNT_INTEL_MSC.mk
+++ b/solenv/gbuild/platform/WNT_INTEL_MSC.mk
@@ -474,10 +474,10 @@ $(call gb_Library_get_clean_target,$(1)) : AUXTARGETS +=  
\
$(OUTDIR)/bin/$(notdir $(patsubst %.dll,%.pdb,$(3))) \
$(OUTDIR)/bin/$(notdir $(patsubst %.dll,%.ilk,$(3))) \
 
-$(call gb_Library_add_default_nativeres,$(1),$(1)/default)
-
 endif
 
+$(call gb_Library_add_default_nativeres,$(1),$(1)/default)
+
 $(call gb_Deliver_add_deliverable,$(OUTDIR)/bin/$(notdir $(3)),$(3),$(1))
 
 $(call gb_LinkTarget_get_target,$(2)) \
@@ -490,9 +490,13 @@ $(call gb_WinResTarget_WinResTarget_init,$(2))
 $(call gb_WinResTarget_add_file,$(2),solenv/inc/shlinfo)
 $(call gb_WinResTarget_set_defs,$(2),\
$$(DEFS) \
-   -DADDITIONAL_VERINFO1 \
-   -DADDITIONAL_VERINFO2 \
-   -DADDITIONAL_VERINFO3 \
+   -DVERVARIANT=$(BUILD) \
+   -DRES_APP_VENDOR=$(OOO_VENDOR) \
+   -DORG_NAME=$(call gb_Library_get_dllname,$(1))\
+   -DINTERNAL_NAME=$(subst $(gb_Library_DLLEXT),,$(call 
gb_Library_get_dllname,$(1))) \
+   -DADDITIONAL_VERINFO1= \
+   -DADDITIONAL_VERINFO2= \
+   -DADDITIONAL_VERINFO3= \
 )
 $(call gb_Library_add_nativeres,$(1),$(2))
 $(call gb_Library_get_clean_target,$(1)) : $(call 
gb_WinResTarget_get_clean_target,$(2))
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: sc/source

2012-01-06 Thread Kohei Yoshida
 sc/source/ui/view/cellsh2.cxx |1 +
 sc/source/ui/view/tabview.cxx |   14 ++
 2 files changed, 3 insertions(+), 12 deletions(-)

New commits:
commit e0ea1b528428ac5ee450ed06f80a23e1125cd09b
Author: Kohei Yoshida kohei.yosh...@suse.com
Date:   Fri Jan 6 17:30:27 2012 -0500

Fixed the validation message popup disappearing when scrolling etc.

When the popup goes outside the visible area  get scrolled back in,
it would disappear.  Also, when setting the hint message on in the
dialog and clicking OK should show the popup right away.

diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx
index dcc4d9f..a51e8b9 100644
--- a/sc/source/ui/view/cellsh2.cxx
+++ b/sc/source/ui/view/cellsh2.cxx
@@ -911,6 +911,7 @@ void ScCellShell::ExecuteDB( SfxRequest rReq )
 aData.ResetError(); // 
reset only bShowError
 
 pTabViewShell-SetValidation( aData );
+pTabViewShell-TestHintWindow();
 rReq.Done( *pOutSet );
 }
 //after end execute from !IsModalInputMode, it is safer to 
delay deleting
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 6d1652f..a5fdf31 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -1301,10 +1301,6 @@ IMPL_LINK( ScTabView, ScrollHdl, ScrollBar*, pScroll )
 
 void ScTabView::ScrollX( long nDeltaX, ScHSplitPos eWhich, bool bUpdBars )
 {
-bool bHasHint = HasHintWindow();
-if (bHasHint)
-RemoveHintWindow();
-
 SCCOL nOldX = aViewData.GetPosX(eWhich);
 SCsCOL nNewX = static_castSCsCOL(nOldX) + static_castSCsCOL(nDeltaX);
 if ( nNewX  0 )
@@ -1384,16 +1380,11 @@ void ScTabView::ScrollX( long nDeltaX, ScHSplitPos 
eWhich, bool bUpdBars )
 
 SetNewVisArea();// MapMode muss schon gesetzt sein
 
-if (bHasHint)
-TestHintWindow();   // neu positionieren
+TestHintWindow();
 }
 
 void ScTabView::ScrollY( long nDeltaY, ScVSplitPos eWhich, bool bUpdBars )
 {
-bool bHasHint = HasHintWindow();
-if (bHasHint)
-RemoveHintWindow();
-
 SCROW nOldY = aViewData.GetPosY(eWhich);
 SCsROW nNewY = static_castSCsROW(nOldY) + static_castSCsROW(nDeltaY);
 if ( nNewY  0 )
@@ -1474,8 +1465,7 @@ void ScTabView::ScrollY( long nDeltaY, ScVSplitPos 
eWhich, bool bUpdBars )
 
 SetNewVisArea();// MapMode muss schon gesetzt sein
 
-if (bHasHint)
-TestHintWindow();   // neu positionieren
+TestHintWindow();
 }
 
 void ScTabView::ScrollLines( long nDeltaX, long nDeltaY )
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: extensions/Executable_nsplugin.mk

2012-01-06 Thread Matus Kukan
 extensions/Executable_nsplugin.mk |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 259e51677bde56dbfc45e41b28ae3bdfd08a0e82
Author: Matúš Kukan matus.ku...@gmail.com
Date:   Fri Jan 6 23:34:35 2012 +0100

extensions: nsplugin: dl is for linux

diff --git a/extensions/Executable_nsplugin.mk 
b/extensions/Executable_nsplugin.mk
index e328a5c..6bc58fb 100644
--- a/extensions/Executable_nsplugin.mk
+++ b/extensions/Executable_nsplugin.mk
@@ -46,7 +46,7 @@ $(eval $(call gb_Executable_add_linked_libs,nsplugin,\
cppu \
cppuhelper \
sal \
-   $(if $(filter $(GUI),UNX), \
+   $(if $(filter $(OS),LINUX), \
dl \
) \
$(if $(filter $(OS),SOLARIS), \
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: 2 commits - binfilter/bf_so3 binfilter/inc

2012-01-06 Thread Michael Stahl
 binfilter/bf_so3/source/solink/impldde.hxx |1 +
 binfilter/inc/bf_basic/sbstar.hxx  |1 +
 binfilter/inc/bf_sc/cellsuno.hxx   |1 +
 binfilter/inc/bf_sfx2/fcontnr.hxx  |1 +
 binfilter/inc/bf_sw/crsrsh.hxx |1 +
 5 files changed, 5 insertions(+)

New commits:
commit 9203883b8e0881ce2ab46c2899e788f922a9f086
Author: Marcel Metz mm...@adrian-broher.net
Date:   Fri Jan 6 23:19:41 2012 +0100

Removed unnecessary tools/ref.hxx includes

diff --git a/binfilter/inc/bf_sfx2/fcontnr.hxx 
b/binfilter/inc/bf_sfx2/fcontnr.hxx
index 07f9c75..13d62fb 100644
--- a/binfilter/inc/bf_sfx2/fcontnr.hxx
+++ b/binfilter/inc/bf_sfx2/fcontnr.hxx
@@ -35,6 +35,7 @@
 
 #include bf_sfx2/docfilt.hxx
 #include bf_sfx2/sfxdefs.hxx
+#include tools/ref.hxx
 class Window;
 namespace binfilter {
 
commit d08821beaa72ff1d86419dfb69203a1c28f8d9c8
Author: Marcel Metz mm...@adrian-broher.net
Date:   Fri Jan 6 23:18:39 2012 +0100

Removed unnecessary tools/link.hxx includes

diff --git a/binfilter/bf_so3/source/solink/impldde.hxx 
b/binfilter/bf_so3/source/solink/impldde.hxx
index f050eca..3a9b714 100644
--- a/binfilter/bf_so3/source/solink/impldde.hxx
+++ b/binfilter/bf_so3/source/solink/impldde.hxx
@@ -29,6 +29,7 @@
 #define _IMPLDDE_HXX
 
 #include bf_so3/linksrc.hxx
+#include tools/link.hxx
 #include tools/string.hxx
 
 namespace binfilter
diff --git a/binfilter/inc/bf_basic/sbstar.hxx 
b/binfilter/inc/bf_basic/sbstar.hxx
index 0113ab4..fbdea26 100644
--- a/binfilter/inc/bf_basic/sbstar.hxx
+++ b/binfilter/inc/bf_basic/sbstar.hxx
@@ -33,6 +33,7 @@
 
 #include sbx.hxx
 #include bf_basic/sbxobj.hxx
+#include tools/link.hxx
 #include rtl/ustring.hxx
 #include osl/mutex.hxx
 
diff --git a/binfilter/inc/bf_sc/cellsuno.hxx b/binfilter/inc/bf_sc/cellsuno.hxx
index d14593b..cc78428 100644
--- a/binfilter/inc/bf_sc/cellsuno.hxx
+++ b/binfilter/inc/bf_sc/cellsuno.hxx
@@ -89,6 +89,7 @@
 #include cppuhelper/implbase2.hxx
 #include cppuhelper/implbase3.hxx
 
+#include tools/link.hxx
 #include vector
 namespace binfilter {
 
diff --git a/binfilter/inc/bf_sw/crsrsh.hxx b/binfilter/inc/bf_sw/crsrsh.hxx
index 8ede44a..fdd8756 100644
--- a/binfilter/inc/bf_sw/crsrsh.hxx
+++ b/binfilter/inc/bf_sw/crsrsh.hxx
@@ -30,6 +30,7 @@
 
 #include bf_svtools/bf_solar.h
 
+#include tools/link.hxx
 #include tools/string.hxx
 
 #include viewsh.hxx   // fuer ViewShell
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: Branch 'libreoffice-3-5' - 2 commits - sc/inc sc/qa sc/source

2012-01-06 Thread Markus Mohrhard
 sc/inc/document.hxx  |   12 -
 sc/inc/externalrefmgr.hxx|   30 
 sc/inc/globstr.hrc   |4 
 sc/inc/rangenam.hxx  |1 
 sc/inc/tokenarray.hxx|   15 ++
 sc/qa/unit/ucalc.cxx |2 
 sc/source/core/data/cell.cxx |   14 ++
 sc/source/core/data/documen2.cxx |   24 ++-
 sc/source/core/data/document.cxx |  195 +++
 sc/source/core/tool/rangenam.cxx |9 +
 sc/source/core/tool/reftokenhelper.cxx   |5 
 sc/source/core/tool/token.cxx|  174 +++
 sc/source/ui/docshell/docsh.cxx  |   31 ++--
 sc/source/ui/docshell/externalrefmgr.cxx |   86 +
 sc/source/ui/inc/namemgrtable.hxx|4 
 sc/source/ui/namedlg/namedlg.cxx |2 
 sc/source/ui/namedlg/namemgrtable.cxx|7 -
 sc/source/ui/namedlg/namepast.cxx|5 
 sc/source/ui/src/globstr.src |8 +
 sc/source/ui/view/viewfun2.cxx   |5 
 20 files changed, 473 insertions(+), 160 deletions(-)

New commits:
commit 34b417914e041e93ddbf6035b855658d3b947636
Author: Markus Mohrhard markus.mohrh...@googlemail.com
Date:   Thu Jan 5 17:26:25 2012 +

handle relative refs in name dialogs correctly

diff --git a/sc/inc/rangenam.hxx b/sc/inc/rangenam.hxx
index 4b4f8d9..0e8de43 100644
--- a/sc/inc/rangenam.hxx
+++ b/sc/inc/rangenam.hxx
@@ -135,6 +135,7 @@ public:
 sal_uInt32  GetUnoType() const;
 SC_DLLPUBLIC void GetSymbol( String rSymbol, const 
formula::FormulaGrammar::Grammar eGrammar = 
formula::FormulaGrammar::GRAM_DEFAULT ) const;
 SC_DLLPUBLIC void GetSymbol( rtl::OUString rSymbol, const 
formula::FormulaGrammar::Grammar eGrammar = 
formula::FormulaGrammar::GRAM_DEFAULT ) const;
+SC_DLLPUBLIC void GetSymbol( rtl::OUString rSymbol, const ScAddress 
rPos, const formula::FormulaGrammar::Grammar eGrammar = 
formula::FormulaGrammar::GRAM_DEFAULT ) const;
 voidUpdateSymbol( rtl::OUStringBuffer rBuffer, const 
ScAddress,
 const formula::FormulaGrammar::Grammar 
eGrammar = formula::FormulaGrammar::GRAM_DEFAULT );
 voidUpdateReference( UpdateRefMode eUpdateRefMode,
diff --git a/sc/source/core/tool/rangenam.cxx b/sc/source/core/tool/rangenam.cxx
index a471512..8ebcc76 100644
--- a/sc/source/core/tool/rangenam.cxx
+++ b/sc/source/core/tool/rangenam.cxx
@@ -277,6 +277,15 @@ void ScRangeData::GetSymbol( OUString rSymbol, const 
FormulaGrammar::Grammar eG
 rSymbol = aStr;
 }
 
+void ScRangeData::GetSymbol( OUString rSymbol, const ScAddress rPos, const 
FormulaGrammar::Grammar eGrammar ) const
+{
+String aStr;
+ScCompiler aComp(pDoc, rPos, *pCode);
+aComp.SetGrammar(eGrammar);
+aComp.CreateStringFromTokenArray( aStr );
+rSymbol = aStr;
+}
+
 void ScRangeData::UpdateSymbol( rtl::OUStringBuffer rBuffer, const ScAddress 
rPos,
 const FormulaGrammar::Grammar eGrammar )
 {
diff --git a/sc/source/ui/inc/namemgrtable.hxx 
b/sc/source/ui/inc/namemgrtable.hxx
index 3023e29..3646164 100644
--- a/sc/source/ui/inc/namemgrtable.hxx
+++ b/sc/source/ui/inc/namemgrtable.hxx
@@ -31,6 +31,7 @@
 #include vcl/ctrl.hxx
 
 #include scresid.hxx
+#include address.hxx
 
 #include vector
 #include boost/ptr_container/ptr_map.hpp
@@ -71,6 +72,7 @@ private:
 // otherwise opening the dialog with a lot of range names is extremelly 
slow because
 // we would calculate all formula strings during opening
 std::mapSvLBoxEntry*, bool maCalculatedFormulaEntries;
+const ScAddress maPos;
 
 void GetLine(ScRangeNameLine aLine, SvLBoxEntry* pEntry);
 void Init();
@@ -78,7 +80,7 @@ private:
 const ScRangeData* findRangeData(const ScRangeNameLine rLine);
 
 public:
-ScRangeManagerTable( Window* pParent, boost::ptr_maprtl::OUString, 
ScRangeName aTabRangeNames );
+ScRangeManagerTable( Window* pParent, boost::ptr_maprtl::OUString, 
ScRangeName aTabRangeNames, const ScAddress rPos );
 virtual ~ScRangeManagerTable();
 
 void addEntry( const ScRangeNameLine rLine, bool bSetCurEntry = true );
diff --git a/sc/source/ui/namedlg/namedlg.cxx b/sc/source/ui/namedlg/namedlg.cxx
index a485986..56c50e8 100644
--- a/sc/source/ui/namedlg/namedlg.cxx
+++ b/sc/source/ui/namedlg/namedlg.cxx
@@ -144,7 +144,7 @@ void ScNameDlg::Init()
 //init UI
 maFtInfo.SetStyle(WB_VCENTER);
 
-mpRangeManagerTable = new ScRangeManagerTable(maNameMgrCtrl, maRangeMap);
+mpRangeManagerTable = new ScRangeManagerTable(maNameMgrCtrl, maRangeMap, 
maCursorPos);
 mpRangeManagerTable-SetSelectHdl( LINK( this, ScNameDlg, 
SelectionChangedHdl_Impl ) );
 mpRangeManagerTable-SetDeselectHdl( LINK( this, ScNameDlg, 
SelectionChangedHdl_Impl ) );
 
diff --git a/sc/source/ui/namedlg/namemgrtable.cxx 
b/sc/source/ui/namedlg/namemgrtable.cxx
index 7f8eb6b..b9164d3 

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

2012-01-06 Thread Kohei Yoshida
 sc/source/core/data/document.cxx |   30 ++
 1 file changed, 18 insertions(+), 12 deletions(-)

New commits:
commit 225d19808800785e3f4ad2b9b8e37f5f9397cf15
Author: Kohei Yoshida kohei.yosh...@suse.com
Date:   Fri Jan 6 20:56:20 2012 -0500

fdo#44467: Deleting sheets should adjust drawing object pages as well.

Good thing we caught this, because we were also leaking memory by not
deleting the deleted sheet instances.

diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index eb03a74..15d5295 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -95,6 +95,7 @@
 #include externalrefmgr.hxx
 #include tabprotection.hxx
 #include clipparam.hxx
+#include stlalgorithm.hxx
 
 #include map
 #include limits
@@ -651,17 +652,19 @@ bool ScDocument::DeleteTab( SCTAB nTab, ScDocument* 
pRefUndoDoc )
 if ( pUnoBroadcaster )
 pUnoBroadcaster-Broadcast( ScUpdateRefHint( URM_INSDEL, 
aRange, 0,0,-1 ) );
 
-SCTAB i;
-for (i=0; i static_castSCTAB(maTabs.size()); i++)
+for (SCTAB i = 0, n = static_castSCTAB(maTabs.size()); i  
n; ++i)
 if (maTabs[i])
-maTabs[i]-UpdateDeleteTab(nTab,false,
-pRefUndoDoc ? pRefUndoDoc-maTabs[i] : 0);
-maTabs.erase(maTabs.begin()+ nTab);
+maTabs[i]-UpdateDeleteTab(
+nTab, false, pRefUndoDoc ? pRefUndoDoc-maTabs[i] 
: 0);
+
+TableContainer::iterator it = maTabs.begin() + nTab;
+delete *it;
+maTabs.erase(it);
 // UpdateBroadcastAreas must be called between UpdateDeleteTab,
 // which ends listening, and StartAllListeners, to not modify
 // areas that are to be inserted by starting listeners.
 UpdateBroadcastAreas( URM_INSDEL, aRange, 0,0,-1);
-TableContainer::iterator it = maTabs.begin();
+it = maTabs.begin();
 for (; it != maTabs.end(); ++it)
 if ( *it )
 (*it)-UpdateCompile();
@@ -738,17 +741,20 @@ bool ScDocument::DeleteTabs( SCTAB nTab, SCTAB nSheets, 
ScDocument* pRefUndoDoc
 if ( pUnoBroadcaster )
 pUnoBroadcaster-Broadcast( ScUpdateRefHint( URM_INSDEL, 
aRange, 0,0,-1*nSheets ) );
 
-SCTAB i;
-for (i=0; i static_castSCTAB(maTabs.size()); i++)
+for (SCTAB i = 0, n = static_castSCTAB(maTabs.size()); i  
n; ++i)
 if (maTabs[i])
-maTabs[i]-UpdateDeleteTab(nTab,false,
-pRefUndoDoc ? pRefUndoDoc-maTabs[i] : 
0,nSheets);
-maTabs.erase(maTabs.begin()+ nTab, maTabs.begin() + nTab + 
nSheets);
+maTabs[i]-UpdateDeleteTab(
+nTab, false, pRefUndoDoc ? pRefUndoDoc-maTabs[i] 
: 0,nSheets);
+
+TableContainer::iterator it = maTabs.begin() + nTab;
+TableContainer::iterator itEnd = it + nSheets;
+std::for_each(it, itEnd, ScDeleteObjectByPtrScTable());
+maTabs.erase(it, itEnd);
 // UpdateBroadcastAreas must be called between UpdateDeleteTab,
 // which ends listening, and StartAllListeners, to not modify
 // areas that are to be inserted by starting listeners.
 UpdateBroadcastAreas( URM_INSDEL, aRange, 0,0,-1*nSheets);
-TableContainer::iterator it = maTabs.begin();
+it = maTabs.begin();
 for (; it != maTabs.end(); ++it)
 if ( *it )
 (*it)-UpdateCompile();
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: sc/source

2012-01-06 Thread Kohei Yoshida
 sc/source/core/data/document.cxx |   30 ++
 1 file changed, 18 insertions(+), 12 deletions(-)

New commits:
commit f60c1cd239da3e2fcb30f4af8761013c8ae9c0fc
Author: Kohei Yoshida kohei.yosh...@suse.com
Date:   Fri Jan 6 20:56:20 2012 -0500

fdo#44467: Deleting sheets should adjust drawing object pages as well.

Good thing we caught this, because we were also leaking memory by not
deleting the deleted sheet instances.

diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index eb03a74..15d5295 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -95,6 +95,7 @@
 #include externalrefmgr.hxx
 #include tabprotection.hxx
 #include clipparam.hxx
+#include stlalgorithm.hxx
 
 #include map
 #include limits
@@ -651,17 +652,19 @@ bool ScDocument::DeleteTab( SCTAB nTab, ScDocument* 
pRefUndoDoc )
 if ( pUnoBroadcaster )
 pUnoBroadcaster-Broadcast( ScUpdateRefHint( URM_INSDEL, 
aRange, 0,0,-1 ) );
 
-SCTAB i;
-for (i=0; i static_castSCTAB(maTabs.size()); i++)
+for (SCTAB i = 0, n = static_castSCTAB(maTabs.size()); i  
n; ++i)
 if (maTabs[i])
-maTabs[i]-UpdateDeleteTab(nTab,false,
-pRefUndoDoc ? pRefUndoDoc-maTabs[i] : 0);
-maTabs.erase(maTabs.begin()+ nTab);
+maTabs[i]-UpdateDeleteTab(
+nTab, false, pRefUndoDoc ? pRefUndoDoc-maTabs[i] 
: 0);
+
+TableContainer::iterator it = maTabs.begin() + nTab;
+delete *it;
+maTabs.erase(it);
 // UpdateBroadcastAreas must be called between UpdateDeleteTab,
 // which ends listening, and StartAllListeners, to not modify
 // areas that are to be inserted by starting listeners.
 UpdateBroadcastAreas( URM_INSDEL, aRange, 0,0,-1);
-TableContainer::iterator it = maTabs.begin();
+it = maTabs.begin();
 for (; it != maTabs.end(); ++it)
 if ( *it )
 (*it)-UpdateCompile();
@@ -738,17 +741,20 @@ bool ScDocument::DeleteTabs( SCTAB nTab, SCTAB nSheets, 
ScDocument* pRefUndoDoc
 if ( pUnoBroadcaster )
 pUnoBroadcaster-Broadcast( ScUpdateRefHint( URM_INSDEL, 
aRange, 0,0,-1*nSheets ) );
 
-SCTAB i;
-for (i=0; i static_castSCTAB(maTabs.size()); i++)
+for (SCTAB i = 0, n = static_castSCTAB(maTabs.size()); i  
n; ++i)
 if (maTabs[i])
-maTabs[i]-UpdateDeleteTab(nTab,false,
-pRefUndoDoc ? pRefUndoDoc-maTabs[i] : 
0,nSheets);
-maTabs.erase(maTabs.begin()+ nTab, maTabs.begin() + nTab + 
nSheets);
+maTabs[i]-UpdateDeleteTab(
+nTab, false, pRefUndoDoc ? pRefUndoDoc-maTabs[i] 
: 0,nSheets);
+
+TableContainer::iterator it = maTabs.begin() + nTab;
+TableContainer::iterator itEnd = it + nSheets;
+std::for_each(it, itEnd, ScDeleteObjectByPtrScTable());
+maTabs.erase(it, itEnd);
 // UpdateBroadcastAreas must be called between UpdateDeleteTab,
 // which ends listening, and StartAllListeners, to not modify
 // areas that are to be inserted by starting listeners.
 UpdateBroadcastAreas( URM_INSDEL, aRange, 0,0,-1*nSheets);
-TableContainer::iterator it = maTabs.begin();
+it = maTabs.begin();
 for (; it != maTabs.end(); ++it)
 if ( *it )
 (*it)-UpdateCompile();
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-01-06 Thread Kohei Yoshida
 sc/source/core/tool/interpr1.cxx |4 
 1 file changed, 4 insertions(+)

New commits:
commit 9199fedb8e20133782a081ac1c33a67d06dffbc6
Author: Kohei Yoshida kohei.yosh...@suse.com
Date:   Fri Jan 6 22:19:16 2012 -0500

fdo#36387: Get external references to work with AND and OR.

diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index a76d2b6..dcdc5fe 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -1246,6 +1246,8 @@ void ScInterpreter::ScAnd()
 }
 }
 break;
+case svExternalSingleRef:
+case svExternalDoubleRef:
 case svMatrix:
 {
 ScMatrixRef pMat = GetMatrix();
@@ -1344,6 +1346,8 @@ void ScInterpreter::ScOr()
 }
 }
 break;
+case svExternalSingleRef:
+case svExternalDoubleRef:
 case svMatrix:
 {
 bHaveValue = true;
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: sc/source

2012-01-06 Thread Kohei Yoshida
 sc/source/core/tool/interpr1.cxx |4 
 1 file changed, 4 insertions(+)

New commits:
commit 8bf08458ff38e312773bc79a32e9f7a6d2f4197d
Author: Kohei Yoshida kohei.yosh...@suse.com
Date:   Fri Jan 6 22:19:16 2012 -0500

fdo#36387: Get external references to work with AND and OR.

diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index a76d2b6..dcdc5fe 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -1246,6 +1246,8 @@ void ScInterpreter::ScAnd()
 }
 }
 break;
+case svExternalSingleRef:
+case svExternalDoubleRef:
 case svMatrix:
 {
 ScMatrixRef pMat = GetMatrix();
@@ -1344,6 +1346,8 @@ void ScInterpreter::ScOr()
 }
 }
 break;
+case svExternalSingleRef:
+case svExternalDoubleRef:
 case svMatrix:
 {
 bHaveValue = true;
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: 3 commits - sw/source

2012-01-06 Thread Jan Holesovsky
 sw/source/ui/docvw/HeaderFooterWin.cxx |   14 +++-
 sw/source/ui/docvw/PageBreakWin.cxx|  108 ++---
 sw/source/ui/inc/HeaderFooterWin.hxx   |1 
 sw/source/ui/inc/PageBreakWin.hxx  |3 
 4 files changed, 37 insertions(+), 89 deletions(-)

New commits:
commit 60c968e9a2ef14aa289e677bd7f40d2c4724fd12
Author: Jan Holesovsky ke...@suse.cz
Date:   Sat Jan 7 04:27:25 2012 +0100

Page Breaks: IsLeaveWindow() is unreliable, we do not need it here.

diff --git a/sw/source/ui/docvw/PageBreakWin.cxx 
b/sw/source/ui/docvw/PageBreakWin.cxx
index 0edeb61..ff5050b 100644
--- a/sw/source/ui/docvw/PageBreakWin.cxx
+++ b/sw/source/ui/docvw/PageBreakWin.cxx
@@ -83,17 +83,11 @@ namespace
 
 void SwBreakDashedLine::MouseMove( const MouseEvent rMEvt )
 {
-if ( rMEvt.IsLeaveWindow() )
-{
-// don't fade if we just move to the 'button'
-Point aEventPos( GetPosPixel() + rMEvt.GetPosPixel() );
-if ( !m_pWin-Contains( aEventPos ) )
-m_pWin-Fade( false );
-}
+Point aEventPos( GetPosPixel() + rMEvt.GetPosPixel() );
+if ( !m_pWin-Contains( aEventPos ) )
+m_pWin-Fade( false );
 else if ( !m_pWin-IsVisible() )
-{
 m_pWin-Fade( true );
-}
 
 if ( !rMEvt.IsSynthetic() )
 {
@@ -309,13 +303,9 @@ void SwPageBreakWin::Select( )
 
 void SwPageBreakWin::MouseMove( const MouseEvent rMEvt )
 {
-if ( rMEvt.IsLeaveWindow() )
-{
-// don't fade if we just move to the 'line', or the popup menu is open
-Point aEventPos( rMEvt.GetPosPixel() + rMEvt.GetPosPixel() );
-if ( !Contains( aEventPos )  !PopupMenu::IsInExecute() )
-Fade( false );
-}
+Point aEventPos( rMEvt.GetPosPixel() + rMEvt.GetPosPixel() );
+if ( !Contains( aEventPos )  !PopupMenu::IsInExecute() )
+Fade( false );
 else if ( !IsVisible() )
 Fade( true );
 }
commit aa3bfbe776bcefd7e7b143e6843315df6b2a5ecb
Author: Jan Holesovsky ke...@suse.cz
Date:   Sat Jan 7 04:16:44 2012 +0100

Header/Footer, Page Breaks: Delay appearing by 500ms.

The delay was a good idea, just the 1s was too long.

diff --git a/sw/source/ui/docvw/HeaderFooterWin.cxx 
b/sw/source/ui/docvw/HeaderFooterWin.cxx
index ff7d50e..330c1ff 100644
--- a/sw/source/ui/docvw/HeaderFooterWin.cxx
+++ b/sw/source/ui/docvw/HeaderFooterWin.cxx
@@ -153,6 +153,7 @@ SwHeaderFooterWin::SwHeaderFooterWin( SwEditWin* pEditWin, 
const SwPageFrm* pPag
 m_pLine( NULL ),
 m_bIsAppearing( false ),
 m_nFadeRate( 100 ),
+m_nDelayAppearing( 0 ),
 m_aFadeTimer( )
 {
 // Get the font and configure it
@@ -243,6 +244,9 @@ void SwHeaderFooterWin::ShowAll( bool bShow )
 if ( !PopupMenu::IsInExecute() )
 {
 m_bIsAppearing = bShow;
+if ( bShow )
+m_nDelayAppearing = 0;
+
 if ( m_aFadeTimer.IsActive( ) )
 m_aFadeTimer.Stop();
 m_aFadeTimer.Start( );
@@ -516,6 +520,14 @@ void SwHeaderFooterWin::Select( )
 
 IMPL_LINK( SwHeaderFooterWin, FadeHandler, Timer *, EMPTYARG )
 {
+const int TICKS_BEFORE_WE_APPEAR = 10;
+if ( m_bIsAppearing  m_nDelayAppearing  TICKS_BEFORE_WE_APPEAR )
+{
+++m_nDelayAppearing;
+m_aFadeTimer.Start();
+return 0;
+}
+
 if ( m_bIsAppearing  m_nFadeRate  0 )
 m_nFadeRate -= 25;
 else if ( !m_bIsAppearing  m_nFadeRate  100 )
@@ -535,7 +547,7 @@ IMPL_LINK( SwHeaderFooterWin, FadeHandler, Timer *, 
EMPTYARG )
 Invalidate();
 
 if ( IsVisible( )  m_nFadeRate  0  m_nFadeRate  100 )
-m_aFadeTimer.Start();
+m_aFadeTimer.Start();
 
 return 0;
 }
diff --git a/sw/source/ui/docvw/PageBreakWin.cxx 
b/sw/source/ui/docvw/PageBreakWin.cxx
index 0617101..0edeb61 100644
--- a/sw/source/ui/docvw/PageBreakWin.cxx
+++ b/sw/source/ui/docvw/PageBreakWin.cxx
@@ -110,6 +110,7 @@ SwPageBreakWin::SwPageBreakWin( SwEditWin* pEditWin, const 
SwPageFrm* pPageFrm )
 m_pLine( NULL ),
 m_bIsAppearing( false ),
 m_nFadeRate( 100 ),
+m_nDelayAppearing( 0 ),
 m_bDestroyed( false ),
 m_pMousePt( NULL )
 {
@@ -424,6 +425,9 @@ void SwPageBreakWin::SetReadonly( bool bReadonly )
 void SwPageBreakWin::Fade( bool bFadeIn )
 {
 m_bIsAppearing = bFadeIn;
+if ( bFadeIn )
+m_nDelayAppearing = 0;
+
 if ( !m_bDestroyed  m_aFadeTimer.IsActive( ) )
 m_aFadeTimer.Stop();
 if ( !m_bDestroyed )
@@ -439,6 +443,14 @@ IMPL_LINK( SwPageBreakWin, HideHandler, void *, EMPTYARG )
 
 IMPL_LINK( SwPageBreakWin, FadeHandler, Timer *, EMPTYARG )
 {
+const int TICKS_BEFORE_WE_APPEAR = 10;
+if ( m_bIsAppearing  m_nDelayAppearing  TICKS_BEFORE_WE_APPEAR )
+{
+++m_nDelayAppearing;
+m_aFadeTimer.Start();
+return 0;
+}
+
 if ( m_bIsAppearing  m_nFadeRate  0 )
 m_nFadeRate -= 25;
 else if ( !m_bIsAppearing  m_nFadeRate  100 )
diff --git 

[Libreoffice-commits] .: sc/qa

2012-01-06 Thread Kohei Yoshida
 sc/qa/unit/ucalc.cxx |  117 ++-
 1 file changed, 97 insertions(+), 20 deletions(-)

New commits:
commit f0c9362d9dca4bda4f3d87e181a2b59fcc08d7d2
Author: Kohei Yoshida kohei.yosh...@suse.com
Date:   Fri Jan 6 23:59:40 2012 -0500

New unit test code for drawing objects.

diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 5471c47..1adc2bf 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -65,6 +65,7 @@
 
 #include svx/svdograf.hxx
 #include svx/svdpage.hxx
+#include svx/svdocirc.hxx
 
 #include sfx2/docfile.hxx
 
@@ -151,6 +152,7 @@ public:
 void testFunctionLists();
 
 void testGraphicsInGroup();
+void testGraphicsOnSheetMove();
 
 void testPostIts();
 
@@ -186,6 +188,7 @@ public:
 CPPUNIT_TEST(testExternalRefFunctions);
 CPPUNIT_TEST(testDataArea);
 CPPUNIT_TEST(testGraphicsInGroup);
+CPPUNIT_TEST(testGraphicsOnSheetMove);
 CPPUNIT_TEST(testPostIts);
 CPPUNIT_TEST(testStreamValid);
 CPPUNIT_TEST(testFunctionLists);
@@ -2447,32 +2450,106 @@ void Test::testGraphicsInGroup()
 SdrPage* pPage = pDrawLayer-GetPage(0);
 CPPUNIT_ASSERT_MESSAGE(must have a draw page, pPage != NULL);
 
-//Add a square
-Rectangle aOrigRect(2,2,100,100);
-SdrRectObj *pObj = new SdrRectObj(aOrigRect);
-pPage-InsertObject(pObj);
-const Rectangle rNewRect = pObj-GetLogicRect();
-CPPUNIT_ASSERT_MESSAGE(must have equal position and size, aOrigRect == 
rNewRect);
+{
+//Add a square
+Rectangle aOrigRect(2,2,100,100);
+SdrRectObj *pObj = new SdrRectObj(aOrigRect);
+pPage-InsertObject(pObj);
+const Rectangle rNewRect = pObj-GetLogicRect();
+CPPUNIT_ASSERT_MESSAGE(must have equal position and size, aOrigRect 
== rNewRect);
+
+ScDrawLayer::SetPageAnchored(*pObj);
+
+//Use a range of rows guaranteed to include all of the square
+m_pDoc-ShowRows(0, 100, 0, false);
+CPPUNIT_ASSERT_MESSAGE(Should not change when page anchored, 
aOrigRect == rNewRect);
+m_pDoc-ShowRows(0, 100, 0, true);
+CPPUNIT_ASSERT_MESSAGE(Should not change when page anchored, 
aOrigRect == rNewRect);
+
+ScDrawLayer::SetCellAnchoredFromPosition(*pObj, *m_pDoc, 0);
+CPPUNIT_ASSERT_MESSAGE(That shouldn't change size or positioning, 
aOrigRect == rNewRect);
+
+m_pDoc-ShowRows(0, 100, 0, false);
+CPPUNIT_ASSERT_MESSAGE(Left and Right should be unchanged,
+aOrigRect.nLeft == rNewRect.nLeft  aOrigRect.nRight == 
rNewRect.nRight);
+CPPUNIT_ASSERT_MESSAGE(Height should be minimum allowed height,
+(rNewRect.nBottom - rNewRect.nTop) = 1);
+m_pDoc-ShowRows(0, 100, 0, true);
+CPPUNIT_ASSERT_MESSAGE(Should not change when page anchored, 
aOrigRect == rNewRect);
+}
 
-ScDrawLayer::SetPageAnchored(*pObj);
+{
+// Add a circle.
+Rectangle aOrigRect = Rectangle(10,10,210,210); // 200 x 200
+SdrCircObj* pObj = new SdrCircObj(OBJ_CIRC, aOrigRect);
+pPage-InsertObject(pObj);
+const Rectangle rNewRect = pObj-GetLogicRect();
+CPPUNIT_ASSERT_MESSAGE(Position and size of the circle shouldn't 
change when inserted into the page.,
+   aOrigRect == rNewRect);
+
+ScDrawLayer::SetCellAnchoredFromPosition(*pObj, *m_pDoc, 0);
+CPPUNIT_ASSERT_MESSAGE(Size changed when cell anchored. Not good.,
+   aOrigRect == rNewRect);
+
+// Insert 2 rows at the top.  This should push the circle object down.
+m_pDoc-InsertRow(0, 0, MAXCOL, 0, 0, 2);
+
+// Make sure the size of the circle is still identical.
+CPPUNIT_ASSERT_MESSAGE(Size of the circle has changed, but 
shouldn't!,
+   aOrigRect.GetSize() == rNewRect.GetSize());
+
+// Delete 2 rows at the top.  This should bring the circle object to 
its original position.
+m_pDoc-DeleteRow(0, 0, MAXCOL, 0, 0, 2);
+CPPUNIT_ASSERT_MESSAGE(Failed to move back to its original 
position., aOrigRect == rNewRect);
+}
 
-//Use a range of rows guaranteed to include all of the square
-m_pDoc-ShowRows(0, 100, 0, false);
-CPPUNIT_ASSERT_MESSAGE(Should not change when page anchored, aOrigRect 
== rNewRect);
-m_pDoc-ShowRows(0, 100, 0, true);
-CPPUNIT_ASSERT_MESSAGE(Should not change when page anchored, aOrigRect 
== rNewRect);
+m_pDoc-DeleteTab(0);
+}
 
+void Test::testGraphicsOnSheetMove()
+{
+m_pDoc-InsertTab(0, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(Tab1)));
+m_pDoc-InsertTab(1, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(Tab2)));
+CPPUNIT_ASSERT_MESSAGE(There should be only 2 sheets to begin with, 
m_pDoc-GetTableCount() == 2);
+
+m_pDoc-InitDrawLayer();
+ScDrawLayer* pDrawLayer = m_pDoc-GetDrawLayer();
+CPPUNIT_ASSERT_MESSAGE(No drawing layer., pDrawLayer);
+SdrPage* pPage = 

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

2012-01-06 Thread Kohei Yoshida
 sc/source/core/data/document.cxx |7 ---
 1 file changed, 7 deletions(-)

New commits:
commit 34b8ee9b1cc7657fbdcad36cd29971038d2c6e6c
Author: Kohei Yoshida kohei.yosh...@suse.com
Date:   Sat Jan 7 00:14:35 2012 -0500

Removing debug statements.

diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 15d5295..61fdbe5 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -100,9 +100,6 @@
 #include map
 #include limits
 
-#include rtl/oustringostreaminserter.hxx
-#include iostream
-
 using ::editeng::SvxBorderLine;
 using namespace ::com::sun::star;
 
@@ -1729,11 +1726,7 @@ void ScDocument::InitUndo( ScDocument* pSrcDoc, SCTAB 
nTab1, SCTAB nTab2,
 
 xPoolHelper = pSrcDoc-xPoolHelper;
 if (pSrcDoc-pShell-GetMedium())
-{
 maFileURL = 
pSrcDoc-pShell-GetMedium()-GetURLObject().GetMainURL(INetURLObject::DECODE_TO_IURI);
-std::cout  SfxMedium:   maFileURL  std::endl;
-std::cout  GetName:   
rtl::OUString(pSrcDoc-pShell-GetName())  std::endl;
-}
 
 rtl::OUString aString;
 if ( nTab2 = static_castSCTAB(maTabs.size()))
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: sc/source

2012-01-06 Thread Kohei Yoshida
 sc/source/core/data/document.cxx |7 ---
 1 file changed, 7 deletions(-)

New commits:
commit d74c77428deba9619c678a59d6442ec281385264
Author: Kohei Yoshida kohei.yosh...@suse.com
Date:   Sat Jan 7 00:14:35 2012 -0500

Removing debug statements.

diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 15d5295..61fdbe5 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -100,9 +100,6 @@
 #include map
 #include limits
 
-#include rtl/oustringostreaminserter.hxx
-#include iostream
-
 using ::editeng::SvxBorderLine;
 using namespace ::com::sun::star;
 
@@ -1729,11 +1726,7 @@ void ScDocument::InitUndo( ScDocument* pSrcDoc, SCTAB 
nTab1, SCTAB nTab2,
 
 xPoolHelper = pSrcDoc-xPoolHelper;
 if (pSrcDoc-pShell-GetMedium())
-{
 maFileURL = 
pSrcDoc-pShell-GetMedium()-GetURLObject().GetMainURL(INetURLObject::DECODE_TO_IURI);
-std::cout  SfxMedium:   maFileURL  std::endl;
-std::cout  GetName:   
rtl::OUString(pSrcDoc-pShell-GetName())  std::endl;
-}
 
 rtl::OUString aString;
 if ( nTab2 = static_castSCTAB(maTabs.size()))
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: sw/source toolkit/source ucb/source ucb/workben unodevtools/source

2012-01-06 Thread Takeshi Abe
 sw/source/core/edit/edundo.cxx   |6 +-
 sw/source/core/tox/toxhlp.cxx|   12 ++---
 sw/source/core/unocore/unoparagraph.cxx  |4 -
 sw/source/core/unocore/unoport.cxx   |6 +-
 sw/source/core/unocore/unorefmk.cxx  |2 
 sw/source/core/unocore/unosect.cxx   |2 
 sw/source/core/unocore/unostyle.cxx  |4 -
 sw/source/filter/xml/swxml.cxx   |   10 ++--
 toolkit/source/awt/vclxtoolkit.cxx   |8 +--
 toolkit/source/controls/tree/treecontrol.cxx |8 +--
 ucb/source/ucp/expand/ucpexpand.cxx  |2 
 ucb/source/ucp/webdav/DAVResourceAccess.cxx  |   40 +--
 ucb/source/ucp/webdav/DAVResourceAccess.hxx  |2 
 ucb/workben/ucb/ucbdemo.cxx  |4 -
 unodevtools/source/skeletonmaker/cppcompskeleton.cxx |4 -
 15 files changed, 57 insertions(+), 57 deletions(-)

New commits:
commit e4ce7225dd987f9b2f250f055d9688de79931444
Author: Takeshi Abe t...@fixedpoint.jp
Date:   Sat Jan 7 15:50:41 2012 +0900

catch exception by constant reference

diff --git a/sw/source/core/edit/edundo.cxx b/sw/source/core/edit/edundo.cxx
index 7b2ae83..95c9252 100644
--- a/sw/source/core/edit/edundo.cxx
+++ b/sw/source/core/edit/edundo.cxx
@@ -136,7 +136,7 @@ bool SwEditShell::Undo(sal_uInt16 const nCount)
 bRet = GetDoc()-GetIDocumentUndoRedo().Undo()
 || bRet;
 }
-} catch (::com::sun::star::uno::Exception  e) {
+} catch (const ::com::sun::star::uno::Exception  e) {
 OSL_TRACE(SwEditShell::Undo(): exception caught:\n %s,
 ::rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8)
 .getStr());
@@ -187,7 +187,7 @@ bool SwEditShell::Redo(sal_uInt16 const nCount)
 bRet = GetDoc()-GetIDocumentUndoRedo().Redo()
 || bRet;
 }
-} catch (::com::sun::star::uno::Exception  e) {
+} catch (const ::com::sun::star::uno::Exception  e) {
 OSL_TRACE(SwEditShell::Redo(): exception caught:\n %s,
 ::rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8)
 .getStr());
@@ -217,7 +217,7 @@ bool SwEditShell::Repeat(sal_uInt16 const nCount)
 ::sw::RepeatContext context(*GetDoc(), *GetCrsr());
 bRet = GetDoc()-GetIDocumentUndoRedo().Repeat( context, nCount )
 || bRet;
-} catch (::com::sun::star::uno::Exception  e) {
+} catch (const ::com::sun::star::uno::Exception  e) {
 OSL_TRACE(SwEditShell::Repeat(): exception caught:\n %s,
 ::rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8)
 .getStr());
diff --git a/sw/source/core/tox/toxhlp.cxx b/sw/source/core/tox/toxhlp.cxx
index 95e5a20..f1ae986 100644
--- a/sw/source/core/tox/toxhlp.cxx
+++ b/sw/source/core/tox/toxhlp.cxx
@@ -55,7 +55,7 @@ IndexEntrySupplierWrapper::IndexEntrySupplierWrapper()
 x = xIES;
 }
 }
-catch ( UNO_NMSPC::Exception
+catch (const UNO_NMSPC::Exception
 #if OSL_DEBUG_LEVEL  0
 e
 #endif
@@ -81,7 +81,7 @@ String IndexEntrySupplierWrapper::GetIndexKey( const String 
rTxt,
 try {
 sRet = xIES-getIndexKey( rTxt, rTxtReading, rLocale );
 }
-catch ( UNO_NMSPC::Exception
+catch (const UNO_NMSPC::Exception
 #if OSL_DEBUG_LEVEL  0
 e
 #endif
@@ -102,7 +102,7 @@ String IndexEntrySupplierWrapper::GetFollowingText( 
sal_Bool bMorePages ) const
 try {
 sRet = xIES-getIndexFollowPageWord( bMorePages, aLcl );
 }
-catch ( UNO_NMSPC::Exception
+catch (const UNO_NMSPC::Exception
 #if OSL_DEBUG_LEVEL  0
 e
 #endif
@@ -125,7 +125,7 @@ IndexEntrySupplierWrapper::GetAlgorithmList( const 
STAR_NMSPC::lang::Locale rLc
 try {
 sRet = xIES-getAlgorithmList( rLcl );
 }
-catch ( UNO_NMSPC::Exception
+catch (const UNO_NMSPC::Exception
 #if OSL_DEBUG_LEVEL  0
 e
 #endif
@@ -148,7 +148,7 @@ sal_Bool IndexEntrySupplierWrapper::LoadAlgorithm(
 try {
 bRet = xIES-loadAlgorithm( rLcl, sSortAlgorithm, nOptions );
 }
-catch ( UNO_NMSPC::Exception
+catch (const UNO_NMSPC::Exception
 #if OSL_DEBUG_LEVEL  0
 e
 #endif
@@ -174,7 +174,7 @@ sal_Int16 IndexEntrySupplierWrapper::CompareIndexEntry(
 nRet = xIES-compareIndexEntry( rTxt1, rTxtReading1, rLocale1,
 rTxt2, rTxtReading2, rLocale2 );
 }
-catch ( UNO_NMSPC::Exception
+catch (const UNO_NMSPC::Exception
 #if OSL_DEBUG_LEVEL  0
 e
 #endif
diff --git a/sw/source/core/unocore/unoparagraph.cxx 
b/sw/source/core/unocore/unoparagraph.cxx
index 930eaf9..0f8a412 100644
--- a/sw/source/core/unocore/unoparagraph.cxx
+++ b/sw/source/core/unocore/unoparagraph.cxx
@@ -432,7 +432,7 @@ throw 

Re: [Libreoffice] UNO Object Life Cycle question

2012-01-06 Thread Stephan Bergmann

On 01/05/2012 03:52 PM, Tomas Hlavaty wrote:

I'm implementing
http://wiki.services.openoffice.org/wiki/Uno/Remote/Specifications/Uno_Remote_Protocol#Object_Life_Cycle
and can't make much sense of it.  It seems to me that the spec is
contradictory:

   ...  unless it considers as bridged in any tupleo, t', where t' is
   a subtype of t (including t itself).  If the same tuple appears
   multiple times in the data of a message, the corresponding reference
   count is incremented multiple times.

   ...

   The optimization rule (to not increment the reference count foro, t
   wheno, t  itself or some subtype tupleo, t'  is considered as
   bridged in) is broken...

The last quoted paragraph:

   to not increment the reference count foro, t  wheno, t  itself or
   some subtype tupleo, t'  is considered as bridged in

doesn't sound like reference counting.  If the client fetches XInterface
first, then the reference count can only ever be maximum 1.  It somehow
seems very dependent on what types the client fetches in what order.
Also this rule contradicts the sentense:

   If the same tuple appears multiple times in the data of a message, the
   corresponding reference count is incremented multiple times.


No, the sending side increments its ref count multiple times for a given 
tuple it sends, unless it earlier received that tuple from the other 
side (i.e., it is bridged in at this side), in which case it does not 
increment the ref count at all.



Is this spec still valid?


Yes.


I implemented the algorithm according to my understanding of the above
spec reducing memory leaks by 1/2 but I still get many leaks.  If I'm
strict and ignore the broken optimization rule, I get LO crashing after
some time, likely because of double release.  I'm still missing
something to get refcounting exactly the way LO does it.


This is tricky shit, indeed.


Why is the reference counting algorithm dependent on the casted type in
the first place?  Shouldn't the reference count be interesting only in
connection with oid and notoid,type?


This is due to the design decision that an object can be revealed across 
a bridge piecemeal:  If the remote side first only requests XInterface, 
it creates a proxy only for XInterface.  If it later also requests some 
derived XFoo, it creates an additional proxy for XFoo.  (If it then 
requests some intermediate XBar from within the hierarchy chain 
XInterface - XBar - XFoo, the existing XFoo proxy will already take care 
of that.)  There are individual ref counts for the different proxies, in 
order to be able to release individual proxies as early as possible. 
But this design is not necessarily the best one, indeed.  (And having 
multiple proxies representing the same UNO object only works because UNO 
object identity is checked with special functionality in the various 
language bindings, e.g., not with plain == in Java UNO.  Another 
questionable design decision.)



UNO is a distributed protocol.  The links should be considered
unreliable.  Is there a mechanism that when a link between the server
and client bridge breaks, the server releases the resources properly, or
do we get/expect memory leaks?


In some sense this is a QoI issue.  But existing URP endpoints (binary 
and Java) do note if a connection is broken and locally release the 
objects they have bridged out across that connection.



Also, it is not exactly clear at which point in time the release message
should be sent.  One such point in time could be when the client is
finished with the session.  At that point, the client needs to send at
least as many release messages as the number of all the incremented
refcounts it noticed according to this algorithm.  That is potentially
many messages, slowing down the session considerably.  Is there a way to
simply end the session and declare all references not used anymore in
one go/message without causing leaks in the server?


Release messages should generally be sent as early as possible, so that 
the remote side can clean up garbage as early as possible.  (With the 
above said, just lowering a connection without releasing references 
before should actually also happen to work, even if it is not good style 
to defer release messages unduly.)



Thank you,


Good luck!

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


Re: [Libreoffice] [REVIEW 3-5] [PUSHED 3-5] request to cherry pick fix for fdo44172

2012-01-06 Thread David Tardon
On Thu, Jan 05, 2012 at 03:31:02PM -0500, August Sodora wrote:
 Hello all,
 
 I recently fixed a pretty embarrassing regression in basic and I'm
 pretty sure it should cherry picked to the relevant branches. The
 commit is here:
 
 http://cgit.freedesktop.org/libreoffice/core/commit/?id=25e84ee95954a28d9a6a1b346e6673a9a6de71cc

Hi,

I am pretty sure the original intent was

rtl::OUStringBuffer aRet(rStr.Len());

Anyway, I pushed your fix into 3.5.  It is not relevant for 3.4, because
the function is implemented in different way there.

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


Re: [Libreoffice] OOo issue 101224. could it be a LibO easy hack?

2012-01-06 Thread julien2412

Tommy wrote
 
 On Thu, 05 Jan 2012 22:21:02 +0100, julien2412 lt;serval2412@gt; wrote:
 
 Hi Tommy,

 I'm not an expert but like you, I dislike duplication. Now what do you do
 with words like : colour, humour, etc. that you write in English  
 whereas
 you would write color, humor, etc in US ?
 Of course, it's perhaps just nitpicking since these words are just some
 cases.

 Julien.

 --
 
 as I said in the original issue of OOo the subtype policy must be kept  
 because of the minority
 of words that have different spelling among language variants
 ...
 
I must have missed this part :-) So, I agree with you. Now I can't say if
technically, it's easy or not or if there could be some pitfalls.

Julien.

--
View this message in context: 
http://nabble.documentfoundation.org/OOo-issue-101224-could-it-be-a-LibO-easy-hack-tp3636179p3637369.html
Sent from the Dev mailing list archive at Nabble.com.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] About enabling Icedove addressbook connection for Base

2012-01-06 Thread Alexander Thurgood
Le 05/01/12 21:38, julien2412 a écrit :
 I found that the main thing to change was in
 connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx. But by running
 some tests, it seems that the root directory is ~/.config instead of ~/
 




 ::osl::Security::getConfigDir is used to find the config dir for those
 mozilla apps. Its a good thing that we honour XDG_CONFIG_HOME for
 getConfigDir, but mozilla doesn't use it. Question is whether the fix would
 be #ifdef UNX getHomeDir and what the situation is/should be for macosx
 

Well the default user profile on Mac is generally stored here :
/Users/username/Library/Thunderbird/Profiles/xyz.default

profiles.ini is stored in the higher Thunderbird directory.
All of the other Thunderbird config stuff seems stored here too.

Not sure whether that helps you.

Alex



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


[Libreoffice] REMINDER: Release 3.5.0-beta3 from libreoffice-3-5 branch and hard string and UI freeze

2012-01-06 Thread Petr Mladek
Hi,

please note that the commit deadline for 3.5.0-beta3 is on Monday,
January 9, 2012.

IMPORTANT: It is also the hard string and UI freeze. Please, do you
best to include late features or at least the needed strings.

Note that it is the last scheduled beta. The next commit deadline will
be for rc1, just one week later, on Monday, January 16, 2011.


See also
http://wiki.documentfoundation.org/ReleasePlan#3.5_release
http://wiki.documentfoundation.org/Release_Criteria
http://wiki.documentfoundation.org/Development/Branches


Best Regards,
Petr


PS: The original hard string freeze was before Christmas. There was not
enough time to fix bugs in the strings, e.g. add help for the online
update functionality. So, we shifted the deadline to beta3.

IMHO, it was worth doing. There have been only few strings modified so
far, so it should not cause big harm to translators.

Also note that .0 release will be distributed with a warning that it
might include annoying bugs. People, who want well stable release would
need to wait for a later bug fix release. So, it is fine to have few
non-translated strings there.

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


Re: [Libreoffice] UNO Object Life Cycle question

2012-01-06 Thread Stephan Bergmann

On 01/05/2012 03:52 PM, Tomas Hlavaty wrote:

UNO is a distributed protocol.  The links should be considered
unreliable.


Do note that UNO was not designed with unreliability of remote 
communication in mind.  It comes from a time and culture where RPC was 
considered cool.  The world knows better now.


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


Re: [Libreoffice] OOo issue 101224. could it be a LibO easy hack?

2012-01-06 Thread Jan Holesovsky
Hi Tommy,

On 2012-01-06 at 08:52 +0100, Tommy wrote:

 there's however the vast majority of words that have exactly the same
 spelling... let's take an example: “yellow” which is the same in England,  
 USA,
 South Africa, Australia, Canada etc. etc.
 
 if you come with a typing error like “yrllow” you should set an autocorrect
 entry in each of the localized english .dat files... it would be too time
 consuming...
 
 It would be much user friendly and time saving to have a “non localized”  
 acor-
 en.dat file whose entries are shared by all english subtypes.
 
 I'm not asking to merge the GB and US acor.dat files...
 I'm asking to add an additional “non localized” database.
 
 This would have the advantage to handle autocorrection of the vast  
 majority of
 common spelling english words regardless of the regional language subtype  
 of
 documents.

The code you want to play with is editeng/source/misc/svxacorr.cxx .

You probably want to tweak SvxAutoCorrect::SearchWordsInList() so that
it fallbacks to 'en' in case the word is not found in 'en_US', or
something like that; but you will have to tweak some code around that
probably too, in order to load the shared acor_XY.dat in addition to
acor_XY_AB.dat, etc.

I don't think it is hard; but some constructs used in that piece of code
are not too obvious, my favorite is this condition:

else if( ( FStatHelper::IsDocument( sUserDirFile ) ||
FStatHelper::IsDocument( sShareDirFile =
  GetAutoCorrFileName( eLang, sal_False, sal_False 
) ) ) ||
( sShareDirFile = sUserDirFile, bNewFile ))

Regards,
Kendy

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


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

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

Bug 37361 depends on bug 43862, which changed state.

Bug 43862 Summary: Page FORMATTING: Margin settings information not compatible 
with 3.4.4
https://bugs.freedesktop.org/show_bug.cgi?id=43862

   What|Old Value   |New Value

 Resolution||FIXED
 Status|NEW |RESOLVED

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


Re: [Libreoffice] limiting maximum sheet number to 10000 in 32 bit builds

2012-01-06 Thread Jean-Baptiste Faure
Hi Markus,

Le 06/01/2012 00:49, Markus Mohrhard a écrit :
 Hey,
 
 I'm sorry but I have to correct one of our features from the release
 note page. After some discussion I need to limit the maximum amount of
 sheets in 32 bit builds to 1 sheets. That should still be much
 more than most people will ever need but we had some adventurous users
 who tried to create 32000 sheets in 32 bit environments. Since we need
 really much memory for an empty sheet ( around 120-150KB in a 64bit
 build ) we got several reports of crashs because of a std::bad_alloc.
 
 There are still a lot of other ways to crash Calc with a
 std::bad_alloc but I hope that all other ways are better hidden and
 will only occur if the user tries to crash Calc. In theory we should
 work on catching std::bad_alloc but I recall that handling
 std::bad_alloc is often tricky.
 
 Any objections against limiting the number of sheets to 1 for the
 32 bit builds and perhaps for 64 bit builds too? I'm sorry for all the
 problems I created with this.

No problem for me, I think 1 is still very high.
I suggest you consider differently the number of sheets created by
default for a new spreadsheet. If you set this number of sheets to a
very high value the creation of the empty document take very long time.
So the user will have a bad user experience.

I have tried to reproduce the crash on Linux 64 bits by setting the
option value to 3 and the creation of a new speadsheet took several
minutes. No crash but 5 Go of RAM. I killed LibO instead of closing the
file. Problem: when creating another spreadsheet I had still the same
option. Knowing that you can't access Calc options without having a Calc
document opend, how do you kill this vicious circle? Ok, easy for an
experienced user: open a small existing Calc document and modify the
option. I am not sure whether a new user can find the solution easily.

My proposition:
1/ Maximum number of sheets : 1
2/ Limit on the number of sheets created by default: 20

Best regards.
JBF
-- 
Seuls des formats ouverts peuvent assurer la pérennité de vos documents.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] OOo issue 101224. could it be a LibO easy hack?

2012-01-06 Thread Tommy

On Fri, 06 Jan 2012 10:15:15 +0100, Jan Holesovsky ke...@suse.cz wrote:



The code you want to play with is editeng/source/misc/svxacorr.cxx .



unfortunately, I'm just an user without coding skills...
so I can't do the job... I hope that some developer could have the
interest and time to try working this out.

your informations are very precious and may help


You probably want to tweak SvxAutoCorrect::SearchWordsInList() so that
it fallbacks to 'en' in case the word is not found in 'en_US', or
something like that; but you will have to tweak some code around that
probably too, in order to load the shared acor_XY.dat in addition to
acor_XY_AB.dat, etc.



well, I think we should try to understand and then emulate the
behaviour of the all languages acor.dat file which does something  
similar..


this dat file contains an autocorrect database which is
applied to every language... each entry of the acor.dat works
from Arabian to Zulu language

while the other .dat files are restricted to a single language.

i.e.  acor-en_US.dat -- american english
  acor-en_GB.dat -- UK english

the goal would be to create an acor-en_ALL.dat
whose entries would be applied only in english text, regardless of the
subvariant (US, GB, AUS etc. etc.)

the same would apply to all variants od Deutsch, Italian, French,
Spanish, Portoguese etc. etc.



I don't think it is hard; but some constructs used in that piece of code
are not too obvious, my favorite is this condition:

else if( ( FStatHelper::IsDocument( sUserDirFile ) ||
FStatHelper::IsDocument( sShareDirFile =
  GetAutoCorrFileName( eLang, sal_False,  
sal_False ) ) ) ||

( sShareDirFile = sUserDirFile, bNewFile ))

Regards,
Kendy




as I said the OOo devs that were involved in the autocorrect thing
were os and tl

I don't know if there's anybody round here who worked with them or knows  
them

















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


[Libreoffice] [REVIEW][3-5] fdo#44219 RHEL-4 buildbot doesn't have FT_Library_SetLcdFilter

2012-01-06 Thread Caolán McNamara
So the support for setting it isn't compiled in, so the result when
deployed on a recent Ubuntu is that you get weird-ass lcdfilter colour
effects around letters.

Proposed fix is to hack in dlsyming FT_Library_SetLcdFilter (when dlsym
functions are available) as the fallback, which seems to work.

C.

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


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

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

Bug 37361 depends on bug 44219, which changed state.

Bug 44219 Summary: Cairo subpixel rendering different in 3.5.0 beta2 vs earlier 
versions
https://bugs.freedesktop.org/show_bug.cgi?id=44219

   What|Old Value   |New Value

 Status|NEW |ASSIGNED
 Resolution||FIXED
 Status|ASSIGNED|RESOLVED

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


Re: [Libreoffice] Doxygen for C/C++ URE Documentation

2012-01-06 Thread Caolán McNamara
On Thu, 2012-01-05 at 20:11 +0100, Stephan Bergmann wrote:
 On 01/04/2012 03:30 PM, Stephan Bergmann wrote:
  If there are no objections, I will commit this to master later this week.
 
 Done, 
 http://cgit.freedesktop.org/libreoffice/core/commit/?id=58ab12acf576a765ec47cc2753ba57643e51d653
  
 Switch from autodoc to doxygen for SDK C++ documentation. 
 Additionally filed easy hack 

So, does that mean we can now remove autodoc and udm from the tree ?

C.

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


Re: [Libreoffice] [REVIEW 3-5] [PUSHED 3-5] request to cherry pick fix for fdo44172

2012-01-06 Thread Caolán McNamara
On Fri, 2012-01-06 at 09:45 +0100, David Tardon wrote:
 On Thu, Jan 05, 2012 at 03:31:02PM -0500, August Sodora wrote:
  http://cgit.freedesktop.org/libreoffice/core/commit/?id=25e84ee95954a28d9a6a1b346e6673a9a6de71cc
 
 Hi,
 
 I am pretty sure the original intent was
 
 rtl::OUStringBuffer aRet(rStr.Len());

Fix is good, god only knows that the original committer, *cough*,
thought he was doing.

C.

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


Re: [Libreoffice] OOo issue 101224. could it be a LibO easy hack?

2012-01-06 Thread Michael Meeks
Hi Tommy,

On Fri, 2012-01-06 at 10:56 +0100, Tommy wrote:
 unfortunately, I'm just an user without coding skills...
 so I can't do the job... I hope that some developer could have the
 interest and time to try working this out.

I appreciate your interest and desire to have this bug fixed. However -
this is a developer list for discussing concrete development work,
patches, release schedules, questions relating to ongoing development
etc.

If you cannot work on this, what would be worthwhile is filing a nice
bug with several examples of shared english rules worth moving into a
shared file, add Kendy's information, figure out where the paths of the
relevant files are in the source tree etc. etc. and whack it all into a
single bug. Then mail me privately the bug # and I'll see if we can turn
it into an Easy Hack, it is prolly suitable. Even as a non-developer, if
you spend enough time reading this specific piece of code, I'm convinced
you could make an impact here if you want to.

Beyond that - cluttering the dev list with myriad feature / bug-fix
requests from non-developers is not going to scale :-)

Thanks,

Michael.

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

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


Re: [Libreoffice] limiting maximum sheet number to 10000 in 32 bit builds

2012-01-06 Thread Michael Meeks
Hi Markus,

On Fri, 2012-01-06 at 00:49 +0100, Markus Mohrhard wrote:
 I'm sorry but I have to correct one of our features from the release
 note page. After some discussion I need to limit the maximum amount of
 sheets in 32 bit builds to 1 sheets. That should still be much
 more than most people will ever need but we had some adventurous users
 who tried to create 32000 sheets in 32 bit environments.

Heh :-) sounds reasonable to me.

 Any objections against limiting the number of sheets to 1 for the
 32 bit builds and perhaps for 64 bit builds too? I'm sorry for all the
 problems I created with this.

It's fine :-) it's a great feature; and fixing the features page is
normal enough - it's by no means complete even now.

Thanks !

Michael.

PS. I wonder if we should have hooks in our custom allocator to allow
memory usage to be artificially limited to some low number for unit /
torture testing: OTOH, I suspect we'd find really rather a lot of
curious bugs / mis-handled exceptions in that case ;-)
-- 
michael.me...@suse.com  , Pseudo Engineer, itinerant idiot

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


Re: [Libreoffice] About enabling Icedove addressbook connection for Base

2012-01-06 Thread Caolán McNamara
On Fri, 2012-01-06 at 10:04 +0100, Alexander Thurgood wrote:
 Well the default user profile on Mac is generally stored here :
 /Users/username/Library/Thunderbird/Profiles/xyz.default

Excellent, that's the bit of into I wanted to check. So, the mac
getConfigDir code is...

#define MACOSX_CONFIG_DIR /Library/Application Support
...
{
if( osl_psz_getHomeDir(Security, pszDirectory ...
strcat( pszDirectory, MACOSX_CONFIG_DIR );
return sal_True;
}

and connectivity has...

{ ../Mozilla/SeaMonkey/, NULL, NULL },
{ Firefox/, NULL, NULL },
{ ../Thunderbird/, NULL, NULL }

which suggests that getConfigDir works out of the box for windows and
macosx, and its just the generic unix where $HOME/.config isn't
suitable to find .mozilla etc. So...

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

is what I've committed to master, i.e. leave macosx alone seeing as it
probably works right now, and fix the generic case to look
for .mozilla/.thunderbird etc under the home dir, so you can layer your
icedove stuff on top of that now.

C.

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


[Libreoffice] [REVIEW][3-5] looking for .mozilla/.thunderbird under .config dir

2012-01-06 Thread Caolán McNamara
As julien points out, we're using osl::Security::getConfigDir to find
the right dir to look for .mozilla and .thunderbird etc underneath.
getConfigDir uses XDG_CONFIG_DIR thesedays, but moz never did that, so I
reckon we should cherry-pick
http://cgit.freedesktop.org/libreoffice/core/commit/?id=6be6357cce999e5a1a692da1f682847be3723587
to 3-5

C.

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


Re: [Libreoffice] Doxygen for C/C++ URE Documentation

2012-01-06 Thread Michael Stahl
On 06/01/12 11:07, Caolán McNamara wrote:
 On Thu, 2012-01-05 at 20:11 +0100, Stephan Bergmann wrote:
 On 01/04/2012 03:30 PM, Stephan Bergmann wrote:
 If there are no objections, I will commit this to master later this week.

 Done, 
 http://cgit.freedesktop.org/libreoffice/core/commit/?id=58ab12acf576a765ec47cc2753ba57643e51d653
  
 Switch from autodoc to doxygen for SDK C++ documentation. 
 Additionally filed easy hack 
 
 So, does that mean we can now remove autodoc and udm from the tree ?
 
 C.
 

we still use that for IDL docu (and don't forget cosv module)

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


[Libreoffice] [PUSHED] Re: [REVIEW][3-5] fdo#44219 RHEL-4 buildbot doesn't have FT_Library_SetLcdFilter

2012-01-06 Thread Jan Holesovsky
Hi Caolan,

On 2012-01-06 at 10:00 +, Caolán McNamara wrote:

 So the support for setting it isn't compiled in, so the result when
 deployed on a recent Ubuntu is that you get weird-ass lcdfilter colour
 effects around letters.
 
 Proposed fix is to hack in dlsyming FT_Library_SetLcdFilter (when dlsym
 functions are available) as the fallback, which seems to work.

I think we are not in the the review mode on 3-5 yet (only for the late
features), so you can push yourself without additional review; but I did
that, sounds like it is the fix, looks nice, and builds :-)

Thank you,
Kendy

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


[Libreoffice] unnecessary building basegfx twice ?

2012-01-06 Thread Matúš Kukan
Hello,

I'm wondering if we really need to build source files from basegfx twice,
for shared and also static library.
The static library is used only in sdext/source/pdfimport/makefile.mk
and is there from beginning, so maybe there is a reason ?

Maybe extensions can't be linked against our libraries ?

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


Re: [Libreoffice] About enabling Icedove addressbook connection for Base

2012-01-06 Thread Alexander Thurgood
Hi Caolán,

Le 06/01/12 11:29, Caolán McNamara a écrit :
 On Fri, 2012-01-06 at 10:04 +0100, Alexander Thurgood wrote:
 Well the default user profile on Mac is generally stored here :
 /Users/username/Library/Thunderbird/Profiles/xyz.default
 Excellent, that's the bit of into I wanted to check. So, the mac
 getConfigDir code is...

 #define MACOSX_CONFIG_DIR /Library/Application Support
 ...
 {
 if( osl_psz_getHomeDir(Security, pszDirectory ...
 strcat( pszDirectory, MACOSX_CONFIG_DIR );
 return sal_True;

Errrm, no it is directly in the user Library folder, not Applications
Support. For some reason, Thunderbird does not behave like Firefox, and
does not put its configdir in Applications Support.


 which suggests that getConfigDir works out of the box for windows and
 macosx, and its just the generic unix where $HOME/.config isn't
 suitable to find .mozilla etc. So...

Well, last time I tried (admittedly several moons ago), LibO was
incapable of finding my mozab addressbook. As I gave up building
--with-moz* whatever ages ago, since LO wouldn't compile with it.

Alex


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


Re: [Libreoffice] Doxygen for C/C++ URE Documentation

2012-01-06 Thread Caolán McNamara
On Fri, 2012-01-06 at 11:47 +0100, Michael Stahl wrote:
 we still use that for IDL docu (and don't forget cosv module)

damn :-( its such a big-ass chunk of code I was hopeful it was a goner.

C.

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


Re: [Libreoffice] Doxygen for C/C++ URE Documentation

2012-01-06 Thread Stephan Bergmann

On 01/06/2012 11:47 AM, Michael Stahl wrote:

On 06/01/12 11:07, Caolán McNamara wrote:

So, does that mean we can now remove autodoc and udm from the tree ?

we still use that for IDL docu (and don't forget cosv module)


Yeah, next step I plan to do is get rid of autodoc for IDL, too (after 
this topic has finally been forced upon me via URE gbuildification), 
and then rid the code base from all that nonsense in one step.


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


Re: [Libreoffice] unnecessary building basegfx twice ?

2012-01-06 Thread Stephan Bergmann

On 01/06/2012 12:05 PM, Matúš Kukan wrote:

I'm wondering if we really need to build source files from basegfx twice,
for shared and also static library.
The static library is used only in sdext/source/pdfimport/makefile.mk
and is there from beginning, so maybe there is a reason ?

Maybe extensions can't be linked against our libraries ?


Exactly.  Extensions must only use the stable URE interface, not the 
ephemeral LO innards.


Maybe the easiest way out would be to turn pdfimport from an .oxt 
extension into an (optionally installable) part of LO.


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


Re: [Libreoffice] unnecessary building basegfx twice ?

2012-01-06 Thread Tor Lillqvist
 Maybe the easiest way out would be to turn pdfimport from an .oxt
extension into an (optionally installable) part of LO.

Makes a lot of sense, I think. Ditto for other extensions included in the
source code.

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


Re: [Libreoffice] unnecessary building basegfx twice ?

2012-01-06 Thread Michael Stahl
On 06/01/12 12:19, Tor Lillqvist wrote:
 Maybe the easiest way out would be to turn pdfimport from an .oxt
 extension into an (optionally installable) part of LO.
 
 Makes a lot of sense, I think. Ditto for other extensions included in
 the source code.

in the case of pdfimport, isn't there a potential licensing problem
because it uses GPL-licensed xpdf/poppler code?

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


Re: [Libreoffice] minutes of ESC call ...

2012-01-06 Thread Caolán McNamara
On Thu, 2012-01-05 at 17:43 +, Michael Meeks wrote:
   + upgrade the internal cairo to latest stable to fix theme crasher 
 (Fridrich)
   + side-effect: 
 https://bugs.freedesktop.org/show_bug.cgi?id=44219
   + in-progress (Caolan, Michael)

done.

C.

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


Re: [Libreoffice] About enabling Icedove addressbook connection for Base

2012-01-06 Thread Caolán McNamara
On Fri, 2012-01-06 at 12:03 +0100, Alexander Thurgood wrote:
 It is directly in the user Library folder, not Applications
 Support. For some reason, Thunderbird does not behave like Firefox, and
 does not put its configdir in Applications Support.

Sure, but connectivity has...

{ ../Mozilla/SeaMonkey/, NULL, NULL },
{ Firefox/, NULL, NULL },
{ ../Thunderbird/, NULL, NULL }

i.e. $HOME/Library/Application Support/ + ../Thunderbird/ so final path
is $HOME/Library/Thunderbird/

C.

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


Re: [Libreoffice] minutes of ESC call ...

2012-01-06 Thread Michael Meeks

On Fri, 2012-01-06 at 11:28 +, Caolán McNamara wrote:
 On Thu, 2012-01-05 at 17:43 +, Michael Meeks wrote:
  + upgrade the internal cairo to latest stable to fix theme crasher 
  (Fridrich)
  + side-effect: 
  https://bugs.freedesktop.org/show_bug.cgi?id=44219
  + in-progress (Caolan, Michael)
 
 done.

Patch looks lovely to me :-) thanks for that - it's in 3.5 already I
see (which is great).

Thanks,

Michael.

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

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


Re: [Libreoffice] limiting maximum sheet number to 10000 in 32 bit builds

2012-01-06 Thread Stephan Bergmann

On 01/06/2012 10:54 AM, Jean-Baptiste Faure wrote:

Knowing that you can't access Calc options without having a Calc
document opend, how do you kill this vicious circle?


The logic behind this option hiding always escaped me, anyway.

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


Re: [Libreoffice] unnecessary building basegfx twice ?

2012-01-06 Thread Tor Lillqvist
 in the case of pdfimport, isn't there a potential licensing problem
 because it uses GPL-licensed xpdf/poppler code?

Ah OK. IANAL, so maybe indeed keeping it as an oxt then is relevant. Still,
what prevents us from saying that a particular build of this extension as
shipped with LO x.y, works only with LO x.y?

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


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

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

Petr Mladek pmla...@suse.cz changed:

   What|Removed |Added

 Depends on||44322

--- Comment #77 from Petr Mladek pmla...@suse.cz 2012-01-06 05:34:04 PST ---
Nominate 44322: ODF compatibility; margins saved by Lo-3.5 are not read
corrrectly by L0-3.4

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


Re: [Libreoffice] unnecessary building basegfx twice ?

2012-01-06 Thread Michael Meeks

On Fri, 2012-01-06 at 12:26 +0100, Michael Stahl wrote:
 in the case of pdfimport, isn't there a potential licensing problem
 because it uses GPL-licensed xpdf/poppler code?

It should fork that stuff in another process to isolate it.

So - I don't think that should be an issue, but Thorsten would know. In
a nutshell though the approach is right - it is a madness to ship 2x
versions of libraries when we could ship one - and having tons of stuff
as .oxts when we ship it be default is just silly :-)

It also tends to complicate the code, the presenter view eg. has these
custom 'helper' UNO interfaces and is far more verbose and complicated
than it'd need to be if it was written natively, integrated into the
core (IMNSHO ;-)

It'd be good to unwind all that over time.

ATB,

Michael.

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

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


Re: [Libreoffice] limiting maximum sheet number to 10000 in 32 bit builds

2012-01-06 Thread Michael Meeks

On Fri, 2012-01-06 at 14:15 +0100, Stephan Bergmann wrote:
 On 01/06/2012 10:54 AM, Jean-Baptiste Faure wrote:
  Knowing that you can't access Calc options without having a Calc
  document opend, how do you kill this vicious circle?
 
 The logic behind this option hiding always escaped me, anyway.

Presumably to avoid loading the other components: sc,sd,sw etc. from
each other if they are not already loaded (?) at least some of the
tab-dialogs appear to be inside swui itself and come from a TabDialog
factory.

Of course, that good stuff could be moved to cui/ or be forced to load
- I imagine all (or at least many) of the settings go via configmgr in
some guise or other at some stage, so ...

HTH,

Michael.

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

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


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

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

Petr Mladek pmla...@suse.cz changed:

   What|Removed |Added

 Depends on||44498

--- Comment #78 from Petr Mladek pmla...@suse.cz 2012-01-06 05:57:40 PST ---
Nominate 44498: Even simple odt document is considered as invalid by MS Office
2010.

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


Re: [Libreoffice] unnecessary building basegfx twice ?

2012-01-06 Thread Fridrich Strba
PDF importer works out of process and communicates with LO only using 
temporary files. So, we don't really *link* GPL-ed code.


F.

On 06/01/12 14:24, Tor Lillqvist wrote:

  in the case of pdfimport, isn't there a potential licensing problem
  because it uses GPL-licensed xpdf/poppler code?

Ah OK. IANAL, so maybe indeed keeping it as an oxt then is relevant.
Still, what prevents us from saying that a particular build of this
extension as shipped with LO x.y, works only with LO x.y?

--tml


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



--
Please avoid sending me Word, Excel or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] limiting maximum sheet number to 10000 in 32 bit builds

2012-01-06 Thread Jean-Baptiste Faure
Hi Markus,

Le 06/01/2012 14:52, Markus Mohrhard a écrit :
 Hello Jean-Baptiste,
 

 I have tried to reproduce the crash on Linux 64 bits by setting the
 option value to 3 and the creation of a new speadsheet took several
 minutes. No crash but 5 Go of RAM. I killed LibO instead of closing the
 file. Problem: when creating another spreadsheet I had still the same
 option. Knowing that you can't access Calc options without having a Calc
 document opend, how do you kill this vicious circle? Ok, easy for an
 experienced user: open a small existing Calc document and modify the
 option. I am not sure whether a new user can find the solution easily.

 My proposition:
 1/ Maximum number of sheets : 1
 2/ Limit on the number of sheets created by default: 20
 
 I won't implement that. We can't protect every user from his mistakes
 and IMHO we shouldn't even try to do that. If a user thinks he needs
 to set his initial number of sheets to 1 he has to live with that.
 Calc is not foolproof and I don't plan to make it.

I would agree if the end-user was aware that an empty spreadsheet is not
so empty than that.
If you don't want limit the option, we should make the text of the
option more informative about the possible problem with a too big value.

Best regards.
JBF

-- 
Seuls des formats ouverts peuvent assurer la pérennité de vos documents.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] limiting maximum sheet number to 10000 in 32 bit builds

2012-01-06 Thread Olivier Hallot
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

Em 06-01-2012 11:52, Markus Mohrhard escreveu:
 Hello Jean-Baptiste,
 

 I have tried to reproduce the crash on Linux 64 bits by setting the
 option value to 3 and the creation of a new speadsheet took several
 minutes. No crash but 5 Go of RAM. I killed LibO instead of closing the
 file. Problem: when creating another spreadsheet I had still the same
 option. Knowing that you can't access Calc options without having a Calc
 document opend, how do you kill this vicious circle? Ok, easy for an
 experienced user: open a small existing Calc document and modify the
 option. I am not sure whether a new user can find the solution easily.

 My proposition:
 1/ Maximum number of sheets : 1
 2/ Limit on the number of sheets created by default: 20
 
 I won't implement that. We can't protect every user from his mistakes
 and IMHO we shouldn't even try to do that. If a user thinks he needs
 to set his initial number of sheets to 1 he has to live with that.
 Calc is not foolproof and I don't plan to make it.

That means that the support/help-desk will have to be called to fix the
user stupidity. In productions enviroments, help desk charges per call.

On a side note, I don't know what is the difference, or utility of this
configuration parameter.

How many (practical) documents need to be open with dozens, hundredth or
thousands empty sheets?

Why a template does not address this?

Is this configuration will spark user stupidity, my vote is to drop it
completely.

Regards
- -- 
Olivier Hallot
Founder, Board of Directors Member - The Document Foundation
LibreOffice translation leader for Brazilian Portuguese
+55-21-8822-8812
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPBwDHAAoJEJp3R7nH3vLxW0IH/jZZmUoAnkAPIWNCUpX3VhDo
sR6MrwA7ij2/HPyVwGsMAkx0DrcahXjfTpGCHbb5pxftyKN37dCnpGkXFpZmEWjs
oSBvxZkrzkIGQZjpfhk4KGq1//uD3YAUyW2wWH3wiChpwywbthgZ4poJ2drDCOoL
uZKGGbIblDZvbyxOrg/aq8a1CbECuwRBKksbWkOQJQmhRHTaE7KR9YMs8RS5OOvh
xLn5yU41jfJ7ol/9rpQYhlE6L1P9cMMKhnEC7999YVEf5s6AshK8l9MWL3XuJJ40
8DxaBZtoEouiI+Q1Rdb4uP0/WoQ8WBQOv714tJH7n9hcb+hERdbVVp86DLpwgIM=
=SxHF
-END PGP SIGNATURE-
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] limiting maximum sheet number to 10000 in 32 bit builds

2012-01-06 Thread Kohei Yoshida
On Fri, 2012-01-06 at 14:52 +0100, Markus Mohrhard wrote:

  2/ Limit on the number of sheets created by default: 20
 
 I won't implement that. We can't protect every user from his mistakes
 and IMHO we shouldn't even try to do that. If a user thinks he needs
 to set his initial number of sheets to 1 he has to live with that.

Actually, lowering the initial number of sheets for new documents to
something lower does make sense, especially when fixing the number again
when the number was accidentally set too high is currently impossible
(since you need to at least open a new document in order to access that
option, but since opening a new document crashes you can't access that
option ever).

And it should be trivial to change the upper limit in the Defaults
option page.

If 20 is too low, then perhaps we can change that to something higher.
But we'll make adjustment as we receive more feedback later on.

Kohei

-- 
Kohei Yoshida, LibreOffice hacker, Calc

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


Re: [Libreoffice] unnecessary building basegfx twice ?

2012-01-06 Thread Stephan Bergmann

On 01/06/2012 02:24 PM, Tor Lillqvist wrote:

Still, what prevents us from saying that a particular build of this
extension as shipped with LO x.y, works only with LO x.y?


OOo has a OpenOffice.org-maximal-version dependency for that; would need 
to replicate that as LibreOffice-maximal-version (in addition to the 
existing LibreOffice-minimal-version).


Another problem is how .oxt libraries find the internal LO libraries:

* On Linux, the .oxt library's RPATH would need to include the relative 
path from the .oxt location to the program/ directory.  A dirty hack 
would be to hard-code the ../../.. length of the path from bundled .oxts 
to program/, and demand that such extensions can only be installed 
bundled (not user or shared).


* On Mac OS X, a similar hack with @loader_path would be needed 
(referencing relative to @executable_path would not work, as .oxt 
libraries are also loaded via uno executable from URE layer).


* On Windows, default library search order (next to executable) makes 
this a non-issue for soffice.bin, but still would cause problems with 
the uno executable.


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


Re: [Libreoffice] unnecessary building basegfx twice ?

2012-01-06 Thread Michael Stahl
On 06/01/12 14:24, Tor Lillqvist wrote:
 in the case of pdfimport, isn't there a potential licensing problem
 because it uses GPL-licensed xpdf/poppler code?
 
 Ah OK. IANAL, so maybe indeed keeping it as an oxt then is relevant.
 Still, what prevents us from saying that a particular build of this
 extension as shipped with LO x.y, works only with LO x.y?

if it's that closely coupled to a particular version, then claiming it's
an extension is just an exercise in deceptive advertising.

either don't link against unstable LO libs, or stop shipping it as an
extension.

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


Re: [Libreoffice] limiting maximum sheet number to 10000 in 32 bit builds

2012-01-06 Thread Kohei Yoshida
Hi Olivier,

On Fri, 2012-01-06 at 12:10 -0200, Olivier Hallot wrote:

Because it's harder.

 Is this configuration will spark user stupidity, my vote is to drop it
 completely.

Nah.  Dropping would be bad.  This option is loved by many, and I for
one like it a lot.  Anyway, I talked with Markus on IRC, and we agreed
to cap it to some lower number in the options page.  Perhaps 20 would be
too low, so we'll cap this number at 1024.

Markus tested its memory usage, and creating a new document with 1
initial sheets would take about 900MB.  So, 1/10th of that should be a
sensible number even on a lower spec machine.

I'll look into this, since Markus is heavily loaded with other stuff at
the moment.

Kohei

-- 
Kohei Yoshida, LibreOffice hacker, Calc

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


Re: [Libreoffice] [REVIEW] Problem with data - form dialog in Calc

2012-01-06 Thread Kohei Yoshida
Hi Lior,

On Fri, 2012-01-06 at 01:11 +0200, Lior Kaplan wrote:
 Hi,
 
 A user refereed me to a translation problem in Calc's data - form
 dialog, which has Last Record above Next Record, which should
 probably be Previous Record. The button indeed behaved as Previous
 Record.
 
 Also, there's a small bug, as the button is only enabled when getting
 to the end of the list. The attached patch should fix it (I'm not a
 developer, comments are welcomed), while also renaming the relevant
 bits in the code.

Thanks for the patch.  Your change looks good.  I've also found
additional bug (nothing to do with your patch) where the code assumed
that the data range always starts at row 1.  I fixed that as well.

I've pushed your patch and my follow-up change to both the 3.5 branch
and master (since we are still before the string freeze).

Kohei

-- 
Kohei Yoshida, LibreOffice hacker, Calc

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


Re: [Libreoffice] [PUSHED] [REVIEW] Problem with data - form dialog in Calc

2012-01-06 Thread Kohei Yoshida
Setting PUSHED tag.

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


Re: [Libreoffice] [PUSHED] [REVIEW] Problem with data - form dialog in Calc

2012-01-06 Thread Kohei Yoshida
Setting PUSHED tag to this duplicate as well.

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


Re: [Libreoffice] [REVIEW] Problem with data - form dialog in Calc

2012-01-06 Thread Lior Kaplan
On Fri, Jan 6, 2012 at 6:10 PM, Kohei Yoshida kohei.yosh...@suse.comwrote:

 Thanks for the patch.  Your change looks good.  I've also found
 additional bug (nothing to do with your patch) where the code assumed
 that the data range always starts at row 1.  I fixed that as well.

 I've pushed your patch and my follow-up change to both the 3.5 branch
 and master (since we are still before the string freeze).


Cool, thanks (:
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] [PATCH] Fix for bug fdo#44110, New Math symbols issues in Windows

2012-01-06 Thread Jan Holesovsky
Hi Olivier,

On 2012-01-04 at 15:55 +, Michael Meeks wrote:

  WRT to this patch, there are two files; the binary file opens.ttf
  and the text file OpenSymbol.sfd.
 
   Right - the original / authoritative version should be the .sdf file
 which (IIRC) as well as being 'diff -u' able - so we can see what
 changed, is/was also more descriptive  complete :-)
 
  I used fontforge tool under ubuntu to draw the new characters.
 
   Great - that's the right approach.
 
  The sfd file is generated based on the ttf binaries.
 
   So - IMHO it should be the other way around ;-) at least, when I last
 edited that font; if we've fluffed that up I suggest we load the
 original sfd, copy in the new glyphs from the TTF, save it as sfd, and
 re-export as ttf ;-)

I am sorry, but I have just reverted the push of your change based on
what Michael wrote (and I previously too).  Please note that .sfd is the
source, and .ttf is generated.  When you use .sfd as the source in
fontforge, the change will be minimal, not a 85k lines long patch.

Can you please re-try with editing the .sfd in fontforge?

[If you use .ttf as the source, and generate .sfd out of that, it is
similar as if you import .pdf in LO, and export it to .odf - ie. it is
possible, but not what we want, provided that we have the .sfd source.]

Regards,
Kendy

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


Re: [Libreoffice] [REVIEW][3-5] looking for .mozilla/.thunderbird under .config dir

2012-01-06 Thread Michael Meeks

On Fri, 2012-01-06 at 10:31 +, Caolán McNamara wrote:
 As julien points out, we're using osl::Security::getConfigDir to find
 the right dir to look for .mozilla and .thunderbird etc underneath.
 getConfigDir uses XDG_CONFIG_DIR thesedays, but moz never did that, so I
 reckon we should cherry-pick

I picked  pushed it - but; no need for double review before RC1 ie.
Jan 16th I think :-)

Thanks muchly,

Michael.

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

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


Re: [Libreoffice] unnecessary building basegfx twice ?

2012-01-06 Thread Thorsten Behrens
Michael Meeks wrote:
   So - I don't think that should be an issue, but Thorsten would know. In
 a nutshell though the approach is right - it is a madness to ship 2x
 versions of libraries when we could ship one - and having tons of stuff
 as .oxts when we ship it be default is just silly :-)
 
+1

Let's turn all our in-tree c++ extensions into proper, optional
components.  Shipping those by default was the first step towards
this, desirable, end goal.

Cheers,

-- Thorsten


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


Re: [Libreoffice] [PATCH] Fix for bug fdo#44110, New Math symbols issues in Windows

2012-01-06 Thread Olivier Hallot
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Kendy

This commit was a newbie mistake. Thanks for reverting it.

I will try to fix the sdf issue.

regards

Olivier

Em 06-01-2012 14:34, Jan Holesovsky escreveu:
 Hi Olivier,
 
 On 2012-01-04 at 15:55 +, Michael Meeks wrote:
 
 WRT to this patch, there are two files; the binary file opens.ttf
 and the text file OpenSymbol.sfd.

  Right - the original / authoritative version should be the .sdf file
 which (IIRC) as well as being 'diff -u' able - so we can see what
 changed, is/was also more descriptive  complete :-)

 I used fontforge tool under ubuntu to draw the new characters.

  Great - that's the right approach.

 The sfd file is generated based on the ttf binaries.

  So - IMHO it should be the other way around ;-) at least, when I last
 edited that font; if we've fluffed that up I suggest we load the
 original sfd, copy in the new glyphs from the TTF, save it as sfd, and
 re-export as ttf ;-)
 
 I am sorry, but I have just reverted the push of your change based on
 what Michael wrote (and I previously too).  Please note that .sfd is the
 source, and .ttf is generated.  When you use .sfd as the source in
 fontforge, the change will be minimal, not a 85k lines long patch.
 
 Can you please re-try with editing the .sfd in fontforge?
 
 [If you use .ttf as the source, and generate .sfd out of that, it is
 similar as if you import .pdf in LO, and export it to .odf - ie. it is
 possible, but not what we want, provided that we have the .sfd source.]
 
 Regards,
 Kendy
 

- -- 
Olivier Hallot
Founder, Board of Directors Member - The Document Foundation
LibreOffice translation leader for Brazilian Portuguese
+55-21-8822-8812
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPByP8AAoJEJp3R7nH3vLxjXQIAItFOSto9mz/UCS3D5HgmCI1
QIIbFu8r1/Jx1Hlc+X8cQBy8FiQleTbXV2SJm1qx6ja21HQx2VJzuba84GjHBTpJ
Y1HTJ0XPiU4SwNo/zH5W0Ma7hl+quEO9DRtu84f7FK51bv23/oSnc3Npz6NNUI4h
rdWvEVuM4EdUV/2pSkTiuF0L2875F1hvgifVc4HkoXZYqUKcRJy0N1fMVJl3BZM3
DIBm97wQIH7Q1vRyjG67DZlVqX6uHgyx+/HtTMk1lCTc9RtA0A2UcmiW9b7FQbho
z1M7BqgDONtdvS3CFYGNPCRq726tVMMeSOzypL2/aEtMqrlb9Vr7YA/jouVK/fM=
=F/Hc
-END PGP SIGNATURE-
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Change in addition for date handling (intentional change??)

2012-01-06 Thread Noel Power

Andrew,

Apologies for the late reply, just back from vacation and now trying to 
chip away at the mountain of mail backlog


On 01/01/12 16:01, Andrew Douglas Pitonyak wrote:

Thanks for checking Will wait and see what Noel has to say...

I say I don't know :-)
hmm I think I dropped the ball with this, I seem to recall promising Tor 
I would look into this WAE. I suspect that indeed this is a simple 
mistake where a 'break' has unintentionally found its way into the code. 
I remember wanting to:
a) try and find the orig patch to see if this was part of it ( or some 
failed cleanup that I added )
b) dig out some tests to ensure that the currency work still worked if 
we applied the change.


Note: the orig commit here not mine but a fine contribution from John 
LeMoyne Castle ( unfortunately I forgot the --author switch when 
committing although the comment credits him )


I will look into it,

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


Re: [Libreoffice] minutes of ESC call ...

2012-01-06 Thread Thorsten Behrens
Michael Meeks wrote:
   + cleanup old test build server directories (Thorsten)

Done.

   + Excel (originally Lotus) leap-year bug #44453
   + we simply don't do the broken version
   + known issue, affecting only 50 dates.
 AA:   + wontfix the bug in pleasant way (Thorsten)

Even better, fix some easy low-hanging fruits around xlsx - Kohei
is handling that.

Cheers,

-- Thorsten


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


  1   2   3   >