Re: [Call-for-Review] Fix for bug 119912 (Crash when redo split the pasted table)

2012-06-08 Thread Peng Chen
Hi Jurgen,
   You just reviewed 119653 which is not this one, could you please
help to review 119912? Thanks.

2012/6/8 Peng Chen 

> Jurgen, thank you for review and check in.
>
>
> 2012/6/8 Jürgen Schmidt 
>
>> On 6/8/12 10:33 AM, Peng Chen wrote:
>> > Hi, all
>> >
>> > I had a fix for bug 119912
>> >
>> > https://issues.apache.org/ooo/show_bug.cgi?id=119912 ,
>> > it is about application crash when undo & redo a split pasted table.
>> >
>> > Can anyone help to review the fix?
>> > Thank you!
>> >
>> done
>>
>> reviewed, built and tested -< patch applied on trunk, no crash anymore
>>
>> Thanks
>>
>> Juergen
>>
>
>


Re: [Call-for-Review] Fix for bug 119912 (Crash when redo split the pasted table)

2012-06-08 Thread Peng Chen
Jurgen, thank you for review and check in.

2012/6/8 Jürgen Schmidt 

> On 6/8/12 10:33 AM, Peng Chen wrote:
> > Hi, all
> >
> > I had a fix for bug 119912
> >
> > https://issues.apache.org/ooo/show_bug.cgi?id=119912 ,
> > it is about application crash when undo & redo a split pasted table.
> >
> > Can anyone help to review the fix?
> > Thank you!
> >
> done
>
> reviewed, built and tested -< patch applied on trunk, no crash anymore
>
> Thanks
>
> Juergen
>


[Call-for-Review] Fix for bug 119912 (Crash when redo split the pasted table)

2012-06-08 Thread Peng Chen
Hi, all

I had a fix for bug 119912

https://issues.apache.org/ooo/show_bug.cgi?id=119912 ,
it is about application crash when undo & redo a split pasted table.

Can anyone help to review the fix?
Thank you!


Re: question about aoo record macro?

2012-06-04 Thread Peng Chen
Hi Jian Li,
  About question 2, you can get the image object like this:
image = ThisComponent.getGraphicObjects().getbyIndex(0)

2012/6/4 jianlizhao 

> hello my friend:
>
> I have two question as below:
> 1)  in aoo , record macro of Insert picture,Why insert picture code written
> two times?
>  Example code  as below:
>
> sub Main
> rem --
> rem define variables
> dim document   as object
> dim dispatcher as object
> rem --
> rem get access to the document
> document   = ThisComponent.CurrentController.Frame
> dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
>
> rem --
> dim args1(3) as new com.sun.star.beans.PropertyValue
> args1(0).Name = "FileName"
> args1(0).Value = "file:///C:/2.png"
> args1(1).Name = "FilterName"
> args1(1).Value = ""
> args1(2).Name = "AsLink"
> args1(2).Value = true
> args1(3).Name = "Style"
> args1(3).Value = "Graphics"
>
> dispatcher.executeDispatch(document, ".uno:InsertGraphic", "", 0, args1())
>
> rem --
> dim args2(3) as new com.sun.star.beans.PropertyValue
> args2(0).Name = "FileName"
> args2(0).Value = "file:///C:/2.png"
> args2(1).Name = "FilterName"
> args2(1).Value = ""
> args2(2).Name = "AsLink"
> args2(2).Value = true
> args2(3).Name = "Style"
> args2(3).Value = "Graphics"
>
> dispatcher.executeDispatch(document, ".uno:InsertGraphic", "", 0, args2())
>
> end sub
>
> 2)  after insert picture, how get the image object.
>The image will be  processing of rotation  eg.
>
>


Re: [BUILD] There is a build break on Mac OS X 10.5.8

2012-06-01 Thread Peng Chen
Can't see the attachement.

2012/6/1 Chao Huang 

> hi, all
>
> I checked out the source code from SVN server
> (https://svn.apache.org/repos/asf/incubator/ooo/trunk) and the
> revision is 1343441.
>
> It's OK for me to make a full build on Mac OS X 10.6.8. But there is a
> build break on Mac OS X 10.5.8. Please note that I used the same code
> package and configure switchers.
>
> The build break was reported in module SAL. Here is the details
>
> --
> Entering
> /Users/hchao/Apache/build/aoo.340.20120601/aoo.340.r1343441/main/sal/util
>
> ERROR: error 10 occurred while making
> /Users/hchao/Apache/build/aoo.340.20120601/aoo.340.r1343441/main/sal/util
>
> ---
>
> My dev env is :
> -
> 1) Mac OS X 10.5.8
> 2) Xcode 3.0
> 3) gcc 4.0.1
> 4) jdk 1.5
> -
>
> I used the following configure swithcers.
>
> 
> ./configure --with-dmake-url="
> http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2";
> --with-epm-url="http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz";
> --disable-mozilla --disable-build-mozilla --enable-verbose
> --enable-category-b --enable-minimizer --enable-presenter-console
> --enable-wiki-publisher --disable-odk
>
> 
>
> At the beginning of this year, I passed the full build on both 10.5
> and 10.6 with R1189933. So I compared file main/sal/util/makefile.mk.
> There is only one changed line for OS2 except license. The build break
> can be solved by recovering makefile.mk from R1343441 to R1189933.
>
> What I do in the next step is to copy makefile.mk (R1343441) from
> MacOSX to WindowsXP, then convert the file format from DOS to Unix by
> UltraEdit, copy the new file makefile.mk back to MacOSX. It's OK to
> rebuild module SAL with the new makefile.mk.
>
> So I guess that there is something wrong for file
> main/sal/util/makefile.mk. Maybe the file is broken in some extent.
> The size of original file is 5.76K, while the re-saved one is 5.53K.
> Please refer to the attachement.
>
> Is there anyone who can help to confirm this issue? Thanks!
>
>
> Best regards,
> Chao Huang
>


patch for bug 119653

2012-05-31 Thread Peng Chen
Hi all,
I did a fix for bug 119653. Can you help to review it? Thanks a lot!
For more details please refer to
https://issues.apache.org/ooo/show_bug.cgi?id=119653


Re: This bug should be integrated in Aoo [Bug 93433 - build breaks in libxml2 on Korean Windows due to special character ]

2012-05-28 Thread Peng Chen
+1, I met this build break in Chinese language too.

2012/5/29 Chao Huang 

> +1  I also met this build break on Windows XP in Chinese language. I had to
> add ' manually.
>
> 2012/5/29 shzh zhao 
>
> > Hi All,
> >
> > This bug should be integrated in Aoo [Bug 93433 - build breaks in libxml2
> > on Korean Windows due to special character ]
> > https://issues.apache.org/ooo/show_bug.cgi?id=93433
> >
> > I build Aoo at Windows XP in Chinese language,
> > The following error occurred in libxml2 while I was building AOO.
> >
> > 
> > testapi.c
> > ..\testapi.c : warning C4819: The file contains a character that cannot
> be
> > repre
> > sented in the current code page (949). Save the file in Unicode format to
> > preven
> > t data loss
> > ..\testapi.c(294) : error C2001: newline in constant
> > ..\testapi.c(295) : error C2143: syntax error : missing ')' before
> 'return'
> > NMAKE : fatal error U1077: 'c:\PROGRA~1\MICROS~1.0\VC\bin\cl.exe' :
> > return code
> > '0x2'
> > Stop.
> > 
> >
> > in the attachment,there are patches for this issue,I thinks it should be
> > integrated in AOO at first.
> > *
> >
> >
> > mailto: *aoo.zhaos...@gmail.com 
> > 
> >
>
>
>
> --
> Best regards,
> Chao Huang
>


Re: A wiki about how to support a VBA API

2012-05-06 Thread Peng Chen
Hi,
Thank you all for your concern about this topic, maybe there are some
confusion about VBA support, thanks for Ma's clarification. I also update
the wiki with two reference, anything wrong or unclear, please update the
wiki directly, thanks.

2012/5/5 TJ Frazier 

> Hi, Andrew,
>
>
> On 5/5/2012 02:48, Andrew Douglas Pitonyak wrote:
>
>> On 05/02/2012 04:29 AM, Peng Chen wrote:
>>
>>> Hi All,
>>> I post a wiki about how to support a VBA API in OpenOffice,
>>> http://wiki.services.**openoffice.org/wiki/How_to_**
>>> support_a_VBA_API_in_**OpenOffice<http://wiki.services.openoffice.org/wiki/How_to_support_a_VBA_API_in_OpenOffice>
>>>
>>>
>>> Any feedback will be appreciated, thanks.
>>>
>>> Now that I know what the page describes (thanks everyone), I gave this a
>> pretty careful read. It seems to provide significant information, and I
>> learned much. There are some issues with respect to language usage, and
>> they are easily fixed; I started to fix the wording (after I figured out
>> that I can), but I stopped after the first paragraph for two reasons:
>>
>> 1. It is not clear to me that my changes really did save, and
>>
>
> If your changes show properly in the Preview mode, then they will be
> correctly saved when you Save. Sometimes the ATS delivers stale pages, so
> you might see the original page, unchanged, after the Save. The workaround
> is described in "Moving Day":
> <http://wiki.services.**openoffice.org/wiki/Moving_Day<http://wiki.services.openoffice.org/wiki/Moving_Day>
> **>
> Taking a break also works; the stale pages expire and go away.
> Sorry for the problem, but it's quite beyond my poor powers to fix.
>
> /tj/
>
>
>> 2. It is very late and I need some sleep before my little girls drag me
>> out of bed (not to mention the bigger girl that I married).
>>
>>
>
>


Re: A wiki about how to support a VBA API

2012-05-03 Thread Peng Chen
When users load MS document in OpenOffice with VBA, sometimes the macro
doesn't work, because we lack the support of VBA APIs in OO.
In this wiki, what's I want to express is that you can add the unsupported
API by yourself in OO's code if you meet such situation or you have
interesting to implement unsupported VBA APIs in OO.

2012/5/3 ZuoJun Chen 

> Hi,  Andrew, I think the article is about VBA Macros interoperability
> http://wiki.services.openoffice.org/wiki/VBA . It explains the details if
> you want to hack OO for more excel macros support.  Currently there are
> still many VBA apis not supported in OO,  although the support framework
> has been implemented.
> 2012/5/3 Andrew Douglas Pitonyak 
>
> > On 05/02/2012 04:29 AM, Peng Chen wrote:
> >
> >> Hi All,
> >>  I post a wiki about how to support a VBA API in OpenOffice,
> >> http://wiki.services.**
> openoffice.org/wiki/How_to_**support_a_VBA_API_in_
> >> **OpenOffice<
> http://wiki.services.openoffice.org/wiki/How_to_support_a_VBA_API_in_OpenOffice
> >
> >>
> >>  Any feedback will be appreciated, thanks.
> >>
> >>  I am almost embarrassed to say this, but after having read it, I have
> no
> > idea what the article is about. I think that the problem is that I lack
> the
> > proper vocabulary. For example, when I see "VBA", I think "Visual Basic
> > Applications", which is something that MSO (Microsoft Office) supports,
> and
> > not OOo (OpenOffice.org).
> >
> > Is this an article related to the VBA compatibility mode stuff that can
> be
> > enabled using a specific Option from inside of StarBasic?
> >
> > After I have a handle on exactly what is accomplished, then I will read
> > this again, since it looks like you are probably answering some very
> > specific questions that I have in areas that I do not fully understand,
> but
> > have searched for in the past.
> >
> > Sorry for my lack of immediate understanding.
> >
> > --
> > Andrew Pitonyak
> > My Macro Document: http://www.pitonyak.org/**AndrewMacro.odt<
> http://www.pitonyak.org/AndrewMacro.odt>
> > Info:  http://www.pitonyak.org/oo.php
> >
> >
>


Re: [OT] 14 ways to contribute to opensuorce projects w/out needing a CS degree

2012-04-25 Thread Peng Chen
Learn much from this, very good, thanks.

2012/4/26 drew 

> On Thu, 2012-04-26 at 05:42 +0900, Kazunari Hirano wrote:
> > Hi drew,
> >
> > Thanks for the link.  It says:
> >
> > ".. people say that they’d love to contribute but can’t because of
> > three reasons:
> >
> > “I’m not a very good programmer.”
> > “I don’t have much time to put into it.”
> > “I don’t know what project to work on.”
> >
> > I hear people say that they'd love to contribute but can't because "I
> > don't speak English."
> >
> > How will we answer them?
> > :)
> >
> > Thanks,
> Hi khirano
>
> Well, how do you answer them now, and is it different from how you
> answered them last year?
>
> Let's start there and see if it can be made better.
>
> //drew
>
> >
> > On Thu, Apr 26, 2012 at 5:02 AM, drew jensen 
> wrote:
> > > Hi,
> > >
> > > Just passing this along as I thought some might find it interesting.
> > >
> > >
> http://www.softwarequalityconnection.com/2012/03/14-ways-to-contribute-to-open-source-without-being-a-programming-genius-or-a-rock-star/
> > >
> > > //drew
> > >
> >
> >
> >
>
>
>


Re: [VOTE] Release Apache OpenOffice 3.4 (incubating) RC1

2012-04-24 Thread Peng Chen
+1

2012/4/25 Jürgen Schmidt 

> On 4/21/12 8:58 AM, Jürgen Schmidt wrote:
>
>> Hi all,
>>
>> this is a call for vote on releasing the following candidate as Apache
>> OpenOffice 3.4 (incubating). This will be the first incubator release
>> for Apache OpenOffice and a key milestone to continue the success of
>> OpenOffice.org.
>>
>>
>> This release candidate provides the following important key changes
>> compared to former OpenOffice releases:
>> (1) Code clean up to remove all copyleft components and external
>> dependencies
>> (2) Reworked or introduced LICENSE and NOTICE file to reflect and
>> document the used licenses of the code itself as well as of external 3rd
>> party libraries
>> (3) MD5, SHA1, SHA512 hashes and GPG signatures for all of artifacts
>>
>> For a detailed feature overview please see the release notes under
>> https://cwiki.apache.org/**OOOUSERS/aoo-34-release-notes.**html
>> .
>>
>> The release candidate artifacts (source release, as well as binary
>> releases for 16 languages) and further information how to verify and
>> review Apache OpenOffice 3.4 (incubating) can be found on the following
>> wiki page:
>>
>> https://cwiki.apache.org/**confluence/display/OOOUSERS/**
>> AOO+3.4+%28incubating%29+**Release+Candidate
>>
>>
>>
>> Please vote on releasing this package as Apache OpenOffice 3.4
>> (incubating).
>>
>> The vote starts now and will be open until:
>>
>> UTC midnight Wednesday, 25 April: 2012-04-25 24:00 UTC.
>>
>> After the vote of the PPMC the vote will start on
>> gene...@incubtor.apache.org mailing and will be open for further 72
>> hours.
>> But we invite all people to vote (non binding) on this RC. We would like
>> to provide a release that is supported by the majority of our project
>> members.
>>
>> [ ] +1 Release this package as Apache OpenOffice 3.4 (incubating)
>> [ ] 0 Don't care
>> [ ] -1 Do not release this package because...
>>
>>
> +1
>
> I used the RC and all the dev builds before in my daily work since weeks.
> I have build the source tarball successful and it works as expected.
>
> Juergen
>


How about the status of VBA?

2012-04-23 Thread Peng Chen
Hi all,
  I am interested in VBA development, but I just found a wiki
http://wiki.services.openoffice.org/wiki/VBA, and it is long time ago.
I can't find more documentations about this area, so I have some questions:
  1, Is there any update about VBA? How can I get them?
  2, Do we have a statistics about how many VBA APIs we supported in
Open Office?
  3, How about the Export of VBA in Open Office?

  Any feedback will be appreciated, thanks.