openoffice-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajath Shashidhara <rajaths.raja...@gmail.com>
Subject Re: "Insert" command
Date Fri, 21 Jun 2013 08:05:51 GMT
Hello Juergen,

If I have to create new content, where do I obtain the properties of the
content. InsertCommandArgument2 has no attribute to store the content
Properties.

For example to insert a folder - what is its "Title" ?


On Fri, Jun 21, 2013 at 12:49 PM, Jürgen Schmidt <jogischmidt@gmail.com>wrote:

> On 6/21/13 9:16 AM, Jürgen Schmidt wrote:
> > On 6/21/13 9:09 AM, Rajath Shashidhara wrote:
> >> Hello Juergen,
> >>
> >> I mean if "getPropertyValues" is requested for non-existing content
> what is
> >> the exception that must be thrown?
> >
> > I have to check the code of another UCP to say it exactly, I can't
> > remember for sure...
>
> first guess InteractiveIOException but as mentioned before I have to
> check the code ...
>
> >
> > But the UCP handles or communicate errors via exceptions, don't ask me
> > why. Have you checked the exceptions and error codes (enums) on
> >
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/module-ix.html
> ?
> >
> > Juergen
> >
> >
> >>
> >>
> >> On Fri, Jun 21, 2013 at 12:09 PM, Jürgen Schmidt <jogischmidt@gmail.com
> >wrote:
> >>
> >>> On 6/21/13 8:05 AM, Rajath Shashidhara wrote:
> >>>> Hello,
> >>>>
> >>>> The explanation for "insert" command is not clear to me.
> >>>>
> >>>> If I call "insert" for a document, then I'll have to set the
> InputStream
> >>> to
> >>>> to existing document. What happens If I call "insert" for a folder?
> >>>
> >>> you create a folder
> >>>
> >>>>
> >>>> Also, if the object specified by path doesnt exist on the repository,
> >>> what
> >>>> kind of error should be raised? I mean the XContentIdentifer points
> to a
> >>>> location that doesnt exist, what kind of exception must be thrown?
> >>>
> >>> you should create it and only in case of an error you handle the error
> >>> appropriately and return back to the UCB.
> >>>
> >>> In general you can open, edit and save document and folders, can create
> >>> new document and can delete document, rename document/folder, basic
> file
> >>> operations and all should be supported.
> >>>
> >>> Juergen
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
> >>> For additional commands, e-mail: dev-help@openoffice.apache.org
> >>>
> >>>
> >>
> >>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@openoffice.apache.org
>
>


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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message