Re: CMIS UCP

2013-06-02 Thread Rajath Shashidhara
Hello Ariel,

Actually, this is my first code using openoffice api.
I'll do these before completing my ucp.

Sorry. I'll get back to you with the understanding of the general api.


On Mon, Jun 3, 2013 at 10:20 AM, Ariel Constenla-Haile <
ariel.constenla.ha...@gmail.com> wrote:

> Hi Rajath,
>
> On Mon, Jun 03, 2013 at 01:28:24AM +0530, Rajath Shashidhara wrote:
> > Hello everyone,
> >
> > I have completed some part of the CMISUCP.
> >
> > I have made my own implementation of XContent, XContentIdentifier
> > interfaces.
> >
> > I have partially Completed implementation of the following methods:
> > queryContent()
> > execute() -> "getPropertyValues", "open"
> >
> >
> > I was not very clear about the return type of execute method.
> > I might have erred there.
>
> In "open" you are returning a java.io.InputStream.  According to the API
> documentation, "For non-folder objects, the OpenCommandArgument2 struct
> will be prefilled with a data sink object, which will be filled with the
> content data."; important point: "OpenCommandArgument::Sink: a sink,
> where the implementation can put the document data into."
>
> And in "getPropertyValues" you are returning
> a java.util.Map. According to the API docs, the return
> type is a ::com::sun::star::sdbc::XRow (as told in a previous mail).
>
> Both errors tell me you need a deeper knowledge of the UCB API: before
> trying to implement your own UCP, you need a general understanding of
> how the UCB API works, this is something fundamental, and these two
> basic errors tell you are missing this point.
>
> So back to the basics:
>
> - create client application
> - using the UCB API, get some properties of a file/folder
> - if the content is a file, execute an "open" command. If the content is
>   a folder, list its content.
> - if the content is a file,
>   a) store the stream to disk
>   b) use the stream to load the file inside OpenOffice
>
> The code should work using local files/folders, http, webdav, etc. Try
> with http://demo.owncloud.org/files/webdav.php so that you have to use
> an interaction handler for authentication (user=test, password=test).
>
> This (together with reading the API reference) will give you a first
> idea of how "open" and "getPropertyValues" work.
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>



-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


Re: CMIS UCP

2013-06-02 Thread Ariel Constenla-Haile
Hi Rajath,

On Mon, Jun 03, 2013 at 01:28:24AM +0530, Rajath Shashidhara wrote:
> Hello everyone,
> 
> I have completed some part of the CMISUCP.
> 
> I have made my own implementation of XContent, XContentIdentifier
> interfaces.
> 
> I have partially Completed implementation of the following methods:
> queryContent()
> execute() -> "getPropertyValues", "open"
> 
> 
> I was not very clear about the return type of execute method.
> I might have erred there.

In "open" you are returning a java.io.InputStream.  According to the API
documentation, "For non-folder objects, the OpenCommandArgument2 struct
will be prefilled with a data sink object, which will be filled with the
content data."; important point: "OpenCommandArgument::Sink: a sink,
where the implementation can put the document data into."

And in "getPropertyValues" you are returning
a java.util.Map. According to the API docs, the return
type is a ::com::sun::star::sdbc::XRow (as told in a previous mail).

Both errors tell me you need a deeper knowledge of the UCB API: before
trying to implement your own UCP, you need a general understanding of
how the UCB API works, this is something fundamental, and these two
basic errors tell you are missing this point.

So back to the basics:

- create client application
- using the UCB API, get some properties of a file/folder
- if the content is a file, execute an "open" command. If the content is
  a folder, list its content.
- if the content is a file, 
  a) store the stream to disk
  b) use the stream to load the file inside OpenOffice

The code should work using local files/folders, http, webdav, etc. Try
with http://demo.owncloud.org/files/webdav.php so that you have to use
an interaction handler for authentication (user=test, password=test).

This (together with reading the API reference) will give you a first
idea of how "open" and "getPropertyValues" work.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


pgpiirB5xQIF1.pgp
Description: PGP signature


Re: [QA][Test Report] Weekly Status Update as of 20130531

2013-06-02 Thread Kay Schenk
On Fri, May 31, 2013 at 5:50 AM, Yuzhen Fan  wrote:

> Hi All,
>
> We continue doing the AOO 4.0 Full Regression test this week, here is the
> weekly update (5/28 - 5/31), please find more detail statistics in wiki:
> http://wiki.openoffice.org/wiki/QA/Report/WeeklyReport/20130531
>
> *Test execution: *
> We have assigned 1732 text executions to about 20 volunteers(4 more this
> week), and completed about 43% in execution so far. 35% Mac test executions
> have been done compared 0% last week! The target is to %100 attempted 1000
> test executions (741 so far) before June 6 providing all volunteers
> complete their assignments before that date.
>
> *Defect summary:*
> 1. 30 defects were opened and 19 defects were resolved this week, so we
> have 11 (30-19) net new defects added in the backlog
> 2. Expose 2 Mac specific defects during quick testing on Mac 10.8 with
> 64-bit Java, Bug 122418 (fail to display color bar in color dropdown list)
> need to set priority as it frustrates user to select color visibly
>
> *Issues & quality highlight:*
> 1. Encourage volunteers to continue executing test cases in TestLink to
> achieve their assignment
> 2. Redhat is with risk as less testing done on them - inform/remind Linux
> test team assignees make progress on this platform
> 3. Do general use testing on Mac for assessment - no crash/hung/data
> lose/open file fail issues, but 2 Mac specific defects discovered, need set
> priority for the first one
> (1) Bug 122418 -[Mac]Fail to show color or display incorrectly in Color
> Dropdown Menu --- Special on Mac
> (2) Bug 122420 -Can't Copy and Paste Hyperlink on Mac --- Special on Mac
> (3) Bug 122419 -The Second Slide can't apply footer/page number when select
> "Don't show first slide" option -- Both on Mac and Win7
> (4) Bug 122421 -Shape remain group when change from ungroup to group until
> double click shape -- Both on Mac and Win7
> 4. Critical defects are waiting for fix - need more Dev volunteers to
> involve
> 5. QAs are reminded to make sure to perform all test cases with navigation
> and accelerators, and make sure to specify defect numbers in Testlink for
> failed test executions
> *
> Volunteer status: *
> 1. We have 4 more volunteers joining test executions, all are for Mac
> 2. No new volunteers(total 6 so far) on defect work, need more to clean
> backlog of unconfirmed and resolved defects
> *
> Plan for next week:*
> 1. Prioritize critical defects and assign them to Dev volunteers
> 2. Confirm left ~100 critical defects which are not confirmed yet
> 3. Achieve the target (June 6) to complete 1000 test executions in AOO 4.0
> Full Regression test with the support from volunteers
>
> Thanks you all for effort this week, it is a great community here, if we do
> a little bit more then we will get an awesome achievement. Thanks!!
>
> Regards,
> Yu Zhen
>

Checking on the "Need to Confirm" entries, You might note that many of
these items are not actually "bug" reports but ideas or wish lists items. I
produced a similar report but eliminated anything that was "not a FEATURE"
or "not an ENHANCEMENT" and got a smaller number. Still 2834 but some
improvement in case anyone is interested.

here's a link to the query:

https://issues.apache.org/ooo/buglist.cgi?cmdtype=dorem&remaction=run&namedcmd=UNCONF_not_new&sharer_id=7

-- 

MzK

"You can't believe one thing and do another.
 What you believe and what you do are the same thing."
 -- Leonard Peltier


Does Help Agent still exist?

2013-06-02 Thread Regina Henschel

Hi all,

I have activated the Help Agent in Tools > Options, but I cannot trigger 
it. In ancient versions a auto correct replacement in Writer or using 
standard filter in Calc triggered the Help Agent.


Should the Help Agent still work? Or was it removed, but some parts were 
forgotten to remove?


Kind regards
Regina

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: [Bug 122434] New: Using of Alias breaks "Depends on" Tree

2013-06-02 Thread Andrea Pescetti

On 01/06/2013 Rainer Bielefeld wrote:

can someone please have a look?


For the record: as confirmed by Rainer himself in 
https://issues.apache.org/ooo/show_bug.cgi?id=122434
this is not a Bugzilla problem, but the result of a very fast developer 
activity... the huge list of Sidebar-related bugs had disappeared simply 
because 112 out of 115 bugs had actually been resolved in a very short 
period.


Not bad for the QA volunteers to find 115 bugs and for the developers to 
have already fixed almost all of them!


Regards,
  Andrea.

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: CMIS UCP

2013-06-02 Thread Ariel Constenla-Haile
On Sun, Jun 02, 2013 at 11:06:40PM +0530, Rajath Shashidhara wrote:
> Hello Ariel,
> 
> function:
> compareContentIds
> Description:
> 0 is returned, if the identifiers are equal. A value less than 0 indiactes,
> that the Id1 is less than Id2. A value greater than 0 is returned, if Id1
> is greater than Id2.
> 
> What is less than?
> Is it below in the file hierarchy? Are alphabetic?

How to compare, depends on the implementation. For example,
ExpandContentProviderImpl::compareContentIds() first expands posible
macros in the content ids, and them compares the two strings. For now,
you can simple compare the strings lexically.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


pgpE3iRQcUgGi.pgp
Description: PGP signature


Fwd: CMIS UCP

2013-06-02 Thread Ariel Constenla-Haile
It seems Apache SMTP service is failing, forwarding via my gmail account.


-- Forwarded message --
From: Ariel Constenla-Haile 
Date: Sun, Jun 2, 2013 at 2:46 PM
Subject: Re: CMIS UCP
To: dev@openoffice.apache.org


Hi Rajath,

On Sun, Jun 02, 2013 at 05:12:03PM +0530, Rajath Shashidhara wrote:
> Hi Ariel,
>
>
> I'm still not clear about one thing:
> I'm completing the implementation of the function execute() for
> "getPropertyValues" command.
> But, until now I assumed that the path and name of the object whose
> properties I'm getting are contained in the XIdentifier object that is a
> parameter to queryContent method. My Implementation of XContent has an
> constructor with XContentIdentifier as one of the parameters.
>
> But, I added a cout statement to the file ucp to print the
> XContentIdentifierObject->getContentIdentifier(), thinking that the
> returned string will be the path to the content which is being queried.
> But, the print statements were a little a bunch of hexadecimals, when I
> tried to access a file from open dialog.

May be it is better to play with the open dialog later, when you
implement listing a directory; for now, it is easier to play with
a Basic macro. The open dialog will query your UCP the moment you start
typing cmis:/ which is not a valid content identifier for your UCP. As
you already understood, you check this in queryContent:

public XContent queryContent(XContentIdentifier xIdentifier)
throws IllegalIdentifierException {

Logger.getLogger(CMISContentProvider.class.getName()).log(
Level.INFO,
String.format("Content ID \"%s\"",
xIdentifier.getContentIdentifier()));

if (!isValidIdentifier(xIdentifier)) {
throw new IllegalIdentifierException();
}

// Check if a content with given XContentIdentifier already exists
// TODO implement a hash map
// Key: xIdentifier.getContentIdentifier()
// Value: XContent
XContent xRet = queryExistingContent(xIdentifier);
if (xRet != null) {
return xRet;
}

CMISContent aContent = new CMISContent(m_xContext, xIdentifier);
// cache the new content
registerNewContent(aContent);

return aContent;
}

Two notes:

- you have to cache contents
- related to this, there should be only one instance of your UCP; test
  with the following macro (replace
  "org.apache.openoffice.ucp.cmis.CMISContentProvider" witht the
  implementation name of your UCP):

REM  *  BASIC  *

Sub Main
Dim o1, o2, o3, o4
o1 = CreateUnoService("org.apache.openoffice.ucp.cmis.CMISContentProvider")
o2 = CreateUnoService("org.apache.openoffice.ucp.cmis.CMISContentProvider")
MsgBox EqualUnoObjects( o1, o2 )

o3 = CreateUnoService("com.sun.star.comp.FTPContentProvider")
o4 = CreateUnoService("com.sun.star.comp.FTPContentProvider")
MsgBox EqualUnoObjects( o3, o4 )
End Sub


> Also, is the argument in the Command refer to which property is being
> referred?

For the command "getPropertyValues", the argument is a sequence of
com.sun.star.beans.Property, where Name has the name of the property.
Note that it is a sequence even if it a single property. Use
com.sun.star.uno.AnyConverter to convert the any.


Regards
--
Ariel Constenla-Haile
La Plata, Argentina

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: CMIS UCP

2013-06-02 Thread Rajath Shashidhara
Hello everyone,

I have completed some part of the CMISUCP.

I have made my own implementation of XContent, XContentIdentifier
interfaces.

I have partially Completed implementation of the following methods:
queryContent()
execute() -> "getPropertyValues", "open"


I was not very clear about the return type of execute method.
I might have erred there.

for "open", I have created an InputStream object for the specified object,
but since a .odt file is different from text/plain type, the InputStream
gives scrambled output.

This works for the inmemory repo.
The server address, repo id, username, passwd can be changed in the
apache.ooffice.gsoc.cmisucp.cmis.repositoryconnect class.

Please give some pointers about my code.

My code is hosted on my github repository:
https://github.com/rajaths589/CMISContentProvider.git




On Sun, Jun 2, 2013 at 11:06 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello Ariel,
>
> function:
> compareContentIds
> Description:
> 0 is returned, if the identifiers are equal. A value less than 0indiactes, 
> that the Id1 is less than Id2. A value greater than
> 0 is returned, if Id1 is greater than Id2.
>
> What is less than?
> Is it below in the file hierarchy? Are alphabetic?
>
>
> On Sun, Jun 2, 2013 at 8:20 PM, Rajath Shashidhara <
> rajaths.raja...@gmail.com> wrote:
>
>> Just realised my mistake,
>> XContentIdentifier will be passed to queryContent. So, analysis of URL is
>> done in that method itself.
>>
>>
>> On Sun, Jun 2, 2013 at 5:12 PM, Rajath Shashidhara <
>> rajaths.raja...@gmail.com> wrote:
>>
>>> Hi Ariel,
>>>
>>>
>>> I'm still not clear about one thing:
>>> I'm completing the implementation of the function execute() for
>>> "getPropertyValues" command.
>>> But, until now I assumed that the path and name of the object whose
>>> properties I'm getting are contained in the XIdentifier object that is a
>>> parameter to queryContent method. My Implementation of XContent has an
>>> constructor with XContentIdentifier as one of the parameters.
>>>
>>> But, I added a cout statement to the file ucp to print the
>>> XContentIdentifierObject->getContentIdentifier(), thinking that the
>>> returned string will be the path to the content which is being queried.
>>> But, the print statements were a little a bunch of hexadecimals, when I
>>> tried to access a file from open dialog.
>>>
>>> I have not understood the basic way of obtaining the path of the object
>>> that is being referred to get the metadata of it.
>>> Also, is the argument in the Command refer to which property is being
>>> referred?
>>>
>>> Please help.
>>>
>>>
>>> On Sun, Jun 2, 2013 at 3:51 PM, Rajath Shashidhara <
>>> rajaths.raja...@gmail.com> wrote:
>>>
 Yes. I built it myself.
 I'll rebuild it with that switch.
 Thanks.


 On Sun, Jun 2, 2013 at 3:50 PM, Ariel Constenla-Haile <
 arie...@apache.org> wrote:

> On Sun, Jun 02, 2013 at 03:21:42PM +0530, Rajath Shashidhara wrote:
> > Hello,
> >
> > I think there is a bug in OpenOffice 4. Tools->Options->Security.
> > Macro Security Button link is broken.
>
> Did you build it yourself? You have to enable category-b (configure
> with
> --enable-category-b ) for that dialog to work.
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>



 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani

>>>
>>>
>>>
>>> --
>>> Rajath S,
>>> M.Sc(Hons.) Physics,
>>> Birla Institute of Technology and Science - Pilani,
>>> Pilani
>>>
>>
>>
>>
>> --
>> Rajath S,
>> M.Sc(Hons.) Physics,
>> Birla Institute of Technology and Science - Pilani,
>> Pilani
>>
>
>
>
> --
> Rajath S,
> M.Sc(Hons.) Physics,
> Birla Institute of Technology and Science - Pilani,
> Pilani
>



-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


Re: CMIS UCP

2013-06-02 Thread Rajath Shashidhara
Hello Ariel,

function:
compareContentIds
Description:
0 is returned, if the identifiers are equal. A value less than 0 indiactes,
that the Id1 is less than Id2. A value greater than 0 is returned, if Id1
is greater than Id2.

What is less than?
Is it below in the file hierarchy? Are alphabetic?


On Sun, Jun 2, 2013 at 8:20 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Just realised my mistake,
> XContentIdentifier will be passed to queryContent. So, analysis of URL is
> done in that method itself.
>
>
> On Sun, Jun 2, 2013 at 5:12 PM, Rajath Shashidhara <
> rajaths.raja...@gmail.com> wrote:
>
>> Hi Ariel,
>>
>>
>> I'm still not clear about one thing:
>> I'm completing the implementation of the function execute() for
>> "getPropertyValues" command.
>> But, until now I assumed that the path and name of the object whose
>> properties I'm getting are contained in the XIdentifier object that is a
>> parameter to queryContent method. My Implementation of XContent has an
>> constructor with XContentIdentifier as one of the parameters.
>>
>> But, I added a cout statement to the file ucp to print the
>> XContentIdentifierObject->getContentIdentifier(), thinking that the
>> returned string will be the path to the content which is being queried.
>> But, the print statements were a little a bunch of hexadecimals, when I
>> tried to access a file from open dialog.
>>
>> I have not understood the basic way of obtaining the path of the object
>> that is being referred to get the metadata of it.
>> Also, is the argument in the Command refer to which property is being
>> referred?
>>
>> Please help.
>>
>>
>> On Sun, Jun 2, 2013 at 3:51 PM, Rajath Shashidhara <
>> rajaths.raja...@gmail.com> wrote:
>>
>>> Yes. I built it myself.
>>> I'll rebuild it with that switch.
>>> Thanks.
>>>
>>>
>>> On Sun, Jun 2, 2013 at 3:50 PM, Ariel Constenla-Haile <
>>> arie...@apache.org> wrote:
>>>
 On Sun, Jun 02, 2013 at 03:21:42PM +0530, Rajath Shashidhara wrote:
 > Hello,
 >
 > I think there is a bug in OpenOffice 4. Tools->Options->Security.
 > Macro Security Button link is broken.

 Did you build it yourself? You have to enable category-b (configure with
 --enable-category-b ) for that dialog to work.


 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina

>>>
>>>
>>>
>>> --
>>> Rajath S,
>>> M.Sc(Hons.) Physics,
>>> Birla Institute of Technology and Science - Pilani,
>>> Pilani
>>>
>>
>>
>>
>> --
>> Rajath S,
>> M.Sc(Hons.) Physics,
>> Birla Institute of Technology and Science - Pilani,
>> Pilani
>>
>
>
>
> --
> Rajath S,
> M.Sc(Hons.) Physics,
> Birla Institute of Technology and Science - Pilani,
> Pilani
>



-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


Re: updates.openoffice.org

2013-06-02 Thread Kay Schenk
On Sun, Jun 2, 2013 at 7:43 AM, janI  wrote:

> Hi.
>
> I have asked by my infra collegaues, to ensuere we (AOO) have consensus on
> how to handle updates.openoffice.org
>
> I nobody objects I will assume lazy consensus in 72 hours from now and
>
> 1) create trunk/ooo-site/upates
> 2) let https://updates.openoffice.org point to trunk/ooo-site/update
>
> rgds
> jan i.
>

Is this an old URL for actual program updates?

If so, I think it should be going to:

http://www.openoffice.org/projects/update/

Hopefully someone else will weight in here.

-- 

MzK

"You can't believe one thing and do another.
 What you believe and what you do are the same thing."
 -- Leonard Peltier


Re: Blog about sidebar

2013-06-02 Thread Andrea Pescetti

On 31/05/2013 Andre Fischer wrote:

I am writing a blog post about the sidebar. Please have a look at [1].
https://blogs.apache.org/preview/OOo/?previewEntry=the_sidebar_new_and_improved


Good to see it coming out at last!

All typos have already been reported, I just wonder whether you actually 
meant to say "but the content did already exist" or "but the concept did 
already exist" in the first paragraph.


In the last paragraph, I would replace
"OpenOffice is an open source project.  We don't want your money.  You 
can help us by telling us what you don't like and what you miss. Share 
your ideas about how to make the sidebar better."

with something softer (we can use money too!), like
"OpenOffice is an open source project.  You can contribute with monetary 
donations [link: http://www.apache.org/foundation/contributing.html ] , 
but you can also contribute by telling us what you don't like and what 
you miss. Share your ideas about how to make the sidebar better."


Obviously, "Share your ideas" should tell how to do it. You mean in the 
comments below the post? To ooo-dev? In Bugzilla? Perhaps the comments 
are the best solution, but anything will be OK provided that we mention it.


In general, I see you adopted a semi-technical approach, where you 
introduce several important issues and discuss development issues too. I 
see room for another post (don't worry, I'm not asking you for it!) 
where we address the final user only, mainly with screenshots that 
expand on your existing remarks on the user interface and show how to 
use the sidebar. And I see room for a third post too, where we explain 
how extensions developers can use the Sidebar... but let's start with 
this post and the other ones will come.


Regards,
  Andrea.

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



RE: [RELEASE][TRANSLATION]: changes to the README file for 4.0

2013-06-02 Thread Dennis E. Hamilton
++1

One-click access, Yay!!

 - Dennis

-Original Message-
From: Rob Weir [mailto:rabas...@gmail.com] 
Sent: Saturday, June 1, 2013 06:44 PM
To: dev@openoffice.apache.org
Subject: Re: [RELEASE][TRANSLATION]: changes to the README file for 4.0

On Jun 1, 2013, at 3:55 PM, "Dennis E. Hamilton"
 wrote:

>
> +1
>
> The -specific path on the site is also a fine way to locate the 
> check-for-update target, since the release has its release .  It can 
> also have human-readable (and localized) pages that provide update 
> information to someone who visits on-line.
>
> The default page at those locations could provide anything important about 
> those particular versions, including obsolescence by security updates, what 
> release replaced it, how to still obtain it, etc.
>

Good point, especially if there is access via the Help menu or other
prominent place in the UI.  It is a good way to reach out to our
users. If we had it with 3.4.1, for example, we could have added
updated information for things like the language updates or fixes for
the profile-related problems.

A strong form of online engagement with our users could be quite
powerful. Although we had 50 million downloads of AOO 3.4, engaged
users via the announcement list, Facebook, Twitter, etc., is only
around 15,000 users. Imagine if all 50 million had one click access to
the latest info on their installed AOO release?

-Rob


> - Dennis
>
>
> -Original Message-
> From: Rob Weir [mailto:rabas...@gmail.com]
> Sent: Saturday, June 1, 2013 08:55 AM
> To: dev@openoffice.apache.org
> Subject: Re: [RELEASE][TRANSLATION]: changes to the README file for 4.0
>
> [ ... ]
>
> Crazy idea. What if we just made a sub domain for each release?  Or
> equivalently a path under  ooo-site.  Then we could have hard-coded
> standard paths in the code and other systems like:
>
>
> www.openoffice.org/release//README
>
> Could also do LICENSE, release notes, even the update notification XML files
>
> So a special website per release. Then when we do a new release we
> just do an svn copy to populate the new site, and update as needed.
> The code then points to appropriate dir based on build time version
> flag.
>
> -Rob
>
[ ... ]


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: glosary/terminology files in pootle

2013-06-02 Thread janI
On 2 June 2013 15:37, Andrea Pescetti  wrote:

> On 31/05/2013 Jürgen Schmidt wrote:
>
>> On 5/31/13 12:34 PM, janI wrote:
>>
>>> My suggestion is clear: add terminology, and request the reveiw function
>>> to
>>> be used (meaning that a language need to have passed the review, and
>>> warnings have been controlled, in order to be released).
>>>
>> A good idea and we should indeed work towards such a review process. I
>> learned today how difficult it can be to translate some specific things.
>>
>
> Adding terminology seems fine, of course. Requiring the review step is in
> principle OK for me too, but I wonder how it will work for languages where
> we don't have native speakers as committers: does it require that strings
> are explicitly marked as reviewed, or is it enough to ask volunteers to
> check the warnings generated by Pootle and then send a note to the l10n
> list saying that they have considered/ignored warnings appropriately?
>

Asking volunteers to that would be a significant step in getting better
quality.

The nice thing about pootle review is that it can be done be everyone. My
idea was to say something like "before moving po files back to svn, the
committer must run a pootle review, if there are errors/warnings not
explained by the translators on the mailing list, the files will not be
transferred".  I know it puts a little burden on the person who does the
transfer, but similar to receiving a code patch.

rgds
jan I.


> Regards,
>   Andrea.
>
>
> --**--**-
> To unsubscribe, e-mail: 
> dev-unsubscribe@openoffice.**apache.org
> For additional commands, e-mail: dev-h...@openoffice.apache.org
>
>


Re: CMIS UCP

2013-06-02 Thread Rajath Shashidhara
Just realised my mistake,
XContentIdentifier will be passed to queryContent. So, analysis of URL is
done in that method itself.


On Sun, Jun 2, 2013 at 5:12 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hi Ariel,
>
>
> I'm still not clear about one thing:
> I'm completing the implementation of the function execute() for
> "getPropertyValues" command.
> But, until now I assumed that the path and name of the object whose
> properties I'm getting are contained in the XIdentifier object that is a
> parameter to queryContent method. My Implementation of XContent has an
> constructor with XContentIdentifier as one of the parameters.
>
> But, I added a cout statement to the file ucp to print the
> XContentIdentifierObject->getContentIdentifier(), thinking that the
> returned string will be the path to the content which is being queried.
> But, the print statements were a little a bunch of hexadecimals, when I
> tried to access a file from open dialog.
>
> I have not understood the basic way of obtaining the path of the object
> that is being referred to get the metadata of it.
> Also, is the argument in the Command refer to which property is being
> referred?
>
> Please help.
>
>
> On Sun, Jun 2, 2013 at 3:51 PM, Rajath Shashidhara <
> rajaths.raja...@gmail.com> wrote:
>
>> Yes. I built it myself.
>> I'll rebuild it with that switch.
>> Thanks.
>>
>>
>> On Sun, Jun 2, 2013 at 3:50 PM, Ariel Constenla-Haile > > wrote:
>>
>>> On Sun, Jun 02, 2013 at 03:21:42PM +0530, Rajath Shashidhara wrote:
>>> > Hello,
>>> >
>>> > I think there is a bug in OpenOffice 4. Tools->Options->Security.
>>> > Macro Security Button link is broken.
>>>
>>> Did you build it yourself? You have to enable category-b (configure with
>>> --enable-category-b ) for that dialog to work.
>>>
>>>
>>> Regards
>>> --
>>> Ariel Constenla-Haile
>>> La Plata, Argentina
>>>
>>
>>
>>
>> --
>> Rajath S,
>> M.Sc(Hons.) Physics,
>> Birla Institute of Technology and Science - Pilani,
>> Pilani
>>
>
>
>
> --
> Rajath S,
> M.Sc(Hons.) Physics,
> Birla Institute of Technology and Science - Pilani,
> Pilani
>



-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


updates.openoffice.org

2013-06-02 Thread janI
Hi.

I have asked by my infra collegaues, to ensuere we (AOO) have consensus on
how to handle updates.openoffice.org

I nobody objects I will assume lazy consensus in 72 hours from now and

1) create trunk/ooo-site/upates
2) let https://updates.openoffice.org point to trunk/ooo-site/update

rgds
jan i.


Re: Proofing Tool GUI V1.0 - Released

2013-06-02 Thread Marco A.G.Pinto

  
  
Hello!
  
  Thanks for your feedback.
  
  On V1.1 I must enhance some things.
  
  
  
  PS->I haven't coded the Edit menu yet because I didn't go deep
  into the editing strings commands.
      But that can be done with the normal Windows keys: CTR+C/X
  and CTR+V.
  
  Kind regards,
   >Marco A.G.Pinto
     ---
  
  
  On 02/06/2013 15:07, Guy Waterval wrote:


  
I have tried it and it's really easy to use.
Just 2 remarks .
- The edition commands of the menu Edit are not functional (Windows XP)
-  The command Find allows only a search in the "Synonyms" list and not in
the "Meanings". Perhaps a command to extend to the "Meanings" (only my
personal opinion).
I don't know if it could be useful, but there's also another interesting
extension in the languages area : Anaphraseus, which allows to translate
directly in a Writer document, with creation of TM and glossary. Note that
its author has to actualize it for AOO 4.0. But on the AOO 3.4.1, it's
running fine.
Many thanks for your work and a lot of success for your future
developpements.
A+




-- 
  
  



Re: Proofing Tool GUI V1.0 - Released

2013-06-02 Thread Guy Waterval
Hello Marco,

2013/6/1 Marco A.G.Pinto 

>  Hello!
>
> I have created and uploaded a Web page containing the manual, source and
> downloads for Proofing Tool GUI V1.0.
>
> The date there is 2-JUN-2013 but I have everything ready and, in some
> parts of the world, it is already that date.
>
> Site: http://marcoagpinto.cidadevirtual.pt/proofingtoolgui.html
>
> This tool will allow to edit the Thesaurus of OpenOffice and LibreOffice.
>
> Later I want it to edit also the Dictionary and Hyphenation to make it
> compatible also with Firefox and Thunderbird, since their EN-UK dictionary
> is bad and no one volunteered to make a better version.
>
> If you like the tool, maybe you could place it in the official AOO page of
> tools.
>

I have tried it and it's really easy to use.
Just 2 remarks .
- The edition commands of the menu Edit are not functional (Windows XP)
-  The command Find allows only a search in the "Synonyms" list and not in
the "Meanings". Perhaps a command to extend to the "Meanings" (only my
personal opinion).
I don't know if it could be useful, but there's also another interesting
extension in the languages area : Anaphraseus, which allows to translate
directly in a Writer document, with creation of TM and glossary. Note that
its author has to actualize it for AOO 4.0. But on the AOO 3.4.1, it's
running fine.
Many thanks for your work and a lot of success for your future
developpements.
A+
-- 
gw


>
>


Re: [RELEASE]: proposed further schedule towards AOO 4.0

2013-06-02 Thread Shenfeng Liu
+1 to move forward.

For the next snapshot without stlport, we need to plan testing on all the
platforms (Windows/Redhat/Suse/Ubuntu/Mac). But I agree that acceptance
level testing will be enough.

- Shenfeng (Simon)



2013/5/31 Jürgen Schmidt 

> On 5/31/13 9:16 AM, Herbert Dürr wrote:
> > [regarding dropping stlport4]
> >
> > The changes to make the codebase ready for native STL support are done.
> > Builds with stlport4 enabled will continue to work as before.
> >
> > I suggest to use the --without-stlport option for all new builds though:
> > Stlport is a great project, but the versions that OOo depended on had
> > been released more than ten years ago. The library improved greatly
> > since then from a feature, performance and standard compliance
> > perspective. And of course many many bugs have been fixed [1]. In their
> > stlport5 version they continue to improve significantly.
> >
> > Platform STLs have been inspired by stlport, improved greatly too and in
> > the C++11 standardization process divergent views have consolidated. We
> > can rely on the platform STLs. I agree that the timing of the suggested
> > switch is not so good but the switch itself is overdue. A major version
> > change is the right time to do this.
> >
> > [1] relevant examples of fixes that got into stlport releases newer than
> > the ones OOo depended on can be seen at e.g.
> >
> http://stlport.git.sourceforge.net/git/gitweb.cgi?p=stlport/stlport;a=blob;f=etc/ChangeLog;hb=refs/tags/STLport-STLPORT_4_6
> >
> >
> > On 2013/05/28 2:38 PM, Rob Weir wrote:
> >> In theory every fix can cause bugs.  But some fixes are more localized
> >> than others.  Fixes with localized impact are easier to test.
> >> Widespread fixes are harder to test, because more code is potentially
> >> broken.
> >
> > The switch was rendered possible by many little changes over the last
> > couple of months which got our code base more in line with C++11
> > expectations. Snapshots based on these changes have been and are already
> > extensively tested by our great QA community. The switch itself is just
> > another step in evolving towards a high quality release.
> >
> > Additionally testing has it much easier to find issues introduced by the
> > switch should there be any. E.g. we have many testers and almost a
> > thousand automatic tests. They work on different platforms. They cover a
> > lot of different areas. The risk that a regression in that layer could
> > remain undetected is very low.
> >
> > Automated testing ran its 940 autotests (in BVT, FVT, SVT and PVT) on
> > different operating systems for 32bit and 64bit versions. The
> > cross-correlation between pre- and post-switch builds is the same as the
> > auto-correlation for test reruns: the same tests were successful on both
> > sides, the same tests failed for both sides.
>
> to make clear that this is a very important and useful step forward. We
> have to do something to be able for a compiler switch and be prepared
> for the next steps etc.. Not only on MacOS but also on FreeBSD, the
> clang compiler don't like the old stlport version ;-) To be serious an
> upgrade to stlport 5 for example won't help us really. It is the same to
> switch to a new version or to get rid of this external library
> completely. We prefer the latter one.
>
> The working automated tests (at least same result as before) makes me
> confident that the change is ok.
>
> I propose that we prepare the next snapshot without stlport and will see
> what happened with our testing. If we run into obvious problems with the
> stl we will switch back immediately.
>
> Juergen
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
> For additional commands, e-mail: dev-h...@openoffice.apache.org
>
>


Re: glosary/terminology files in pootle

2013-06-02 Thread Andrea Pescetti

On 31/05/2013 Jürgen Schmidt wrote:

On 5/31/13 12:34 PM, janI wrote:

My suggestion is clear: add terminology, and request the reveiw function to
be used (meaning that a language need to have passed the review, and
warnings have been controlled, in order to be released).

A good idea and we should indeed work towards such a review process. I
learned today how difficult it can be to translate some specific things.


Adding terminology seems fine, of course. Requiring the review step is 
in principle OK for me too, but I wonder how it will work for languages 
where we don't have native speakers as committers: does it require that 
strings are explicitly marked as reviewed, or is it enough to ask 
volunteers to check the warnings generated by Pootle and then send a 
note to the l10n list saying that they have considered/ignored warnings 
appropriately?


Regards,
  Andrea.

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: CMIS UCP

2013-06-02 Thread Rajath Shashidhara
Hi Ariel,


I'm still not clear about one thing:
I'm completing the implementation of the function execute() for
"getPropertyValues" command.
But, until now I assumed that the path and name of the object whose
properties I'm getting are contained in the XIdentifier object that is a
parameter to queryContent method. My Implementation of XContent has an
constructor with XContentIdentifier as one of the parameters.

But, I added a cout statement to the file ucp to print the
XContentIdentifierObject->getContentIdentifier(), thinking that the
returned string will be the path to the content which is being queried.
But, the print statements were a little a bunch of hexadecimals, when I
tried to access a file from open dialog.

I have not understood the basic way of obtaining the path of the object
that is being referred to get the metadata of it.
Also, is the argument in the Command refer to which property is being
referred?

Please help.


On Sun, Jun 2, 2013 at 3:51 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Yes. I built it myself.
> I'll rebuild it with that switch.
> Thanks.
>
>
> On Sun, Jun 2, 2013 at 3:50 PM, Ariel Constenla-Haile 
> wrote:
>
>> On Sun, Jun 02, 2013 at 03:21:42PM +0530, Rajath Shashidhara wrote:
>> > Hello,
>> >
>> > I think there is a bug in OpenOffice 4. Tools->Options->Security.
>> > Macro Security Button link is broken.
>>
>> Did you build it yourself? You have to enable category-b (configure with
>> --enable-category-b ) for that dialog to work.
>>
>>
>> Regards
>> --
>> Ariel Constenla-Haile
>> La Plata, Argentina
>>
>
>
>
> --
> Rajath S,
> M.Sc(Hons.) Physics,
> Birla Institute of Technology and Science - Pilani,
> Pilani
>



-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


Re: [AOO 4.0]: migration of AOO 3.4.x/OOo 3.x user profile data - help needed

2013-06-02 Thread Andrea Pescetti

On 29/05/2013 Oliver-Rainer Wittmann wrote:

On 28.05.2013 18:23, Rob Weir wrote:

Do we need to worry about the "messy" profiles that occurred from OOo
3.3.0 upgrades to AOO 3.4.0? That was when we saw spell checking
breaking, missing dictionaries, and crashes. One of the nice things
about a "clean start" with AOO 4.0 was that we avoid these kinds of
problems.

 From my point of view AOO 3.4.x users which had problems due to a
"messy" profile and had solved these problems, can migrate their profile
to AOO 4.0. AOO 3.4.x users which does not had solved their problems are
able to suppress the migration of their existing profile - see the
corresponding FirstStartWizard page for the user profile migration.


I agree with Rob here that, since we had only a few widely reported bugs 
in OpenOffice 3.4.1 and one of them depended on the profile migration, 
we should be rather conservative.


I agree it's better not to migrate extensions, since some of them might 
not work in OpenOffice 4 and their description.xml file in most cases 
will only state that they need "OpenOffice 3.0 or later".



Yes, an easy reset of the user profile would be great.


This would be a very welcome improvement. Maybe technically this could 
invalidate the current profile and ask the user to restart OpenOffice, 
which would start on a clean profile. This would offer a good user 
experience (not optimal, since the optimal one would be triggered by a 
reinstallation too), and the right moment for the cleanup would be just 
after the code that checks if FirstStartWizard must be run and just 
before the profile is loaded and locked (which means that the 
"invalidate" bit must be set in a way that does not require profile 
access but probably a simple filesystem access... OK, I'll stop here!).



Thus, I assume that the risk of a defect or a regression is low when
solving issue 122398 and 122397 for AOO 4.0, except the issue which
would be "copied" from a "messy" user profile.


This is a case to consider. So I would suggest to set the default answer 
to "Don't migrate" for extra safety, especially if we don't have an easy 
profile reset mechanism in place.



Thus, send my your AOO 3.4.x or OOo 3.x user profile in a compressed
form (.zip file or .tar.gz file or ...) or let me know, if you want
to try my builds.


If you had a build available, it would be easier for the QA volunteers 
to test.


Regards,
  Andrea.

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



[WWW]There is no "contact information" on the wiki

2013-06-02 Thread RGB ES
One user on the forums report problems registering on the wiki(1), but did
not find how to report those problems or just ask for help. A "contact
info" page is missing from the wiki. Which is the best way to implement it?

(1) http://forum.openoffice.org/en/forum/viewtopic.php?f=49&t=62022

Regards
Ricardo


Re: CMIS UCP

2013-06-02 Thread Rajath Shashidhara
Yes. I built it myself.
I'll rebuild it with that switch.
Thanks.


On Sun, Jun 2, 2013 at 3:50 PM, Ariel Constenla-Haile wrote:

> On Sun, Jun 02, 2013 at 03:21:42PM +0530, Rajath Shashidhara wrote:
> > Hello,
> >
> > I think there is a bug in OpenOffice 4. Tools->Options->Security.
> > Macro Security Button link is broken.
>
> Did you build it yourself? You have to enable category-b (configure with
> --enable-category-b ) for that dialog to work.
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>



-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


Re: CMIS UCP

2013-06-02 Thread Ariel Constenla-Haile
On Sun, Jun 02, 2013 at 03:21:42PM +0530, Rajath Shashidhara wrote:
> Hello,
> 
> I think there is a bug in OpenOffice 4. Tools->Options->Security.
> Macro Security Button link is broken.

Did you build it yourself? You have to enable category-b (configure with
--enable-category-b ) for that dialog to work.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


pgp61F2OJnfHo.pgp
Description: PGP signature


Re: CMIS UCP

2013-06-02 Thread Ariel Constenla-Haile
Hi Rajath,

On Sun, Jun 02, 2013 at 02:03:56PM +0530, Rajath Shashidhara wrote:
> Hello,
> 
> Sorry for asking too many questions.

It's alright :)

> The method execute in the XContent implementation class I have created,
> which has parameters: com.sun.star.ucb.Command aCommand, int CommandId,
> com.sun.star.ucb.XCommandEnvironment Environment
> 
> now aCommand object has three attributes:
> Name,handle,argument
> 
> So if trying to get Metadata. we use command as getPropertyValues.
> "getPropertyValues" is the name of the command,

I would state it with the sentences switched:

if the application is executing the command "getPropertyValues", you
have to get meta-data from the CMIS service without downloading anything
expect the meta-data itself.

"getPropertyValues" is one of the commands to be first executed by the
application, usually to know if the content represents a folder or
a document.

> argument -> which property to get.

in plural, even if it is only one property, you get a sequence.

> What is handle?

Look at the API reference:
http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Command.html

long Handle;
contains an implementation specific handle for the command. 

It is up to the implementation (that is, you) whether to use it or
simply ignore it. You can ignore it now and come back later.

> Also what is commandid? Any enumeration to represent various commandids?

For CommandId read
http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/XCommandProcessor.html#execute
"is a unique id for the command. This identifier was obtained by calling
XCommandProcessor::createCommandIdentifier."

Most (if not all) implementations in the core code simply ignore this parameter.


Note that different css.ucb.Command's have different Command.Argument,
and XCommandProcessor.execute() returns different things. This is
document in the Dev's Guide, and with more detail in
http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html
The SDK from trunk has a nicer formatted documentation.

For "getPropertyValues" you will have to implement a css::sdbc::XRow,
the internal helper implementation is ucbhelper::PropertyValueSet in 
main/ucbhelper/inc/ucbhelper/propertyvalueset.hxx
main/ucbhelper/source/provider/propertyvalueset.cxx


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


pgpjI40nh__sH.pgp
Description: PGP signature


Re: demande d'infos sur le CD ROM OpenOffice

2013-06-02 Thread Sylvain DENIS

Bonjour,

vous pouvez télécharger Apache OpenOffice : http://www.openoffice.org/fr/

librement,

Sylvain DENIS
Expert TIC, WEB & FLOSS

Le 02/06/13 11:26, Valentin Grätz a écrit :

Bonjour,

Pourrais-je recevoir le CD-rom de OpenOffice, si oui, veuillez répondre a
ce mail en demandant l'adresse.

cordialement,
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

Valentin Grätz - 2GADM, groupe B





demande d'infos sur le CD ROM OpenOffice

2013-06-02 Thread Valentin Grätz
Bonjour,

Pourrais-je recevoir le CD-rom de OpenOffice, si oui, veuillez répondre a
ce mail en demandant l'adresse.

cordialement,
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

Valentin Grätz - 2GADM, groupe B


Re: CMIS UCP

2013-06-02 Thread Rajath Shashidhara
Hello,

I think there is a bug in OpenOffice 4. Tools->Options->Security.
Macro Security Button link is broken.



On Sun, Jun 2, 2013 at 2:03 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello,
>
> Sorry for asking too many questions.
> The method execute in the XContent implementation class I have created,
> which has parameters: com.sun.star.ucb.Command aCommand, int CommandId,
> com.sun.star.ucb.XCommandEnvironment Environment
>
> now aCommand object has three attributes:
> Name,handle,argument
>
> So if trying to get Metadata. we use command as getPropertyValues.
> "getPropertyValues" is the name of the command,
> argument -> which property to get.
> What is handle?
>
> Also what is commandid? Any enumeration to represent various commandids?
>
>
>
> On Sun, Jun 2, 2013 at 12:06 PM, Ariel Constenla-Haile  > wrote:
>
>>
>> Hi Rajath,
>>
>> On Sun, Jun 02, 2013 at 09:58:56AM +0530, Rajath Shashidhara wrote:
>> > Hello,
>> >
>> > Now that I have added a UNO Object of IDL type Content, there are some
>> > methods that need to be implemented.
>> > Out of which, com.sun.star.ucb.XContentIdentifier getIdentifier() is
>> one of
>> > them.
>> > I have read the api reference for XContentIdentifier.
>> >
>> > It needs XComponentContext as an argument for its constructor.
>>
>> XContentIdentifier is a class, it does not have constructor.
>>
>> http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/XContentIdentifier.html
>>
>>
>> > That can be obtained from the argument to the constructor of my UCP
>> class.
>> > But, my question is what is identifier?
>> > Is it the name of the file/folder ?
>> > Also, the second method, getContentProviderScheme()
>> > does it refer to the way of writing the path as cmis:// ?
>>
>> At the beginning you can simply use the default implementation. Try the
>> following macro in an office installation without your extension, it
>> will return cmis as schema is the identifier starts with cmis://
>>
>>
>> REM  *  BASIC  *
>>
>> Option Explicit
>>
>> Sub Main
>> Dim aMap as Object
>> aMap =
>> com.sun.star.container.EnumerableMap.create("string","com.sun.star.ucb.XContentIdentifier")
>>
>> Dim oUCB as Object
>> oUCB = CreateUnoService("com.sun.star.ucb.UniversalContentBroker")
>>
>> Dim sIds()
>> sIds = Array(_
>> "file:///tmp",_
>> "http://www.openoffice.org",_
>> "ftp://d...@openoffice.org/test/dummy",_
>> "cmis://cmis.alfresco.com:80/cmisatom/" )
>> Dim sId$
>> For Each sId in sIds
>> aMap.put( sId, oUCB.createContentIdentifier( sId ) )
>> Next
>>
>> Dim oEnum as Object
>> oEnum = aMap.createElementEnumeration(false)
>> While oEnum.hasMoreElements()
>> Dim oPair as Object
>> oPair = oEnum.nextElement()
>> MsgBox "URL: " + oPair.First + Chr(13) + _
>> "Content ID: " + oPair.Second.getContentIdentifier() +
>> Chr(13) + _
>> "Content Scheme: " +
>> oPair.Second.getContentProviderScheme()
>> Wend
>> End Sub
>>
>>
>> If you want to implement the content identifier yourself, just create
>> a class that implements XContentIdentifier.
>>
>> And simply reuse the XContentIdentifier you get in queryContent():
>>
>> public XContent queryContent(XContentIdentifier xIdentifier) throws
>> IllegalIdentifierException {
>> if (!isValidIdentifier(xIdentifier)) {
>> throw new IllegalIdentifierException();
>> }
>> // Check if a content with given XContentIdentifier already exists
>> // TODO implement a cache mechanism, for example a hash map
>> // Key: xIdentifier.getContentIdentifier()
>> // Value: xIdentifier
>> XContent xRet = queryExistingContent(xIdentifier);
>> if (xRet != null) {
>> return xRet;
>> }
>>
>> CMISContent aContent = new CMISContent(m_xContext, xIdentifier);
>> // cache the new content
>> registerNewContent(aContent);
>>
>> return aContent;
>> }
>>
>>
>> Regards
>> --
>> Ariel Constenla-Haile
>> La Plata, Argentina
>>
>
>
>
> --
> Rajath S,
> M.Sc(Hons.) Physics,
> Birla Institute of Technology and Science - Pilani,
> Pilani
>



-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


Re: CMIS UCP

2013-06-02 Thread Rajath Shashidhara
Hello,

Sorry for asking too many questions.
The method execute in the XContent implementation class I have created,
which has parameters: com.sun.star.ucb.Command aCommand, int CommandId,
com.sun.star.ucb.XCommandEnvironment Environment

now aCommand object has three attributes:
Name,handle,argument

So if trying to get Metadata. we use command as getPropertyValues.
"getPropertyValues" is the name of the command,
argument -> which property to get.
What is handle?

Also what is commandid? Any enumeration to represent various commandids?



On Sun, Jun 2, 2013 at 12:06 PM, Ariel Constenla-Haile
wrote:

>
> Hi Rajath,
>
> On Sun, Jun 02, 2013 at 09:58:56AM +0530, Rajath Shashidhara wrote:
> > Hello,
> >
> > Now that I have added a UNO Object of IDL type Content, there are some
> > methods that need to be implemented.
> > Out of which, com.sun.star.ucb.XContentIdentifier getIdentifier() is one
> of
> > them.
> > I have read the api reference for XContentIdentifier.
> >
> > It needs XComponentContext as an argument for its constructor.
>
> XContentIdentifier is a class, it does not have constructor.
>
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/XContentIdentifier.html
>
>
> > That can be obtained from the argument to the constructor of my UCP
> class.
> > But, my question is what is identifier?
> > Is it the name of the file/folder ?
> > Also, the second method, getContentProviderScheme()
> > does it refer to the way of writing the path as cmis:// ?
>
> At the beginning you can simply use the default implementation. Try the
> following macro in an office installation without your extension, it
> will return cmis as schema is the identifier starts with cmis://
>
>
> REM  *  BASIC  *
>
> Option Explicit
>
> Sub Main
> Dim aMap as Object
> aMap =
> com.sun.star.container.EnumerableMap.create("string","com.sun.star.ucb.XContentIdentifier")
>
> Dim oUCB as Object
> oUCB = CreateUnoService("com.sun.star.ucb.UniversalContentBroker")
>
> Dim sIds()
> sIds = Array(_
> "file:///tmp",_
> "http://www.openoffice.org",_
> "ftp://d...@openoffice.org/test/dummy",_
> "cmis://cmis.alfresco.com:80/cmisatom/" )
> Dim sId$
> For Each sId in sIds
> aMap.put( sId, oUCB.createContentIdentifier( sId ) )
> Next
>
> Dim oEnum as Object
> oEnum = aMap.createElementEnumeration(false)
> While oEnum.hasMoreElements()
> Dim oPair as Object
> oPair = oEnum.nextElement()
> MsgBox "URL: " + oPair.First + Chr(13) + _
> "Content ID: " + oPair.Second.getContentIdentifier() +
> Chr(13) + _
> "Content Scheme: " +
> oPair.Second.getContentProviderScheme()
> Wend
> End Sub
>
>
> If you want to implement the content identifier yourself, just create
> a class that implements XContentIdentifier.
>
> And simply reuse the XContentIdentifier you get in queryContent():
>
> public XContent queryContent(XContentIdentifier xIdentifier) throws
> IllegalIdentifierException {
> if (!isValidIdentifier(xIdentifier)) {
> throw new IllegalIdentifierException();
> }
> // Check if a content with given XContentIdentifier already exists
> // TODO implement a cache mechanism, for example a hash map
> // Key: xIdentifier.getContentIdentifier()
> // Value: xIdentifier
> XContent xRet = queryExistingContent(xIdentifier);
> if (xRet != null) {
> return xRet;
> }
>
> CMISContent aContent = new CMISContent(m_xContext, xIdentifier);
> // cache the new content
> registerNewContent(aContent);
>
> return aContent;
> }
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>



-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


Re: Build problem on epm in the rejuvenate01 branche

2013-06-02 Thread Raphael Bircher

Am 31.05.13 08:59, schrieb Herbert Dürr:

Hi Raphael,

On 2013/05/30 8:27 PM, Raphael Bircher wrote:

Mac OS X 10.7 with XCode 4.3

My build stops at the epm modul. I know there is a workflow to find more
details about the breaker, but I fergot it :-( Can sameone help me?


Go into the module that had the problem and run
   build verbose=t
there.

Thanks Herbert. I fail over the wrong epm Link ;-)

Greetings Raphael



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org