[Libreoffice-commits] .: android/qa

2012-01-25 Thread Tor Lillqvist
 android/qa/simple/Makefile |3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 7175129b2d8549c5e18e1222c943ddda5f2e9ee5
Author: Tor Lillqvist tlillqv...@suse.com
Date:   Wed Jan 25 09:53:19 2012 +0200

Add notice that the android/qa/simple directory has not been maintained

diff --git a/android/qa/simple/Makefile b/android/qa/simple/Makefile
index 70fb5c6..8007084 100644
--- a/android/qa/simple/Makefile
+++ b/android/qa/simple/Makefile
@@ -1,3 +1,6 @@
+THIS DIRECTORY IS UNMAINTAINED AND PRESUMABLY BROKEN ALREADY
+
+
 include ../../../config_host.mk
 
 # The package of this app
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: vcl/source

2012-01-25 Thread Radek Doulík
 vcl/source/gdi/gdimtf.cxx |8 
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 9b20b8e9c6a177b98b86f227e2e5d056563ec9d5
Author: Radek Doulik r...@novell.com
Date:   Wed Jan 25 09:29:00 2012 +0100

Revert fix rendering of metafiles embedded in emf+

This reverts commit f7b6cd87f78b786b59984e5b3c8a5a78f0ed7a94.

diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index 49d3bbb..f6cb49c 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -406,9 +406,9 @@ void GDIMetaFile::Play( OutputDevice* pOut, size_t nPos )
 pOut-SetLayoutMode( 0 );
 pOut-SetDigitLanguage( 0 );
 
-OSL_TRACE(GDIMetaFile::Play on device of size: %d x %d, 
pOut-GetOutputSizePixel().Width(), pOut-GetOutputSizePixel().Height());
-if( !ImplPlayWithRenderer( pOut, Point(0,0), 
pOut-GetOutputSizePixel() ) ) {
-for( size_t nCurPos = nCurrentActionElement; nCurPos  nPos; 
nCurPos++ )
+for( size_t nCurPos = nCurrentActionElement; nCurPos  nPos; nCurPos++ 
)
+{
+if( !Hook() )
 {
 MetaCommentAction* pCommentAct = 
static_castMetaCommentAction*(pAction);
 if( pAction-GetType() == META_COMMENT_ACTION 
@@ -608,7 +608,7 @@ void GDIMetaFile::Play( OutputDevice* pOut, const Point 
rPos,
 {
 GDIMetaFile*pMtf = pOut-GetConnectMetaFile();
 
-if( bUseCanvas  ImplPlayWithRenderer( pOut, rPos, aDestSize ) )
+if( bUseCanvas  !pMtf  ImplPlayWithRenderer( pOut, rPos, aDestSize 
) )
 return;
 
 Size aTmpPrefSize( pOut-LogicToPixel( GetPrefSize(), aDrawMap ) );
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: 2 commits - scp2/source scp2/util sd/CppunitTest_sd_filters_test.mk sd/CppunitTest_sd_regression_test.mk

2012-01-25 Thread Thorsten Behrens
 scp2/source/canvas/makefile.mk   |5 +
 scp2/util/makefile.mk|5 +
 sd/CppunitTest_sd_filters_test.mk|2 +-
 sd/CppunitTest_sd_regression_test.mk |1 +
 4 files changed, 4 insertions(+), 9 deletions(-)

New commits:
commit 554bcf4205ede6ec3adb9f39e676b77054b1e8a1
Author: Riccardo Magliocchetti riccardo.magliocche...@gmail.com
Date:   Wed Jan 25 12:00:45 2012 +0100

Fix file not found: cairocanvas.uno.so in smoketestoo_native

diff --git a/scp2/source/canvas/makefile.mk b/scp2/source/canvas/makefile.mk
index 7ce0257..d0d8362 100644
--- a/scp2/source/canvas/makefile.mk
+++ b/scp2/source/canvas/makefile.mk
@@ -41,12 +41,9 @@ PARFILES= canvascommons.par  \
   vclcanvas.par \
  mtfrenderer.par
 
-.IF $(GUI)==UNX
-#X11 MacOSX has no cairo-canvas
-.IF $(OS) != MACOSX || $(GUIBASE) == aqua
+.IF $(ENABLE_CAIRO_CANVAS)==TRUE
 PARFILES+= cairocanvas.par
 .ENDIF
-.ENDIF
 
 .IF $(ENABLE_DIRECTX) != 
 .IF $(USE_DIRECTX5) != 
diff --git a/scp2/util/makefile.mk b/scp2/util/makefile.mk
index 74b45a8..7de0c6c 100644
--- a/scp2/util/makefile.mk
+++ b/scp2/util/makefile.mk
@@ -209,12 +209,9 @@ SCP1FILES += \
  vclcanvas.par \
 mtfrenderer.par
 
-.IF $(GUI)==UNX
-#X11 MacOSX has no cairo-canvas
-.IF $(OS) != MACOSX || $(GUIBASE) == aqua
+.IF $(ENABLE_CAIRO_CANVAS)==TRUE
 SCP1FILES += cairocanvas.par
 .ENDIF
-.ENDIF
 
 .IF $(ENABLE_ONLINE_UPDATE)!=
 SCP1FILES += \
commit 400ad00534afbbc93de9fd0835e487980f85a336
Author: Thorsten Behrens tbehr...@suse.com
Date:   Wed Jan 25 11:52:00 2012 +0100

Put font embedding disable to correct unit test

diff --git a/sd/CppunitTest_sd_filters_test.mk 
b/sd/CppunitTest_sd_filters_test.mk
index 5b89b8f..b4de440 100644
--- a/sd/CppunitTest_sd_filters_test.mk
+++ b/sd/CppunitTest_sd_filters_test.mk
@@ -123,7 +123,7 @@ $(eval $(call 
gb_CppunitTest_add_old_components,sd_filters_test,\
 $(eval $(call gb_CppunitTest_set_args,sd_filters_test,\
 --headless \
 --protector unoexceptionprotector$(gb_Library_DLLEXT) 
unoexceptionprotector \
--env:CONFIGURATION_LAYERS=xcsxcu:$(call 
gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) 
-env:SVG_DISABLE_FONT_EMBEDDING=YEAH module:$(call 
gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) \
+-env:CONFIGURATION_LAYERS=xcsxcu:$(call 
gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call 
gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) \
 ))
 # .../spool is required for the (somewhat strange) filter configuration
 
diff --git a/sd/CppunitTest_sd_regression_test.mk 
b/sd/CppunitTest_sd_regression_test.mk
index 1c3b089..8e56336 100644
--- a/sd/CppunitTest_sd_regression_test.mk
+++ b/sd/CppunitTest_sd_regression_test.mk
@@ -130,6 +130,7 @@ $(eval $(call gb_CppunitTest_set_args,sd_regression_test,\
 --headless \
 --protector unoexceptionprotector$(gb_Library_DLLEXT) 
unoexceptionprotector \
 -env:CONFIGURATION_LAYERS=xcsxcu:$(call 
gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry) module:$(call 
gb_CppunitTarget__make_url,$(OUTDIR)/xml/registry/spool) xcsxcu:$(call 
gb_CppunitTarget__make_url,$(OUTDIR)/unittest/registry) \
+-env:SVG_DISABLE_FONT_EMBEDDING=YEAH \
 ))
 # .../spool is required for the (somewhat strange) filter configuration
 
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: 3 commits - basegfx/inc basegfx/Library_basegfx.mk basegfx/Package_inc.mk basegfx/source basegfx/StaticLibrary_basegfx_s.mk Makefile sc/source sd/source solenv/bin svx/inc svx

2012-01-25 Thread Jan Holesovsky
 Makefile|5 +
 basegfx/Library_basegfx.mk  |1 
 basegfx/Package_inc.mk  |1 
 basegfx/StaticLibrary_basegfx_s.mk  |1 
 basegfx/inc/basegfx/tools/zoomtools.hxx |   52 +++
 basegfx/source/tools/zoomtools.cxx  |  150 
 sc/source/ui/view/prevwsh.cxx   |6 -
 sc/source/ui/view/tabview.cxx   |7 -
 sd/source/ui/view/viewshel.cxx  |7 -
 solenv/bin/mkdocs.sh|2 
 svx/inc/svx/zoom_def.hxx|4 
 svx/source/stbctrls/zoomsliderctrl.cxx  |7 -
 sw/source/ui/uiview/viewport.cxx|7 -
 13 files changed, 226 insertions(+), 24 deletions(-)

New commits:
commit 3092e57f0c46ab1eafebcff0ad875acdd49d4e45
Author: Jan Holesovsky ke...@suse.cz
Date:   Wed Jan 25 12:35:29 2012 +0100

Add a note to the toplevel Makefile where to actually edit stuff.

diff --git a/Makefile b/Makefile
index 9f6c897..ed8e30e 100644
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,11 @@
 #
 #*
 
+# The real targets are in solenv/gbuild/Module.mk, resp.
+# solenv/gbuild/extensions/post_BuildplTargets.mk, this file only forwards
+# the calls - please look there if you want to edit what this toplevel
+# Makefile does.
+
 SRCDIR:=$(patsubst %/,%,$(dir $(realpath $(firstword $(MAKEFILE_LIST)
 
 ifeq ($(strip $(gb_SourceEnvAndRecurse_STAGE)),)
commit 1195d989d454a96e3b9fb0c0b6053db61b68f0b1
Author: Jan Holesovsky ke...@suse.cz
Date:   Wed Jan 25 12:34:56 2012 +0100

Allow killing 'make docs' by Ctrl-c.

diff --git a/solenv/bin/mkdocs.sh b/solenv/bin/mkdocs.sh
index 1112b0f..dbf4c46 100755
--- a/solenv/bin/mkdocs.sh
+++ b/solenv/bin/mkdocs.sh
@@ -89,7 +89,7 @@ do
   echo Ref-Tags:   $DOXYGEN_REF_TAGFILES
   echo Title:  $DOXYGEN_PROJECTNAME
 
-  nice -15 doxygen $DOXYGEN_CFG
+  nice -15 doxygen $DOXYGEN_CFG || exit 1
 
   # setup referenced tagfiles for next round
   DOXYGEN_REF_TAGFILES=$DOXYGEN_REF_TAGFILES 
$DOXYGEN_OUR_TAGFILE=$BASE_URL/$PROJECT/html
commit 315d2ddc161e4b296febe9e54c3cfc9270310bfe
Author: Tim Hardeck thard...@suse.com
Date:   Wed Jan 18 16:42:55 2012 +0100

optimized zoom to use more common intervals

Round zoom values beginning with 50 to a multiple of 5, with 100 to one
of 10, with 500 to one of 50 and with 1000 to one of 100.
The step 100 is enforced to have one fixed point.

diff --git a/basegfx/Library_basegfx.mk b/basegfx/Library_basegfx.mk
index fa0607b..fc6a479 100644
--- a/basegfx/Library_basegfx.mk
+++ b/basegfx/Library_basegfx.mk
@@ -66,6 +66,7 @@ $(eval $(call gb_Library_add_linked_libs,basegfx,\
 $(eval $(call gb_Library_add_exception_objects,basegfx,\
basegfx/source/tools/b2dclipstate \
basegfx/source/tools/canvastools \
+   basegfx/source/tools/zoomtools \
basegfx/source/tools/gradienttools \
basegfx/source/tools/keystoplerp \
basegfx/source/tools/liangbarsky \
diff --git a/basegfx/Package_inc.mk b/basegfx/Package_inc.mk
index 5767a8f..13b5ff8 100644
--- a/basegfx/Package_inc.mk
+++ b/basegfx/Package_inc.mk
@@ -37,6 +37,7 @@ $(eval $(call 
gb_Package_add_file,basegfx_inc,inc/basegfx/tools/unopolypolygon.h
 $(eval $(call 
gb_Package_add_file,basegfx_inc,inc/basegfx/tools/tools.hxx,basegfx/tools/tools.hxx))
 $(eval $(call 
gb_Package_add_file,basegfx_inc,inc/basegfx/tools/unotools.hxx,basegfx/tools/unotools.hxx))
 $(eval $(call 
gb_Package_add_file,basegfx_inc,inc/basegfx/tools/gradienttools.hxx,basegfx/tools/gradienttools.hxx))
+$(eval $(call 
gb_Package_add_file,basegfx_inc,inc/basegfx/tools/zoomtools.hxx,basegfx/tools/zoomtools.hxx))
 $(eval $(call 
gb_Package_add_file,basegfx_inc,inc/basegfx/numeric/ftools.hxx,basegfx/numeric/ftools.hxx))
 $(eval $(call 
gb_Package_add_file,basegfx_inc,inc/basegfx/tuple/b3i64tuple.hxx,basegfx/tuple/b3i64tuple.hxx))
 $(eval $(call 
gb_Package_add_file,basegfx_inc,inc/basegfx/tuple/b3dtuple.hxx,basegfx/tuple/b3dtuple.hxx))
diff --git a/basegfx/StaticLibrary_basegfx_s.mk 
b/basegfx/StaticLibrary_basegfx_s.mk
index 79d6ed9..69616f7 100644
--- a/basegfx/StaticLibrary_basegfx_s.mk
+++ b/basegfx/StaticLibrary_basegfx_s.mk
@@ -72,6 +72,7 @@ $(WORKDIR)/CustomTarget/basegfx/source/%.cxx : 
$(SRCDIR)/basegfx/source/%.cxx
 $(eval $(call gb_StaticLibrary_add_generated_exception_objects,basegfx_s,\
CustomTarget/basegfx/source/tools/liangbarsky \
CustomTarget/basegfx/source/tools/canvastools \
+   CustomTarget/basegfx/source/tools/zoomtools \
CustomTarget/basegfx/source/tools/gradienttools \
CustomTarget/basegfx/source/tools/keystoplerp \
CustomTarget/basegfx/source/tools/unopolypolygon \
diff --git a/basegfx/inc/basegfx/tools/zoomtools.hxx 
b/basegfx/inc/basegfx/tools/zoomtools.hxx
new file mode 100644
index 000..566418d
--- /dev/null
+++ b/basegfx/inc/basegfx/tools/zoomtools.hxx
@@ -0,0 +1,52 @@
+/* -*- 

[Libreoffice-commits] .: canvas/source

2012-01-25 Thread David Tardon
 canvas/source/tools/spriteredrawmanager.cxx |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 259e0dfc293d455f1ea777de132730f7e5fde22d
Author: David Tardon dtar...@redhat.com
Date:   Wed Jan 25 12:34:23 2012 +0100

transparency gradient effect fade in is wrong (fdo#45219)

diff --git a/canvas/source/tools/spriteredrawmanager.cxx 
b/canvas/source/tools/spriteredrawmanager.cxx
index 91b81c5..72976c1 100644
--- a/canvas/source/tools/spriteredrawmanager.cxx
+++ b/canvas/source/tools/spriteredrawmanager.cxx
@@ -301,7 +301,8 @@ namespace canvas
aSortedSpriteVector.end(),
aUpdatableSprites.begin(),
aEnd,
-   ::std::back_insert_iterator VectorOfSprites 
(aUnchangedSprites) );
+   ::std::back_insert_iterator VectorOfSprites 
(aUnchangedSprites),
+   aSpriteComparator );
 
 // add each remaining unchanged sprite to connected ranges,
 // marked as don't need update
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-01-25 Thread Thorsten Behrens
 extensions/source/nsplugin/source/makefile.mk |4 
 scp2/source/ooo/common_brand.scp  |2 +-
 scp2/source/ooo/file_ooo.scp  |3 ---
 3 files changed, 1 insertion(+), 8 deletions(-)

New commits:
commit d4260355159afda5d91e9f9072e239ffe4ca7a2f
Author: Fridrich Å trba fridrich.st...@bluewin.ch
Date:   Wed Jan 25 10:20:07 2012 +0100

Fix building and packaging of the mozilla plugin

Signed-off-by: Tomas Chvatal tchva...@suse.cz
Signed-off-by: Rene Engelhard r...@debian.org
Signed-off-by: Thorsten Behrens tbehr...@suse.com

diff --git a/extensions/source/nsplugin/source/makefile.mk 
b/extensions/source/nsplugin/source/makefile.mk
index 3d52234..5b74764 100644
--- a/extensions/source/nsplugin/source/makefile.mk
+++ b/extensions/source/nsplugin/source/makefile.mk
@@ -36,8 +36,6 @@ USE_DEFFILE=TRUE
 
 .INCLUDE : settings.mk
 
-.IF $(WITH_MOZILLA) != NO
-
 .IF $(SYSTEM_MOZILLA_HEADERS) == YES
 INCPRE+=$(MOZILLA_HEADERS_CFLAGS)
 .ELSE
@@ -160,8 +158,6 @@ DEF2EXPORTFILE=exports.dxp
 DEF2EXPORTFILE=exports_wnt.dxp
 .ENDIF
 
-.ENDIF # $(WITH_MOZILLA) != NO
-
 # --- Targets --
 
 .INCLUDE : target.mk
diff --git a/scp2/source/ooo/common_brand.scp b/scp2/source/ooo/common_brand.scp
index 6c6fb66..aa8c77a 100644
--- a/scp2/source/ooo/common_brand.scp
+++ b/scp2/source/ooo/common_brand.scp
@@ -642,7 +642,7 @@ File gid_Brand_File_Bin_Libxml2
 End
 #endif
 
-#if !defined WITHOUT_MOZILLA  defined ENABLE_NSPLUGIN
+#ifdef ENABLE_NSPLUGIN
 File gid_Brand_File_Lib_Npsoplugin
 BIN_FILE_BODY;
 Name = SPECIAL_NAME(npsoplugin);
diff --git a/scp2/source/ooo/file_ooo.scp b/scp2/source/ooo/file_ooo.scp
index 091415b..e7bc85a 100644
--- a/scp2/source/ooo/file_ooo.scp
+++ b/scp2/source/ooo/file_ooo.scp
@@ -108,8 +108,6 @@ File gid_File_Basic_Tutorials
 Name = basicsrvtutorials.zip;
 End
 
-#ifndef WITHOUT_MOZILLA
-
 #ifdef ENABLE_NSPLUGIN
 File gid_File_Exe_Nsplugin
 BIN_FILE_BODY;
@@ -122,7 +120,6 @@ File gid_File_Exe_Nsplugin
   #endif
 End
 #endif
-#endif
 
 #if !defined(WITHOUT_MOZILLA)  defined(UNX)  !defined(QUARTZ)
 
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: sc/source

2012-01-25 Thread Noel Power
 sc/source/ui/app/inputwin.cxx |   18 +++---
 sc/source/ui/inc/inputwin.hxx |2 ++
 2 files changed, 13 insertions(+), 7 deletions(-)

New commits:
commit 7580fff93292d08bc6f42792f256b832f5c4bad6
Author: Noel Power noel.po...@novell.com
Date:   Wed Jan 25 12:36:17 2012 +

fix initial height of multiline input window

There is a hardcoded preferred height for the input window that was getting 
picked up becuase the result of GetTextHeight was just '1' ( due to no font 
being set up ) We shouldn't use a hardcoded value, we should always use the 
proper text height e.g. the result of a successfull call to  GetTextHeight() ( 
the patch makes sure we get a decent result from this call )

diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 1ae727c..3771d37 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -1128,6 +1128,15 @@ ScMultiTextWnd::ScMultiTextWnd( ScInputBarGroup* pParen, 
ScTabViewShell* pViewSh
 mnLastExpandedLines( INPUTWIN_MULTILINES ),
 mbInvalidate( false )
 {
+// Calculate the text height, need to set a font for that. Probably we 
could set the font
+// here ( on this Window ) and avoid the temp Window. OTOH vcl is such a 
mystery I prefer
+// to minimise possible unexpected side-affects this way
+Window aTmp(this, WB_BORDER );
+aTmp.SetFont(aTextFont);
+mnTextHeight = LogicToPixel(Size(0,aTmp.GetTextHeight())).Height() ;
+Size aBorder;
+aBorder = CalcWindowSize( aBorder);
+mnBorderHeight = aBorder.Height();
 nTextStartPos = TEXT_MULTI_STARTPOS;
 }
 
@@ -1158,13 +1167,8 @@ EditView* ScMultiTextWnd::GetEditView()
 
 long ScMultiTextWnd::GetPixelHeightForLines( long nLines )
 {
-long height = ( LogicToPixel(Size(0,GetTextHeight())).Height() );
-// need to figure out why GetTextHeight is not set up when I need it
-// some initialisation timing issue ?
-height = Max ( long( 14 ), height );
-// add padding ( for the borders of the window I guess ) otherwise we
-// chop slightly the top and bottom of whatever is in the inputbox
-return ( nLines *  height ) + 4;
+// add padding ( for the borders of the window )
+return ( nLines *  mnTextHeight ) + mnBorderHeight;
 }
 
 void ScMultiTextWnd::SetNumLines( long nLines )
diff --git a/sc/source/ui/inc/inputwin.hxx b/sc/source/ui/inc/inputwin.hxx
index eec7fed..185ac45 100644
--- a/sc/source/ui/inc/inputwin.hxx
+++ b/sc/source/ui/inc/inputwin.hxx
@@ -204,6 +204,8 @@ private:
 ScInputBarGroup mrGroupBar;
 long mnLines;
 long mnLastExpandedLines;
+long mnTextHeight;
+long mnBorderHeight;
 bool mbInvalidate;
 };
 
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-01-25 Thread Michael Meeks
New branch 'feature/android' available with the following commits:
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: Branch 'feature/android' - android/qa

2012-01-25 Thread Michael Meeks
 android/qa/desktop/Makefile |   17 +
 1 file changed, 17 insertions(+)

New commits:
commit 3e52b896843ae0a9e137d4728e2ef73245e7e144
Author: Michael Meeks michael.me...@suse.com
Date:   Wed Jan 25 14:45:16 2012 +

android: add versionrc generation for desktop

diff --git a/android/qa/desktop/Makefile b/android/qa/desktop/Makefile
index 375bb82..1dd0d83 100644
--- a/android/qa/desktop/Makefile
+++ b/android/qa/desktop/Makefile
@@ -38,6 +38,7 @@ buildrcs:
echo OSL_SOCKET_PATH=$(APP_DATA_PATH)/files  
assets/program/lofficerc
 # - this looks useful but breaks more than it fixes ...
 #  echo DISABLE_EXTENSION_SYNCHRONIZATION=1  assets/program/lofficerc
+
 # fundamentalrc ini ...
echo [Bootstrap]  assets/program/fundamentalrc
echo LO_LIB_DIR=file://$(APP_DATA_PATH)/lib/  
assets/program/fundamentalrc
@@ -71,6 +72,22 @@ buildrcs:
echo ProductKey=LibreOffice 3.5  assets/program/bootstraprc
echo UserInstallation=file://$(APP_DATA_PATH)/files/.libreoffice  
assets/program/bootstraprc
 
+# versionrc ini ...
+   echo [Version]  assets/program/versionrc
+   echo AllLanguages=en-US  assets/program/versionrc
+   echo BuildVersion=  assets/program/versionrc
+   echo buildid=dead-beef  assets/program/versionrc
+   echo 
ExtensionUpdateURL=http://updateexte.libreoffice.org/ExtensionUpdateService/check.Update;
  assets/program/versionrc
+   echo ProductBuildid=3  assets/program/versionrc
+   echo ProductMajor=360  assets/program/versionrc
+   echo ProductMinor=1  assets/program/versionrc
+   echo ProductSource=OOO350  assets/program/versionrc
+   echo ReferenceOOoMajorMinor=3.6  assets/program/versionrc
+   echo UpdateID=LibreOffice_3_en-US  assets/program/versionrc
+   echo UpdateURL=  assets/program/versionrc
+   echo UpdateUserAgent=PRODUCT (${buildid}; ${_OS}; ${_ARCH}; 
BundledLanguages=${AllLanguages})  assets/program/versionrc
+   echo Vendor=SelfCompiledGit  assets/program/versionrc
+
 copy-stuff: buildrcs
 #
 # Copy shared libraries we need to libs/armeabi-v7a so that ant will
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: Branch 'feature/android' - sal/osl

2012-01-25 Thread Michael Meeks
 sal/osl/unx/security.c |   20 +++-
 1 file changed, 11 insertions(+), 9 deletions(-)

New commits:
commit fd268507704ba82af2abe4f5f777daf4c43d74fe
Author: Michael Meeks michael.me...@suse.com
Date:   Wed Jan 25 15:09:55 2012 +

android: cleanup osl security code for empty home / username fields

diff --git a/sal/osl/unx/security.c b/sal/osl/unx/security.c
index d73111c..96605fc 100644
--- a/sal/osl/unx/security.c
+++ b/sal/osl/unx/security.c
@@ -276,7 +276,7 @@ static sal_Bool SAL_CALL osl_psz_getUserName(oslSecurity 
Security, sal_Char* psz
 {
 oslSecurityImpl *pSecImpl = (oslSecurityImpl *)Security;
 
-if (pSecImpl == NULL)
+if (pSecImpl == NULL || pSecImpl-m_pPasswd.pw_name == NULL)
 return sal_False;
 
 strncpy(pszName, pSecImpl-m_pPasswd.pw_name, nMax);
@@ -364,14 +364,17 @@ static sal_Bool SAL_CALL osl_psz_getHomeDir(oslSecurity 
Security, sal_Char* pszD
 pStr = getenv(HOME);
 #endif
 
-if ((pStr != NULL)  (strlen(pStr)  0) 
-(access(pStr, 0) == 0))
+if (pStr != NULL  strlen(pStr)  0  access(pStr, 0) == 0)
 strncpy(pszDirectory, pStr, nMax);
-else
+else if (pSecImpl-m_pPasswd.pw_dir != NULL)
 strncpy(pszDirectory, pSecImpl-m_pPasswd.pw_dir, nMax);
+else
+return sal_False;
 }
-else
+else if (pSecImpl-m_pPasswd.pw_dir != NULL)
 strncpy(pszDirectory, pSecImpl-m_pPasswd.pw_dir, nMax);
+else
+return sal_False;
 
 return sal_True;
 }
@@ -403,8 +406,7 @@ static sal_Bool SAL_CALL osl_psz_getConfigDir(oslSecurity 
Security, sal_Char* ps
 {
 sal_Char *pStr = getenv(XDG_CONFIG_HOME);
 
-if ((pStr == NULL) || (strlen(pStr) == 0) ||
-(access(pStr, 0) != 0))
+if (pStr == NULL || strlen(pStr) == 0 || access(pStr, 0) != 0)
 {
 size_t n = 0;
 // a default equal to $HOME/.config should be used.
@@ -460,9 +462,9 @@ sal_Bool SAL_CALL osl_isAdministrator(oslSecurity Security)
 return sal_False;
 
 if (pSecImpl-m_pPasswd.pw_uid != 0)
-return (sal_False);
+return sal_False;
 
-return (sal_True);
+return sal_True;
 }
 
 void SAL_CALL osl_freeSecurityHandle(oslSecurity Security)
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: sw/source

2012-01-25 Thread Miklos Vajna
 sw/source/filter/rtf/swparrtf.cxx |6 ++
 1 file changed, 6 insertions(+)

New commits:
commit bb147bbb801b53dba8928340df7e2aa2d4545349
Author: Miklos Vajna vmik...@frugalware.org
Date:   Wed Jan 25 16:33:25 2012 +0100

fdo#43869 use the old rtf importer for paste

diff --git a/sw/source/filter/rtf/swparrtf.cxx 
b/sw/source/filter/rtf/swparrtf.cxx
index 8099617..81abb16 100644
--- a/sw/source/filter/rtf/swparrtf.cxx
+++ b/sw/source/filter/rtf/swparrtf.cxx
@@ -34,6 +34,7 @@
 #include tools/stream.hxx
 #include svl/itemiter.hxx
 #include svtools/rtftoken.h
+#include svtools/miscopt.hxx
 #include svl/intitem.hxx
 #include editeng/fhgtitem.hxx
 #include editeng/ulspitem.hxx
@@ -161,6 +162,11 @@ sal_uLong SwRTFReader::Read( SwDoc rDoc, const String 
/*rBaseURL*/, SwPaM /*r
 
 extern C SAL_DLLPUBLIC_EXPORT Reader* SAL_CALL ImportRTF()
 {
+// Use the old rtf importer by default for paste, till the new one supports
+// undo stack and PaM.
+SvtMiscOptions aMiscOptions;
+if (!aMiscOptions.IsExperimentalMode())
+return new RtfReader();
 return new SwRTFReader();
 }
 
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: binfilter/bf_svtools

2012-01-25 Thread Caolán McNamara
 binfilter/bf_svtools/source/misc/svt_ehdl.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 58f9f554d5fb9a3ca9a2b80038cdfa9d609a72d7
Author: Caolán McNamara caol...@redhat.com
Date:   Tue Jan 24 20:57:51 2012 +

String(String

diff --git a/binfilter/bf_svtools/source/misc/svt_ehdl.cxx 
b/binfilter/bf_svtools/source/misc/svt_ehdl.cxx
index 4db63b8..5b14396 100644
--- a/binfilter/bf_svtools/source/misc/svt_ehdl.cxx
+++ b/binfilter/bf_svtools/source/misc/svt_ehdl.cxx
@@ -365,7 +365,7 @@ BOOL SfxErrorHandler::GetErrorString(
 SolarMutexGuard aGuard;
 
 BOOL bRet = FALSE;
-rStr=String(String(RTL_CONSTASCII_USTRINGPARAM($(CLASS)$(ERROR;
+rStr=rtl::OUString(RTL_CONSTASCII_USTRINGPARAM($(CLASS)$(ERROR)));
 ResId *pResId = new ResId(nId, *pMgr);
 
 {
___
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-25 Thread Petr Mladek
 sc/source/core/data/dpoutput.cxx |   14 +++---
 1 file changed, 11 insertions(+), 3 deletions(-)

New commits:
commit 6cc0bf1394ef9d6941d38a55a6155688a6f9bd43
Author: Kohei Yoshida kohei.yosh...@suse.com
Date:   Tue Jan 24 16:32:10 2012 -0500

fdo#45067: Differentiate numeric and non-numeric field member values.

Signed-off-by: Petr Mladek pmla...@suse.cz

diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx
index 990e212..32179e3 100644
--- a/sc/source/core/data/dpoutput.cxx
+++ b/sc/source/core/data/dpoutput.cxx
@@ -795,10 +795,18 @@ void ScDPOutput::HeaderCell( SCCOL nCol, SCROW nRow, 
SCTAB nTab,
 
 if ( nFlags  sheet::MemberResultFlags::HASMEMBER )
 {
-// Avoid unwanted automatic format detection.
+bool bNumeric = (nFlags  sheet::MemberResultFlags::NUMERIC) != 0;
 ScSetStringParam aParam;
-aParam.mbDetectNumberFormat = false;
-aParam.mbSetTextCellFormat = true;
+if (bNumeric)
+{
+aParam.mbDetectNumberFormat = true;
+aParam.mbSetTextCellFormat = false;
+}
+else
+{
+aParam.mbDetectNumberFormat = false;
+aParam.mbSetTextCellFormat = true;
+}
 pDoc-SetString(nCol, nRow, nTab, rData.Caption, aParam);
 }
 
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: 3 commits - postprocess/prj sal/android sal/inc sal/Package_inc.mk solenv/inc svx/source sw/source vcl/android vcl/inc

2012-01-25 Thread Tor Lillqvist
 postprocess/prj/build.lst|2 
 sal/Package_inc.mk   |2 
 sal/android/android_native_app_glue.c|   15 -
 sal/android/lo-bootstrap.c   |7 
 sal/inc/osl/detail/android.h |  352 ---
 sal/inc/osl/detail/android_native_app_glue.h |  349 ++
 solenv/inc/unxandr/lo-bootstrap.h|2 
 svx/source/stbctrls/zoomsliderctrl.cxx   |4 
 sw/source/ui/uiview/viewport.cxx |4 
 vcl/android/androidinst.cxx  |   14 -
 vcl/inc/android/androidinst.hxx  |1 
 11 files changed, 376 insertions(+), 376 deletions(-)

New commits:
commit f9c0e552355a0ae30ba75b427a3d8749ca8ebe9b
Author: Tor Lillqvist tlillqv...@suse.com
Date:   Wed Jan 25 16:41:45 2012 +0200

Bin global_android_app and instead use lo-bootstrap API

Instead of introducing a global variable, use the already existing
saved android_app pointer in lo-bootstrap.c, and just add a function
to rettrieve that.

Reanme osl/detail/android.h back to android_native_app_glue.h, which
is the file from NDK/sources that it is. android.h sounded to me too
grand, as if it was some universal Android header. But if we do start
to modify the android_native_app_glue stuff heavily, then it indeed
makes sense to call it something else. Until then, revert also some
whitespace changes to android_native_app_glue.c for it to be as close
as possible to the upstream one in the NDK, for clarity.

diff --git a/sal/Package_inc.mk b/sal/Package_inc.mk
index d0520ef..e43de3e 100644
--- a/sal/Package_inc.mk
+++ b/sal/Package_inc.mk
@@ -64,7 +64,7 @@ $(eval $(call 
gb_Package_add_file,sal_inc,inc/osl/thread.hxx,osl/thread.hxx))
 $(eval $(call gb_Package_add_file,sal_inc,inc/osl/time.h,osl/time.h))
 $(eval $(call gb_Package_add_file,sal_inc,inc/osl/util.h,osl/util.h))
 $(eval $(call 
gb_Package_add_file,sal_inc,inc/osl/detail/file.h,osl/detail/file.h))
-$(eval $(call 
gb_Package_add_file,sal_inc,inc/osl/detail/android.h,osl/detail/android.h))
+$(eval $(call 
gb_Package_add_file,sal_inc,inc/osl/detail/android_native_app_glue.h,osl/detail/android_native_app_glue.h))
 $(eval $(call 
gb_Package_add_file,sal_inc,inc/rtl/allocator.hxx,rtl/allocator.hxx))
 $(eval $(call gb_Package_add_file,sal_inc,inc/rtl/alloc.h,rtl/alloc.h))
 $(eval $(call gb_Package_add_file,sal_inc,inc/rtl/bootstrap.h,rtl/bootstrap.h))
diff --git a/sal/android/android_native_app_glue.c 
b/sal/android/android_native_app_glue.c
index efd7a4b..cf5d8e8 100644
--- a/sal/android/android_native_app_glue.c
+++ b/sal/android/android_native_app_glue.c
@@ -22,7 +22,7 @@
 #include unistd.h
 #include sys/resource.h
 
-#include osl/detail/android.h
+#include osl/detail/android_native_app_glue.h
 #include android/log.h
 
 #define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, threaded_app, 
__VA_ARGS__))
@@ -236,14 +236,9 @@ static void* android_app_entry(void* param) {
 // 
 
 static struct android_app* android_app_create(ANativeActivity* activity,
-void* savedState, size_t savedStateSize)
-{
+void* savedState, size_t savedStateSize) {
 struct android_app* android_app = (struct 
android_app*)malloc(sizeof(struct android_app));
 memset(android_app, 0, sizeof(struct android_app));
-
-// get this across to VCL.
-global_android_app = android_app;
-
 android_app-activity = activity;
 
 pthread_mutex_init(android_app-mutex, NULL);
@@ -419,13 +414,9 @@ static void onInputQueueDestroyed(ANativeActivity* 
activity, AInputQueue* queue)
 android_app_set_input((struct android_app*)activity-instance, NULL);
 }
 
-__attribute__ ((visibility(default))) struct android_app *global_android_app 
= NULL;
-
 __attribute__ ((visibility(default))) void 
ANativeActivity_onCreate(ANativeActivity* activity,
-void* savedState, size_t savedStateSize)
-{
+void* savedState, size_t savedStateSize) {
 LOGI(Creating: %p\n, activity);
-
 activity-callbacks-onDestroy = onDestroy;
 activity-callbacks-onStart = onStart;
 activity-callbacks-onResume = onResume;
diff --git a/sal/android/lo-bootstrap.c b/sal/android/lo-bootstrap.c
index bd90494..3cb8d3a 100644
--- a/sal/android/lo-bootstrap.c
+++ b/sal/android/lo-bootstrap.c
@@ -1470,6 +1470,13 @@ lo_get_javavm(void)
 }
 
 __attribute__ ((visibility(default)))
+struct android_app *
+lo_get_app(void)
+{
+return app;
+}
+
+__attribute__ ((visibility(default)))
 void
 android_main(struct android_app* state)
 {
diff --git a/sal/inc/osl/detail/android.h b/sal/inc/osl/detail/android.h
deleted file mode 100644
index beb5b1d..000
--- a/sal/inc/osl/detail/android.h
+++ /dev/null
@@ -1,352 +0,0 @@
-/*
- * Copyright (C) 2010 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not 

[Libreoffice-commits] .: 3 commits - basctl/source cui/source dbaccess/source offapi/com officecfg/registry sw/source unotools/inc unotools/Library_utl.mk unotools/Package_inc.mk unotools/source

2012-01-25 Thread Stephan Bergmann
 basctl/source/basicide/baside2.hxx   |   24 -
 basctl/source/basicide/baside2b.cxx  |  108 +---
 cui/source/options/fontsubs.cxx  |   42 ++-
 cui/source/options/fontsubs.hxx  |7 
 dbaccess/source/ui/control/sqledit.cxx   |   86 +-
 dbaccess/source/ui/inc/sqledit.hxx   |   17 +
 offapi/com/sun/star/configuration/ReadOnlyAccess.idl |2 
 officecfg/registry/cppheader.xsl |   24 +
 sw/source/ui/docvw/srcedtw.cxx   |   84 +-
 sw/source/ui/inc/srcedtw.hxx |   23 +
 unotools/Library_utl.mk  |1 
 unotools/Package_inc.mk  |1 
 unotools/inc/unotools/configuration.hxx  |   48 +++
 unotools/inc/unotools/itemholderbase.hxx |1 
 unotools/inc/unotools/sourceviewconfig.hxx   |   62 
 unotools/source/config/configuration.cxx |   25 +
 unotools/source/config/itemholder1.cxx   |5 
 unotools/source/config/sourceviewconfig.cxx  |  242 ---
 18 files changed, 384 insertions(+), 418 deletions(-)

New commits:
commit a2195b2dc301a6c2cfd0bf1a7ff74483bcc5998a
Author: Stephan Bergmann sberg...@redhat.com
Date:   Wed Jan 25 18:18:18 2012 +0100

Replace SourceViewConfig with (simplified) direct configuration access.

diff --git a/basctl/source/basicide/baside2.hxx 
b/basctl/source/basicide/baside2.hxx
index 8d5aab9..a44e02b 100644
--- a/basctl/source/basicide/baside2.hxx
+++ b/basctl/source/basicide/baside2.hxx
@@ -50,6 +50,7 @@ class SvxSearchItem;
 
 #include sfx2/progress.hxx
 #include svtools/syntaxhighlight.hxx
+#include unotools/options.hxx
 
 #include breakpoint.hxx
 #include linenumberwindow.hxx
@@ -58,10 +59,9 @@ DBG_NAMEEX( ModulWindow )
 
 #define MARKER_NOMARKER 0x
 
-namespace utl
-{
-class SourceViewConfig;
-}
+namespace com { namespace sun { namespace star { namespace beans {
+class XMultiPropertySet;
+} } } }
 
 // #108672 Helper functions to get/set text in TextEngine
 // using the stream interface (get/setText() only supports
@@ -91,18 +91,19 @@ inline void ProgressInfo::StepProgress()
 SetState( ++nCurState );
 }
 
-
-namespace svt {
-class SourceViewConfig;
-}
-
-class EditorWindow : public Window, public SfxListener, public 
utl::ConfigurationListener
+class EditorWindow : public Window, public SfxListener
 {
 private:
+class ChangesListener;
+friend class ChangesListener;
+
 ExtTextView*pEditView;
 ExtTextEngine*  pEditEngine;
 
-utl::SourceViewConfig* pSourceViewConfig;
+rtl::Reference ChangesListener  listener_;
+osl::Mutex mutex_;
+com::sun::star::uno::Reference com::sun::star::beans::XMultiPropertySet 
+notifier_;
 
 longnCurTextWidth;
 
@@ -139,7 +140,6 @@ protected:
 virtual voidCommand( const CommandEvent rCEvt );
 virtual voidLoseFocus();
 virtual voidRequestHelp( const HelpEvent rHEvt );
-virtual voidConfigurationChanged( utl::ConfigurationBroadcaster*, 
sal_uInt32 );
 
 voidDoSyntaxHighlight( sal_uLong nPara );
 String  GetWordAtCursor();
diff --git a/basctl/source/basicide/baside2b.cxx 
b/basctl/source/basicide/baside2b.cxx
index 52f9752..101fcfd 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -40,8 +40,11 @@
 #include basic/sbmeth.hxx
 #include basic/sbuno.hxx
 #include com/sun/star/script/XLibraryContainer2.hpp
+#include com/sun/star/beans/XMultiPropertySet.hpp
+#include com/sun/star/beans/XPropertiesChangeListener.hpp
 #include comphelper/processfactory.hxx
 #include comphelper/string.hxx
+#include officecfg/Office/Common.hxx
 #include sfx2/dispatch.hxx
 #include sfx2/viewfrm.hxx
 #include vcl/msgbox.hxx
@@ -52,7 +55,6 @@
 #include svtools/textwindowpeer.hxx
 #include vcl/taskpanelist.hxx
 #include vcl/help.hxx
-#include unotools/sourceviewconfig.hxx
 
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
@@ -147,6 +149,30 @@ void lcl_SeparateNameAndIndex( const String rVName, 
String rVar, String rInde
 }
 }
 
+class EditorWindow::ChangesListener:
+public cppu::WeakImplHelper1 beans::XPropertiesChangeListener 
+{
+public:
+ChangesListener(EditorWindow  editor): editor_(editor) {}
+
+private:
+virtual ~ChangesListener() {}
+
+virtual void disposing(lang::EventObject const ) throw (RuntimeException)
+{
+osl::MutexGuard g(editor_.mutex_);
+editor_.notifier_.clear();
+}
+
+virtual void propertiesChange(
+Sequence beans::PropertyChangeEvent  const ) throw 
(RuntimeException)
+{
+SolarMutexGuard g;
+editor_.ImplSetFont();
+}
+
+EditorWindow  editor_;
+};
 
 EditorWindow::EditorWindow( Window* pParent ) :
 Window( pParent, WB_BORDER )
@@ -156,7 +182,6 @@ EditorWindow::EditorWindow( 

[Libreoffice-commits] .: sc/qa

2012-01-25 Thread Kohei Yoshida
 sc/qa/unit/ucalc.cxx |   96 +--
 1 file changed, 94 insertions(+), 2 deletions(-)

New commits:
commit 85d34beec5f8196896487c96028b2dc2ce3cf6c8
Author: Kohei Yoshida kohei.yosh...@suse.com
Date:   Wed Jan 25 12:50:54 2012 -0500

New unit test for pivot table's date output handling.

We rely on the cell type of those date value outputs when grouping
by date or value range.

diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 7f5f143..ec31a04 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -130,6 +130,13 @@ public:
 void testPivotTableLabels();
 
 /**
+ * Make sure that we set cells displaying date values numeric cells,
+ * rather than text cells.  Grouping by date or number functionality
+ * depends on this.
+ */
+void testPivotTableDateLabels();
+
+/**
  * Test for pivot table's filtering functionality by page fields.
  */
 void testPivotTableFilters();
@@ -190,6 +197,7 @@ public:
 CPPUNIT_TEST(testMatrix);
 CPPUNIT_TEST(testPivotTable);
 CPPUNIT_TEST(testPivotTableLabels);
+CPPUNIT_TEST(testPivotTableDateLabels);
 CPPUNIT_TEST(testPivotTableFilters);
 CPPUNIT_TEST(testPivotTableNamedSource);
 CPPUNIT_TEST(testSheetCopy);
@@ -1144,13 +1152,13 @@ bool checkDPTableOutput(ScDocument* pDoc, const 
ScRange aOutRange, const char*
 bool bEqual = aCheckVal.equals(aVal);
 if (!bEqual)
 {
-cerr  Expected:   aCheckValActual:   aVal 
 endl;
+cout  Expected:   aCheckValActual:   aVal 
 endl;
 bResult = false;
 }
 }
 else if (!aVal.isEmpty())
 {
-cerr  Empty cell expected  endl;
+cout  Empty cell expected  endl;
 bResult = false;
 }
 }
@@ -1476,6 +1484,90 @@ void Test::testPivotTableLabels()
 CPPUNIT_ASSERT_MESSAGE(Table output check failed, bSuccess);
 }
 
+pDPs-FreeTable(pDPObj);
+
+m_pDoc-DeleteTab(1);
+m_pDoc-DeleteTab(0);
+}
+
+void Test::testPivotTableDateLabels()
+{
+m_pDoc-InsertTab(0, OUString(RTL_CONSTASCII_USTRINGPARAM(Data)));
+m_pDoc-InsertTab(1, OUString(RTL_CONSTASCII_USTRINGPARAM(Table)));
+
+// Dimension definition
+DPFieldDef aFields[] = {
+{ Name,  sheet::DataPilotFieldOrientation_ROW },
+{ Date,  sheet::DataPilotFieldOrientation_COLUMN },
+{ Value, sheet::DataPilotFieldOrientation_DATA }
+};
+
+// Raw data
+const char* aData[][3] = {
+{ Zena,   2011-1-1, 30 },
+{ Yodel,  2011-1-2, 20 },
+{ Xavior, 2011-1-3, 45 }
+};
+
+size_t nFieldCount = SAL_N_ELEMENTS(aFields);
+size_t nDataCount = SAL_N_ELEMENTS(aData);
+
+ScRange aSrcRange = insertDPSourceData(m_pDoc, aFields, nFieldCount, 
aData, nDataCount);
+SCROW nRow1 = aSrcRange.aStart.Row(), nRow2 = aSrcRange.aEnd.Row();
+SCCOL nCol1 = aSrcRange.aStart.Col(), nCol2 = aSrcRange.aEnd.Col();
+
+ScDPObject* pDPObj = createDPFromRange(
+m_pDoc, ScRange(nCol1, nRow1, 0, nCol2, nRow2, 0), aFields, 
nFieldCount, false);
+
+ScDPCollection* pDPs = m_pDoc-GetDPCollection();
+bool bSuccess = pDPs-InsertNewTable(pDPObj);
+CPPUNIT_ASSERT_MESSAGE(failed to insert a new datapilot object into 
document, bSuccess);
+CPPUNIT_ASSERT_MESSAGE(there should be only one data pilot table.,
+   pDPs-GetCount() == 1);
+pDPObj-SetName(pDPs-CreateNewName());
+
+bool bOverFlow = false;
+ScRange aOutRange = pDPObj-GetNewOutputRange(bOverFlow);
+CPPUNIT_ASSERT_MESSAGE(Table overflow!?, !bOverFlow);
+
+pDPObj-Output(aOutRange.aStart);
+aOutRange = pDPObj-GetOutRange();
+
+{
+// Expected output table content.  0 = empty cell
+const char* aOutputCheck[][5] = {
+{ Sum - Value, Date, 0, 0, 0 },
+{ Name, 2011-01-01, 2011-01-02, 2011-01-03, Total Result 
},
+{ Xavior,  0, 0, 45, 45 },
+{ Yodel,  0, 20, 0, 20 },
+{ Zena,  30, 0, 0, 30 },
+{ Total Result, 30, 20, 45, 95 }
+};
+
+bSuccess = checkDPTableOutput5(m_pDoc, aOutRange, aOutputCheck, 
DataPilot table output);
+CPPUNIT_ASSERT_MESSAGE(Table output check failed, bSuccess);
+}
+
+{
+const char* aChecks[] = {
+2011-01-01, 2011-01-02, 2011-01-03
+};
+
+// Make sure those cells that contain dates are numeric.
+SCROW nRow = aOutRange.aStart.Row() + 1;
+nCol1 = aOutRange.aStart.Col() + 1;
+nCol2 = nCol1 + 2;
+for (SCCOL nCol = nCol1; nCol = nCol2; ++nCol)
+{
+OUString aVal = m_pDoc-GetString(nCol, nRow, 1);
+CPPUNIT_ASSERT_MESSAGE(Cell value is not as expected., 
aVal.equalsAscii(aChecks[nCol-nCol1]));
+

[Libreoffice-commits] .: basctl/source basic/source sc/source sw/source

2012-01-25 Thread Takeshi Abe
 basctl/source/dlged/managelang.cxx |3 +--
 basctl/source/dlged/propbrw.cxx|3 +--
 basic/source/classes/sbxmod.cxx|   11 ---
 basic/source/sbx/sbxbase.cxx   |3 +--
 sc/source/core/data/column.cxx |2 +-
 sc/source/core/data/documen3.cxx   |3 +--
 sc/source/core/data/table4.cxx |3 +--
 sw/source/core/text/itrform2.cxx   |3 +--
 sw/source/core/txtnode/atrfld.cxx  |3 +--
 sw/source/ui/docvw/edtwin.cxx  |8 ++--
 10 files changed, 14 insertions(+), 28 deletions(-)

New commits:
commit bb51e8e72be424f0fd92350006c536a97fd4b210
Author: Takeshi Abe t...@fixedpoint.jp
Date:   Thu Jan 26 01:02:30 2012 +0900

Deleting a null pointer is safe

diff --git a/basctl/source/dlged/managelang.cxx 
b/basctl/source/dlged/managelang.cxx
index eb16d60..58fd948 100644
--- a/basctl/source/dlged/managelang.cxx
+++ b/basctl/source/dlged/managelang.cxx
@@ -197,8 +197,7 @@ void ManageLanguageDialog::ClearLanguageBox()
 for ( i = 0; i  nCount; ++i )
 {
 LanguageEntry* pEntry = (LanguageEntry*)( 
m_aLanguageLB.GetEntryData(i) );
-if ( pEntry )
-delete pEntry;
+delete pEntry;
 }
 m_aLanguageLB.Clear();
 }
diff --git a/basctl/source/dlged/propbrw.cxx b/basctl/source/dlged/propbrw.cxx
index 5ee9c28..4e1f90f 100644
--- a/basctl/source/dlged/propbrw.cxx
+++ b/basctl/source/dlged/propbrw.cxx
@@ -308,8 +308,7 @@ Sequence Reference XInterface  
 // next element
 pCurrent = pGroupIterator  pGroupIterator-IsMore() ? 
pGroupIterator-Next() : NULL;
 }
-if (pGroupIterator)
-delete pGroupIterator;
+delete pGroupIterator;
 }
 
 sal_Int32 nCount = aInterfaces.size();
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx
index d61b63c..40ae0d7 100644
--- a/basic/source/classes/sbxmod.cxx
+++ b/basic/source/classes/sbxmod.cxx
@@ -541,13 +541,10 @@ SbModule::SbModule( const String rName,  sal_Bool 
bVBACompat )
 SbModule::~SbModule()
 {
 OSL_TRACE(Module named %s is destructing, rtl::OUStringToOString( 
GetName(), RTL_TEXTENCODING_UTF8 ).getStr() );
-if( pImage )
-delete pImage;
-if( pBreaks )
-delete pBreaks;
-if( pClassData )
-delete pClassData;
-mxWrapper = NULL;
+delete pImage;
+delete pBreaks;
+delete pClassData;
+mxWrapper = NULL;
 }
 
 uno::Reference script::XInvocation 
diff --git a/basic/source/sbx/sbxbase.cxx b/basic/source/sbx/sbxbase.cxx
index 303f382..e2987d0 100644
--- a/basic/source/sbx/sbxbase.cxx
+++ b/basic/source/sbx/sbxbase.cxx
@@ -55,8 +55,7 @@ SbxAppData GetSbxData_Impl()
 
 SbxAppData::~SbxAppData()
 {
-if( pBasicFormater )
-delete pBasicFormater;
+delete pBasicFormater;
 }
 
 
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index 6c1c849..50f0e95 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -93,7 +93,7 @@ ScColumn::ScColumn() :
 ScColumn::~ScColumn()
 {
 FreeAll();
-if (pAttrArray) delete pAttrArray;
+delete pAttrArray;
 }
 
 
diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx
index 66973de..991eb6b 100644
--- a/sc/source/core/data/documen3.cxx
+++ b/sc/source/core/data/documen3.cxx
@@ -273,8 +273,7 @@ void ScDocument::SetDBCollection( ScDBCollection* 
pNewDBCollection, bool bRemove
 }
 }
 
-if (pDBCollection)
-delete pDBCollection;
+delete pDBCollection;
 
 pDBCollection = pNewDBCollection;
 }
diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx
index bc99c5c..dac4111 100644
--- a/sc/source/core/data/table4.cxx
+++ b/sc/source/core/data/table4.cxx
@@ -564,8 +564,7 @@ void ScTable::FillAuto( SCCOL nCol1, SCROW nRow1, SCCOL 
nCol2, SCROW nRow2,
 {
 if ( bGetPattern )
 {
-if ( pNewPattern )
-delete pNewPattern;
+delete pNewPattern;
 if (bVertical)  // rInner:=nRow, rOuter:=nCol
 pSrcPattern = 
aCol[nCol].GetPattern(static_castSCROW(nAtSrc));
 else// rInner:=nCol, rOuter:=nRow
diff --git a/sw/source/core/text/itrform2.cxx b/sw/source/core/text/itrform2.cxx
index 54a7825..b46d5b8 100644
--- a/sw/source/core/text/itrform2.cxx
+++ b/sw/source/core/text/itrform2.cxx
@@ -1629,8 +1629,7 @@ xub_StrLen SwTxtFormatter::FormatLine( const xub_StrLen 
nStartPos )
 GetInfo().GetParaPortion()-GetReformat()-LeftMove( GetInfo().GetIdx() );
 
 // delete master copy of rest portion
-if ( pSaveFld )
-delete pSaveFld;
+delete pSaveFld;
 
 xub_StrLen nNewStart = nStartPos + pCurr-GetLen();
 
diff --git a/sw/source/core/txtnode/atrfld.cxx 
b/sw/source/core/txtnode/atrfld.cxx
index 4789c5f..dc285ef 100644
--- a/sw/source/core/txtnode/atrfld.cxx
+++ b/sw/source/core/txtnode/atrfld.cxx
@@ -134,8 +134,7 @@ void 

[Libreoffice-commits] .: set_soenv.in

2012-01-25 Thread François Tigeot
 set_soenv.in |3 +++
 1 file changed, 3 insertions(+)

New commits:
commit a79889083b25d69ae6b801ed8cee90b5dd9199c4
Author: François Tigeot ftig...@wolfpond.org
Date:   Wed Jan 25 18:50:35 2012 +0100

Ensure Env.Host.sh always return a zero exit code

* On some NetBSD systems, the last unset command returns a
  non-zero exit code

* This made the make(1) processes terminate immediately in
  source-env-and-recurse, breaking the build.

Reported by: Thomas Klausner w...@netbsd.org

diff --git a/set_soenv.in b/set_soenv.in
index 53b388f..704378d 100755
--- a/set_soenv.in
+++ b/set_soenv.in
@@ -1102,6 +1102,9 @@ ToFile( ENV_SCRIPT, $outfile, e );
 #
 print OUT export $exportvars$newline;
 print OUT unset $unsetvars$newline;
+# unset may return a non-zero value and make the initial
+# make(1) processes terminate with an error
+print OUT true $newline;
 
 #
 #---
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: Branch 'feature/android' - 3 commits - postprocess/prj sal/android sal/inc sal/Package_inc.mk solenv/inc svx/source sw/source vcl/android vcl/inc

2012-01-25 Thread Tor Lillqvist
 postprocess/prj/build.lst|2 
 sal/Package_inc.mk   |2 
 sal/android/android_native_app_glue.c|   15 -
 sal/android/lo-bootstrap.c   |7 
 sal/inc/osl/detail/android.h |  352 ---
 sal/inc/osl/detail/android_native_app_glue.h |  349 ++
 solenv/inc/unxandr/lo-bootstrap.h|2 
 svx/source/stbctrls/zoomsliderctrl.cxx   |4 
 sw/source/ui/uiview/viewport.cxx |4 
 vcl/android/androidinst.cxx  |   37 +-
 vcl/inc/android/androidinst.hxx  |1 
 11 files changed, 387 insertions(+), 388 deletions(-)

New commits:
commit 25f78344e8dea95cedb0b981f08865d676154e5b
Author: Tor Lillqvist tlillqv...@suse.com
Date:   Wed Jan 25 16:41:45 2012 +0200

Bin global_android_app and instead use lo-bootstrap API

Instead of introducing a global variable, use the already existing
saved android_app pointer in lo-bootstrap.c, and just add a function
to retrieve it from there. Store it in the AndroidSalInstance.

Reanme osl/detail/android.h back to android_native_app_glue.h, which
is the name of that file in NDK/sources. android.h sounded to me too
grand, as if it was some universal Android header. But if we do start
to modify the android_native_app_glue stuff heavily, then it indeed
makes sense to call it something else. Until then, revert also some
whitespace changes to android_native_app_glue.c for it to be as close
as possible to the upstream one in the NDK, for clarity.

diff --git a/sal/Package_inc.mk b/sal/Package_inc.mk
index d0520ef..e43de3e 100644
--- a/sal/Package_inc.mk
+++ b/sal/Package_inc.mk
@@ -64,7 +64,7 @@ $(eval $(call 
gb_Package_add_file,sal_inc,inc/osl/thread.hxx,osl/thread.hxx))
 $(eval $(call gb_Package_add_file,sal_inc,inc/osl/time.h,osl/time.h))
 $(eval $(call gb_Package_add_file,sal_inc,inc/osl/util.h,osl/util.h))
 $(eval $(call 
gb_Package_add_file,sal_inc,inc/osl/detail/file.h,osl/detail/file.h))
-$(eval $(call 
gb_Package_add_file,sal_inc,inc/osl/detail/android.h,osl/detail/android.h))
+$(eval $(call 
gb_Package_add_file,sal_inc,inc/osl/detail/android_native_app_glue.h,osl/detail/android_native_app_glue.h))
 $(eval $(call 
gb_Package_add_file,sal_inc,inc/rtl/allocator.hxx,rtl/allocator.hxx))
 $(eval $(call gb_Package_add_file,sal_inc,inc/rtl/alloc.h,rtl/alloc.h))
 $(eval $(call gb_Package_add_file,sal_inc,inc/rtl/bootstrap.h,rtl/bootstrap.h))
diff --git a/sal/android/android_native_app_glue.c 
b/sal/android/android_native_app_glue.c
index efd7a4b..cf5d8e8 100644
--- a/sal/android/android_native_app_glue.c
+++ b/sal/android/android_native_app_glue.c
@@ -22,7 +22,7 @@
 #include unistd.h
 #include sys/resource.h
 
-#include osl/detail/android.h
+#include osl/detail/android_native_app_glue.h
 #include android/log.h
 
 #define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, threaded_app, 
__VA_ARGS__))
@@ -236,14 +236,9 @@ static void* android_app_entry(void* param) {
 // 
 
 static struct android_app* android_app_create(ANativeActivity* activity,
-void* savedState, size_t savedStateSize)
-{
+void* savedState, size_t savedStateSize) {
 struct android_app* android_app = (struct 
android_app*)malloc(sizeof(struct android_app));
 memset(android_app, 0, sizeof(struct android_app));
-
-// get this across to VCL.
-global_android_app = android_app;
-
 android_app-activity = activity;
 
 pthread_mutex_init(android_app-mutex, NULL);
@@ -419,13 +414,9 @@ static void onInputQueueDestroyed(ANativeActivity* 
activity, AInputQueue* queue)
 android_app_set_input((struct android_app*)activity-instance, NULL);
 }
 
-__attribute__ ((visibility(default))) struct android_app *global_android_app 
= NULL;
-
 __attribute__ ((visibility(default))) void 
ANativeActivity_onCreate(ANativeActivity* activity,
-void* savedState, size_t savedStateSize)
-{
+void* savedState, size_t savedStateSize) {
 LOGI(Creating: %p\n, activity);
-
 activity-callbacks-onDestroy = onDestroy;
 activity-callbacks-onStart = onStart;
 activity-callbacks-onResume = onResume;
diff --git a/sal/android/lo-bootstrap.c b/sal/android/lo-bootstrap.c
index bd90494..3cb8d3a 100644
--- a/sal/android/lo-bootstrap.c
+++ b/sal/android/lo-bootstrap.c
@@ -1470,6 +1470,13 @@ lo_get_javavm(void)
 }
 
 __attribute__ ((visibility(default)))
+struct android_app *
+lo_get_app(void)
+{
+return app;
+}
+
+__attribute__ ((visibility(default)))
 void
 android_main(struct android_app* state)
 {
diff --git a/sal/inc/osl/detail/android.h b/sal/inc/osl/detail/android.h
deleted file mode 100644
index beb5b1d..000
--- a/sal/inc/osl/detail/android.h
+++ /dev/null
@@ -1,352 +0,0 @@
-/*
- * Copyright (C) 2010 The Android Open Source Project
- *
- * Licensed under the Apache License, 

[Libreoffice-commits] .: Branch 'libreoffice-3-4' - filter/source

2012-01-25 Thread Petr Mladek
 filter/source/msfilter/msdffimp.cxx |   20 +---
 1 file changed, 13 insertions(+), 7 deletions(-)

New commits:
commit 3475d300ef29866542007e295569075e592bde66
Author: Ivan Timofeev timofeev@gmail.com
Date:   Wed Jan 25 20:54:27 2012 +0100

fdo#43193: fix rotation of shapes in imported MS documents

Signed-off-by: Petr Mladek pmla...@suse.cz

diff --git a/filter/source/msfilter/msdffimp.cxx 
b/filter/source/msfilter/msdffimp.cxx
index 5764c66..784b5a0 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -4643,6 +4643,8 @@ SdrObject* SvxMSDffManager::ImportGroup( const 
DffRecordHeader rHd, SvStream r
 rSt  aRecHd;
 if ( aRecHd.nRecType == DFF_msofbtSpContainer )
 {
+sal_Int32 nGroupRotateAngle = 0;
+sal_Int32 nSpFlags = 0;
 mnFix16Angle = 0;
 
 aRecHd.SeekToBegOfRecord(rSt);
@@ -4650,15 +4652,19 @@ SdrObject* SvxMSDffManager::ImportGroup( const 
DffRecordHeader rHd, SvStream r
 pRet = ImportObj( rSt, pClientData, rClientRect, rGlobalChildRect, 
nCalledByGroup + 1, pShapeId );
 if ( pRet )
 {
+nSpFlags = nGroupShapeFlags;
+nGroupRotateAngle = mnFix16Angle;
+
 Rectangle aClientRect( rClientRect );
+
 Rectangle aGlobalChildRect;
 if ( !nCalledByGroup || rGlobalChildRect.IsEmpty() )
 aGlobalChildRect = GetGlobalChildAnchor( rHd, rSt, aClientRect 
);
 else
 aGlobalChildRect = rGlobalChildRect;
 
-if ( ( mnFix16Angle  4500  mnFix16Angle = 13500 )
-|| ( mnFix16Angle  22500  mnFix16Angle = 31500 ) )
+if ( ( nGroupRotateAngle  4500  nGroupRotateAngle = 13500 )
+|| ( nGroupRotateAngle  22500  nGroupRotateAngle = 31500 ) 
)
 {
 sal_Int32 nHalfWidth = ( aClientRect.GetWidth() + 1 )  1;
 sal_Int32 nHalfHeight = ( aClientRect.GetHeight() + 1 )  1;
@@ -4704,18 +4710,18 @@ SdrObject* SvxMSDffManager::ImportGroup( const 
DffRecordHeader rHd, SvStream r
 aRecHd2.SeekToEndOfRecord( rSt );
 }
 
-if ( mnFix16Angle )
+if ( nGroupRotateAngle )
 {
-double a = mnFix16Angle * nPi180;
-pRet-NbcRotate( aClientRect.Center(), mnFix16Angle, sin( a ), 
cos( a ) );
+double a = nGroupRotateAngle * nPi180;
+pRet-NbcRotate( aClientRect.Center(), nGroupRotateAngle, sin( 
a ), cos( a ) );
 }
-if ( nGroupShapeFlags  SP_FFLIPV )// Vertical 
flip?
+if ( nSpFlags  SP_FFLIPV ) // Vertical flip?
 {  // BoundRect in aBoundRect
 Point aLeft( aClientRect.Left(), ( aClientRect.Top() + 
aClientRect.Bottom() )  1 );
 Point aRight( aLeft.X() + 1000, aLeft.Y() );
 pRet-NbcMirror( aLeft, aRight );
 }
-if ( nGroupShapeFlags  SP_FFLIPH )// Horizontal 
flip?
+if ( nSpFlags  SP_FFLIPH ) // Horizontal flip?
 {  // BoundRect in aBoundRect
 Point aTop( ( aClientRect.Left() + aClientRect.Right() )  1, 
aClientRect.Top() );
 Point aBottom( aTop.X(), aTop.Y() + 1000 );
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: 6 commits - sc/CppunitTest_sc_tablesheetobj.mk sc/CppunitTest_sc_tablesheetsobj.mk sc/qa sc/source test/inc test/Library_subsequenttest.mk test/Package_inc.mk test/source

2012-01-25 Thread Markus Mohrhard
 sc/CppunitTest_sc_tablesheetobj.mk |  140 +
 sc/CppunitTest_sc_tablesheetsobj.mk|   20 +--
 sc/qa/extras/scdatapilottableobj.cxx   |   16 ++
 sc/qa/extras/sctablesheetobj.cxx   |   87 +++
 sc/qa/extras/testdocuments/ScTableSheetObj.ods |binary
 sc/qa/unoapi/knownissues.xcl   |   13 ++
 sc/source/ui/unoobj/cellsuno.cxx   |4 
 test/Library_subsequenttest.mk |2 
 test/Package_inc.mk|2 
 test/inc/test/container/xnamed.hxx |   53 +
 test/inc/test/util/xsearchable.hxx |   55 +
 test/source/container/xnamed.cxx   |   58 ++
 test/source/util/xsearchable.cxx   |   79 ++
 13 files changed, 514 insertions(+), 15 deletions(-)

New commits:
commit 3e82bf0e5e6a1d5dcbe6b7ebbbe124912e8e8700
Author: Markus Mohrhard markus.mohrh...@googlemail.com
Date:   Wed Jan 25 21:01:06 2012 +0100

add test for ScTableSheetObj

diff --git a/sc/CppunitTest_sc_tablesheetobj.mk 
b/sc/CppunitTest_sc_tablesheetobj.mk
new file mode 100644
index 000..9ccd9c8
--- /dev/null
+++ b/sc/CppunitTest_sc_tablesheetobj.mk
@@ -0,0 +1,140 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#*
+# Version: MPL 1.1 / GPLv3+ / LGPLv3+
+#
+# The contents of this file are subject to the Mozilla Public License Version
+# 1.1 (the License); you may not use this file except in compliance with
+# the License or as specified alternatively below. You may obtain a copy of
+# the License at http://www.mozilla.org/MPL/
+#
+# Software distributed under the License is distributed on an AS IS basis,
+# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+# for the specific language governing rights and limitations under the
+# License.
+#
+# The Initial Developer of the Original Code is
+#   Markus Mohrhard markus.mohrh...@googlemail.com
+# Portions created by the Initial Developer are Copyright (C) 2011 the
+# Initial Developer. All Rights Reserved.
+#
+# Major Contributor(s):
+#
+# For minor contributions see the git repository.
+#
+# Alternatively, the contents of this file may be used under the terms of
+# either the GNU General Public License Version 3 or later (the GPLv3+), or
+# the GNU Lesser General Public License Version 3 or later (the LGPLv3+),
+# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
+# instead of those above.
+#*
+
+$(eval $(call gb_CppunitTest_CppunitTest,sc_spreadsheetobj))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,sc_spreadsheetobj, \
+sc/qa/extras/sctablesheetobj \
+))
+
+$(eval $(call gb_CppunitTest_add_linked_libs,sc_spreadsheetobj, \
+avmedia \
+basegfx \
+comphelper \
+cppu \
+cppuhelper \
+drawinglayer \
+editeng \
+fileacc \
+for \
+forui \
+i18nisolang1 \
+msfilter \
+oox \
+sal \
+salhelper \
+sax \
+sb \
+sc \
+sfx \
+sot \
+subsequenttest \
+svl \
+svt \
+svx \
+svxcore \
+   test \
+tl \
+tk \
+ucbhelper \
+   unotest \
+utl \
+vbahelper \
+vcl \
+xo \
+   $(gb_STDLIBS) \
+))
+
+$(eval $(call gb_CppunitTest_set_include,sc_spreadsheetobj,\
+-I$(realpath $(SRCDIR)/sc/source/ui/inc) \
+-I$(realpath $(SRCDIR)/sc/inc) \
+$$(INCLUDE) \
+-I$(OUTDIR)/inc \
+))
+
+$(eval $(call gb_CppunitTest_add_api,sc_spreadsheetobj,\
+offapi \
+udkapi \
+))
+
+$(eval $(call gb_CppunitTest_uses_ure,sc_spreadsheetobj))
+
+$(eval $(call gb_CppunitTest_add_type_rdbs,sc_spreadsheetobj,\
+types \
+))
+
+$(eval $(call gb_CppunitTest_add_components,sc_spreadsheetobj,\
+basic/util/sb \
+comphelper/util/comphelp \
+configmgr/source/configmgr \
+dbaccess/util/dba \
+fileaccess/source/fileacc \
+filter/source/config/cache/filterconfig1 \
+forms/util/frm \
+framework/util/fwk \
+i18npool/util/i18npool \
+i18npool/source/search/i18nsearch \
+oox/util/oox \
+package/source/xstor/xstor \
+package/util/package2 \
+sax/source/expatwrap/expwrap \
+sax/source/fastparser/fastsax \
+sc/util/sc \
+sc/util/scd \
+sc/util/scfilt \
+sc/util/vbaobj \
+scripting/source/basprov/basprov \
+scripting/util/scriptframe \
+sfx2/util/sfx \
+sot/util/sot \
+svl/source/fsstor/fsstorage \
+toolkit/util/tk \
+ucb/source/core/ucb1 \
+ucb/source/ucp/file/ucpfile1 \
+ucb/source/ucp/tdoc/ucptdoc1 \
+unotools/util/utl \
+unoxml/source/rdf/unordf \
+unoxml/source/service/unoxml \
+))
+
+$(eval $(call gb_CppunitTest_set_args,sc_spreadsheetobj,\
+--headless \
+--protector unoexceptionprotector$(gb_Library_DLLEXT) 

[Libreoffice-commits] .: Branch 'feature/android' - 2 commits - sal/android sal/Library_lo-bootstrap.mk vcl/android

2012-01-25 Thread Michael Meeks
 sal/Library_lo-bootstrap.mk |5 +
 sal/android/lo-bootstrap.c  |8 +-
 vcl/android/androidinst.cxx |  161 +---
 3 files changed, 118 insertions(+), 56 deletions(-)

New commits:
commit b3904a718bbf278034afb231df3473e7138b05ac
Author: Michael Meeks michael.me...@suse.com
Date:   Wed Jan 25 21:07:24 2012 +

android: move event handling to members of SalInstance

rename app - mpApp and initial handling of frames, we will need
a mini window-manager in here, most likely.

diff --git a/vcl/android/androidinst.cxx b/vcl/android/androidinst.cxx
index e6df7fb..b4ea9e0 100644
--- a/vcl/android/androidinst.cxx
+++ b/vcl/android/androidinst.cxx
@@ -30,13 +30,19 @@
 #include headless/svpdummies.hxx
 #include generic/gendata.hxx
 #include android/log.h
-#include android/input.h
 #include android/looper.h
-#include android/native_window.h
 #include lo-bootstrap.h
 #include osl/detail/android_native_app_glue.h
 #include rtl/strbuf.hxx
 
+class AndroidSalData : public SalGenericData
+{
+public:
+AndroidSalData( SalInstance *pInstance ) : SalGenericData( 
SAL_DATA_ANDROID, pInstance ) {}
+virtual void ErrorTrapPush() {}
+virtual bool ErrorTrapPop( bool ) { return false; }
+};
+
 static rtl::OString MotionEdgeFlagsToString(int32_t nFlags)
 {
 rtl::OStringBuffer aStr;
@@ -67,13 +73,62 @@ static rtl::OString KeyMetaStateToString(int32_t nFlags)
 return aStr.makeStringAndClear();
 }
 
-int32_t AMotionEvent_getEdgeFlags(const AInputEvent* motion_event);
+static void BlitFrameRegionToWindow(ANativeWindow *pWindow,
+const basebmp::BitmapDeviceSharedPtr /* 
aDev */,
+const ARect aSrcRect,
+int nDestX, int nDestY)
+{
+fprintf (stderr, Blit frame src %d,%d-%d,%d to positoon %d, %d\n,
+ aSrcRect.left, aSrcRect.top, aSrcRect.right, aSrcRect.bottom,
+ nDestX, nDestY);
+#if 1
+ARect aRect;
+ANativeWindow_Buffer aBuffer;
+memset ((void *)aBuffer, 0, sizeof (aBuffer));
+int32_t nRet = ANativeWindow_lock(pWindow, aBuffer, aRect);
+fprintf (stderr, locked window %d returned rect: %d,%d-%d,%d 
+ buffer: %dx%d stride %d, format %d, bits %p\n,
+ nRet, aRect.left, aRect.top, aRect.right, aRect.bottom,
+ aBuffer.width, aBuffer.height, aBuffer.stride,
+ aBuffer.format, aBuffer.bits);
+if (aBuffer.bits)
+{
+// hard-code / guess at a format ...
+int32_t *p = (int32_t *)aBuffer.bits;
+for (int32_t y = 0; y  aBuffer.height; y++)
+{
+for (int32_t x = 0; x  aBuffer.stride / 4; x++)
+*p++ = (y  24) + x;
+}
+}
+ANativeWindow_unlockAndPost(pWindow);
+fprintf (stderr, done render!\n);
+#endif
 
-extern C {
-void onAppCmd_cb (struct android_app* app, int32_t cmd)
+}
+
+void AndroidSalInstance::BlitFrameToWindow(ANativeWindow *pWindow,
+   const 
basebmp::BitmapDeviceSharedPtr aDev)
+{
+basegfx::B2IVector aDevSize = aDev-getSize();
+ARect aWhole = { 0, 0, aDevSize.getX(), aDevSize.getY() };
+BlitFrameRegionToWindow(pWindow, aDev, aWhole, 0, 0);
+}
+
+void AndroidSalInstance::RedrawWindows(ANativeWindow *pWindow)
+{
+std::list SalFrame* ::const_iterator it;
+for ( it = getFrames().begin(); it != getFrames().end(); it++ )
 {
+SvpSalFrame *pFrame = static_castSvpSalFrame *(*it);
+BlitFrameToWindow (pWindow, pFrame-getDevice());
+}
+}
+
+void AndroidSalInstance::onAppCmd (struct android_app* app, int32_t cmd)
+{
 fprintf (stderr, app cmd for app %p, cmd %d\n, app, cmd);
-ANativeWindow *pWindow = app-window;
+ANativeWindow *pWindow = mpApp-window;
 switch (cmd) {
 case APP_CMD_INIT_WINDOW:
 {
@@ -83,26 +138,8 @@ extern C {
 fprintf (stderr, we have an app window ! %p %dx%x (%d)\n,
  pWindow, aRect.right, aRect.bottom,
  ANativeWindow_getFormat(pWindow));
-ANativeWindow_Buffer aBuffer;
-memset ((void *)aBuffer, 0, sizeof (aBuffer));
-int32_t nRet = ANativeWindow_lock(pWindow, aBuffer, aRect);
-fprintf (stderr, locked window %d returned rect: %d,%d-%d,%d 
- buffer: %dx%d stride %d, format %d, bits %p\n,
- nRet, aRect.left, aRect.top, aRect.right, aRect.bottom,
- aBuffer.width, aBuffer.height, aBuffer.stride,
- aBuffer.format, aBuffer.bits);
-if (aBuffer.bits)
-{
-// hard-code / guess at a format ...
-int32_t *p = (int32_t *)aBuffer.bits;
-for (int32_t y = 0; y  aBuffer.height; y++)
-{
-for (int32_t x = 0; x  aBuffer.stride / 4; x++)
-*p++ = (y  24) + x;

[Libreoffice-commits] .: Branch 'feature/android' - vcl/inc

2012-01-25 Thread Michael Meeks
 vcl/inc/android/androidinst.hxx |   13 -
 vcl/inc/headless/svpframe.hxx   |4 ++--
 2 files changed, 14 insertions(+), 3 deletions(-)

New commits:
commit 32af4e15048e53b223294ad33ac428f992bfd0eb
Author: Michael Meeks michael.me...@suse.com
Date:   Wed Jan 25 21:13:36 2012 +

android: missing header pieces

diff --git a/vcl/inc/android/androidinst.hxx b/vcl/inc/android/androidinst.hxx
index 3b026b0..aec2735 100644
--- a/vcl/inc/android/androidinst.hxx
+++ b/vcl/inc/android/androidinst.hxx
@@ -30,22 +30,33 @@
 #ifndef ANDROID_SALINST_H
 #define ANDROID_SALINST_H
 
+#include android/input.h
+#include android/native_window.h
 #include headless/svpinst.hxx
+#include headless/svpframe.hxx
 
 class AndroidSalInstance : public SvpSalInstance
 {
+void RedrawWindows(ANativeWindow *pWindow);
+void BlitFrameToWindow(ANativeWindow *pWindow,
+   const basebmp::BitmapDeviceSharedPtr aDev);
 public:
 AndroidSalInstance( SalYieldMutex *pMutex );
 virtual ~AndroidSalInstance();
+static AndroidSalInstance *getInstance();
 
 virtual SalSystem* CreateSalSystem();
 
 // mainloop pieces
 virtual void Wakeup();
 virtual bool AnyInput( sal_uInt16 nType );
+
+// incoming android event handlers:
+voidonAppCmd (struct android_app* app, int32_t cmd);
+int32_t onInputEvent (struct android_app* app, AInputEvent* event);
 protected:
 virtual void DoReleaseYield( int nTimeoutMS );
-struct android_app *app;
+struct android_app *mpApp;
 };
 
 #endif // ANDROID_SALINST_H
diff --git a/vcl/inc/headless/svpframe.hxx b/vcl/inc/headless/svpframe.hxx
index 5f88e64..37e0ae9 100644
--- a/vcl/inc/headless/svpframe.hxx
+++ b/vcl/inc/headless/svpframe.hxx
@@ -41,9 +41,9 @@ class SvpSalGraphics;
 class SvpSalFrame : public SalFrame, public SvpElement
 {
 SvpSalInstance* m_pInstance;
-SvpSalFrame*m_pParent;   // pointer to parent frame
+SvpSalFrame*m_pParent;   // pointer to parent 
frame
 std::list SvpSalFrame*m_aChildren; // List of child 
frames
-sal_uLong m_nStyle;
+sal_uLong   m_nStyle;
 boolm_bVisible;
 longm_nMinWidth;
 longm_nMinHeight;
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2012-01-25 Thread Markus Mohrhard
 sc/source/core/data/dpoutput.cxx |   14 +++---
 1 file changed, 11 insertions(+), 3 deletions(-)

New commits:
commit be8e049d01f05773ac595b5ee32b262540381a44
Author: Kohei Yoshida kohei.yosh...@suse.com
Date:   Tue Jan 24 16:32:10 2012 -0500

fdo#45067: Differentiate numeric and non-numeric field member values.

Signed-off-by: Markus Mohrhard markus.mohrh...@googlemail.com

diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx
index 990e212..32179e3 100644
--- a/sc/source/core/data/dpoutput.cxx
+++ b/sc/source/core/data/dpoutput.cxx
@@ -795,10 +795,18 @@ void ScDPOutput::HeaderCell( SCCOL nCol, SCROW nRow, 
SCTAB nTab,
 
 if ( nFlags  sheet::MemberResultFlags::HASMEMBER )
 {
-// Avoid unwanted automatic format detection.
+bool bNumeric = (nFlags  sheet::MemberResultFlags::NUMERIC) != 0;
 ScSetStringParam aParam;
-aParam.mbDetectNumberFormat = false;
-aParam.mbSetTextCellFormat = true;
+if (bNumeric)
+{
+aParam.mbDetectNumberFormat = true;
+aParam.mbSetTextCellFormat = false;
+}
+else
+{
+aParam.mbDetectNumberFormat = false;
+aParam.mbSetTextCellFormat = true;
+}
 pDoc-SetString(nCol, nRow, nTab, rData.Caption, aParam);
 }
 
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: Branch 'feature/android' - vcl/android

2012-01-25 Thread Michael Meeks
 vcl/android/androidinst.cxx |  103 
 1 file changed, 76 insertions(+), 27 deletions(-)

New commits:
commit 0def387f351b7e67c2f45474105333c4cb4f55dc
Author: Michael Meeks michael.me...@suse.com
Date:   Wed Jan 25 22:09:39 2012 +

android: add first cut of frame contents blitting, and error dialog

diff --git a/vcl/android/androidinst.cxx b/vcl/android/androidinst.cxx
index b4ea9e0..4772a74 100644
--- a/vcl/android/androidinst.cxx
+++ b/vcl/android/androidinst.cxx
@@ -74,44 +74,70 @@ static rtl::OString KeyMetaStateToString(int32_t nFlags)
 }
 
 static void BlitFrameRegionToWindow(ANativeWindow *pWindow,
-const basebmp::BitmapDeviceSharedPtr /* 
aDev */,
-const ARect aSrcRect,
+const basebmp::BitmapDeviceSharedPtr aDev,
+const ARect rSrcRect,
 int nDestX, int nDestY)
 {
-fprintf (stderr, Blit frame src %d,%d-%d,%d to positoon %d, %d\n,
- aSrcRect.left, aSrcRect.top, aSrcRect.right, aSrcRect.bottom,
+fprintf (stderr, Blit frame src %d,%d-%d,%d to position %d, %d\n,
+ rSrcRect.left, rSrcRect.top, rSrcRect.right, rSrcRect.bottom,
  nDestX, nDestY);
-#if 1
 ARect aRect;
-ANativeWindow_Buffer aBuffer;
-memset ((void *)aBuffer, 0, sizeof (aBuffer));
-int32_t nRet = ANativeWindow_lock(pWindow, aBuffer, aRect);
+ANativeWindow_Buffer aOutBuffer;
+memset ((void *)aOutBuffer, 0, sizeof (aOutBuffer));
+int32_t nRet = ANativeWindow_lock(pWindow, aOutBuffer, aRect);
 fprintf (stderr, locked window %d returned rect: %d,%d-%d,%d 
  buffer: %dx%d stride %d, format %d, bits %p\n,
  nRet, aRect.left, aRect.top, aRect.right, aRect.bottom,
- aBuffer.width, aBuffer.height, aBuffer.stride,
- aBuffer.format, aBuffer.bits);
-if (aBuffer.bits)
+ aOutBuffer.width, aOutBuffer.height, aOutBuffer.stride,
+ aOutBuffer.format, aOutBuffer.bits);
+if (aOutBuffer.bits == NULL)
 {
-// hard-code / guess at a format ...
-int32_t *p = (int32_t *)aBuffer.bits;
-for (int32_t y = 0; y  aBuffer.height; y++)
+fprintf (stderr, no buffer for locked window\n);
+ANativeWindow_unlockAndPost(pWindow);
+return;
+}
+
+// FIXME: do some cropping goodness on aSrcRect to ensure no overflows etc.
+ARect aSrcRect = rSrcRect;
+sal_Int32 nStride = aDev-getScanlineStride();
+basebmp::RawMemorySharedArray aSrcData = aDev-getBuffer();
+unsigned char *pSrc = aSrcData.get();
+
+for (unsigned int y = 0; y  (unsigned int)(aSrcRect.bottom - 
aSrcRect.top); y++)
+{
+unsigned char *sp = ( pSrc + nStride * (y + aSrcRect.top) +
+  aSrcRect.left * 3 /* src pixel size */ );
+unsigned char *dp = ( (unsigned char *)aOutBuffer.bits +
+  aOutBuffer.stride * (y + nDestY) +
+  nDestX * 4 /* dest pixel size */ );
+for (unsigned int x = 0; x  (unsigned int)(aSrcRect.right - 
aSrcRect.left); x++)
 {
-for (int32_t x = 0; x  aBuffer.stride / 4; x++)
-*p++ = (y  24) + x;
+dp[x*4 + 0] = sp[x*3 + 0]; // B
+dp[x*4 + 1] = sp[x*3 + 1]; // G
+dp[x*4 + 2] = sp[x*3 + 2]; // R
+dp[x*4 + 3] = 255; // A
 }
 }
-ANativeWindow_unlockAndPost(pWindow);
-fprintf (stderr, done render!\n);
+fprintf (stderr, done blit!\n);
+#if 0
+// hard-code / guess at a format ...
+int32_t *p = (int32_t *)aBuffer.bits;
+for (int32_t y = 0; y  aBuffer.height; y++)
+{
+for (int32_t x = 0; x  aBuffer.stride / 4; x++)
+*p++ = (y  24) + x;
+}
 #endif
 
+ANativeWindow_unlockAndPost(pWindow);
+fprintf (stderr, done render!\n);
 }
 
 void AndroidSalInstance::BlitFrameToWindow(ANativeWindow *pWindow,
const 
basebmp::BitmapDeviceSharedPtr aDev)
 {
 basegfx::B2IVector aDevSize = aDev-getSize();
-ARect aWhole = { 0, 0, aDevSize.getX(), aDevSize.getY() };
+ARect aWhole = { 0, 0, 400, 400 }; // FIXME: aDevSize.getX(), 
aDevSize.getY() };
 BlitFrameRegionToWindow(pWindow, aDev, aWhole, 0, 0);
 }
 
@@ -211,6 +237,8 @@ int32_t AndroidSalInstance::onInputEvent (struct 
android_app* app, AInputEvent*
 
 AndroidSalInstance *AndroidSalInstance::getInstance()
 {
+if (!ImplGetSVData())
+return NULL;
 AndroidSalData *pData = static_castAndroidSalData 
*(ImplGetSVData()-mpSalData);
 if (!pData)
 return NULL;
@@ -299,14 +327,7 @@ public:
 virtual int ShowNativeDialog( const rtl::OUString rTitle,
   const rtl::OUString rMessage,
   const std::list rtl::OUString  rButtons,
- 

[Libreoffice-commits] .: Branch 'feature/android' - android/qa

2012-01-25 Thread Michael Meeks
 android/qa/desktop/Makefile |1 +
 1 file changed, 1 insertion(+)

New commits:
commit 0f32f98564f8e0e66bc2d2ee5c55406930007044
Author: Michael Meeks michael.me...@suse.com
Date:   Wed Jan 25 22:41:41 2012 +

android: add missing deployment component

diff --git a/android/qa/desktop/Makefile b/android/qa/desktop/Makefile
index 1dd0d83..876c432 100644
--- a/android/qa/desktop/Makefile
+++ b/android/qa/desktop/Makefile
@@ -109,6 +109,7 @@ copy-stuff: buildrcs
  bootstrap.uno \
  comphelpgcc3 \
  configmgr.uno \
+ deployment \
  deploymentmisclo \
  fileacc \
  fontconfig \
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: xmloff/source

2012-01-25 Thread Olivier Hallot
 xmloff/source/forms/controlpropertyhdl.cxx |6 +-
 xmloff/source/forms/elementexport.cxx  |   24 +-
 xmloff/source/forms/elementimport.cxx  |   48 ++---
 xmloff/source/forms/eventexport.cxx|4 -
 xmloff/source/forms/eventimport.cxx|2 
 xmloff/source/forms/formcellbinding.cxx|4 -
 xmloff/source/forms/layerexport.cxx|4 -
 xmloff/source/forms/layerimport.cxx|   10 ++--
 xmloff/source/forms/property_meta_data.cxx |   10 ++--
 xmloff/source/forms/propertyexport.cxx |   20 
 xmloff/source/forms/propertyimport.cxx |   10 ++--
 xmloff/source/meta/xmlmetae.cxx|   14 +++---
 xmloff/source/meta/xmlmetai.cxx|4 -
 xmloff/source/meta/xmlversion.cxx  |4 -
 xmloff/source/script/XMLStarBasicExportHandler.cxx |2 
 xmloff/source/script/xmlbasici.cxx |2 
 xmloff/source/style/DashStyle.cxx  |4 -
 xmloff/source/style/FillStyleContext.cxx   |4 -
 xmloff/source/style/GradientStyle.cxx  |4 -
 xmloff/source/style/HatchStyle.cxx |4 -
 xmloff/source/style/ImageStyle.cxx |8 +--
 xmloff/source/style/MarkerStyle.cxx|4 -
 xmloff/source/style/PageMasterImportContext.cxx|2 
 xmloff/source/style/PageMasterPropHdl.cxx  |   12 ++---
 xmloff/source/style/TransGradientStyle.cxx |4 -
 xmloff/source/style/XMLBackgroundImageContext.cxx  |6 +-
 xmloff/source/style/XMLBackgroundImageExport.cxx   |8 +--
 xmloff/source/style/XMLFontAutoStylePool.cxx   |4 -
 xmloff/source/style/XMLPageExport.cxx  |4 -
 xmloff/source/style/bordrhdl.cxx   |2 
 xmloff/source/style/cdouthdl.cxx   |2 
 xmloff/source/style/chrhghdl.cxx   |6 +-
 xmloff/source/style/chrlohdl.cxx   |4 -
 xmloff/source/style/csmaphdl.cxx   |2 
 34 files changed, 126 insertions(+), 126 deletions(-)

New commits:
commit 3dbb89e5a39e7811d2fc0c1fbad012c3d565396b
Author: Olivier Hallot olivier.hal...@alta.org.br
Date:   Wed Jan 25 21:59:48 2012 -0200

Fix for fdo43460 Part XLVIII getLength() to isEmpty()

Part XLVIII
Modules
xmloff (part 2)

diff --git a/xmloff/source/forms/controlpropertyhdl.cxx 
b/xmloff/source/forms/controlpropertyhdl.cxx
index 3c8b0fc..5442a55 100644
--- a/xmloff/source/forms/controlpropertyhdl.cxx
+++ b/xmloff/source/forms/controlpropertyhdl.cxx
@@ -245,7 +245,7 @@ namespace xmloff
 sal_uInt16 nStyle = 1;
 
 while   (   aTokens.getNextToken(sToken)// have a new token
-  (0 != sToken.getLength())   // really have a new token
+  (!sToken.isEmpty())   // really have a new token
 )
 {
 // try interpreting the token as border style
@@ -304,7 +304,7 @@ namespace xmloff
 if ( !bSuccess )
 return sal_False;
 
-if ( _rStrExpValue.getLength() )
+if ( !_rStrExpValue.isEmpty() )
 _rStrExpValue += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(   
) );
 _rStrExpValue += aOut.makeStringAndClear();
 
@@ -343,7 +343,7 @@ namespace xmloff
 }
 _rStrExpValue = aResult.makeStringAndClear();
 
-return _rStrExpValue.getLength() != 0;
+return !_rStrExpValue.isEmpty();
 }
 
 //=
diff --git a/xmloff/source/forms/elementexport.cxx 
b/xmloff/source/forms/elementexport.cxx
index fcc3efa..863d99a 100644
--- a/xmloff/source/forms/elementexport.cxx
+++ b/xmloff/source/forms/elementexport.cxx
@@ -316,7 +316,7 @@ namespace xmloff
 // the control id
 if (CCA_CONTROL_ID  m_nIncludeCommon)
 {
-OSL_ENSURE(m_sControlId.getLength(), 
OControlExport::exportInnerAttributes: have no control id for the control!);
+OSL_ENSURE(!m_sControlId.isEmpty(), 
OControlExport::exportInnerAttributes: have no control id for the control!);
 m_rContext.getGlobalContext().AddAttributeIdLegacy(
 XML_NAMESPACE_FORM, m_sControlId);
 #if OSL_DEBUG_LEVEL  0
@@ -799,7 +799,7 @@ namespace xmloff
 // the target frame
 if (m_nIncludeCommon  CCA_FOR)
 {
-if (m_sReferringControls.getLength())
+if (!m_sReferringControls.isEmpty())
 {   // there is at least one control referring to the one we're 
handling currently
 AddAttribute(
 
OAttributeMetaData::getCommonControlAttributeNamespace(CCA_FOR),
@@ -1095,7 +1095,7 @@ namespace xmloff
 else
 OSL_FAIL( OControlExport::exportSpecialAttributes: not 
property which can be mapped to