Re: [dev] How to add a menu item in the "File" menu?

2007-02-01 Thread Carsten Driesner
JiangChuang wrote:
> Hi, I'm JiangChuang and from Beijing Redflag ch2000 Software Co., Ltd. This 
> is the first time  that I visit here.
> I'm eager to know how to add a menu inte to the "File" menu and their 
> MECHANISM.
> For instance, I want to add a "WetHtml" item below the "Reload" item of the 
> "File" menu, how can I do it? 
> 
Hi JianChuang,

Please see my answer to the same question "[dev] question about add new
menu item" from blueeagle yesterday.

Regards,
Carsten

-- 
Carsten Driesner (cd) - Project Lead OpenOffice.org Framework
Framework wiki: http://wiki.services.openoffice.org/wiki/Framework
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

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



Re: [dev] Class-Path Entry in Manifest Package File and the Location of the Respective jars?

2007-02-01 Thread Stephan Bergmann
[Changed the structure of the quoted mail so that my inline answers are 
in a logical order:]


Rony G. Flatscher wrote:

Hi there,

for finalizing a package for bridging ooRexx with OOo (UNO) I was able
to create a package that can be deployed successfully with

   unopkg add --shared ScriptProviderForooRexx.jar

The scripting language is registered and shows up in the Macro menu.

In order to ease installation and maintenance, I added the Class-Path:
entry to the manifest files, denoting the jars needed to run. These
jar-files were copied to "OOoHome/program/classes" (one DLL needed for
Java and ooRexx, as well as supporting ooRexx scripts to "OOoHome/program".


The Class-Path entry in the manifest of a jar contains URLs for 
additional jars.  If such a URL is relative (e.g., just 
"bsf-rexx-engine.jar"), then it is interpreted relative to the location 
of the jar (in the example, bsf-rexx-engine.jar would thus need to be 
located beside ScriptProviderForooRexx.jar).


Jars that you put into OOo's program/classes directory are not 
automatically made available to the JVM, so that would not work.



This is the manifest file (and the package registers successfully):

Manifest-Version: 1.0
RegistrationClassName: com.sun.star.script.framework.provider.oorexx.S
 criptProviderForooRexx
Class-Path: bsf-v242-20070128.jar bsf-rexx-engine.jar oorexx-uno.jar
Created-By: ...
Built-By: ...
Name: org/oorexx/uno
Specification-Title: ooRexx to/from UNO Bridge
Specification-Version: 0.99
Specification-Vendor: ...
Implementation-Title: org.oorexx.uno-via-bsf4rexx
Implementation-Version: 0.99
Implementation-Vendor: ...
  


Maybe it is something simple/stupid I am overseeing.

Other than that I could create a "mega-package" adding the content of
the other jars into this Scripting framework one. Yet another solution
(which I have employed quite successfully) is to install the
infrastructure-jars (which may be usabel in other Java applications) as
a Java extension.


If the three additional jars (bsf-v242-20070128.jar, 
bsf-rexx-engine.jar, oorexx-uno.jar) are only needed by 
ScriptProviderForooRexx.jar, create a ScriptProviderForooRexx.oxt 
extension (see 
) 
instead that contains all four jars (and can also contain additional 
information like extension identifier, version, update information, see 
).


That way, your functionality (a script provider for ooRexx) comes as a 
self-contained entity (that can be deployed in one step via unopkg or 
OOo's "Tools - Extension Manager..."), without the need to add 
additional jars to special places (OOo's program/classes, JVM's 
extension path).


It is on the extension wish list to have dependencies between extensions 
(so that you could for example have one extension that supplies 
bsf-v242-20070128.jar, bsf-rexx-engine.jar, oorexx-uno.jar, and another 
extension that depends on the first one so that it can use those three 
jars), but that is currently only a wish.


> just a small update to my little (still open!) question: copying the
> jar-files listed on "Class-Path" to the same directory the OOo package
> installer chose to install the jar file containing that Class-Path
> entry will allow to find those jar files.

Yes, see above for why this would work.

> Now, if I knew upfront where the OOo package installer will put the
> jar, I could copy the other jars to that directory. But looking at the
> directory on Windows:
>
> D:\Programme\OpenOffice.org
> 2.1\share\uno_packages\cache\uno_packages\24.tmp_
>
> looks as if that name could not be foreseen ("24.tmp_" looks like an
> arbitrary name).
>
> Now, how about the relative depth of that directory (on both, Windows
> and Linux), would it be always on that level?
> If so, then I could reformulate the Class-Path-entry to read:
>
> Class-Path: ../../../../../program/classes/bsf-v242-20070128.jar 
../..
>  /../../../program/classes/bsf-rexx-engine.jar 
../../../../../program/

>  classes/oorexx-uno.jar
>
> Not looking nice, but serving its purpose (it works). But again: would
> the depth of the cached package directory remain and be the same on
> Linux?

This is extremely fragile.  Where exactly (including relative depth of 
path) extensions are stored is an implementation detail of OOo's 
extension manager that can easily change.


> Or do you think that packaging everything into one jar-file would be
> best?

Not into one jar, but into one OOo extension, see above.

> Regards,
>
> ---rony

-Stephan

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



Re: [dev] Class-Path Entry in Manifest Package File and the Location of the Respective jars?

2007-02-01 Thread Cedric Bosdonnat

Hi Stephan, Rony,

Stephan Bergmann a écrit :
That way, your functionality (a script provider for ooRexx) comes as a 
self-contained entity (that can be deployed in one step via unopkg or 
OOo's "Tools - Extension Manager..."), without the need to add 
additional jars to special places (OOo's program/classes, JVM's 
extension path).


This is already implemented in the Eclipse integration: the generated 
package will include the libraries contained in your project and added 
to the project classpath. Thus you don't have to know how to do it, 
simply use File > Export Menu ;)


I'll be pleased to answer questions on that topic if needed.

Cedric

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



[dev] Suggestion: Centering Writer documents in Print Layout View

2007-02-01 Thread Andrew Mackie
Hello,

Apologies if this is something already covered (I can't find it in the
Options or documentation).

I have a 19" screen and when viewing a Writer document in Print Layout
View at a zoom of 100% (anything less than page width) the document is to
the left of the screen. From a usability point of view this means I'm
turning my head to the left rather than looking straight ahead when
working on the document at my preferred font size. To overcome this I've
physically moved my screen to the right when working on the document ...

So, can there please be (or is there already) a way to have the document
appear in the center of the screen in Print Layout view if the zoom is
less than page width?

Thanks for your efforts - OpenOffice.org is amazing.

Regards,
Andrew

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



Re: [dev] SRC680_m201 777 unused methods nagmail

2007-02-01 Thread Thomas Lange - Sun Germany - ham02 - Hamburg

Hi Caolan,


> SRC680_m201: Detected unused methods for terminal build modules of
> sw/sc/sd/starmath on unxlngx6.pro
> 
> 409 methods:
> http://people.redhat.com/caolanm/callcatcher/m201.sc.log
> first entry is ArgInput::GetArgSelection
> 
> 234 methods:
> http://people.redhat.com/caolanm/callcatcher/m201.sd.log
> first entry is AccessibleSlideView::FocusHasChanged(unsigned short,
> unsigned short)
> 
> 116 methods: 
> http://people.redhat.com/caolanm/callcatcher/m201.sw.log
> first entry is AddressMultiLineEdit::Modified
> 
> 18 methods:
> http://people.redhat.com/caolanm/callcatcher/m201.starmath.log
> first entry is ConvertMathMLToMath(unsigned short)
> 
> please report any false positives to me

About Math:
I don't mind most of the mentioned functions because they are not
virtual and the compiler will tell you if sth is missing. ^_~

But please do not remove the functions
  ConvertMathMLToMath(unsigned short)
  ConvertMathToMathType(unsigned short)
  ConvertMathTypeToMath(unsigned short)
  GetTokenChar(unsigned short, unsigned char)
they are already part of a fix still to be implemented.
If you want to get rid of them for the time being please only make them
into comments.

Thanks in advance!
Thomas


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



Re: [dev] SRC680_m201 777 unused methods nagmail

2007-02-01 Thread Caolan McNamara
On Thu, 2007-02-01 at 11:59 +0100, Thomas Lange - Sun Germany - ham02 -
Hamburg wrote:
> > 
> > 18 methods:
> > http://people.redhat.com/caolanm/callcatcher/m201.starmath.log
> > first entry is ConvertMathMLToMath(unsigned short)
> > 
> > please report any false positives to me
> 
> About Math:
> I don't mind most of the mentioned functions because they are not
> virtual and the compiler will tell you if sth is missing. ^_~
> 
> But please do not remove the functions
>   ConvertMathMLToMath(unsigned short)
>   ConvertMathToMathType(unsigned short)
>   ConvertMathTypeToMath(unsigned short)
>   GetTokenChar(unsigned short, unsigned char)
> they are already part of a fix still to be implemented.
> If you want to get rid of them for the time being please only make them
> into comments.

Sure, I'm not sure if I'm going to fix all (any?) of these myself,
there's an awful lot of them across the various modules for one person
to do all of them. Clearly sc with 409 unused methods would be the first
place to start. (I previously did some callcatcher shrinkage to
binfilter and sw which is why their counts are not as high)

In case of continued interest I've also added 
binfilter: 247 methods
http://people.redhat.com/caolanm/callcatcher/m201.binfilter.log
and
dbaccess: 99 methods
http://people.redhat.com/caolanm/callcatcher/m201.dbaccess.log

I probably should mention that the tool discards virtual methods on the
basis that determining if virtuals are unused is very tricky. So all the
listed methods are non-virtual.

The problem arises in determining if 
a) some of the c-style symbols are used through e.g. dlopen-style stuff
b) if the other methods are, like in this case, a work in progress
c) or if the methods are used only under some platforms or debugging
flags, in which case rather than remove them they just need to be
protected with the same flags as the code in which they are invoked
from. Which is a bit time consuming to figure out.

C.

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



[dev] OOEclipseIntegration released on EclipsePluginCentral

2007-02-01 Thread Cedric Bosdonnat
Hi all,

Just for your information, the Eclipse Integration for OOo development
has just been added and approved on the EclipsePluginCentral:

http://www.eclipseplugincentral.com/Web_Links-index-req-viewlink-cid-870.html

Don't hesitate to use it and give feedbacks.

Cedric

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



[dev] Is a dbgutils build supposed to produce so many messages

2007-02-01 Thread Matthias B.

I've done a --enable-dbgutils build because I thought it could aid in
debugging the frequent OOo crashes we suffer from. I'm a little bit
shocked (although on 2nd thought not really surprised) at the number
of message boxes with failed assertions and other messages about
conditions that are not supposed to happen. Is that expected or is
that just because our application (we're making heavy use of UNO to
construct documents from a Java program) is stressing OOo so much?
Is anybody interested in these messages? E.g. the message below tells
me "Please inform OD". Is OD really interested?

Error: Assertion failed
==
FILE  :  /ooo/src/OOE680_m6/sw/source/core/layout/anchoredobject.cxx
at line 738
ERROR :  " - cache for object
rectangle inclusive spaces marked as valid, but it couldn't be.
Missing invalidation of cache. Please inform OD."
Abort ? (Yes=abort / No=ignore / Cancel=core dump)

Matthias

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



Re: [dev] Class-Path Entry in Manifest Package File and the Location of the Respective jars?

2007-02-01 Thread Rony G. Flatscher
Hi Stephan,

thank you *very* much for your hints and pointers, which I need to
follow and study in full in order to be able to experiment with it!
(Will take some time, though.)

> If the three additional jars (bsf-v242-20070128.jar,
> bsf-rexx-engine.jar, oorexx-uno.jar) are only needed by
> ScriptProviderForooRexx.jar, create a ScriptProviderForooRexx.oxt
> extension (see
> )
> instead that contains all four jars (and can also contain additional
> information like extension identifier, version, update information,
> see ).
>
> That way, your functionality (a script provider for ooRexx) comes as a
> self-contained entity (that can be deployed in one step via unopkg or
> OOo's "Tools - Extension Manager..."), without the need to add
> additional jars to special places (OOo's program/classes, JVM's
> extension path).
That sounds exactly what I have been looking for (in addition I will
have to supply platform dependent DLLs/so platforms and supportive -
platform independent - scripts), could glimpse over it already a bit and
saw that link libraries can be bundled for different platforms.

Also it seems, that deploying the extension will become really easy for
the user, including updating the extension!

Again, thank you very much!

Regards,

---rony



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



Re: [dev] Class-Path Entry in Manifest Package File and the Location of the Respective jars?

2007-02-01 Thread Rony G. Flatscher
Bonsoir Cedric,
> Stephan Bergmann a écrit :
>> That way, your functionality (a script provider for ooRexx) comes as
>> a self-contained entity (that can be deployed in one step via unopkg
>> or OOo's "Tools - Extension Manager..."), without the need to add
>> additional jars to special places (OOo's program/classes, JVM's
>> extension path).
>
> This is already implemented in the Eclipse integration: the generated
> package will include the libraries contained in your project and added
> to the project classpath. Thus you don't have to know how to do it,
> simply use File > Export Menu ;)
>
> I'll be pleased to answer questions on that topic if needed.
Thank you very much for your kind offer! Will definitely look into this
Eclipse plugin (and congratulations for having it now in the Eclipse
Central Plugin repository)!

Though it will take some time, as I would like to study the needed setup
for extension packages "by hand" and experiment with it (in order to
really understand the framework and its ramifications). Once that is in
place, I really would like to get to learn and to know your Eclipse
plugin and what it can do to help free up development and maintenance time!
:)


Regards,

---rony

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



[dev] Ruby binding

2007-02-01 Thread Andrzej Zawadzki
> Juergen Schmidt wrote:
> i would also go forward with JRuby first, based on top of the scripting
> framework and the Java UNO binding. One thing you have to do is to
> provide an appropriate script provider.
That's already done - thanks to Mr. Rony Flatscher I only did some minor edits 
to his script provider for ooRexx, and JRuby scripts are already being called 
in OO. However there's of course some work left with JRuby-UNO integration, 
because bare Ruby is not so convenient as it should be in OO. I'll be working 
on it now.

Andrzej Zawadzki 

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



Re: [dev] Ruby binding

2007-02-01 Thread Rony G. Flatscher
Hi Andrzej,
>> Juergen Schmidt wrote:
>> i would also go forward with JRuby first, based on top of the scripting
>> framework and the Java UNO binding. One thing you have to do is to
>> provide an appropriate script provider.
>> 
> That's already done - thanks to Mr. Rony Flatscher I only did some minor 
> edits 
> to his script provider for ooRexx, and JRuby scripts are already being called 
> in OO. However there's of course some work left with JRuby-UNO integration, 
> because bare Ruby is not so convenient as it should be in OO. I'll be working 
> on it now.
>   
*Great* news !

Looking forward to your first scripts once you finished your preliminary
JRuby-UNO integration!

Regards,

---rony

P.S.: Once I get the ooRexx scripting language support packaged into an
extension package, I will send you the respective information, such that
you can do the same for JRuby, if you want. Still some studying (and
testing!) ahead, so it'll take some time. If it works the way as with
the other extension packages, this will be very attractive, as it allows
a very easy install for the user.



Re: [dev] Suggestion: Centering Writer documents in Print Layout View

2007-02-01 Thread Mathias Bauer
Andrew Mackie wrote:

> Hello,
> 
> Apologies if this is something already covered (I can't find it in the
> Options or documentation).
> 
> I have a 19" screen and when viewing a Writer document in Print Layout
> View at a zoom of 100% (anything less than page width) the document is to
> the left of the screen. From a usability point of view this means I'm
> turning my head to the left rather than looking straight ahead when
> working on the document at my preferred font size. To overcome this I've
> physically moved my screen to the right when working on the document ...
> 
> So, can there please be (or is there already) a way to have the document
> appear in the center of the screen in Print Layout view if the zoom is
> less than page width?

You can't change that ATM except by not using your document window
maximized.

We already have an issue for this enhancement and as soon as we had some
time left this would one of the first enhancements to implement.
Unfortunately time is a scarced resource for us.

I think an experienced developer with good learning skills that doesn't
hesitate to get his hands dirty could implement this in some weeks. Any
volunteer working on this would get our (the Writer's team) full support.

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.

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



Re: [dev] Ruby binding

2007-02-01 Thread Andrzej Zawadzki
> Rony G. Flatscher wrote:
> Once I get the ooRexx scripting language support packaged into an
> extension package, I will send you the respective information, such that
> you can do the same for JRuby.
I'll be very thankful. However I think I'll also need some time to do this 
integration properly:)

Andrzej Zawadzki

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



[dev] [sw-dev]question about table border line

2007-02-01 Thread cokecola13574

Hello!I'm chensuchun.I need some help and advices. When a table is formated 
with thick lines around the table and thin lines insidethe table, if you ask 
OO.o to add a row at the end of the table it's createdwith a thick line between 
it and the rest of the table instead of respecting the"thick lines around the 
table, thin lines inside" rule I want to fix it as "thick lines around the 
table ,thin lines inside"after insert rows at the end of the table,but I find 
it is difficult to get SvxBoxInfoItem of the table in function BOOL 
lcl_CopyCol( const _FndBox*& rpFndBox, void* pPara ).so I modify the 
insert-operation source code (in file sw/source/ui/shells/tabsh.cxx) as 
following:case FN_TABLE_INSERT_COL:
case FN_TABLE_INSERT_ROW:
{
 ///-->get the SvxBoxInfoItem of the table before insert
 SfxItemSet aCoreSet( GetPool(), aUITableAttrRange);
 ::lcl_TableParamToItemSet( aCoreSet, rSh );
 SvxBoxInfoItem aBoxInfo((const SvxBoxInfoItem&) 
aCoreSet.Get(SID_ATTR_BORDER_INNER));   
 
 ///<--End ///do the insert operation
 BOOL bColumn = rReq.GetSlot() == FN_TABLE_INSERT_COL;
 USHORT nCount = 0;
 BOOL bAfter = TRUE;
 if (pItem)
 {
nCount = ((const SfxInt16Item* )pItem)->GetValue();
if(SFX_ITEM_SET == pArgs->GetItemState(FN_PARAM_INSERT_AFTER, TRUE, 
   &pItem))
bAfter = ((const SfxBoolItem* )pItem)->GetValue();
  }
  else if( !rReq.IsAPI() )
   ++nCount;
  if( nCount )
  {
  if( bColumn )
 rSh.InsertCol( nCount, bAfter );
  else if ( !rSh.IsInRepeatedHeadline() )
 rSh.InsertRow( nCount, bAfter );
  bCallDone = TRUE;  ///-->after inserting,reset the table 
border according to the SvxBoxInfoItem  ///   get before 
  SfxItemSet aSet( GetPool(), RES_BOX, RES_BOX, 
   
   SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
 
   0);
  aSet.Put( aBoxInfo );
  ItemSetToTableParam( aSet, rSh );
  ///<--
  break;
 }
nSlot = bColumn ? FN_TABLE_INSERT_COL_DLG : FN_TABLE_INSERT_ROW_DLG;

} Is this modification right,or it would cause other problem or affect other 
operation?How to solve this problem if the modification is wrong ? Thanks for 
help or advices!Kind regards!chensuchun

---
惠普商用台式机dc5750,高性能,低功耗!( 
http://ad4.sina.com.cn/sina/limeng3/mail_zhuiyu/2006/mail_zhuiyu_20061225.html )

===
注册新浪2G免费邮箱( http://mail.sina.com.cn/chooseMode.html )

[dev] RE:[dev] [sw-dev]question about table border line

2007-02-01 Thread cokecola13574

Sorry!
My mail editor works bad.It's difficult to make the mail easy to read.
I send the mail again.

 
Hello!
I'm chensuchun.I need some help and advices. 
 
When a table is formated with thick lines around the table and thin lines 
insidethe table, if you ask OO.o to add a row at the end of the table it's 
createdwith a thick line between it and the rest of the table instead of 
respecting the"thick lines around the table, thin lines inside" rule. 
I want to fix it as "thick lines around the table ,thin lines inside"after 
insert rows at the end of the table,but I find it is difficult to get 
SvxBoxInfoItem of the table in function BOOL lcl_CopyCol( const _FndBox*& 
rpFndBox, void* pPara ).
so I modify the insert-operation source code (in file 
sw/source/ui/shells/tabsh.cxx) as following:
 
case FN_TABLE_INSERT_COL:
case FN_TABLE_INSERT_ROW:
{ 
///-->get the SvxBoxInfoItem of the table before insert 
SfxItemSet aCoreSet( GetPool(), aUITableAttrRange); 
::lcl_TableParamToItemSet( aCoreSet, rSh ); 
SvxBoxInfoItem aBoxInfo((const SvxBoxInfoItem&) 

 aCoreSet.Get(SID_ATTR_BORDER_INNER));  
   
///<--End 
///do the insert operation 
BOOL bColumn = rReq.GetSlot() == FN_TABLE_INSERT_COL; 
USHORT nCount = 0; 
BOOL bAfter = TRUE; 
if (pItem) 
{
  nCount = ((const SfxInt16Item* )pItem)->GetValue();   
 
  if(SFX_ITEM_SET == pArgs->GetItemState(FN_PARAM_INSERT_AFTER, TRUE,
 &pItem))   
  bAfter = ((const SfxBoolItem* )pItem)->GetValue();  
}  
else if( !rReq.IsAPI() )   
++nCount;  
if( nCount )  
{  
if( bColumn ) 
   rSh.InsertCol( nCount, bAfter );  
else if ( !rSh.IsInRepeatedHeadline() ) 
   rSh.InsertRow( nCount, bAfter );  
bCallDone = TRUE;  
   ///-->after inserting,reset the table border according to the 
SvxBoxInfoItem  
   ///   get before   
   SfxItemSet aSet( GetPool(), RES_BOX, RES_BOX,
SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
0); 
   aSet.Put( aBoxInfo );  
   ItemSetToTableParam( aSet, rSh );  
   ///<--  
   break; 
  }
 nSlot = bColumn ? FN_TABLE_INSERT_COL_DLG : FN_TABLE_INSERT_ROW_DLG;   
 
} 
Is this modification right,or it would cause other problem or affect other 
operation?How to solve this problem if the modification is wrong ? 
Thanks for help or advices!
 
Kind regards!
chensuchun

---
惠普商用台式机dc5750,高性能,低功耗!( 
http://ad4.sina.com.cn/sina/limeng3/mail_zhuiyu/2006/mail_zhuiyu_20061225.html )

===
注册新浪2G免费邮箱( http://mail.sina.com.cn/chooseMode.html )

Re: Re: [dev] How to add a menu item in the "File" menu?

2007-02-01 Thread JiangChuang
Hi,Carsten.
Thank you for your answer so much.
I have already tried it according to your answer  and added the "WebHtml" item 
in the English Version successfully;
But I failed to the Chinese Version. 

The added codes in the ' localize.sdf 'file,which is in 
"registry/data/org/openoffice/Office/UI/" directorys, are as follows:

officecfg   registry\data\org\openoffice\Office\UI\GenericCommands.xcu  
0   value   ..GenericCommands.UserInterface.Commands..uno:WebHtmlLabel  
 0   en-GB   Web Html 2002-02-02 
02:02:02
officecfg   registry\data\org\openoffice\Office\UI\GenericCommands.xcu  
0   value   ..GenericCommands.UserInterface.Commands..uno:WebHtmlLabel  
 0   zh-CN   Web浏览器
2002-02-02 02:02:02
officecfg   registry\data\org\openoffice\Office\UI\GenericCommands.xcu  
0   value   ..GenericCommands.UserInterface.Commands..uno:WebHtmlLabel  
 0   zh-TW   Web浏览器
2002-02-02 02:02:02 

But no soap.What will I do for it?
BTW, If I have to do some modifications in the binfilter module?
TIA.

Regards.
JiangChuang




JiangChuang
2007-02-02



发件人: Carsten Driesner
发送时间: 2007-02-01 16:44:56
收件人: dev@openoffice.org
抄送: 
主题: Re: [dev] How to add a menu item in the "File" menu?

JiangChuang wrote:
> Hi, I'm JiangChuang and from Beijing Redflag ch2000 Software Co., Ltd. This 
> is the first time  that I visit here.
> I'm eager to know how to add a menu inte to the "File" menu and their 
> MECHANISM.
> For instance, I want to add a "WetHtml" item below the "Reload" item of the 
> "File" menu, how can I do it? 
> 
Hi JianChuang,

Please see my answer to the same question "[dev] question about add new
menu item" from blueeagle yesterday.

Regards,
Carsten

-- 
Carsten Driesner (cd) - Project Lead OpenOffice.org Framework
Framework wiki: http://wiki.services.openoffice.org/wiki/Framework
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

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