Re: [QA Report] The TOC fidelity enhancement in MSO Word 2003 binary format importing/exporting

2012-09-09 Thread dongjun zong
Xiao Ting,
Thanks very much for the detail report.

2012/9/10 Xiao Ting Xiao 

> Hi All,
>
> Here is the report of TOC fidelity enhancement  in MSO Word 2003 binary
> format importing/exporting.
>
> Please review.
>
> 1. Total test case number: 24
> 2. Total execution number: 48
> 3. Testing platforms
>- SuSE Linux 64-bit
>- Windows XP
>- Ubuntu Linux 32-bit
>- Windows 7
>- MacOS X
>- Redhat Linux 32-bit
> 4. Pass rate: 92%
> 5. Bug analysis
>
>Totally 10 bugs were opened. 2 of them maybe feature related, others can
> be reproduced in build AOO 341 1372282, so they are not feature related
> bug.
>
>Feature related bugs:
>*Bug 120843* <https://issues.apache.org/ooo/show_bug.cgi?id=120843>
> - [writer001]
> indent between number and title in TOC entry becomes small after update TOC
>*Bug 120845* <https://issues.apache.org/ooo/show_bug.cgi?id=120845>
> - [writer001]
> some TOC entry's styles lost after update TOC when open doc in AOO
>
>Non-feature bugs:
>*Bug 120838* <https://issues.apache.org/ooo/show_bug.cgi?id=120838> -
> TOC's
> title in doc file created via MS Word 2010 was collected into TOC entry
> after update
>*Bug 120841* <https://issues.apache.org/ooo/show_bug.cgi?id=120841> -
> TOC's
> spacing between following content increased a lot after update when open
> doc file created via previous OpenOffice
>*Bug 120842* <https://issues.apache.org/ooo/show_bug.cgi?id=120842> -
> TOC's
> position changed after export doc created by OpenOffice 1.1 to another doc
> and open via MS Word 2003
>*Bug 120846* <https://issues.apache.org/ooo/show_bug.cgi?id=120846> -
> indent
> between bullet and title in TOC entry becomes larger when open doc in AOO
> and update TOC
>*Bug 120774* <https://issues.apache.org/ooo/show_bug.cgi?id=120774>
> - Comment
> line with heading style was collected into TOC when open doc file in AOO
> and update TOC
>*Bug 120775* <https://issues.apache.org/ooo/show_bug.cgi?id=120775> -
> Tab
> stop appeared after update TOC when open doc in AOO
>*Bug 120777* <https://issues.apache.org/ooo/show_bug.cgi?id=120777>
> - paragraph's
> outline level lost after open doc with TOC in AOO
>*Bug 120778* <https://issues.apache.org/ooo/show_bug.cgi?id=120778>
> - paragraph's
> outline level lost after export doc to doc in AOO
>
>
> Thanks
> Xiao ting Xiao
>



-- 
Thanks!
Regards,
DongJun Zong


[QA][CallForReview] FFC test by UNO API

2012-09-07 Thread dongjun zong
Hi all,
I developed a uno script to test save MS office format file as ODF
format, and ODF format as MS Office 2003 format, export ODF format as PDF.
The patch can be get from here
https://issues.apache.org/ooo/show_bug.cgi?id=120849  would you please help
review it?

-- 
Thanks!
Regards,
DongJun Zong


Re: [QA Call For Review] Test Plan and Test Case for feature - The TOC fidelity enhancement in MS Word 2003 binary format importing/exporting

2012-09-05 Thread dongjun zong
XiaTing, Thanks your test plan.

Would you pls consider consider compatibility test with previous openoffice
and different MS Office in your test plan? Such as below test point:
1.
   -TOC is generate by previous open office and saved as DOC format
   -Open this file contain toc in current version, and export it to doc and
odt format, check it works well

2.
  - TOC is generate by previous open office and saved as odt format?
   -Open this file contain toc in current version, and export it to doc and
odt format, check it works well
3.
  -TOC is generate by MS Office 2003 and 2010

2012/9/6 Xiao Ting Xiao 

> Hi all,
>
> I've finished the test plan and test  case for feature - The TOC fidelity
> enhancement in MS Word 2003 binary format importing/exporting.
> Here is the link in Bugzilla:
> https://issues.apache.org/ooo/show_bug.cgi?id=120829
>
> Does anybody help to review it. thanks.
>



-- 
Thanks!
Regards,
DongJun Zong


Re: [QA Call For Review] Test Plan and Test Case for bug 120576, 120578

2012-09-04 Thread dongjun zong
JinLong, Suggest also cover linux and mac platform for your test.

2012/9/4 Jinlong Wu 

> Hi,
>
> Would anyone help to review my test plan and test case for bug 120576 and
> 120578?
>
> https://issues.apache.org/ooo/show_bug.cgi?id=120795
>
> Thanks!
>



-- 
Thanks!
Regards,
DongJun Zong


Re: [QA][Request]Apply for the membership of AOO QA and edit permission in Bugzilla.

2012-09-02 Thread dongjun zong
TJ, thanks for help, have confirm permission now.

2012/9/3 TJ Frazier 

> On 9/2/2012 21:40, dongjun zong wrote:
>
>> I still can't confirm bugs in BZ. my id is:zongdj...@gmail.com
>> Would you pls help have a look?
>>
>
> You seem to have two separate BZ accounts: zongdj001 and zongdongjun.
> Neither has canconfirm permission.  Since no one has objected, I have set
> the "001" account for confirm, edit, and QA. Have fun!
>
> /tj/ (BZ admin)
>
>
>> 2012/9/1 tj 
>>
>>  On 8/31/2012 08:27, Andrew Douglas Pitonyak wrote:
>>>
>>>
>>>> In the original OOo, I had the role to confirm bugs and such, did those
>>>> roles transfer to the Apache system?
>>>>
>>>>
>>>>   According to what I see in BZ, they did for you. If you run into
>>>>
>>> limitations, please write again; I'll do my best to fix them.
>>>
>>> /tj/ (BZ admin)
>>>
>>>
>>>
>>>
>>
>>
>
>


-- 
Thanks!
Regards,
DongJun Zong


Re: [QA][Request]Apply for the membership of AOO QA and edit permission in Bugzilla.

2012-09-02 Thread dongjun zong
I still can't confirm bugs in BZ. my id is:zongdj...@gmail.com
Would you pls help have a look?

2012/9/1 tj 

> On 8/31/2012 08:27, Andrew Douglas Pitonyak wrote:
>
>>
>> In the original OOo, I had the role to confirm bugs and such, did those
>> roles transfer to the Apache system?
>>
>>
>>  According to what I see in BZ, they did for you. If you run into
> limitations, please write again; I'll do my best to fix them.
>
> /tj/ (BZ admin)
>
>
>


-- 
Thanks!
Regards,
DongJun Zong


Re: [QA][Request]Apply for the membership of AOO QA and edit permission in Bugzilla.

2012-08-30 Thread dongjun zong
2012/8/31 dongjun zong 

> Hi, all
>
> I'm Zong DongJun, QA of Lotus Symphony in the past more than 4 years,
>  focus on Writer, Macro VBA and API.
> Now, I'm turning to Apache OpenOffice. I have developed 4 UNO API test
> script, and created 46 bug in Bugzilla (search by key words zong)
> I sincerely hope to do more for ApacheOpenOffice. So I send this mail to
> apply for the membership of Apache OpenOffice QA team and the permission of
> defect confirmation and verification in Bugzilla. (My bugzilla ID is (
> zongdj...@gmail.com)
> Thanks a lot. : )
>
>
> --
> Thanks!
> Regards,
> DongJun Zong
>
>


-- 
Thanks!
Regards,
DongJun Zong


[QA][Request]Apply for the membership of AOO QA and edit permission in Bugzilla.

2012-08-30 Thread dongjun zong
Hi, all

I'm Zong DongJun, QA of Lotus Symphony in the past more than 4 years,
 focus on Writer, Macro VBA and API.
Now, I'm turning to Apache OpenOffice. I have developed 4 UNO API test
script, and created 46 bug in Bugzilla (search by key words zong)
I sincerely hope to do more for ApacheOpenOffice. So I send this mail to
apply for the membership of Apache OpenOffice QA team and the permission of
defect confirmation and verification in Bugzilla. (My bugzilla ID is
zongdj...@gmail.com )

Thanks a lot. : )


-- 
Thanks!
Regards,
DongJun Zong


[QA][CallForReivew]A test script test create, load and save Title field

2012-08-24 Thread dongjun zong
Hi All,
  I created a test script test create, load and save title field, would
you please help review? The patch could be get from here
https://issues.apache.org/ooo/show_bug.cgi?id=120698

Regards.

DongJunZong


Re: Is there difference of Author Field create by UNO API and UI Insert->Fields->Author

2012-08-23 Thread dongjun zong
Confirm, From UI Insert->Fields->Author, is the created user, and respond
to UNO AP Icom.sun.
>
> star.text.textfield.docinfo.CreateAuthor. That may cause confuse to
> general user, can we add these information to API docs?
>
For the author fields save to MS doc format will lost issue, I will raise a
bug in bugzilla.

Regards,
DongJun Zong



2012/8/23 Ariel Constenla-Haile 

>
> Hi Oliver,
>
> On Thu, Aug 23, 2012 at 10:49:17AM +0200, Oliver Brinzing wrote:
> >
> > seems, there are 2 different fields:
> >
> > API: MyName
>
> this is
> file:///opt/
> openoffice.org/basis3.4/sdk/docs/common/ref/com/sun/star/text/textfield/Author.html
>
>
> > GUI: MyName
>
> this is
> file:///opt/
> openoffice.org/basis3.4/sdk/docs/common/ref/com/sun/star/text/textfield/docinfo/CreateAuthor.html
>
>
> The following code:
>
>
> Sub Main
> On Error Resume Next
> Dim oDoc as Object
> oDoc = StarDesktop.loadComponentFromURL(_
> "private:factory/swriter", "_default", 0, Array())
>
> Dim oText as Object
> oText = oDoc.getText()
>
> Dim oCursor as Object
> oCursor = oText.createTextCursorByRange(oText.getStart())
>
> Dim oAuthorField as Object
> oAuthorField =
> oDoc.createInstance("com.sun.star.text.textfield.Author")
> oAuthorField.setPropertyValue("FullName", TRUE)
> oText.insertTextContent( oCursor.getEnd(), oAuthorField, false)
> oText.insertControlCharacter( oCursor.getEnd(),_
> com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK, false )
>
> oAuthorField =
> oDoc.createInstance("com.sun.star.text.textfield.Author")
> oAuthorField.setPropertyValue("FullName", FALSE)
> oText.insertTextContent( oCursor.getEnd(), oAuthorField, false)
> oText.insertControlCharacter( oCursor.getEnd(),_
> com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK, false )
>
> Dim oInitialCreatorField as Object
> oInitialCreatorField =
> oDoc.createInstance("com.sun.star.text.textfield.docinfo.CreateAuthor")
> oText.insertTextContent( oCursor.getEnd(), oInitialCreatorField, false)
> End Sub
>
>
> Produces 3 different fields:
>
> 
> Ariel
> Constenla-Haile
> 
> 
> AC
> 
> 
> Ariel Constenla-Haile
> 
>
>
> Note that optional property AuthorFormat does not exist.
>
>
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/text/textfield/Author.html#AuthorFormat
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>


Re: Is there difference of Author Field create by UNO API and UI Insert->Fields->Author

2012-08-23 Thread dongjun zong
Oliver, thanks. But for the field created by API, save to MS doc binary
format, field is lost, I think it's a bug? Am right?

2012/8/23 Oliver Brinzing 

>
> seems, there are 2 different fields:
>
> API: MyName
>
> GUI: MyName
>
> Regards
>
> Oliver
>
> Am 23.08.2012 07:58 schrieb dongjun zong:
> > Hi All,
> >   I am tring to use UNO API create  and load an Author field, I found
> > below difference.
> > 1. Author Field created by UNO API, after save the document od MS Doc
> > format, field will be lost
> > 2. Author Field create by UI Insert->Fields->Author, when access the
> field
> > by UNO API, there is no Property  Name "Content" but has Porpety Name
> > "Author"
> >
> > Is this a UNO API bug?
> >
> >  Property Name list of Author Field created by UI
> > AnchorTypes=[Lcom.sun.star.text.TextContentAnchorType;@27391d
> > IsFixed=false
> > TextWrap=com.sun.star.text.WrapTextMode@1b1aa65
> > CurrentPresentation=Author AOO
> > IsFieldUsed=true
> > IsFieldDisplayed=true
> > AnchorType=com.sun.star.text.TextContentAnchorType@af8358
> > Author=Author AOO
> >
> > Propoerty Name List of Author Field Created by UNO API
> >
> > AnchorTypes=[Lcom.sun.star.text.TextContentAnchorType;@29428e
> > IsFixed=true
> > TextWrap=com.sun.star.text.WrapTextMode@3901c6
> > CurrentPresentation=Author Test AOO
> > IsFieldUsed=true
> > IsFieldDisplayed=true
> > AnchorType=com.sun.star.text.TextContentAnchorType@edc3a2
> > FullName=false
> > Content=Author Test AOO
> >
> >
> > Below is my code:
> > public void createAndLoadAuthorField(XComponent component, String
> author) {
> > XMultiServiceFactory sevriceFactory = (XMultiServiceFactory)
> > UnoRuntime.queryInterface(XMultiServiceFactory.class, component);
> > XTextField authorField;
> > try {
> > authorField =
> > (XTextField)UnoRuntime.queryInterface(XTextField.class,
> > sevriceFactory.createInstance("com.sun.star.text.textfield.Author"));
> > XPropertySet props =
> > (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, authorField);
> > props.setPropertyValue("Content", author);
> >
> >
> >
> >  document.getText().insertTextContent(document.getText().getEnd(),
> >  authorField, true);
> >  XTextFieldsSupplier fieldsSupplier =
> > UnoRuntime.queryInterface(XTextFieldsSupplier.class, document);
> >  XEnumerationAccess xEnumeratedFields =
> > fieldsSupplier.getTextFields();
> >
> > XEnumeration enumeration =
> > xEnumeratedFields.createEnumeration();
> > while (enumeration.hasMoreElements()) {
> >   Object field =  enumeration.nextElement();
> >
> > XPropertySet props2 =
> > (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, field);
> > XPropertySetInfo info =
> props2.getPropertySetInfo();
> > Property[] pp = info.getProperties();
> > for (Property p : pp) {
> > System.out.println(p.Name + "=" +
> > props2.getPropertyValue(p.Name));
> > }
> > }
> >
> > } catch (com.sun.star.uno.Exception e) {
> > e.printStackTrace();
> > }
> > }
> >
>
>
> --
>
> GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
>
>


Is there difference of Author Field create by UNO API and UI Insert->Fields->Author

2012-08-22 Thread dongjun zong
Hi All,
  I am tring to use UNO API create  and load an Author field, I found
below difference.
1. Author Field created by UNO API, after save the document od MS Doc
format, field will be lost
2. Author Field create by UI Insert->Fields->Author, when access the field
by UNO API, there is no Property  Name "Content" but has Porpety Name
"Author"

Is this a UNO API bug?

 Property Name list of Author Field created by UI
AnchorTypes=[Lcom.sun.star.text.TextContentAnchorType;@27391d
IsFixed=false
TextWrap=com.sun.star.text.WrapTextMode@1b1aa65
CurrentPresentation=Author AOO
IsFieldUsed=true
IsFieldDisplayed=true
AnchorType=com.sun.star.text.TextContentAnchorType@af8358
Author=Author AOO

Propoerty Name List of Author Field Created by UNO API

AnchorTypes=[Lcom.sun.star.text.TextContentAnchorType;@29428e
IsFixed=true
TextWrap=com.sun.star.text.WrapTextMode@3901c6
CurrentPresentation=Author Test AOO
IsFieldUsed=true
IsFieldDisplayed=true
AnchorType=com.sun.star.text.TextContentAnchorType@edc3a2
FullName=false
Content=Author Test AOO


Below is my code:
public void createAndLoadAuthorField(XComponent component, String author) {
XMultiServiceFactory sevriceFactory = (XMultiServiceFactory)
UnoRuntime.queryInterface(XMultiServiceFactory.class, component);
XTextField authorField;
try {
authorField =
(XTextField)UnoRuntime.queryInterface(XTextField.class,
sevriceFactory.createInstance("com.sun.star.text.textfield.Author"));
XPropertySet props =
(XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, authorField);
props.setPropertyValue("Content", author);



 document.getText().insertTextContent(document.getText().getEnd(),
 authorField, true);
 XTextFieldsSupplier fieldsSupplier =
UnoRuntime.queryInterface(XTextFieldsSupplier.class, document);
 XEnumerationAccess xEnumeratedFields =
fieldsSupplier.getTextFields();

XEnumeration enumeration =
xEnumeratedFields.createEnumeration();
while (enumeration.hasMoreElements()) {
  Object field =  enumeration.nextElement();

XPropertySet props2 =
(XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, field);
XPropertySetInfo info = props2.getPropertySetInfo();
Property[] pp = info.getProperties();
for (Property p : pp) {
System.out.println(p.Name + "=" +
props2.getPropertyValue(p.Name));
}
}

} catch (com.sun.star.uno.Exception e) {
e.printStackTrace();
}
}


[QA][CallForReivew]A script test create, load, save Subject Field

2012-08-22 Thread dongjun zong
*
*Hi ALl,
I create a script test create, load and save Subject field, would you
pls help review. The patch get be get from here.
https://issues.apache.org/ooo/show_bug.cgi?id=120672

Best Regards

DongJun Zong


Re: Is this a UNO API bug?

2012-08-22 Thread dongjun zong
I already read this document. But the update is not effect for Page Number
field.

The method update() of the interface
com.sun.star.util.XUpdatable<http://api.openoffice.org/docs/common/ref/com/sun/star/util/XUpdatable.html>affects
only the following field types:

   - Date and time fields are set to the current date and time.
   - The ExtendedUser fields that show parts of the user data set for
   OpenOffice.org, such as the Name, City, Phone No. and the Author fields
   that are set to the current values.
   - The FileName fields are updated with the current name of the file.
   - The DocInfo.XXX fields are updated with the current document info of
   the document.

All other fields ignore calls to update().




2012/8/23 Andrew Douglas Pitonyak 

>
> Is the page number field? Hmmm, I inspected one and it supports update(),
> not refresh(). So no, I don't think that I mean refresh().
>
> Can you insert the field and then, since you still have a copy of the
> field, call update()?
>
> This is supported by  com.sun.star.util.XUpdatable
>
> Read this:
>
> http://wiki.openoffice.org/**wiki/Documentation/DevGuide/**
> Text/Text_Fields<http://wiki.openoffice.org/wiki/Documentation/DevGuide/Text/Text_Fields>
>
> And I quote:**::
>
> All fields support the interfaces com.sun.star.text.XTextField <
> http://api.openoffice.org/**docs/common/ref/com/sun/star/**
> text/XTextField.html<http://api.openoffice.org/docs/common/ref/com/sun/star/text/XTextField.html>>,
> com.sun.star.util.XUpdatable <http://api.openoffice.org/**
> docs/common/ref/com/sun/star/**util/XUpdatable.html<http://api.openoffice.org/docs/common/ref/com/sun/star/util/XUpdatable.html>>,
> com.sun.star.text.**XDependentTextField <http://api.openoffice.org/**
> docs/common/ref/com/sun/star/**text/XDependentTextField.html<http://api.openoffice.org/docs/common/ref/com/sun/star/text/XDependentTextField.html>>
> and the service com.sun.star.text.TextContent <http://api.openoffice.org/*
> *docs/common/ref/com/sun/star/**text/TextContent.html<http://api.openoffice.org/docs/common/ref/com/sun/star/text/TextContent.html>>.
>
>
> The method |getPresentation()| of the interface
> com.sun.star.text.XTextField <http://api.openoffice.org/**
> docs/common/ref/com/sun/star/**text/XTextField.html<http://api.openoffice.org/docs/common/ref/com/sun/star/text/XTextField.html>>
> returns the textual representation of the result of the text field
> operation, such as a date, time, variable value, or the command, such as
> CHAPTER, TIME (fixed) depending on the boolean parameter.
>
> The method |update()| of the interface com.sun.star.util.XUpdatable <
> http://api.openoffice.org/**docs/common/ref/com/sun/star/**
> util/XUpdatable.html<http://api.openoffice.org/docs/common/ref/com/sun/star/util/XUpdatable.html>>
> affects only the following field types:
>
>  * Date and time fields are set to the current date and time.
>  * The |ExtendedUser| fields that show parts of the user data set for
>OpenOffice.org, such as the Name, City, Phone No. and the Author
>fields that are set to the current values.
>  * The |FileName| fields are updated with the current name of the file.
>  * The |DocInfo.XXX| fields are updated with the current document info
>of the document.
>
> All other fields ignore calls to |update()|.
>
> ::**::
>
> I hope that this helps some!
>
>
> On 08/22/2012 03:30 AM, dongjun zong wrote:
>
>> You mentioned force update, do you mean use refresh() method ? I have
>> tried
>> by below code, still can't work.
>>
>> public void createPageNumber(XComponent component) {
>>  XMultiServiceFactory sevriceFactory = (XMultiServiceFactory)
>> UnoRuntime.queryInterface(**XMultiServiceFactory.class, component);
>>  XTextField pageNumberFiled;
>>  try {
>>  pageNumberFiled =
>> (XTextField)UnoRuntime.**queryInterface(XTextField.**class,
>> sevriceFactory.createInstance(**"com.sun.star.text.textfield.**
>> PageNumber"));
>>  XPropertySet props =
>> (XPropertySet)UnoRuntime.**queryInterface(XPropertySet.**class,
>> pageNumberFiled);
>>  props.setPropertyValue("**NumberingType",
>> NumberingType.ARABIC);//Set page number display as Arabic
>>  props.setPropertyValue("**SubType", PageNumberType.CURRENT);
>>
>>
>>
>>   document.getText().**insertTextContent(document.**getText().getEnd(),
>>   pageNumberFiled, true);
>>   XTextFieldsSupplier fieldsSupplie

[QA][CallForReview][Automation[UNO]Test create, load, save Page Count field

2012-08-22 Thread dongjun zong
Hi All,
  I create a script test page count field, including create, load save.
Pls help reivew, patch could be get from here.
https://issues.apache.org/ooo/show_bug.cgi?id=120660

Best Regards

DongJun Zong


Re: Is this a UNO API bug?

2012-08-22 Thread dongjun zong
You mentioned force update, do you mean use refresh() method ? I have tried
by below code, still can't work.

public void createPageNumber(XComponent component) {
XMultiServiceFactory sevriceFactory = (XMultiServiceFactory)
UnoRuntime.queryInterface(XMultiServiceFactory.class, component);
XTextField pageNumberFiled;
try {
pageNumberFiled =
(XTextField)UnoRuntime.queryInterface(XTextField.class,
sevriceFactory.createInstance("com.sun.star.text.textfield.PageNumber"));
XPropertySet props =
(XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,
pageNumberFiled);
props.setPropertyValue("NumberingType",
NumberingType.ARABIC);//Set page number display as Arabic
props.setPropertyValue("SubType", PageNumberType.CURRENT);



 document.getText().insertTextContent(document.getText().getEnd(),
 pageNumberFiled, true);
 XTextFieldsSupplier fieldsSupplier =
UnoRuntime.queryInterface(XTextFieldsSupplier.class, document);
 XEnumerationAccess xEnumeratedFields =
fieldsSupplier.getTextFields();

XRefreshable refeshable =
UnoRuntime.queryInterface(XRefreshable.class, xEnumeratedFields);
refeshable.refresh();



// try {
//Thread.sleep(1000);
//} catch (InterruptedException e) {
//e.printStackTrace();
//}

 System.out.println(document.getText().getString());

} catch (com.sun.star.uno.Exception e) {
e.printStackTrace();
}

2012/8/22 Andrew Douglas Pitonyak 

>
> On 08/21/2012 09:08 PM, dongjun zong wrote:
>
>> Andrew,
>>   I think you are right, I add a sleep time after insert page number
>> field before getText, the page number can get correct.
>> But I think it's a bug for page number update issue.
>>
>
> Have you tried forcing an update? If so, then you won't need to wait.
>
> I expect that an update may be a time consuming operation (say if you
> insert at page number 400, and it must refresh from the start). I once saw
> a problem where a document would open, but the initial page numbers were
> wrong. It took a while for the page numbers to be updated after the
> document loaded. The final solution was to issue a full refresh, which took
> time, but made it happen. So, the trade off was to allow the user to
> immediately see and edit the document rather than forcing them to wait for
> the refresh to occur on load. With a large document, this can take time.
>
> My guess is that it takes significantly more time to create and insert a
> field than to trigger the update process. When the API is used to insert,
> we have no context on the operation so it seems reasonable to not make an
> immediate update before return. If the update process takes 1000 times
> longer to occur (probably depends on document size and other factors,
> depending on what is updated), then if I want to insert 100 fields, what
> might have taken a fraction of a second may now take minutes.
>
> Commands triggered from the GUI can make the reasonable assumption that
> the user is not likely to perform that task a 100 times, and that a user is
> sitting right there and probably desires an immediate response to the
> command, so then the triggered code (a dispatch) includes the update task
> as part of the process.
>
> If you think that not updating the single field immediately is a bug, you
> should try inserting a Table Of Contents (TOC).
>
> So, although you are certain that it is a bug, and you may be right, I
> might call it a design decision that tends to make the typical user
> experience more performant; which is the usual case. but this is mostly
> speculation on my part.
>
>
>> Oliver, I have tired again, on my computer, if don't add sleep time, it
>> has problem for exist more than 2 page sample fie. You can try this sample,
>> add a page nubmer at end of this document. pls get this sample from
>> attachement.
>>
>>
>>
>> 2012/8/21 Andrew Douglas Pitonyak > and...@pitonyak.org>>
>>
>>
>> My expectation is that this is not a bug.
>>
>> I think that this is probably a timing problem based on the speed
>> of the computer, the size of the document, how busy your CPU is,
>> etc. If you do not have a number, then the values have probably
>> not updated yet. Remember that the data model has no idea what
>> page number it really is. This value must be updated by the view
>>     model / current controller (or something similar). If you have a
>> value, then it just so happens that the values updated
>> immediately. If you insert the value 

Re: Is this a UNO API bug?

2012-08-21 Thread dongjun zong
Andrew,
  I think you are right, I add a sleep time after insert page number field
before getText, the page number can get correct.
But I think it's a bug for page number update issue.

Oliver, I have tired again, on my computer, if don't add sleep time, it has
problem for exist more than 2 page sample fie. You can try this sample, add
a page nubmer at end of this document. pls get this sample from attachement.



2012/8/21 Andrew Douglas Pitonyak 

> My expectation is that this is not a bug.
>
> I think that this is probably a timing problem based on the speed of the
> computer, the size of the document, how busy your CPU is, etc. If you do
> not have a number, then the values have probably not updated yet. Remember
> that the data model has no idea what page number it really is. This value
> must be updated by the view model / current controller (or something
> similar). If you have a value, then it just so happens that the values
> updated immediately. If you insert the value using the GUI, that code is
> smart enough to then trigger the update before it returns.
>
>
> On 08/21/2012 03:23 AM, dongjun zong wrote:
>
>> The strange thing is this API can works fine for doc sample file. I guess
>> this is a bug.
>>
>> 2012/8/21 Andrew Douglas Pitonyak 
>>
>>  OK, I had to  look...
>>>
>>> For a text field, see if you can call update. This may not work if the
>>> document has not finished repaginating. I have heard of cases where a
>>> document had not finished doing that before someone tried to do stuff to
>>> it. The solution was to tell the document to full refresh (probably
>>> using a
>>> dispatch).
>>>
>>>
>>>
>>> On 08/21/2012 02:30 AM, Andrew Douglas Pitonyak wrote:
>>>
>>>  Did you successfully insert the text field? If yes, then after you
>>>> insert
>>>> a text field, it has probably not yet refreshed its value. Off hand, I
>>>> don't remember exactly what you need to refresh first I would need
>>>> to
>>>> look it up and I really need to run but figured it might help you a bit
>>>> and
>>>> you can look for the various refresh items (I think that you can refresh
>>>> each index and for fields I think there may be a single master field
>>>> refresh but I don't remember... have not done it in a long time.).
>>>>
>>>> On 08/20/2012 03:32 AM, dongjun zong wrote:
>>>>
>>>>  Hi All,
>>>>>  Using UNO API I do below operation.
>>>>> 1.Launch a odt document,
>>>>> 2.Create a page number field and insert into this docment
>>>>> 3.Get the document text
>>>>>
>>>>> But in the step3, page number is not contained in the get text. But if
>>>>> I
>>>>> launch a doc document, I can get the page number in step 3. I think
>>>>> this
>>>>> is
>>>>> a UNO API bug, can some body help confirm? Below is my main code
>>>>> pieces.
>>>>>
>>>>> XMultiServiceFactory sevriceFactory = (XMultiServiceFactory)
>>>>> UnoRuntime.queryInterface(XMultiServiceFactory.class, document);
>>>>>   XTextField  pageNumberFiled =
>>>>> (XTextField)UnoRuntime.queryInterface(XTextField.class,
>>>>> sevriceFactory.createInstance("com.sun.star.text.**
>>>>> textfield.**PageNumber"));
>>>>>
>>>>>
>>>>>   XPropertySet props =
>>>>> (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,
>>>>> pageNumberFiled);
>>>>>   props.setPropertyValue("NumberingType", 4);//Set page
>>>>> number
>>>>> display as Arabic
>>>>>
>>>>>   XTextCursor xTextCursor = document.getText().**
>>>>> createTextCursor();
>>>>>   xTextCursor.gotoEnd(false);
>>>>>
>>>>> document.getText().insertTextContent(document.
>>>>> getText().getEnd(),
>>>>> pageNumberFiled, true);
>>>>>
>>>>>
>>>>>   String documentString = document.getText().getString();
>>>>>   System.out.println(documentString);
>>>>>
>>>>>
>>>>>  --
>>> Andrew Pitonyak
>>> My Macro Document: 
>>> http://www.pitonyak.org/AndrewMacro.odt<http://www.pitonyak.org/**AndrewMacro.odt>
>>> <http://www.**pitonyak.org/AndrewMacro.odt<http://www.pitonyak.org/AndrewMacro.odt>
>>> >
>>> Info:  http://www.pitonyak.org/oo.php
>>>
>>>
>>>
> --
> Andrew Pitonyak
> My Macro Document: 
> http://www.pitonyak.org/**AndrewMacro.odt<http://www.pitonyak.org/AndrewMacro.odt>
> Info:  http://www.pitonyak.org/oo.php
>
>


PageNumberFieldTest.odt
Description: application/vnd.oasis.opendocument.text


Re: Is this a UNO API bug?

2012-08-21 Thread dongjun zong
Oliver,
I found that if page is more than 2, it will has problem. Would you pls
help try a 3 page exist odt sample for this issue?

2012/8/21 Oliver Brinzing 

> > The strange thing is this API can works fine for doc sample file.
>
> the following code works for me with a new doc, output is: Hello 1 World!!!
>
> public class TextfieldProblem {
> public void setTextfield(XComponent component) {
> XMultiServiceFactory serviceFactory =
> UnoRuntime.queryInterface(
> XMultiServiceFactory.class, component);
> XTextField pageNumberFiled = null;
> try {
> pageNumberFiled = UnoRuntime
> .queryInterface(
> XTextField.class,
> serviceFactory
>
> .createInstance("com.sun.star.text.textfield.PageNumber"));
> XPropertySet props =
> UnoRuntime.queryInterface(XPropertySet.class,
> pageNumberFiled);
> props.setPropertyValue("NumberingType",
>
> com.sun.star.style.NumberingType.ARABIC);
> props.setPropertyValue("SubType",
>
> com.sun.star.text.PageNumberType.CURRENT);
> } catch (Exception e) {
> e.printStackTrace();
> }
> XTextDocument document =
> UnoRuntime.queryInterface(XTextDocument.class,
> component);
> try {
>
> document.getText().insertString(document.getText().getStart(),
> "Hello ", true);
>
> document.getText().insertTextContent(document.getText().getEnd(),
> pageNumberFiled, true);
>
> document.getText().insertString(document.getText().getEnd(),
> " World!!!", true);
> } catch (IllegalArgumentException e) {
> e.printStackTrace();
> }
> getTextfield(document);
> }
>
> public void getTextfield(XComponent xComponent) {
> XTextDocument document =
> UnoRuntime.queryInterface(XTextDocument.class,
> xComponent);
> String documentString = document.getText().getString();
> System.out.println(documentString);
> }
> }
>
>
>
> Regards
>
> Oliver
> --
>
> GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
>
>


Re: Is this a UNO API bug?

2012-08-21 Thread dongjun zong
The strange thing is this API can works fine for doc sample file. I guess
this is a bug.

2012/8/21 Andrew Douglas Pitonyak 

>
> OK, I had to  look...
>
> For a text field, see if you can call update. This may not work if the
> document has not finished repaginating. I have heard of cases where a
> document had not finished doing that before someone tried to do stuff to
> it. The solution was to tell the document to full refresh (probably using a
> dispatch).
>
>
>
> On 08/21/2012 02:30 AM, Andrew Douglas Pitonyak wrote:
>
>>
>> Did you successfully insert the text field? If yes, then after you insert
>> a text field, it has probably not yet refreshed its value. Off hand, I
>> don't remember exactly what you need to refresh first I would need to
>> look it up and I really need to run but figured it might help you a bit and
>> you can look for the various refresh items (I think that you can refresh
>> each index and for fields I think there may be a single master field
>> refresh but I don't remember... have not done it in a long time.).
>>
>> On 08/20/2012 03:32 AM, dongjun zong wrote:
>>
>>> Hi All,
>>> Using UNO API I do below operation.
>>> 1.Launch a odt document,
>>> 2.Create a page number field and insert into this docment
>>> 3.Get the document text
>>>
>>> But in the step3, page number is not contained in the get text. But if I
>>> launch a doc document, I can get the page number in step 3. I think this
>>> is
>>> a UNO API bug, can some body help confirm? Below is my main code pieces.
>>>
>>> XMultiServiceFactory sevriceFactory = (XMultiServiceFactory)
>>> UnoRuntime.queryInterface(**XMultiServiceFactory.class, document);
>>>  XTextField  pageNumberFiled =
>>> (XTextField)UnoRuntime.**queryInterface(XTextField.**class,
>>> sevriceFactory.createInstance(**"com.sun.star.text.textfield.**PageNumber"));
>>>
>>>
>>>  XPropertySet props =
>>> (XPropertySet)UnoRuntime.**queryInterface(XPropertySet.**class,
>>> pageNumberFiled);
>>>  props.setPropertyValue("**NumberingType", 4);//Set page number
>>> display as Arabic
>>>
>>>  XTextCursor xTextCursor = document.getText().**
>>> createTextCursor();
>>>  xTextCursor.gotoEnd(false);
>>>
>>> document.getText().**insertTextContent(document.**getText().getEnd(),
>>> pageNumberFiled, true);
>>>
>>>
>>>  String documentString = document.getText().getString()**;
>>>  System.out.println(**documentString);
>>>
>>>
>>
> --
> Andrew Pitonyak
> My Macro Document: 
> http://www.pitonyak.org/**AndrewMacro.odt<http://www.pitonyak.org/AndrewMacro.odt>
> Info:  http://www.pitonyak.org/oo.php
>
>


[QA][CallForReview][Automation][UNO]Test create and load PageNumber field by UNO API

2012-08-20 Thread dongjun zong
Hi All,
  I create a script test create, save and load page number field by uno
api, pls help review. The patch can be get from here
https://issues.apache.org/ooo/show_bug.cgi?id=120630

Thanks.
Best Regards!

DongJun Zong


Re: [VOTE] Apache OpenOffice Community Graduation Vote

2012-08-20 Thread dongjun zong
+1



2012/8/21 Juan C. Sanz 

> El 19/08/2012 17:52, Rob Weir escribió:
>
>  Per the IPMC's "Guide to Successful Graduation" [1] this is the
>> optional, but recommended, community vote for us to express our
>> willingness/readiness to govern ourselves.  If this vote passes then
>> we continue by drafting a charter, submitting it for IPMC endorsement,
>> and then to the ASF Board for final approval.   Details can be found
>> in the "Guide to Successful Graduation".
>>
>> Everyone in the community is encouraged to vote.  Votes from PPMC
>> members and Mentors are binding.  This vote will run 72-hours.
>>
>>
>> [ ] +1  Apache OpenOffice community is ready to graduate from the
>> Apache Incubator.
>> [ ] +0 Don't care.
>> [ ] -1  Apache OpenOffice community is not ready to graduate from the
>> Apache Incubator because...
>>
>>
>> Regards,
>>
>> -Rob
>>
>> [1] http://incubator.apache.org/**guides/graduation.html#tlp-**
>> community-vote
>>
>>
>>  +1
> Regards
>


[QA][CallForReview][Automation][UNO]A patch for tes create and load Date and Time field in wordprocessor

2012-08-16 Thread dongjun zong
Hi All,
   I created a patch for test create and laod date and time field by UNO
API. pls help review. In this patch also have a util class for
wordprocessor. Please get the patch from here
https://issues.apache.org/ooo/show_bug.cgi?id=120603

Thanks.

DongJun Zong


Re: [HELP]Where could get the information about parameter Properties values in method XStorable.storeAsURL

2012-08-16 Thread dongjun zong
Ariel , I can understand your concern. As the implementation specific need
to be used by these API, especially for these "PropertyValue" paramether.
>From the end point user view, it should be part of API docs. You mentioned
"implementation specific: the list of filter supported by implementation
> A may not match those by implementation B", from my understanding, this
maybe is different version, the API docs also need corresponding version.

Jürgen, provide realted information link to API docs can let user easy to
user these API, thus will much friendly and easily to use them.

Thanks.

DongJun Zong


2012/8/16 Jürgen Schmidt 

> On 8/16/12 11:40 AM, Ariel Constenla-Haile wrote:
> > Hi,
> >
> > On Thu, Aug 16, 2012 at 05:25:15PM +0800, dongjun zong wrote:
> >> If worried about API documentation is too long, provide a link in API
> doc
> >> is need. Paramether valid value list is basic  part of API docs.
> >>
> >> Please see a MS office API docs for example "
> >> http://msdn.microsoft.com/en-us/library/gg264840";. It list all the
> values
> >> could be use by the method.
> >
> > This example simply shows some constant values that are used for ActionX
> > and ActionY. We also have constant values in AOO API, see for example
> >
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/frame/XComponentLoader.html#loadComponentFromURL
> >
> > [in] long SearchFlags are
> >
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/frame/FrameSearchFlag.html
> >
> > Constant values can be part of an API specification. But in this thread
> > you where asking to document filter names, this is completely different.
> > The API specification only says it's a string, with the *internal*
> > filter name. It is imposible to list here all posible strings, not
> > only/mainly because they are too much, but because this is
> > implementation specific: the list of filter supported by implementation
> > A may not match those by implementation B, the list is not a constant
> > set of values (besides, AOO API does not allow string constants).
> >
> >
>
> Ariel is completely correct with his argumentation whereas I can
> understand DongJun Zong that it is hard to find the necessary information.
>
> Ariel pointed out that it would make sense to collect and document the
> implementation specific data in a separate place and add changes on
> demand for different versions. And yes we could add a link into the
> reference documentation to point to this data.
>
> I think we have done this from time to time and the information is
> available somewhere (I have to search as well). Well it's probably not
> complete but definitely a good start of course. We can try to collect
> the infos we had already and can consolidate them in one place where we
> link to from the API docs.
>
> Feel free to start with this work ;-) It's not the only place where
> somebody can start quite easy to contribute something very useful to the
> project.
>
> A good place is probably under the API section in the wiki, we can
> discuss the place and the structure...
>
> Juergen
>
>


Re: [HELP]Where could get the information about parameter Properties values in method XStorable.storeAsURL

2012-08-16 Thread dongjun zong
If worried about API documentation is too long, provide a link in API doc
is need. Paramether valid value list is basic  part of API docs.

Please see a MS office API docs for example "
http://msdn.microsoft.com/en-us/library/gg264840";. It list all the values
could be use by the method.




2012/8/16 Ariel Constenla-Haile 

> Hi
>
> On Thu, Aug 16, 2012 at 04:31:13PM +0800, dongjun zong wrote:
> > I think I can't agree with you. I had used MS Office VBA APIs before, in
> > their VBA API docs, include this kind of information.
>
> MS may do stupids things, should we follow them just because it's MS?
> http://www.nizkor.org/features/fallacies/appeal-to-authority.html
>
> > Besides compare with
> > MS Office API docs, I think as public API docs, should contain the
> > information for every method parameter valid list. Thus when I use a
> > method, I only need to read the API docs.
>
> AOO API docs have on the top a "Devguide" link. This should guide you to
> an explanation and some implementation specifics. Of course, this can be
> improved, and we could list every filter for FilterName and every
> FilterOption and FilterData for every specific filter, but this cannot
> be included in the API docs, it's implementation specific, a filter
> implementation is free to change it. May be you didn't get that all the
> tables in
>
> http://wiki.openoffice.org/wiki/API/Tutorials/PDF_export#PDF_Export_filter_data
> are the implementation of FilterData for this specific filter, the PDF
> export filter.
>
> Now consider all the filters available in AOO, documenting each one in
> the API documentation is a nonsense: besides breaking the notion of
> implementation vs. specification, it will make the documentation too
> long, I doubt MS does something similar.
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>


Re: [HELP]Where could get the information about parameter Properties values in method XStorable.storeAsURL

2012-08-16 Thread dongjun zong
I think I can't agree with you. I had used MS Office VBA APIs before, in
their VBA API docs, include this kind of information. Besides compare with
MS Office API docs, I think as public API docs, should contain the
information for every method parameter valid list. Thus when I use a
method, I only need to read the API docs.



value list.
2012/8/16 Ariel Constenla-Haile 

> Hi dongjun zong,
>
> On Thu, Aug 16, 2012 at 02:31:41PM +0800, dongjun zong wrote:
> > Thanks. From the wiki, I can know pieces of information. But I think the
> > API docs should contain the information for every parameter's valid value
> > list.
>
> API = Application Programming Interface, an interface is an abstract
> specification. By no way the API documentation can include such
> information that is implementation specific. Nevertheless this kind of
> information is worth in the wiki, with a proper release tag indicating
> in which OOo/AOO version this implementation specific information is
> valid.
>
> You can see an example with the PDF export properties:
>
> http://wiki.openoffice.org/wiki/API/Tutorials/PDF_export#PDF_Export_filter_data
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>


Re: [HELP]Where could get the information about parameter Properties values in method XStorable.storeAsURL

2012-08-16 Thread dongjun zong
Shan, thanks very much for the "FilterName" valid list for the API.

It's only the "FilterName" valid list. But there are still lots of
parameters valid values are predefined by open office and used by apis, but
in api docs there is no valid value list.

In API docs, is there such kind of information?


2012/8/16 Shan Zhu 

> A filter name list for your reference :
>
> http://wiki.openoffice.org/wiki/Framework/Article/Filter/FilterList_OOo_2_1
>
> Regards,
> Shan Zhu
>
> 2012/8/16 dongjun zong 
>
> > Thanks. From the wiki, I can know pieces of information. But I think the
> > API docs should contain the information for every parameter's valid value
> > list.
> >
> > 12/8/16 Andrew Douglas Pitonyak 
> >
> > >
> > > On 08/16/2012 01:40 AM, dongjun zong wrote:
> > >
> > >> Hi,
> > >> I am tring to use the method  storeAsURL  of interface "XStorable"
> > >>
> > >> void storeAsURL( [in] string aURL, sequence<
> > >> com::sun::star::beans::**PropertyValue > aArgs)
> > >>
> > >> What's second parameter valid values? I have searched in Wiki, and get
> > >> below information, but still dont' know the information . From below
> > >> url
> > >>   http://www.openoffice.org/api/**docs/common/ref/com/sun/star/**
> > >> document/MediaDescriptor.html#**FilterName<
> >
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/document/MediaDescriptor.html#FilterName
> > >
> > >> I know the property name which can be used? But what's value of every
> > >> property ? such as there is a property "FilterName"  is this page.
> > >> But, what value should be for this property?
> > >> Where could I get the information?
> > >> FilterName
> > >>
> > >> string *FilterName*;
> > >>
> > >> --
> > >> *Usage Restrictions**optionalDescription*internal filter name
> > >>
> > >>
> > >> Name of a filter that should be used for loading or storing the
> > component.
> > >> Names must match the names of the
> > >> TypeDetection<http://www.**openoffice.org/api/docs/**
> > >> common/ref/com/sun/star/**document/TypeDetection.html<
> >
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/document/TypeDetection.html
> > >
> > >> >**configuration,
> > >>
> > >> invalid names are ignored. If a name is specified on
> > >> loading, it still will be verified by a filter detection, but in case
> of
> > >> doubt it will be preferred.
> > >>
> > >>
> > >>
> > >> Thanks.
> > >>
> > >> DongJun Zong
> > >>
> > >>  I have written so many things, I cannot remember where everything is,
> > > and I have no time for a serious answer, so hopefully a few thoughts
> will
> > > help.
> > >
> > > 1. If you can load the document using File | Open, then I think that
> you
> > > can inspect the MediaDescriptor to see what values were used. I think
> > that
> > > I demonstrate this in AndrewBase.odt (you would need to search on
> > > MediaDescriptor I suppose).
> > >
> > > I think that I have found the filter name by looking at configuration
> > > files, and I think that I have written a macro at one time or another
> to
> > > display the list (I am sure I am not the only person that has done
> so). A
> > > quick Google search showed a DannyB solution
> > >
> > > http://www.oooforum.org/forum/**viewtopic.phtml?p=15416#15416<
> > http://www.oooforum.org/forum/viewtopic.phtml?p=15416#15416>
> > >
> > > --
> > > 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: [HELP]Where could get the information about parameter Properties values in method XStorable.storeAsURL

2012-08-15 Thread dongjun zong
Thanks. From the wiki, I can know pieces of information. But I think the
API docs should contain the information for every parameter's valid value
list.

12/8/16 Andrew Douglas Pitonyak 

>
> On 08/16/2012 01:40 AM, dongjun zong wrote:
>
>> Hi,
>> I am tring to use the method  storeAsURL  of interface "XStorable"
>>
>> void storeAsURL( [in] string aURL, sequence<
>> com::sun::star::beans::**PropertyValue > aArgs)
>>
>> What's second parameter valid values? I have searched in Wiki, and get
>> below information, but still dont' know the information . From below
>> url
>>   http://www.openoffice.org/api/**docs/common/ref/com/sun/star/**
>> document/MediaDescriptor.html#**FilterName<http://www.openoffice.org/api/docs/common/ref/com/sun/star/document/MediaDescriptor.html#FilterName>
>> I know the property name which can be used? But what's value of every
>> property ? such as there is a property "FilterName"  is this page.
>> But, what value should be for this property?
>> Where could I get the information?
>> FilterName
>>
>> string *FilterName*;
>>
>> --
>> *Usage Restrictions**optionalDescription*internal filter name
>>
>>
>> Name of a filter that should be used for loading or storing the component.
>> Names must match the names of the
>> TypeDetection<http://www.**openoffice.org/api/docs/**
>> common/ref/com/sun/star/**document/TypeDetection.html<http://www.openoffice.org/api/docs/common/ref/com/sun/star/document/TypeDetection.html>
>> >**configuration,
>>
>> invalid names are ignored. If a name is specified on
>> loading, it still will be verified by a filter detection, but in case of
>> doubt it will be preferred.
>>
>>
>>
>> Thanks.
>>
>> DongJun Zong
>>
>>  I have written so many things, I cannot remember where everything is,
> and I have no time for a serious answer, so hopefully a few thoughts will
> help.
>
> 1. If you can load the document using File | Open, then I think that you
> can inspect the MediaDescriptor to see what values were used. I think that
> I demonstrate this in AndrewBase.odt (you would need to search on
> MediaDescriptor I suppose).
>
> I think that I have found the filter name by looking at configuration
> files, and I think that I have written a macro at one time or another to
> display the list (I am sure I am not the only person that has done so). A
> quick Google search showed a DannyB solution
>
> http://www.oooforum.org/forum/**viewtopic.phtml?p=15416#15416<http://www.oooforum.org/forum/viewtopic.phtml?p=15416#15416>
>
> --
> Andrew Pitonyak
> My Macro Document: 
> http://www.pitonyak.org/**AndrewMacro.odt<http://www.pitonyak.org/AndrewMacro.odt>
> Info:  http://www.pitonyak.org/oo.php
>
>


[HELP]Where could get the information about parameter Properties values in method XStorable.storeAsURL

2012-08-15 Thread dongjun zong
Hi,
   I am tring to use the method  storeAsURL  of interface "XStorable"

void storeAsURL( [in] string aURL, sequence<
com::sun::star::beans::PropertyValue > aArgs)

What's second parameter valid values? I have searched in Wiki, and get
below information, but still dont' know the information . From below
url
 
http://www.openoffice.org/api/docs/common/ref/com/sun/star/document/MediaDescriptor.html#FilterName
I know the property name which can be used? But what's value of every
property ? such as there is a property "FilterName"  is this page.
But, what value should be for this property?
Where could I get the information?
FilterName

string *FilterName*;

--
*Usage Restrictions**optional**Description*internal filter name

Name of a filter that should be used for loading or storing the component.
Names must match the names of the
TypeDetection<http://www.openoffice.org/api/docs/common/ref/com/sun/star/document/TypeDetection.html>configuration,
invalid names are ignored. If a name is specified on
loading, it still will be verified by a filter detection, but in case of
doubt it will be preferred.



Thanks.

DongJun Zong


Re: [QA_Questions]who knows the function split table in word processor?

2012-07-09 Thread dongjun zong
In your first step, "Don't split table" means when you create table,
prevent the insert table span a page.

Whether you check this option or not, split table will enable. The meaning
of "Split table" in context menu is different from the option "Don't split
table"

2012/7/9 Du Jing 

> add one info: insert one table in word processor
>
> On Mon, Jul 9, 2012 at 3:00 PM, Du Jing  wrote:
>
> > Hi all,
> >
> > steps as bellow:
> >
> >1. launch oo and insert a table,and check the option"Don't split
> >table" in the "insert table" dialog
> >2. then focus on the second line of table,and right click mouse
> >key,you can find the "split table" is enabled
> >
> > so this is a bug? or other design?
> >
> >
> > Thanks~
> >
> >
>


Re: [QA] Build Verification Test for AOO

2012-06-28 Thread dongjun zong
Great! Thus we can do work on the build which has been passed BVT. Expect
to see the BVT notice early.

2012/6/28 Linyi Li 

> Hi Yan Ji,
> I will add a new wiki to describe BVT cases. Then I'll add the link to
> here. Thank you.
>
> 2012/6/28 Yan Ji 
>
> > Lin Yi,
> >
> >  That will be great to have Build Verification Test(BVT) report to let us
> > know the build availability. Would you pls let us know the BVT case list
> > which function area will be test during BVT?
> >
> > Thanks & Best Regards, Yan Ji
> >
> > On Jun 28, 2012, at 1:48 PM, Linyi Li wrote:
> >
> > > Hi,
> > >
> > > Since we have weekly AOO branch build and daily trunk build, I want to
> do
> > > build verification test to make sure the main functions are OK. After
> > this
> > > test we can do further general function test.
> > >
> > > I noticed there is smoketest in the AOO which can do some verification
> > > test. But it is based on macros and basic language, which is hard to
> read
> > > and debug. And no one maintained this.
> > >
> > > Based on Liu Zhe's VCLAuto, we developed 40+ test cases to do build
> > > verification test. These test cases are:
> > >
> > > 1. Test cases include 5 products: word processor, spreadsheet, impress,
> > > formula, drawing.
> > >
> > > 2. Doing basic operations about each products: new, save, load.
> > >
> > > 3. Objects operations: chart, table, function.
> > >
> > > 4. Integrated smoketest from AOO.
> > >
> > > Plan to do:
> > >
> > > 1. Set up some machines to do build verification test, including
> > OS:windows
> > > 32 & 64bit, mac, ubuntu, redhat.
> > >
> > > 2. Send verification test result to community when daily/weekly build
> is
> > > ready, or to add to wiki.
> > >
> > > 3. Develop more test cases, such as database cases.
> > >
> > > Any comments are welcome!
> > >
> > >
> > > --
> > > Best wishes.
> > > Linyi Li
> >
> >
>
>
> --
> Best wishes.
> Linyi Li
>


Re: [DISCUSS]What is the criteria for 3.4.1 release blocker?

2012-06-20 Thread dongjun zong
I think high severity regression issue, common usage function related issue
should be considered as release blocker.

2012/6/21 Ji Yan 

> From my point of view, security and high usability issue should be set as
> blocker
>
> 2012/6/21 debin lei 
>
> > Hi, All
> > I noticed that there are some issues, which are proposed as 3.4.1 release
> > blocker recently. However, I am not sure what is the criteria for the
> > release blocker?
> > Is it regression or impact serious ? Or high benefit to risk ratio from
> dev
> > view ?
> > I think maybe consider more things, but not sure.
> > So if you can give your criteria and discuss here to make the things more
> > clear will be very helpful.
> > Thanks.
> >
> > Best regards.
> > Lei De Bin
> >
>
>
>
> --
>
>
> Thanks & Best Regards, Yan Ji
>


Re: [Blocker] Bug 120037 - Animations in Impress do not follow specific order...

2012-06-19 Thread dongjun zong
I also tired on my OO3.4, can reproduce this problem.

2012/6/20 Jürgen Schmidt 

> On 6/20/12 8:31 AM, Yan Ji wrote:
> > +1
> >
> > It's regression issue, the function works in OO 3.3. Propose fix it in
> 3.4.1
>
> I can't reproduce it, I watched the video and tried it with my own
> simple representation. It works as expected.
>
> Juergen
>
>
> >
> > Thanks & Best Regards, Yan Ji
> >
> > On Jun 20, 2012, at 12:50 PM, Michael Acevedo wrote:
> >
> >> Hi,
> >>
> >> I filed a bug report tonight for Impress in Mac OS X. In this Impress
> bug,
> >> animations do not follow an specified order. To review it go to the
> >> following address:
> >> https://issues.apache.org/ooo/show_bug.cgi?id=120037
> >>
> >> I find that this bug is similar to one I reported earlier in Impress for
> >> Windows.
> >>
> >> Many thanks for any assistance on this matter!
> >>
> >> --
> >> Best,
> >> Michael
> >
> >
>
>
>


Re: Public query: FixesReady

2012-06-19 Thread dongjun zong
Greate. Thanks for sharing.

2012/6/19 Yan Ji 

> Hi all,
>
>  I created a public query[1] in bugzilla which can query out all opened
> bug with patch available. If you want to review any fix pls start from here.
>
>
> [1]
> https://issues.apache.org/ooo/buglist.cgi?cmdtype=dorem&remaction=run&namedcmd=FixesReady&sharer_id=248432
> Thanks & Best Regards, Yan Ji
>
>