[dev] Re: [c++]openoffice exception handling

2005-08-16 Thread Aditya Pandey
Stephan Bergmann sun.com> writes: > The Linux x86 OOo 1.9.x versions built by Sun contain a problematic > libgcc_s.so.1 which causes the problem you describe: If some code is > compiled with a GCC other than the exact version used inside Sun and > then run in an environment where the problemat

[dev] Re: [c++]openoffice exception handling

2005-08-08 Thread Aditya Pandey
> Looks strange, because there is still no inter-language part involved > (UNO bridging). Does the (unmodified) counter example compile and run > successfully? Yes perfectly well. > Seems that even simplest exception handling does not work on your > compiler. Have you tried to write a simple pr

[dev] Re: [c++]openoffice exception handling

2005-08-08 Thread Aditya Pandey
Daniel Boelzle Sun.COM> writes: > Seems that even simplest exception handling does not work on your > compiler. Have you tried to write a simple program (without linking > against any SDK libraries) throwing your own exception type, e.g. As mentioned in my last post, without OO SDK libraries, the

[dev] Calculating widget width on label size [Internationlization] [C++]

2005-07-01 Thread Aditya Pandey
Hi I have been grappling with this problem for quite some time now. I am using awt for drawing dialogs etc. in C++, and I would want that some addon for OpenOffice can be easily internalized. Problem is that in awt, I have not been able to find the width required for showing a label etc, so I ha

[dev] Re: plugin is enabled, but not in menu bar

2005-06-28 Thread Aditya Pandey
James You have not included a AddinName.xcu file which contains the menubar etc. Check the manifest file of the ProtocolHandler_java example in OpenOffice 2.0 SDK for hints. - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

[dev] Re: trying to understand data flow for plugin

2005-06-27 Thread Aditya Pandey
James May be you are looking for this location in OpenOffice 2.0 SDK: IDL related example: $(SDK_HOME_DIR)/examples/DevelopersGuide/Components/JavaComponent Menu addition example: $(SDK_HOME_DIR)/examples/DevelopersGuide/Components/ Addons/ProtocolHandlerAddon_java

[dev] Re: [discuss] Doubt about Openoffice

2005-06-27 Thread Aditya Pandey
Pradeep You can create files in msword format using Java. Not sure on PHP. You could download the OpenOffice SDk for openoffice.org and see examples in it. This is what you could do: Have certain text and programmatically write into a file, attach certain other files and save the document in ms

[dev] Stop Ctrl-C(copy) on password field (UnoControlEditModel)

2005-06-27 Thread Aditya Pandey
Hi I have been developing an addon for openoffice for some time. I just observed a behavior in one of dialogs, in which I use UnoControlEditModel for a password field with echochar set to '*'. But anybody can easily ctrl-c (copy) the echo-ed string and copy into a text editor like vi and see the

[dev] Re: remove .xcu files [using configimport?]

2005-06-23 Thread Aditya Pandey
Joerg Barfurth sun.com> writes: > You don't need configimport to install a schema (xcs) or xcu file. > unopkg installs them in a private location. Thanks Joerg for helping on this. unopkg installs them in my addin folder. for example: /home/adipan/.openoffice.org1.9.91/user/uno_packages/ cache/

[dev] remove .xcu files [using configimport?]

2005-06-23 Thread Aditya Pandey
Hi I have been able to use configimport command for creating/installing a schema I have created for my addin to OpenOffice. When I try to uninstall the addin, the .xcs (schema) file is removed by unopkg utility, but the data file (.xcu) file and cache file (.dat) files are still there. I tried

[dev] ConvertToURL and ConvertFromURL alternatives in C++

2005-06-16 Thread Aditya Pandey
Hi all I am developing an addon for OpenOffice in C++. I was wondering if there is any alternative for ConvertToURL and ConvertFromURL macro (of Basic) in C++ exposed thru some service? - To unsubscribe, e-mail: [EMAIL PROTECTED

[dev] How to traverse paras on a page?

2005-05-12 Thread Aditya Pandey
Hi I have been trying to write a simple page traverser since half a day unsuccessfully. Here is little code: bool blnJump = xPageCursor->jumpToNextPage(); printf ("Jump Page: %d\n", blnJump); Reference xViewCursor2 (xPageCursor, UNO_QUERY); if (xViewCursor2

[dev] On UI/dialogs in C++

2005-05-12 Thread Aditya Pandey
I posted a while ago on this subject and could not elicit any feedback on that. I am looking for some guidance on how best to make easily maintainable/localizable dialogs in C++ for OpenOffice. Has somebody in this group added functionality to OpenOffice requiring addition/changes to UI/dialogs? A

[dev] How to make a UI/Dialogs in C++

2005-05-11 Thread Aditya Pandey
I have been trying to explore howto make UI/Dialogs for my OpenOffice Writer addon. Since the addon has external dependencies and other factors, I need to program addon in C++. But, if I follow the approach mentioned in Sergey Montou's book on OpenOffice Programming in C++, I have to program the

[dev] Re: How to use gdb with OO

2005-05-11 Thread Aditya Pandey
Hi After installing gdb 6.3 (it is not gdb 6.3-debian), I have been able to debug an addon. Thank you all for replying/helping me on this. P.S. OpenOffice still crashes in gdb on exit. But my purpose is served, as I am only developing an addon. -

[dev] How to use gdb with OO

2005-05-10 Thread Aditya Pandey
Hi I apologise for cross posting. If you seen this post earlier in an OO forum, please neglect my cross post. I could not find how to debug my c/c++ program in open office developer's guide and/or on google. This is the first time I am trying to debug my c++ addin in openoffice. I am trying to