Re: [dev] problem with exe installing oxt

2008-05-29 Thread Juergen Schmidt

Dinesh Chothe wrote:

Hello,
 I have developed one extension using java,neatbeans,open
office sdk.
  By this got one .oxt created through neatbeans.  Also  if  double
clicking  on
  this  oxt it gets properly installed in open office and works
fine.
  Now I wanted to create one .exe by which oxt should get installed
in open office
  and one other supported files directory would get copied to
specific location.
 How do I achieve this?
 I also tried by creating one exe which copies other supported
directory to specific
 location but not installs oxt into open office.
 Can anybody guide me how do I solve this problem?

oxt files will be always installed into the office (share or user 
layer), no way to use it from somewhere else.


use officprogrampath/unopkg add bla.oxt to install the oxt in the 
user layer.


What ever you want to install additionally to the oxt is up to you and 
has nothing to do with he office or oxt files.


Juergen

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] extensions, confused...

2008-05-29 Thread Joachim Lingner

Caolan McNamara wrote:

a) Identifiers

In DEV300_m14 we have...

a) com.sun.reportdesigner for the report designer
b) none so becomes
org.openoffice.legacy.sun-presentation-minimizer.oxt for the
presentation minimizer
c) com.sun.wiki-publisher for the wiki publisher but then 
d) com.sun.PresenterScreen-linux_x86 for the Presenter Screen


They all stay the same regardless of the platform except
for com.sun.PresenterScreen-*, so what was the outcome of the last time
this was discussed, should com.sun.PresenterScreen-linux_x86 just be
com.sun.PresenterScreen (my preference) or should the other arch
dependent extensions get mangled identifier names to encode the arch
into them as well ?
Appending the platform is only a means to make the identifier unique. On 
e could replace  the platform string by anything else, as long as the 
result is a unique string.
If there are presenter screen extensions for different platforms, then 
they must have different extension identifiers.


Joachim



b) Shared installs

In DEV300_m14 the wiki publisher (alone of the extensions) cannot be
installed --shared. Is this just an oversight (see
http://www.openoffice.org/issues/show_bug.cgi?id=90055 for patch in that
case) or deliberate ? 


c) Checking out OpenOffice.org

What is now the canonical way to check out OpenOffice.org ? is it meant
to be with alias OpenOffice3 ? 


i.e.
we have the alias Extensions3 for
scext sdext swext tomcat apache-commons reportdesign jfreereport
we have the alias OpenOffice3 which has ...
sccomp, sdext, reportdesign, reportdesign in it


So swext and friends do not appear in the OpenOffice3 (or OpenOffice2)
alias, so they don't get checked out, but they are referenced in the
build.lsts. So in practice is seems to be to check out *both*
OpenOffice3 and Extensions3 to get the full tree required to build

C.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] problem using search and replaceall methods

2008-05-29 Thread Dinesh Chothe
 I have been working with search and replaceall
functions using java and OoSDK as following,

 XReplaceable xReplaceable = (XReplaceable)
UnoRuntime.queryInterface(XReplaceable.class,xTextDocument);
 XReplaceDescriptor xRepDesc =
xReplaceable.createReplaceDescriptor();
 xRepDesc.setPropertyValue(SearchWords, new
Boolean(true));  //for only replacement of exact complete words
 xRepDesc.setSearchString(¢›¸);   //here I am
giving only one char for replacement
 xRepDesc.setReplaceString(**); //replacing
that char with another char
 long nResult = xReplaceable.replaceAll(xRepDesc);
//here my all chars get replaced with specified above string

 But  now  problem  is  my  all  strings  which  has  as
setSearchString  get  replaces  and  also  other  strings  which
  contains setSearchString as* sub string also gets
replaced.*
   for eg.   I wanted to replace this string - ¢›¸
   replaces all this strings- 1. **£ú(R)¸µ¸  .. substring
at start position also gets replaced.
2.  **
   .. this is only perfect replace.
3. ú‡œ¸ú‡**
  .. substring
at end position also gets replaced.

1. how do achieve only perfect replace as search string?

2.  Is  there  replaceFirst()  method  so that  only
first  found  string  get replaced?

3.  XReplaceable xReplaceable = (XReplaceable)
UnoRuntime.queryInterface(XReplaceable.class,*xTextDocument*);

 Here can we use for  only  xTextContent  or
xTextRange or xTextPortion instead of *xTextDocument ?*

*
*














-- 
Thanks and Regards,



Dinesh