[Libreoffice] GSOC 2011 - Android project

2011-03-24 Thread Maxime Côté
Hi all,

My name is Maxime Côté, I'm a student from Québec. I'm interested in
participating in the GSOC this year with LibreOffice. To be more precise
I'm interested in porting it to Android as I already have good knowledge of
Java, C++ and a basic knowledge of Android, but I really want to learn more
about it and the same goes for LibreOffice.

Now what I would like to know is, could JNI (Java Native Interface) be use
to interface with the core library or you see something else, what exactly
will need to be ported. Also I would like to know where do I start in
LibreOffice's code, where could I begin hacking to help me understand the
code that will need porting.


Thanks in advance

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


Re: [Libreoffice] GSOC 2011 - Android project - pointers ...

2011-03-25 Thread Maxime Côté
First of all thanks for your answer

On Fri, Mar 25, 2011 at 2:42 AM, Michael Meeks wrote:

> Hi Korrawit,
>
> On Fri, 2011-03-25 at 12:53 +0700, Korrawit Pruegsanusak wrote:
> > >Personally (what with time-to-market etc.) I think we should
> target the
> > > latest android API version - ie. API level 9 - which gives us a lot of
> > > nice (pre-wrapped) C APIs for talking to the system.
> >
> > Shouldn't we use the lastest API level 11, of Android 3.0 platform?
> > Details at http://developer.android.com/sdk/android-3.0.html
>
> You're right - it's not the latest API level ;-) but it is the
> latest
> API level mentioned in the latest NDK you can download (my mistake). It
> is also the case, that I only have a device running 2.3.3
> (personally) ;-) so I'm biased.
>
>Its not clear to me that 3.0 gives us a lot more in the area of
> basic
> event handling / rendering too; clearly if there is something that makes
> our job far easier there then we should use it, otherwise I'd prefer to
> see 2.3.0 used personally :-)
>
>ATB,
>
>Michael.
>

After some research it's true that the 3.0 API would be great as it provide
interesting new features, like copy/paste and better keyboard support, but
it's not really widely use (at least for now) and the same goes for 2.3.3 so
wouldn't it be better to use 2.2.x instead so more people could use it ?


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


Re: [Libreoffice] [GSoc] Time to start ranking the applications

2011-04-11 Thread Maxime Côté
Hi all,

I'm kinda in the same position as Rahul. I have send my proposal for the
port to Android but, as we are nearly at the end of the semester I'm trying
to find time to complete an easy hack for my propsal between my multiple
homeworks and exams. Now when is the limit to submit the easy hack, is it
too late already ?


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


[Libreoffice] [PATCH] Easy Hack - Improve git pre-commit hook

2011-04-18 Thread Maxime Côté
Hi all,

This is my first easy hack. I made change in the function
check_and_fix_whitespace() the filter all the files that don't match the
list given in the wiki (c, cpp, cxx, h, hrc, hxx, idl, in, java, map, mk,
MK, pmk, pl, pm, sdi, sh, src, tab, xcu, xml)

This patches is release under the LGPLv3+/MPL.


Cheers
Maxime
From abad7922b457fb3c7b27b969944f9c3cc1b51753 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Maxime=20C=C3=B4t=C3=A9?= 
Date: Mon, 18 Apr 2011 21:39:50 -0400
Subject: [PATCH] Easy hack Improve git pre-commit hook

Change of the function check_and_fix_whitespace() to check only file with the extension listed (c|cpp|cxx|h|hrc|hxx|idl|inl|java|map|mk|MK|pmk|pl|pm|sdi|sh|src|tab|xcu|xml)
---
 git-hooks/pre-commit |   55 +
 1 files changed, 28 insertions(+), 27 deletions(-)

diff --git a/git-hooks/pre-commit b/git-hooks/pre-commit
index 6817990..6c6fe4e 100755
--- a/git-hooks/pre-commit
+++ b/git-hooks/pre-commit
@@ -18,11 +18,6 @@ $ENV{LC_ALL} = "C";
 sub fix_whitespace($$) {
 my ( $file, $lines ) = @_;
 
-# usually we have nothing to do ;-)
-return if ( keys( %{$lines} ) == 0 ||
-$file eq "" || $file eq "GNUmakefile" ||
-!( $file =~ /\.(c|cpp|cxx|h|hrc|hxx|idl|inl|java|map|MK|pl|pm|pmk|py|sdi|sh|src|tab)/ ) );
-
 open( IN, "$file" ) || die "Cannot open $file for reading";
 my ( $out, $tmpfile ) = mkstemp( "/tmp/whitespace-fixing-XX" );
 
@@ -66,36 +61,42 @@ sub check_and_fix_whitespace($)
 my $fd;
 ( $fd, $stash ) = mkstemp( "/tmp/unstaged-changes-XX" );
 close( $fd );
+
 # this will keep the staged changes
 system( "git diff > $stash" );
 system( "git checkout ." );
 }
-open( IN, "git diff-index -p --no-prefix --cached $head -- |" ) || die "Cannot get git diff-index";
-while ( my $line =  ) {
-if ( $line =~ /^\+\+\+ (.*)/ ) {
+open( FILES, "git diff-index --cached --name-only $head |" ) || die "Cannot run git diff-index.";
+while( my $file =  ) {
+chomp( $file );
+if ( $file ne "GNUmakefile" &&
+   ( $file =~ /\.(c|cpp|cxx|h|hrc|hxx|idl|inl|java|map|MK|pl|pm|pmk|py|sdi|sh|src|tab)/ ) ) {
+open( F, "git diff-index -p --cached $head -- $file |" );
+while ( my $line =  ) {
+if ( $line =~ /^\+\+\+ (.*)/ ) {
+%lines = ();
+$line_no = 0;
+$line_max = -1;
+}
+elsif ( $line =~ /^@@ -[0-9]+,[0-9]+ \+([0-9]+),([0-9]+) @@/ ) {
+$line_no = $1;
+$line_max = $line_no + $2;
+}
+elsif ( ( $line_no < $line_max ) && ( $line =~ /^[ +]/ ) ) {
+if ( $line =~ /^\+.*[ \t]$/ ) {
+$lines{$line_no} = 1;
+}
+++$line_no;
+}
+}
 fix_whitespace( $file, \%lines );
-$file = $1;
-%lines = ();
-$line_no = 0;
-$line_max = -1;
-}
-elsif ( $line =~ /^@@ -[0-9]+,[0-9]+ \+([0-9]+),([0-9]+) @@/ ) {
-$line_no = $1;
-$line_max = $line_no + $2;
-}
-elsif ( ( $line_no < $line_max ) && ( $line =~ /^[ +]/ ) ) {
-if ( $line =~ /^\+.*[ \t]$/ ) {
-$lines{$line_no} = 1;
+close( IN );
+if ($stash) {
+system( "git apply < $stash" );
+unlink( $stash );
 }
-++$line_no;
 }
 }
-fix_whitespace( $file, \%lines );
-close( IN );
-if ($stash) {
-system( "git apply < $stash" );
-unlink( $stash );
-}
 }
 
 # Do the work :-)
-- 
1.7.4.4

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