Re: [dev] About fontwork gallery
Hi Kami, if you do not use AVOID_BURN_IN_FOR_GALLERY_THEME then all formating properties on the shape in the gallery are hard set. The disadvantage is that such shapes will not work any longer with styles as all formating properties are overridden at the shape itself. When creating gallery themes one should think about which formating properties must be set hard and which should be come from the styles. Therefore AVOID_BURN_IN_FOR_GALLERY_THEME is advised if you plan to share your theme with others. Regards, Christian KAMI wrote: Hi Christian! What is the advantage to use AVOID_BURN_IN_FOR_GALLERY_THEME variable? I have never used it before, but I have created several galleries... Thanks, KAMI - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Action Listener Problem
Hi. Do the following in your class: public final class Thesis extends WeakBase implements com.sun.star.lang.XServiceInfo, com.sun.star.frame.XDispatchProvider, com.sun.star.lang.XInitialization, com.sun.star.frame.XDispatch, java.awt.event.ActionListener and later on implement this: public void GUI() { JFrame.setDefaultLookAndFeelDecorated(true); JFrame frame = new JFrame(Test Frame); // Do not do this! This will force the JavaVM to quit, // and thus breaks the Office. // see javadoc for javax.swing.JFrame: // you are NOT an application, only an extension ;-) //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JButton clickButton = new JButton(Click Me); clickButton.setActionCommand(clickme); clickButton.addActionListener(this); frame.add(clickButton); frame.pack(); frame.setVisible(true); } public void actionPerformed(ActionEvent actionEvent) { if (clickme.equals(actionEvent.getActionCommand())) { JOptionPane.showMessageDialog(new Frame(), Button 'Click me' clicked.); } } I took this nearly 1:1 from http://java.sun.com/docs/books/tutorial/uiswing/components/button.html which is a great source for code examples in Java. Your question seems to have no relevance to OpenOffice.org, so this may be the wrong mailing list. I'd suggest some Java specific list for questions like these. HTH, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] About fontwork gallery
I have created several galleries without AVOID_BURN_IN_FOR_GALLERY_THEME option. Are there any way to convert it in gallery. Or Should I read all of them with this option? Have we gota script that add files to gallery as integrated elements? gengal does not support this option. Thanks, KAMI Christian Lippka írta: Hi Kami, if you do not use AVOID_BURN_IN_FOR_GALLERY_THEME then all formating properties on the shape in the gallery are hard set. The disadvantage is that such shapes will not work any longer with styles as all formating properties are overridden at the shape itself. When creating gallery themes one should think about which formating properties must be set hard and which should be come from the styles. Therefore AVOID_BURN_IN_FOR_GALLERY_THEME is advised if you plan to share your theme with others. Regards, Christian KAMI wrote: Hi Christian! What is the advantage to use AVOID_BURN_IN_FOR_GALLERY_THEME variable? I have never used it before, but I have created several galleries... Thanks, KAMI - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] Ruby binding
Rony G. Flatscher wrote: Hi Andrzej, Stephan Bergmann wrote: Andrzej Zawadzki wrote: is there any kind of work going on with Ruby binding to UNO? None that I am aware of, at least. Go ahead. :) If jruby is an option for the interpreter you could make your life rather easy by taking advantage of Apache BSF (cf. http://jakarta.apache.org/bsf), which allows deploying scripting languages via Java easily. As the OOo scripting framework is written in Java you could use that and make jruby available for it. As I have been successfully employing ooRexx via that infrastructure (and the gamma version is humming along very nicely) I could point you to the respective Java programs which you would have to adapt for it. Not a terrible big job, as you could take over 98% 1:1. Andrzej, 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. I have such an evaluation on my todo/wish list and have already talked about it with the JRuby developers. Especially the integration of JRuby in Java and the support of JRuby in Netbeans make it really interesting for me. Your help would be highly appreciated. Juergen If not, were there any attempts on completing such a task? I'm a Ruby/C++ programmer and I'd surely like such a binding done in OO. Since I'll have some free time in the next few months I'm wondering whether I could help in such a project. Again, if JRuby is an option and you are interested in making it available rather quickly, then drop me a note. Regards, ---rony - 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]
Re: [dev] About fontwork gallery
After the styles are burned in the shape they can only be removed with the 'Format-Default' menu entry on an inserted shape. But then all formatings are set to default. So its hard to do that afterwards. It is not really an error so I think it is ok to just use it for newly created themes. I don't think we have a script yet and gallery should be reworked to use xml format sooner or later anyway. I just don't know who will do that yet. KAMI wrote: I have created several galleries without AVOID_BURN_IN_FOR_GALLERY_THEME option. Are there any way to convert it in gallery. Or Should I read all of them with this option? Have we gota script that add files to gallery as integrated elements? gengal does not support this option. Thanks, KAMI Christian Lippka írta: Hi Kami, if you do not use AVOID_BURN_IN_FOR_GALLERY_THEME then all formating properties on the shape in the gallery are hard set. The disadvantage is that such shapes will not work any longer with styles as all formating properties are overridden at the shape itself. When creating gallery themes one should think about which formating properties must be set hard and which should be come from the styles. Therefore AVOID_BURN_IN_FOR_GALLERY_THEME is advised if you plan to share your theme with others. Regards, Christian KAMI wrote: Hi Christian! What is the advantage to use AVOID_BURN_IN_FOR_GALLERY_THEME variable? I have never used it before, but I have created several galleries... Thanks, KAMI - 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]
Re: [dev] About fontwork gallery
Hi Xiuzhi, since your mail does not contain any question I can't answer much. Have you tried using the environment variables? Do you know how to use them? To repeat the basic idea behind this, the fontwork shapes you see in the fontwork gallery are take from a hidden theme from the office gallery. You can see and edit this hidden theme when you start the office in an environment where GALLERY_SHOW_HIDDEN_THEMES is defined. Then you can drag all shapes back into an empty document, modify them and drag them back. Now the gallery files (sg36.sdg,sg36.sdv,sg36.thm) are updated by the office itself. Regards, Christian xiuzhi--CH2000 wrote: Hi Christian,KAMI: Thank you for your reply.I do not have a clear description of what I want to know in my last e-mail. 1.After I click the Fontwork gallery icon on the Drawing toolbar,the Fontwork Gallery dialog will popup. 2.In the Fontwork Gallery Dialog,we can see all kinds of shapes with the default word Fontwork. 3 After double-click the object to enter text edit mode,the Fontwork will insert to the document. My focus is to modify the default textFontwork to another text,for example,Chinain Chinese.That is :the shaps with the default word China will appear in the Fontwork Gallery Dialog when I click the Fontwork Gallery icon,the China will insert to the document. Thank you! Xiuzhi Hi Xiuzhi, just set the environment variable GALLERY_SHOW_HIDDEN_THEMES and AVOID_BURN_IN_FOR_GALLERY_THEME to something and then start office. Now you can drag'n'drop shapes to and from the hidden gallery themes. Regards, Christian PS: Info is from http://wiki.services.openoffice.org/wiki/Environment_Variables xiuzhi--CH2000 wrote: hi all, I want to known how can edit the fontwork gallery files (sg36.sdg,sg36.sdv,sg36.thm). I use OpenOffice open the three file, but I can not understand the file (I only can see the binary code). What tools can do this? Can you tell me? I want to change the word used in the fontwork gallery ,for example using font instead of fontwork.How can I do this? - 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]
Re: [dev] About fontwork gallery
Hi Christian, My question is How I can modify the fontwork gallery default text, Fontwork, to another default text? Another question is how to add a theme as a object on gallery dialog? That is, after I select a theme on the gallery left side,a sub theme will appear in the right gallery frame just like a object.then when I click the subtheme,the objects of subtheme will appear. how can I do this? Thanks. Xiuzhi Hi Xiuzhi, since your mail does not contain any question I can't answer much. Have you tried using the environment variables? Do you know how to use them? To repeat the basic idea behind this, the fontwork shapes you see in the fontwork gallery are take from a hidden theme from the office gallery. You can see and edit this hidden theme when you start the office in an environment where GALLERY_SHOW_HIDDEN_THEMES is defined. Then you can drag all shapes back into an empty document, modify them and drag them back. Now the gallery files (sg36.sdg,sg36.sdv,sg36.thm) are updated by the office itself. Regards, Christian xiuzhi--CH2000 wrote: Hi Christian,KAMI: Thank you for your reply.I do not have a clear description of what I want to know in my last e-mail. 1.After I click the Fontwork gallery icon on the Drawing toolbar,the Fontwork Gallery dialog will popup. 2.In the Fontwork Gallery Dialog,we can see all kinds of shapes with the default word Fontwork. 3 After double-click the object to enter text edit mode,the Fontwork will insert to the document. My focus is to modify the default textFontwork to another text,for example,Chinain Chinese.That is :the shaps with the default word China will appear in the Fontwork Gallery Dialog when I click the Fontwork Gallery icon,the China will insert to the document. Thank you! Xiuzhi Hi Xiuzhi, just set the environment variable GALLERY_SHOW_HIDDEN_THEMES and AVOID_BURN_IN_FOR_GALLERY_THEME to something and then start office. Now you can drag'n'drop shapes to and from the hidden gallery themes. Regards, Christian PS: Info is from http://wiki.services.openoffice.org/wiki/Environment_Variables xiuzhi--CH2000 wrote: hi all, I want to known how can edit the fontwork gallery files (sg36.sdg,sg36.sdv,sg36.thm). I use OpenOffice open the three file, but I can not understand the file (I only can see the binary code). What tools can do this? Can you tell me? I want to change the word used in the fontwork gallery ,for example using font instead of fontwork.How can I do this? - 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]
Re: [dev] About fontwork gallery
xiuzhi--CH2000 wrote: Hi Christian, My question is How I can modify the fontwork gallery default text, Fontwork, to another default text? As I told you in my last mail. Use the environment variables to make the hidden themes visible. Drag all shapes from the fontwork theme to an empty document. Change the text on all shapes. Delete all shapes from the fontwork theme and drag the changed shapes from the document back to the theme. Close the office and you have updated gallery binary files. Another question is how to add a theme as a object on gallery dialog? That is, after I select a theme on the gallery left side,a sub theme will appear in the right gallery frame just like a object.then when I click the subtheme,the objects of subtheme will appear. how can I do this? Do you want to add that feature to the office gallery or to the fontwork gallery dialog? In both cases you would have to change the implementations to support that feature. Implementation for the office gallery is in svx/source/gallery, implementation for the fontwork gallery dialog is in svx/source/gallery/fontwork. Please do not get confused here. The office gallery is different to the fontwork dialog where you can choose the fontwork layouts. The fontwork dialog is also called fontwork gallery but it is not the same as the office gallery. To make this more complicate, the fontwork dialog uses the office gallery to store the fontwork layouts. But you don't see them in the office gallery as it is a hidden theme. Regards, Christian Thanks. Xiuzhi Hi Xiuzhi, since your mail does not contain any question I can't answer much. Have you tried using the environment variables? Do you know how to use them? To repeat the basic idea behind this, the fontwork shapes you see in the fontwork gallery are take from a hidden theme from the office gallery. You can see and edit this hidden theme when you start the office in an environment where GALLERY_SHOW_HIDDEN_THEMES is defined. Then you can drag all shapes back into an empty document, modify them and drag them back. Now the gallery files (sg36.sdg,sg36.sdv,sg36.thm) are updated by the office itself. Regards, Christian xiuzhi--CH2000 wrote: Hi Christian,KAMI: Thank you for your reply.I do not have a clear description of what I want to know in my last e-mail. 1.After I click the Fontwork gallery icon on the Drawing toolbar,the Fontwork Gallery dialog will popup. 2.In the Fontwork Gallery Dialog,we can see all kinds of shapes with the default word Fontwork. 3 After double-click the object to enter text edit mode,the Fontwork will insert to the document. My focus is to modify the default textFontwork to another text,for example,Chinain Chinese.That is :the shaps with the default word China will appear in the Fontwork Gallery Dialog when I click the Fontwork Gallery icon,the China will insert to the document. Thank you! Xiuzhi Hi Xiuzhi, just set the environment variable GALLERY_SHOW_HIDDEN_THEMES and AVOID_BURN_IN_FOR_GALLERY_THEME to something and then start office. Now you can drag'n'drop shapes to and from the hidden gallery themes. Regards, Christian PS: Info is from http://wiki.services.openoffice.org/wiki/Environment_Variables xiuzhi--CH2000 wrote: hi all, I want to known how can edit the fontwork gallery files (sg36.sdg,sg36.sdv,sg36.thm). I use OpenOffice open the three file, but I can not understand the file (I only can see the binary code). What tools can do this? Can you tell me? I want to change the word used in the fontwork gallery ,for example using font instead of fontwork.How can I do this? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] Send Document as Email
Hi all, OO has a button which allows to send the current document as an email-attachment with the default mailclient. I am writing a C# program where I have to open the default mail client and attach a file. In the web are several rumours about the mailto: command taking an attach attribute or not. I tried a lot - it does not work. How did you guys solve this problem? I tried OO with several mailclients, the button with the letter-symbol always opens the default mailclient and attaches the document. Is it possible to get this piece of code? thanks a lot Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] Development at a Glance - Weekly Update CW05
Hi, here is the weekly update for calendar week (CW) 05: CW05 http://blogs.sun.com/GullFOSS/entry/development_at_a_glance_weekly10 Regards, Dieter -- Sun Microsystems GmbH Dieter Loeschky Nagelsweg 55Senior Manager Software Engineering 20097 Hamburg StarOffice / OpenOffice.org Development Germany Phone: +49(0)40 236 46 500 http://www.sun.com [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] issue 73988
Hi all I've created issue N 73988 and for some reason can't get answer from OpenOffice team about this issue if it will be fixed and when? Could you please provide me with information about it? In which release i can expect it to be fixed if it is planned to fix this bug? Thank you -- With best regards, Sergey Chernolyas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] question about add new menu item
Hi all, I have some troubles with the display of the new added menu item. For examlpe, I want to add a menu item WebHtml in the file menu. I modified the correlative files and added the necessary codes in those files. The result is: The place of new menu item is there but the WebHtml is missing. The files and added codes that I modified are as follows: -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ svx\inc\globlmn_tmpl.hrc #define ITEM_FILE_OPENDOC \ Identifier = SID_OPENDOC ; \ Command = .uno:Open ; \ HelpID = SID_OPENDOC ; \ Text [ de ] = ��~ffnen... ; \ Text [ en-US ] = ~Open... ;\ Text [ x-comment ] = ; \ /***added begin*/ \ #define ITEM_FILE_WEBHTML \ Identifier = SID_WEBHTML ; \ Command = .uno:WebHtml ; \ HelpID = SID_WEBHTML ; \ Text [ de ] = Web ~Html... ; \ Text [ en-US ] = Web ~Html...; \ Text [ x-comment ] = Preview Web ~Html... ; \ /***added end*/ \ #define ITEM_FILE_AUTOPILOT \ MenuItem\ {\ Identifier = SID_AUTOPILOTMENU ; \ Command = .uno:AutoPilotMenu ; \ HelpID = SID_AUTOPILOTMENU ; \ Text [ de ] = ~Assistent ; \ Text [ en-US ] = A~utoPilot ; \ Text [ x-comment ] = ;\ }; -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ sfx2\inc\sfxsids.hrc #define SID_MAIL_SEND (SID_SFX_START + 364) #define SID_WEBHTML (SID_SFX_START + 393)/*added*/ #define SID_MAIL_FILE (SID_SFX_START + 365) -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ sfx2\sdi\sfx.sdi SfxObjectItem Open SID_OPENDOC (SfxStringItem URL SID_FILE_NAME,SfxStringItem FilterName SID_FILTER_NAME,SfxStringItem OpenFlags SID_OPTIONS,SfxStringItem Password SID_PASSWORD,SfxStringItem FilterOptions SID_FILE_FILTEROPTIONS,SfxInt16Item Version SID_VERSION,SfxStringItem Referer SID_REFERER) [ /* flags: */ AutoUpdate = FALSE, Cachable = Cachable, FastCall = FALSE, HasCoreId = FALSE, HasDialog = TRUE, ReadOnlyDoc = TRUE, Toggle = FALSE, Container = TRUE, RecordAbsolute = FALSE, RecordPerSet; Asynchron; /* config: */ AccelConfig = TRUE, MenuConfig = TRUE, StatusBarConfig = FALSE, ToolBoxConfig = TRUE, GroupId = GID_APPLICATION; ] /**/add begin SfxObjectItem WebHtml SID_WEBHTML () [ /* flags: */ AutoUpdate = FALSE, Cachable = Cachable, FastCall = FALSE, HasCoreId = FALSE, HasDialog = TRUE, ReadOnlyDoc = TRUE, Toggle = FALSE, Container = TRUE, RecordAbsolute = FALSE, RecordPerSet; Asynchron; /* config: */ AccelConfig = TRUE, MenuConfig = TRUE, StatusBarConfig = FALSE, ToolBoxConfig = TRUE, GroupId = GID_FORMAT; ] /*/added end //-- SfxObjectItem OpenHyperlink SID_OPENHYPERLINK (SfxStringItem URL SID_FILE_NAME,SfxStringItem FilterName SID_FILTER_NAME,SfxStringItem OpenFlags SID_OPTIONS,SfxStringItem Password SID_PASSWORD,SfxStringItem FilterOptions D_FILE_FILTEROPTIONS,SfxInt16Item Version SID_VERSION,SfxStringItem Referer SID_REFERER) [ /* flags: */ AutoUpdate = FALSE, Cachable = Cachable, FastCall = FALSE, HasCoreId = FALSE, HasDialog = TRUE, ReadOnlyDoc = TRUE, Toggle = FALSE, Container = TRUE, RecordAbsolute = FALSE, RecordPerSet; Asynchron; /* config: */ AccelConfig = FALSE, MenuConfig = FALSE, StatusBarConfig = FALSE, ToolBoxConfig = FALSE, GroupId = GID_APPLICATION; -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ sw\uiconfig\swriter\menubar\menubar.xml menu:menuitem menu:id=.uno:Reload/ menu:menuitem menu:id=.uno:VersionDialog/ !-- added begin -- menu:menuitem menu:id=.uno:WebHtml / !--added end -- menu:menuseparator/ 刘涛 Beijing Redflag CH2000 Software Co., Ltd. Address: 北京亦庄经济技术开发区地盛北街 1号A区3号楼 Postalcode: 100176 Tel: 8610-58022828-605 Mobile: 13126869000 Email: [EMAIL PROTECTED]
Re: [dev] External header guards
Agreed. Let's change it into a kill MSVC 7.1 party instead .. ;-) Kai On 23 Jan 2007 11:42:35 +0100, Thorsten Behrens [EMAIL PROTECTED] wrote: Hi Kai, you wrote: Could you run those same tests on a local disk? It would be fun to see if it's only you Sun guys who have NFS who are taking the hit .. :-) Heh ;-) Aren't you planning a similar setup for a highly parallel build cluster? I expect the relative increase in build time to become significantly smaller on local disk, because the NFS build is about completely I/O-bound... I don't think it's worth arguing this back forth though, because that complete external guards removal is a mere cosmetic change, will come for sure (after binning the last braindead compiler), and the scripting for it is already there working fairly well (thanks, kendy!). Cheers, -- Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kai Backman, Software Engineer, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dev] SRC680_m201 777 unused methods nagmail
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 C. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] question about add new menu item
blueeagle wrote: Hi all, I have some troubles with the display of the new added menu item. For examlpe, I want to add a menu item WebHtml in the file menu. I modified the correlative files and added the necessary codes in those files. The result is: The place of new menu item is there but the WebHtml is missing. The files and added codes that I modified are as follows: Hi LiuTao, -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ svx\inc\globlmn_tmpl.hrc #define ITEM_FILE_OPENDOC \ Identifier = SID_OPENDOC ; \ Command = .uno:Open ; \ HelpID = SID_OPENDOC ; \ Text [ de ] = ��~ffnen... ; \ Text [ en-US ] = ~Open... ;\ Text [ x-comment ] = ; \ /***added begin*/ \ #define ITEM_FILE_WEBHTML \ Identifier = SID_WEBHTML ; \ Command = .uno:WebHtml ; \ HelpID = SID_WEBHTML ; \ Text [ de ] = Web ~Html... ; \ Text [ en-US ] = Web ~Html...; \ Text [ x-comment ] = Preview Web ~Html... ; \ /***added end*/ \ This is only needed for context menus. The menu bars are now specified by xml files. #define ITEM_FILE_AUTOPILOT \ MenuItem\ {\ Identifier = SID_AUTOPILOTMENU ; \ Command = .uno:AutoPilotMenu ; \ HelpID = SID_AUTOPILOTMENU ; \ Text [ de ] = ~Assistent ; \ Text [ en-US ] = A~utoPilot ; \ Text [ x-comment ] = ;\ }; -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ sfx2\inc\sfxsids.hrc #define SID_MAIL_SEND (SID_SFX_START + 364) #define SID_WEBHTML (SID_SFX_START + 393)/*added*/ #define SID_MAIL_FILE (SID_SFX_START + 365) -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ Looks good. sfx2\sdi\sfx.sdi SfxObjectItem Open SID_OPENDOC (SfxStringItem URL SID_FILE_NAME,SfxStringItem FilterName SID_FILTER_NAME,SfxStringItem OpenFlags SID_OPTIONS,SfxStringItem Password SID_PASSWORD,SfxStringItem FilterOptions SID_FILE_FILTEROPTIONS,SfxInt16Item Version SID_VERSION,SfxStringItem Referer SID_REFERER) [ /* flags: */ AutoUpdate = FALSE, Cachable = Cachable, FastCall = FALSE, HasCoreId = FALSE, HasDialog = TRUE, ReadOnlyDoc = TRUE, Toggle = FALSE, Container = TRUE, RecordAbsolute = FALSE, RecordPerSet; Asynchron; /* config: */ AccelConfig = TRUE, MenuConfig = TRUE, StatusBarConfig = FALSE, ToolBoxConfig = TRUE, GroupId = GID_APPLICATION; ] /**/add begin SfxObjectItem WebHtml SID_WEBHTML () [ /* flags: */ AutoUpdate = FALSE, Cachable = Cachable, FastCall = FALSE, HasCoreId = FALSE, HasDialog = TRUE, ReadOnlyDoc = TRUE, Toggle = FALSE, Container = TRUE, RecordAbsolute = FALSE, RecordPerSet; Asynchron; /* config: */ AccelConfig = TRUE, MenuConfig = TRUE, StatusBarConfig = FALSE, ToolBoxConfig = TRUE, GroupId = GID_FORMAT; ] May be the GroupId could be GID_APPLICATION. /*/added end //-- SfxObjectItem OpenHyperlink SID_OPENHYPERLINK (SfxStringItem URL SID_FILE_NAME,SfxStringItem FilterName SID_FILTER_NAME,SfxStringItem OpenFlags SID_OPTIONS,SfxStringItem Password SID_PASSWORD,SfxStringItem FilterOptions D_FILE_FILTEROPTIONS,SfxInt16Item Version SID_VERSION,SfxStringItem Referer SID_REFERER) [ /* flags: */ AutoUpdate = FALSE, Cachable = Cachable, FastCall = FALSE, HasCoreId = FALSE, HasDialog = TRUE, ReadOnlyDoc = TRUE, Toggle = FALSE, Container = TRUE, RecordAbsolute = FALSE, RecordPerSet; Asynchron; /* config: */ AccelConfig = FALSE, MenuConfig = FALSE, StatusBarConfig = FALSE, ToolBoxConfig = FALSE, GroupId = GID_APPLICATION; -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ sw\uiconfig\swriter\menubar\menubar.xml menu:menuitem menu:id=.uno:Reload/ menu:menuitem menu:id=.uno:VersionDialog/ !-- added begin -- menu:menuitem menu:id=.uno:WebHtml / !--added end -- menu:menuseparator/ That's ok. The xml file alone doesn't specify the language dependent text for the menu entry. The are configuration files which define these language dependent labels. Look at the officecfg project. It contains the folder registry/data/org/openoffice/Office/UI. There are two different configuration files involved: GenericCommands.xcu App-Module-NameCommands.xcu If you add a command which is used by more than one application you should add a node to the GenericCommands.xcu file. Otherwise to the corresponding module dependent Commands.xcu file. The key for the configuration entry must be the command name which, in your case,
[dev] Class-Path Entry in Manifest Package File and the Location of the Respective jars?
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. 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. Thankful again for any hints... ---rony
Re: [dev] Send Document as Email
Hi Daniel, On Wednesday, 2007-01-31 15:31:06 +0100, Daniel Ulmer wrote: I am writing a C# program where I have to open the default mail client and attach a file. In the web are several rumours about the mailto: command taking an attach attribute or not. I tried a lot - it does not work. It depends on what syntax the mail program understands, Mozilla based clients use attachment=... in the mailto: URI, others need an --attach or -a option. Is it possible to get this piece of code? Take a look at the {OOoPath}/program/senddoc script. However, since you mentioned C# I somewhat assume you're in the Windows world, then you might need to get acquainted with MAPI. Eike -- OOo/SO Calc core developer. Number formatter stricken i18n transpositionizer. OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't send personal mail to the [EMAIL PROTECTED] account, which I use for mailing lists only and don't read from outside Sun. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] issue 73988
Sergey Chernolyas wrote: Hi all I've created issue N 73988 and for some reason can't get answer from OpenOffice team about this issue if it will be fixed and when? Could you please provide me with information about it? In which release i can expect it to be fixed if it is planned to fix this bug? You should be a little bit more patient. You can't expect that every created issue is worked on immediately. Besides that it seems that is wan not possible to reproduce it as the issue is resolved with worksforme. As the developer nn stated you have to provide a filter name in your code that exports the file. 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] Class-Path Entry in Manifest Package File and the Location of the Respective jars?
Hi there, 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. 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? Or do you think that packaging everything into one jar-file would be best? Regards, ---rony 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. 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. Thankful again for any hints... ---rony
[dev] How to add a menu item in the File menu?
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? Thanks. Regards. Yours Faithfully. JiangChuang Name: JiangChuang/蒋闯 Company:Beijing Redflag CH2000 Software Co., Ltd. Postalcode:100176 Tel: 8610-58022828-332 Mobile: 13520133098 Email: [EMAIL PROTECTED]