Il 12/05/2011 00:32, Ariel Constenla-Haile ha scritto:
Hello Paolo,
On Wednesday 11 May 2011, 13:33, Paolo Mantovani wrote:
Hallo,
I need to change (via API) the database bound to a given document.
In practice I need to perform via API the same operation that you
normally do via the menu
Hi Fernand,
Il 11/05/2011 19:52, Fernand Vanrie ha scritto:
Paolo ,
I think you need "refresh" your textfields,
when needed i can send you some code tomorrow
Thank you for the suggestion.
Actually I forgot to mention that I did already experimented the
"refresh" method (at textfield collecti
t I'm missing something.
Any help?
thank you
Paolo Mantovani
--
-
To unsubscribe send email to dev-unsubscr...@api.openoffice.org
For additional commands send email to sy...@api.openoffice.org
with Subject: help
Hi Laurent, Juergen,
thanks for prompt reply,
Il 17/03/2011 14:39, Laurent Godard ha scritto:
Hi paolo
long time !!!
i put my imported .py file inside the extension in a pythonpath directory
the main .py files are at extension root
i found this information long time ago and think it is a re
Hallo,
I'm developing a tool in python that perform some very basic image
manipulation.
The tool uses the Python Imaging Library (PIL)
Now I would like to integrate my tool in OOo as a pyuno component, but
PyUno comes without the PIL library
Is there any way to deploy such a dependence insi
Il 05/01/2011 12:31, Andreas Bregas ha scritto:
[]
Problem: This is not very convenient, as the CoreReflection service
is needed to get XIdlClass. Probably in most cases the macro program-
mer knows in advance which types he wants to use. Each type has a
unique name, so it also makes sense to
Hi Frank,
Il 21/12/2010 10:25, Frank Schönheit ha scritto:
Hi Paolo,
[...]
as I was the one who wrote this service (out of a particular need):
Sorry, I wasn't aware that Type is such a ... difficult thing in Basic.
I'll keep that in mind for the next API I design :-\
Thank you, this is great
Il 18/12/2010 15:00, Paolo Mantovani ha scritto:
[...]
unfortunately the implementation is so complicated and counterintuitive
that nobody will use it.
Of course I'm able to use it even in basic,
ehmmm, clearly it was just my optimistic guess...
Thanks to Ariel, Bernard and Stephan fo
courage anybody that would like to
migrate but is afraid of loosing his/her skills
regards
Paolo Mantovani
-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org
technique are in the source code of the
BasicAddonBuilder extension:
http://www.paolo-mantovani.org/downloads/BasicAddonBuilder/
regards
Paolo Mantovani
--8<--
REM * BASIC *
Sub Main
oDlg = CreateUnoDialog(DialogLibraries.Standard.Dialog1)
x
textrange)
having the index mark
I'm sorry for the long post but I was unable to describe the problem in
a shorter way.
Thanks for any help
Paolo Mantovani
-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
Il 18/05/2010 19:00, Daniel Rentz ha scritto:
Hello,
Martin Dobiasch schrieb:
My problem is now to convert the Address Object back to a String
public String CSDRangeAddress(XCellRange range)
{
XCellRangeAddressable xAdd=
(XCellRangeAddressable)UnoRuntime.queryInterface(
XCellRangeAddressable.
Andrew Douglas Pitonyak ha scritto:
When I looked at the service definitions, I thought that I should be
able to send an email message to multiple people at one time. The
setCCRecipient, for example, accepts a list of email addresses. Only the
first address is used.
I tested on Linux using
Hi Fernand,
Fernand Vanrie ha scritto:
Hallo Paolo ,
I was confronted with the same problem, i never tryed to add new nodes
to the regsitery.
I supose that the new enteries becomes "new" properties for the
"com.sun.star.util.PathSettings" service ?
correct
I think you must have to look
at
ep in mind that people could extend the
path configuration. Please write an request for enhancement for the path
dialog. Hopefully I will find a developer who wants to take care of it.
http://qa.openoffice.org/issues/show_bug.cgi?id=110541
Thank you very much
Paolo
Hi all,
I'm trying to add a new named path into the options dialog
(Openoffice.org -> paths)
Of course I'm able to add a new nodes in the org.openoffice.Office.Paths
registry component but although the new node is accessible via the
com.sun.star.util.PathSettings UNO service, I couldn't find any
Hi Frank,
Frank Schoenheit, Sun Microsystems Germany ha scritto:
[...]
Because the problem I originally raised has nothing to do with dialogs.
OK, the problem is "binary resources for extensions" I recognize that.
BUT, some versions ago, when the problem was "text resources for
extensions" the
Hi Frank,
Frank Schoenheit, Sun Microsystems Germany ha scritto:
[...]
I see two problems:
1) this approach does not solve the same problem for dialogs included in
documents.
But nowadays, dialogs in documents can embed their images, can't they? I
remember Noel Power having implemented this a
Hi Frank,
Frank Schoenheit, Sun Microsystems Germany ha scritto:
Hi,
is there a way to deploy images in an extension, which can be loaded
without calling code in that extension? That is, ideally I would like
the extension to deploy a configuration entry containing a URL, where
the OOo can pass
a license. Can you guess what the
problem is?
Please also contact Paolo Mantovani p_ma...@libero.it
I have replied to Alan privately
ciao
Paolo M
-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional c
Hello Frank,
Frank Schoenheit, Sun Microsystems Germany ha scritto:
[]
Vanilla OOo is correct here. Control listeners are expected to be called
only when any user interaction is involved, or programmatic access to
the control (e.g. when you call ListBox.selectItem or some such).
Changes to t
Hi,
I'm having a strange problem that affects only certain versions of ooo 3.1.1
In practice, having a listbox model, if you set the SelectedItems
property, on some ooo version the itemStateChanged event of the ListBox
is raised.
The problem does not affect OOo vanilla version (sun build) b
Hello Carsten,
Just for let you know that almost all your posts in d...@api are labeled
as "important" in my local archive :-)
Thanks for sharing.
Keep it up!!
ciao
Paolo M
Carsten Driesner ha scritto:
> Jan Holst Jensen wrote:
>> Hi all.
>>
>> I am trying to emulate a togglebutton/checkbox in a
Hi *
I need to perform some selection in Draw
Inspecting the result of ThisComponent.getCurrentSelection() I saw that
getCurrentSelection() method results always a
css.drawing.ShapeCollection, regardless you selected one or many shapes
Unfortunately this service is not registered at draw document
Paolo Mantovani ha scritto:
[]
This makes impossible to use the open() method in order to launch a form
from the OnOpen method for example.
^
I meant "onDocumentOpen event"
ciao
Paolo
--
Hi Frank,
Frank Schönheit - Sun Microsystems Germany ha scritto:
Hi Paolo,
The problem is that forms and report definitions are not documents.
I know, actually they are documents, but this should be an
implementation detail and I hope that in future they will be replaced
from something more su
Frank Schönheit - Sun Microsystems Germany ha scritto:
> Hi Paolo,
>
>> Good to hear. This finally corrects a severe inconsistency affecting
>> former versions.
>> However, if you launch a macro from the IDE, ThisComponent points
>> correctly to the ODB document, but if you launch the same macro
Hi all,
As you know, now macros are contained at ODB document level and no more
at subdocument level (forms and reports)
Good to hear. This finally corrects a severe inconsistency affecting
former versions.
However, if you launch a macro from the IDE, ThisComponent points
correctly to the ODB
Hi,
Robert Vojta ha scritto:
> On Wed, May 13, 2009 at 7:14 PM, Mathias Bauer wrote:
>
> Hi Mathias,
>
>> The best documentation is an API that doesn't need one. This deals with
>> the fact that people don't like to read documentation. Having "speaking"
>> names for events is a good thing per s
Hi Cor, Carsten,
Carsten Driesner ha scritto:
> Cor Nouws wrote:
>> Hi,
>>
>> From some threads in the mail archive, I reed it is possible to
>> replace a uno function by one you define yourself.
>> But the example(s) I find are about a component written in Java.
>> Is it possible to do replace U
very often when you're playing with menus.
I have been unable to find any reasons for that behaviour, so I'm asking
here for your suggestions
I'm runnig OOo 3.0.1 (300m15 build:9379), SO:Linux/Ubuntu 8.10
Java(TM) SE Runtime Environment (build 1.6.0_1
Hi,
Giuseppe Castagno ha scritto:
[...]
In this first example, I can access the whole document storage,
creating a storage object starting from the document URL.
[...]
In the second example I'll use the XStorageBaseDocument to retrieve
the document storage, here it goes.
[...]
With the above
ntation/DevGuide/WritingUNO/Jobs/List_of_Supported_Events
HTH
Paolo Mantovani
-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org
Hi Ariel,
Ariel Constenla-Haile ha scritto:
Hello Fernand,
On Friday 20 March 2009, 11:47, Fernand Vanrie wrote:
Paolo ,
Thanks for tyour quick Replay, but the problem must be elsware: its
the codeines before my drawings who are giving trouble
oImagcontrol.visible(false) ..some other action
Fernand Vanrie ha scritto:
> I need some help to resolve a puzzle for me
> I trie to draw a line in a Imagecontrol in a Dialog
> The The line is drawn with the Sub below but only when the sub is called
> from a mouseclick (event) on a other control in the dialog
> When calling the sub from a codeli
The next time I'll add:
"PLEASE, DON'T TRY THIS AT HOME!!!" :-)
Thanks for the clear and very useful explanation
Paolo Mantovani
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
r custom dispatches in order to react to user actions
Please find the small example document in attachment.
ciao
Paolo Mantovani
TestDispatchInterceptor.odt
Description: application/vnd.oasis.opendocument.text
-
To unsubscr
Il domenica 20 luglio 2008 00:56:50 Paolo Mantovani ha scritto:
> Hi Robert,
sorry, I meant to reply to Marcin
ciao
Paolo M
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Robert,
Il venerdì 18 luglio 2008 14:02:31 Marcin Miłkowski ha scritto:
> Robert Vojta pisze:
> > On Thu, Jul 17, 2008 at 10:43 PM, Marcin Miłkowski <[EMAIL PROTECTED]>
> > wrote:
> >> Unfortunately, Basic functions must be defined in the Standard module,
> >> otherwise they don't work. And th
Hi Hal,
Il venerdì 27 giugno 2008 01:17:22 Hal Vaughan ha scritto:
> Is no answer, in this case, because nobody's done this or because it
> can't be done?
It can be done.
Andrew already gave you some good hints (as usual!) but I'll try anyway to add
some (hopefully) useful info
> I used to rem
Hi Ariel,
Il lunedì 16 giugno 2008 07:24:36 Ariel Constenla-Haile ha scritto:
> Hello Paolo,
>
> Paolo Mantovani escribió:
> > In practice, if I well understand Frank's answer, using
> > createWithArguments/AndContext/AndWhatever things it's not better tha
emented in PyUNO ...
> Frank's issue requesting support for new-style service constructors in
> Basic is http://www.openoffice.org/issues/show_bug.cgi?id=82918,
> targeted to 3.X due to lack of resources.
Thank you very much
Paolo Mantovani
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
tURIHelper"
mArgs() = Array("Python", "share")
oScriptURIHelper = oSM.createInstanceWithArguments(sSrvc, mArgs())
s = _
"vnd.sun.star.script:HelloWord.py$HelloWordPython?language=Python&location=share"
s = oScriptURIHelper.getStorageURI(s)
Print s
s = oScriptURIHe
Tobias Krais ha scritto:
> Hi Fernand,
>
>> is it not one of tharguments needed by "LoadComponentFromURL"
>> for altering the "MacroExecutionMode" i ues the code below i supose your
>> there must been also a "non repair" argument ?
>>
>> mFileProperties(0).Name="MacroExecutionMode"
>> mFilePrope
Hi Giuseppe,
Il mercoledì 19 marzo 2008 12:46:05 Giuseppe Castagno ha scritto:
> Hi all,
>
> After I successfully opened a package (e.g. an ODT document) with Java
> using UCB low level APIs, I tried to read the content of one of the
> contained streams.
>
> With no luck so far. Is there somewhere
Hi Carsten,
[...]
> Hi Paolo,
>
> I didn't catch that we talk about the UnoControlContainerModel as a
> "normal" control. It's simple, you cannot nest
> UnoControlContainerModel. Although you can add it them into a
> container model, they won't do anything useful. May be the creator of
> the too
Hi,
Carsten Driesner ha scritto:
[...]
>> Third (and last for now): com.sun.star.awt.UnoControlContainer and
>> com.sun.star.awt.UnoControlContainerModel go beyond my understanding,
>> although I've been using them so far this way
>>
>> - instantiate both at the global service manager
>> - set the
Hi Tobias,
Tobias Krais ha scritto:
> Hi together,
>
> I have a litte application and need to know the full path of the current
> document. Thus I use the XStorable interface. Using the
> xStorable.getLocation() method returns on a Windows XP system (using OOo
> 2.3): file:/F:/DOKUME1/Tobias/EIGE
Hi Cor,
Cor Nouws ha scritto:
> Hi,
>
> I know how to get the OOoLocale and DecimalSeparatorAsLocale [1], but
> I'm looking for the decimal separator itself.
> I know I should get XLocaleData, but the dev guide [2] says "No further
> functionality is discussed." Cannot find it elsewhere.
The fol
Jonathan Kaye ha scritto:
> Hi all,
> Thanks to the excellent advice I've received I now have (I believe) a
> working and bug free macro. One difficult (for me) piece of it was a macro
> called "cutspace" which scans a string until it finds either a fullstop or
> a space (let's call it a chunk) an
Hi,
Il lunedì 11 febbraio 2008 20:12:48 Jonathan Kaye ha scritto:
> Steffen Grund wrote:
> > Hello,
> >
> > I am not the Basic expert here, but wouldn't something like this work?
> >
> > While Position <>
> > Position = Instr(i, ProcessString, " ")
> > etc. etc. etc.
> > Wend
>
Hi Robert,
Il domenica 6 gennaio 2008 17:27:39 Robert Vojta ha scritto:
> Hallo all,
>
> is there an easy way how to obtain object from XTextDocument, which
> received mouse double click event? I would like to know in which XCell
> (in XTextTable) this event happend. My goal is to open special win
Hi Stephan,
Il lunedì 10 dicembre 2007 10:03:49 Stephan Bergmann ha scritto:
> Noelson Duarte wrote:
> > Hi Paolo,
> >
> > Paolo Mantovani escreveu:
> >>> I want to know if is it possible to deploy it as an Addon
> >>
> >> I think yes
> &
Il sabato 8 dicembre 2007 20:46:46 Noelson Duarte ha scritto:
> Hi Paolo,
>
> Paolo Mantovani escreveu:
> > > I want to know if is it possible to deploy it as an Addon
> >
> > I think yes
> >
> > > and, if yes, what
> > > is the URL used wit
Hi Noelson,
Il sabato 8 dicembre 2007 01:37:35 Noelson Duarte ha scritto:
> Hello,
>
> I've a py script with only two functions (no class) . From PyUNO docs I
> know that is possible to deploy scripting framework py files as UNO
> packages. All right.
>
> I want to know if is it possible to deploy
Alle 13:36, sabato 13 ottobre 2007, Mathias Bauer ha scritto:
> Paolo Mantovani schrieb:
> > Regarding the problem that you mentioned in your follow-up I've just seen
> > that Mathias has alreadly answered.
> > I can only add that in the SnippetCreator wizard I've
Hi Alexandro,
Alle 09:36, giovedì 11 ottobre 2007, Alexandro Colorado ha scritto:
> Hi Paolo,
>
> In Barcelona I asked you about the possibility of using SimpleSystemMail
> uno service to be able to send email from OpenOffice.org. The only
> reference I got to how it works is through the snippet o
> For my original question, Mathias Bauer suggested
> implementing a singleton UNO service for the dialog,
> but I was hoping
> for some simpler way. I'm basically trying to create a glossary window
> for my app, acting something like the OOo Stylist (non-modal,
> always-on-top) and fully accessible to macros from the API.
>
> Bit long for a question, but it seems to me a useful problem to resolve.
> Hope someone can help me out here.
regards
Paolo Mantovani
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello Marc,
Alle 14:50, sabato 6 ottobre 2007, Marc Santhoff ha scritto:
> Hi,
>
> when running this macro:
>
>
> global doc as object
>
> sub LockerCheck
> dim args(1) as new com.sun.star.beans.PropertyValue
>
> doc = ThisComponent
> args(0).Name = "xInstance"
> args(0).V
a combobox and I was able to
get the selected value when the user changes the selection
Most probably there is also the possibility to enable/disable and hide/show
the combobox.
For other complex controls than comboboxes I was not able to make any
operations, so I am at my wits end too :-)
ci
now a bit outdated and we should discuss about this and about our goals before
to replace the tools that we're using.
ciao
Paolo Mantovani
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
able to edit existing
snippets.
Just download the original codesnippet from the repository using the "snippet
source" link, and open it with the snippet creator. (you should find
the "open" button in the "SnippetCreator" toolbar )
The only problem
Hi Christian,
Alle 10:09, mercoledì 1 agosto 2007, Ionel Maries Cristian ha scritto:
> eh... that's a start. how about xml processing ? i need a dom-like access
> and very posibly features like xpath and xsl transformation.
I think that you could try with the com.sun.star.xml.dom.DocumentBuilder
currently are 149)
The same interface supports also the method:
XLocaleData.getLanguageCountryInfo(aLocale)
Combining these two methods I've been able to get a list of all supported
languages and countries with their descriptive names.
Of course, descriptive names are given in English
ersion is here:
http://www.paolo-mantovani.org/downloads/SnippetCreator/
Also installation instructions are a bit outdated (based on the old pkgchk
tool)
regards
Paolo Mantovani
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello Rony,
Alle 10:43, venerdì 13 luglio 2007, Rony G. Flatscher ha scritto:
[...]
> After reading the text you pointed me to and looking once more to the
> BasicAddonBuilder I finally looked through the "View -> Toolbars" and
> saw there was a Basic Addon Toolbar, which I found afterwards, and a
Hi Fernand,
Alle 11:11, giovedì 12 luglio 2007, Fernand Vanrie ha scritto:
> Hallo again,
>
> Recantly i experienced that the Model and the Control of an dialog
> ellement have different sizes
>
> more: when setting the userGUI scaling to 100% then the ratio between
> Model and Control is
>
> 1.
Hi Christian,
Alle 20:15, martedì 26 giugno 2007, Christian Lohmaier ha scritto:
> Hi Paolo, *,
>
> On 6/26/07, Paolo Mantovani <[EMAIL PROTECTED]> wrote:
> > Alle 13:10, lunedì 25 giugno 2007, Christian Lohmaier ha scritto:
> > > [IDs of the ML and the Webinterf
Hi Christian,
Alle 13:10, lunedì 25 giugno 2007, Christian Lohmaier ha scritto:
> Hi *,
>
> On 6/25/07, Paolo Mantovani <[EMAIL PROTECTED]> wrote:
> > [...]
> > ops! :-)
> > This is the unwanted result of one of my attempts to get the original
> > message
> Snippet creator o.k., de-installing Snippet creator o.k.,
> * running "unopkg gui" which allows to install extensions also as
> shared: adding o.k., starting Snippet creator o.k., de-installing
> Snippet creator o.k.
>
> So it really seem
hi *
The StarBasic IDE now has a dialog where you can manage localized strings for
your StarBasic dialogs or controls.
From this dialog, by pressig the Add button, you can access to another dialog
that contains a list of all supported language names.
I need to implement a very similar dialog ,
Hello Rony,
Alle 11:47, lunedì 25 giugno 2007, Rony G. Flatscher ha scritto:
> Buongiorno Paolo,
>
> > Sorry for the late reply, but for some reasons I missed your message (now
> > found in the ML archive)
>
> Nothing to be sorry of! Just saw that my original post (2007-06-14)
> popped up yesterda
karound by shortening my
registry path.
The new version is available here:
http://www.paolo-mantovani.org/downloads/SnippetCreator/
Please have a try and let me know.
Thanks again for your feedback
Paolo Mantovani
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Cor,
Alle 21:26, sabato 23 giugno 2007, Cor Nouws ha scritto:
> Hi Paolo,
>
> Thanks for your pointers,
>
> Paolo Mantovani wrote:
> > I this post :
> > http://scripting.openoffice.org/servlets/ReadMsg?listName=dev&msgNo=48
> > you can find a similar rep
Hi ,
Alle 17:17, venerdì 22 giugno 2007, Cor Nouws ha scritto:
> Hi,
>
> Those familiar with VBA might know the PrivateProfileString function,
> that can read/write the Windows registry as well as an ini-file.
> The latter had my interest and I searched for an existing replacement;
> makes convers
Hi,
Alle 10:24, giovedì 3 maggio 2007, Frank Schönheit - Sun Microsystems Germany
ha scritto:
> Hi Cedric,
>
> > I'ld like to create a table to present some data in an OpenOffice.org
> > dialog. I'ld like to know which service(s) should be used to create a
> > table like the one in the "Options >
Alle 09:18, lunedì 23 aprile 2007, Volker Lenhardt ha scritto:
> Paolo Mantovani schrieb:
> > Hi Johnny,
> >
> > Alle 19:43, domenica 22 aprile 2007, Johnny Andersson ha scritto:
> >> 2007/4/21, Johnny Andersson <[EMAIL PROTECTED]>:
> >>> I know how
Hi Johnny,
Alle 19:43, domenica 22 aprile 2007, Johnny Andersson ha scritto:
> 2007/4/21, Johnny Andersson <[EMAIL PROTECTED]>:
> > I know how to do that with simple selections (I am talking about Writer,
> > but it would also be interesting to know the same about Calc) with only
> > one selectio
Alle 00:31, martedì 17 aprile 2007, Johnny Andersson ha scritto:
> I have a small problem that I just can't figure out at these late hours
> (00:13 right now):
>
> I have written a macro that reads highlighted text and replaces it with
> something else (which is calculated by the macro).
>
> To rea
Alle 23:21, lunedì 16 aprile 2007, Johnny Andersson ha scritto:
> Hi!
>
> I can't figure out how to sent a quote character (") to a function.
> '"' doesn't work and things like "\"" doesn't work either, and of course
> """ also will fail.
You can use double quoting inside a string in this way:
pr
Hello Mathias,
Alle 08:41, venerdì 23 marzo 2007, Mathias Bauer ha scritto:
[]
> >> I suppose one can think of more things which contribute to an
> >> extension's required environment, but are not guaranteed to be stable
> >> over major OOo upgrades.
> >
> > dispatch Url's are probably one of
Hi,
Alle 20:20, giovedì 22 marzo 2007, Frank Schönheit - Sun Microsystems Germany
ha scritto:
> Hi Stephan,
[...]
> I suppose one can think of more things which contribute to an
> extension's required environment, but are not guaranteed to be stable
> over major OOo upgrades.
dispatch Url's are
Alle 16:29, sabato 17 marzo 2007, Christoph Jopp ha scritto:
> P.S.:
>
> I forgot to say:
> The Selection-Array consists of two elements more than selections are in
> the document.
> The "real" selections are found through index 1 to n-1.
The first elem (0) is an empty range that represents the cu
Hi Christoph,
Alle 16:26, sabato 17 marzo 2007, Christoph Jopp ha scritto:
> Hi Paolo,
>
> I played a bit around with your code and found following:
>
> You can hand an array of TextRanges to .select()
>
> So the code
>
> oCurrCon = ThisComponent.CurrentController
> oSelect() = ThisComponent.getC
Hi all,
sorry for the dumb question, but I'm not able to figure this out..
I've a macro that modify the selected text (in writer)
example:
txtrange = ThisComponent.CurrentSelection(0)
txtrange.setString("ciao")
At this point the selection is lost, but I can easily restore it in this way:
ThisC
i
The following basic extensions use the same approach for images shown in their
dialogs:
http://www.paolo-mantovani.org/downloads/BasicAddonBuilder/BasicAddonBuilder-20061201.uno.pkg
http://www.paolo-mantovani.org/downloads/SnippetCreator/SnippetCreator-20060707.uno.pkg
In attachment you'
Alle 14:55, venerdì 9 febbraio 2007, Stefan Weigel ha scritto:
> Thank you. It is not exactly the same effect, because the current
> region should only be selected if the current selection contains one
> single cell. Otherwise, if the current selection contains a range of
> more than one cell, the
Hi Stefan,
Alle 22:28, giovedì 8 febbraio 2007, Stefan Weigel ha scritto:
> Hi Paolo,
>
> Paolo Mantovani schrieb:
> > There are some reasons fon not using the method
> > XSheetCellCursor::collapseToCurrentRegion()
> > instead? or perhaps am I missing something ?
>
Alle 22:28, giovedì 8 febbraio 2007, Stefan Weigel ha scritto:
> Hi Paolo,
>
> Paolo Mantovani schrieb:
> > There are some reasons fon not using the method
> > XSheetCellCursor::collapseToCurrentRegion()
> > instead? or perhaps am I missing something ?
>
> O
Hi Stefan,
Thank you for the nice code-snippet. (and useful of course :-)
Just a small question:
I see a sub SelectCurrentRange where you used the dispatchHelper to select the
current region:
There are some reasons fon not using the method
XSheetCellCursor::collapseToCurrentRegion()
instead? or
Alle 17:19, sabato 27 gennaio 2007, Johnny Andersson ha scritto:
[...]
> By the way, do you happen to know if there is a better way to check if a
> cell range is empty than the following?
>
> Dim Blah As Variant
> Blah=ThisComponent.Sheets.getByIndex
> (0).getCellRangeByPosition(0,2,1,2).getDataArr
BASIC *
sub Main
' Recorded by Paolo Mantovani
' Date: Sat Jan 27 14:39:34 2007
' get access to the document
oDocumentModel = ThisComponent
oDocumentView = oDocumentModel.getCurrentController()
oDocumentFrame = oDocumentView.Frame
Hi Johnny,
Alle 13:04, sabato 27 gennaio 2007, Johnny Andersson ha scritto:
> Hi!
>
> Sorry for bothering again...
>
> When I delete the contents of a cell in a macro (for a spreadsheet
> document) I just set ThisComponent.Value to 0 and .String to "" and maybe
> also Formula to "" for each cell.
deal with complicated xml files.
More info:
http://wiki.services.openoffice.org/wiki/Extensions_Packager#BasicAddonBuilder
Please, notice that this is a very first version, partially untested and
potentially dangerous for your data.
Be careful
Any feedback is welcome
Thank you
Paolo mant
Hi Mikhail, Kai,
Thank you very much for your replies.
Sincerely I didn't notice the note about the flush command.
My mistake of course, but perhaps the docu could be improved here:
The examples on the dev guide are all generic (not about a specific content
type), so the flush command is never
Hi,
I solved using the technique explained from Mikhail Voitenko in this old post:
http://api.openoffice.org/servlets/ReadMsg?listName=dev&msgNo=13383
Thank you
Paolo Mantovani
Alle 20:26, venerdì 24 novembre 2006, Paolo Mantovani ha scritto:
> Hi,
>
> me again, about zip package
Hi,
me again, about zip packages...
Thanks to help from Kai Sommerfeld I was able to read any contents into a zip
file
Now I'm trying to *write* contents, but again :-( without any luke
Please see my test code below
Notice that if I try with a regular file URL the code works perfectly and I
ca
dn't thought this, but it actually makes sense, especially for the
manifest.xml that is a special file for ooo packages and in the other hand it
is a regular content for zip files.
Thank you very much
Paolo Mantovani
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I'm trying to read the manifest.xml content into a zipped package using the
UniversalContentBroker service, but without any success.
When I execute the "open" command I get the following error:
Type: com.sun.star.ucb.InteractiveAugmentedIOException
Message: "Got no data stream!"
What am I do
not having searched the ML archive
before to post.
>
> Maybe there is a workaround coping first to thz "global" an then back to
> the document
Good hint! I'll try to do in this way.
Thank you very much
Paolo Mantovani
-
1 - 100 of 228 matches
Mail list logo