Ariel Constenla-Haile wrote:
Hi Jürgen,
Juergen Schmidt escribió:
[...]
Some examples require a test document to be opened. [...]
In the cases where the doc. has macros in it (for example
DialogComponent [DevelopersGuide_examples/Components/DialogComponent],
RuntimeDialogExecutor
[DevelopersGuide_examples/BasicAndDialogs/CreatingDialogs/RuntimeDialogExecutor]),
it is very annoying that for debugging, one has to change the default
macro security settings. Is there an option in the command line to open
docs. with macros but without the macro warning?
as far as i know it can't be disabled from the command line. But the
user can add a base directory where he stored the examples to the
trusted sources. Not the best solution but it has to be done only once.
but when debugging, the user directory is created inside the NB
Project's build folder (build/soffice_debug/user), so here it does not
make sense to include a secure directory: every time you clean the
project, this settings get lost.
you are right, stupid idea from me ;-) Anyway it is not possible at the
moment.
Related to this, it is also annoying that every first time one debugs
(or after cleaning the project), one has to pass through the first
registration wizard. Can this be turned off?
well, the behaviour is the same as when you develop a plugin for NB
with NB and debug your plugin. We thought that it is good idea but i
have to agree it is or can be annoying. It is possible to disable it
with the option -nofirststartwizard. Maybe we should think to make it
configurable in our NB plugin.
tested that and works :-)
I'm not sure if this is needed for examples (they are for studying, so
no much debugging is needed), but for real projects, at least me, I
debug/clean the project several times, so this first start wiz. is
annoying (but now I've learned how to get rid of it)
future improvement for the plugin ...
Options pages example:[...]
How do I indicate the image URL for the node options page ? [...]
it is already fixed in OO.org 2.4. You can simply use relative Urls to
the xdl. Put the image in the same directory and use ./myimage.png or
whatever. Try a developer snapshot of 2.4.
just done and works! dlg:src="../images/mainapp_32_8.png" works fine
both in Linux and Windows ... although I'm sorry to say that the problem
I reported a few hours ago
(http://extensions.openoffice.org/servlets/ReadMsg?list=dev&msgNo=1202)
also occurred with the options pages example: not only the name proposed
in
http://api.openoffice.org/docs/DevelopersGuide/Extensions/Extensions.xhtml#1_12_Saving_and_Reading_Data_for_the_Options_Page
org.openoffice.desktop.deployment.options.ExtensionData
but the one following the sdk examples structure:
org.openoffice.sdk.extensions.optionspages.ExtensionData
make the extension impossible to install on Windows.
I had to shorten the name to org.openoffice.sdk.OptionsPages: any name
with more chars. is impossible in Windows (at least in my Spanish
Windows installation, where folder names are very verbose like "Datos de
programa", "Documents and Settings", etc.) [Although here I "blame" OOo:
isn't it too much a folder named
"com.sun.star.comp.deployment.configuration.PackageRegistryBackend"?]
i agree, but changing this would be probably only a temporary solution.
We will see how we can fix it.
Calc Add-ins:[...]
The functions in the example
SDK_HOME/examples/java/Spreadsheet/CalcAddins.java use an "internal"
com.sun.star.beans.XPropertySet argument. I couldn't figure out what is
this intended for. Should I keep this, or does this belong to some old
API and should be removed?
keep it, it is still a valid API. It should be documented in the
DevGuide or you can find infos in the IDL reference for the Addin
service.
strange to say this, but this time the IDL reference is more clear than
the Dev's Guide (which does not say a word about it:
http://api.openoffice.org/docs/DevelopersGuide/Spreadsheet/Spreadsheet.xhtml#1_6_Spreadsheet_Add-Ins)
well, it get hopefully fixed or improved soon in the DevGuide when the
wiki version will be available ;-)
Juergen
Now I got it:
http://api.openoffice.org/docs/common/ref/com/sun/star/sheet/AddIn.html
::com::sun::star::beans::XPropertySet
for a ::com::sun::star::beans::XPropertySet interface to the
SpreadsheetDocument making the function call. Only one parameter of this
type is allowed in each function. It can be used to query document
settings like SpreadsheetDocumentSettings::NullDate .
Regards
Ariel.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]