[api-dev] How to make changes to a Dialog persistent

2011-12-14 Thread Fernand Vanrie
When have made some changes to a Dialog (stored in a Librarie) I trye to make this changes persitent for future use. The secrets are in the methods off the dialog.model odialog.model.read( ???) odialog.model.write(???) found a confusing explaination in the DSK but nullware any examples how to us

[api-dev] Re: Getting information from some site via Basic IDE – possible? How?

2011-07-19 Thread Fernand Vanrie
Andor, Yes you can do it , using the "connection provider"or using the UCB". Go to the OpenOffice unofficial forum and try "http" or "https" and you will find some code you can use to acces a website adress. Gave also look a some Translater extentions, they use Google Translate and send and get

[api-dev] Re: Displaying Multiple Dialogs from BASIC

2011-06-16 Thread Fernand Vanrie
Hal , when using a Listner the Listener subroutine is called with a "EventObject" the EventObject.source is the ButtonControl the EventObject.source.context is the DialogControl oDialogControl = oEvent.source.context On Jun 16, 2011, at 4:59 AM, Fernand Vanrie wrote: On 16/06/

[api-dev] Re: Displaying Multiple Dialogs from BASIC

2011-06-16 Thread Fernand Vanrie
On 16/06/2011 09:52, Hal Vaughan wrote: On Jun 16, 2011, at 3:30 AM, Fernand Vanrie wrote: Hal , Y ou can set a Dialogcontrol visible or not , but we need a timeloop to keep it visible Am I right, then, in assuming that the time loop is there because once that particular instance of the

[api-dev] Re: Displaying Multiple Dialogs from BASIC

2011-06-16 Thread Fernand Vanrie
g off the X and you can add a "cancelbuton" who call a sub who close the dialog and do someting more... Thanks! Hal On Jun 16, 2011, at 3:30 AM, Fernand Vanrie wrote: Hal , Y ou can set a Dialogcontrol visible or not , but we need a timeloop to keep it visible i use 2 sub's for

[api-dev] Re: Displaying Multiple Dialogs from BASIC

2011-06-16 Thread Fernand Vanrie
Hal , Y ou can set a Dialogcontrol visible or not , but we need a timeloop to keep it visible i use 2 sub's for open and closing Sub Opendialog bEnd = false oDialogcontrol.setvisible(true) Do Wait 100 ' keep computer running (should use "wait for key event" if existed) Loop while not bEnd

[api-dev] Re: Adding Items to a Sub-Menu

2011-06-16 Thread Fernand Vanrie
Ariel, The stuff you did with a dialog's an menu's inside, could be a alternative in basic ? the examples made by Ariel i found here Hope it helps Fernand Hello Hal, On Wednesday 15 June 2011, 02:05, H

[api-dev] Can a RichTextControl filled with formated text from a WriterDoc

2011-06-14 Thread Fernand Vanrie
Can i fill a Dialog RichTextControl with (formated) text from a Writer Doc. ? Ariel learned us to format a text in aRichTextcontrol , but how can i copy some text from a writerDoc to a RichTextControl without losing the text formating ? Thanks for any hint Fernand -- -

[api-dev] Re: using connection and https

2011-06-09 Thread Fernand Vanrie
Stephan, it can: using the UCB, but i am still confused about the "posting" part of it have a look at the forum <http://www.oooforum.org/forum/viewtopic.phtml?t=88980> Greetz Fernand On Wed, May 25, 2011 at 5:46 PM, Fernand Vanrie <mailto:s...@pmgroup.be>> wrote

[api-dev] Re: using connection and https

2011-05-25 Thread Fernand Vanrie
Christian , Thanks again, BTW do you know who can give me more info about OO - SSL connections ? Greetz Fernand On Wed, May 25, 2011 at 4:01 PM, Fernand Vanrie wrote: Christian , Thanks for your valuable help. After i succeeded to use the OO connection stuff to use Google Translations i

[api-dev] Re: using connection and https

2011-05-25 Thread Fernand Vanrie
otextOut.setOutputStream(opipe) 'maakt dat pipe kan schrijven otextout.setencoding("ISO-8859-1") otextOut.writestring(ByteArrayToString(aByteArray)) 'schrijft de string naar Pipe s = oTextinp.readstring(Array("}"), true) msgbox(s) end sub Hi Fernand, *

[api-dev] using connection and https

2011-05-25 Thread Fernand Vanrie
Hallo, I trie to connect to Googleapis using OO and https ? Code: oConnector = createUnoService("com.sun.star.connection.Connector") oConnection = oConnector.connect("socket,host=www.googleapis.com,port=80") oConnection.write( StringToByteArray( "GET https://www.googleapis.com/tasks/v1/lists/MDk

[api-dev] Re: Toolbar items: how to get them to show the shortcut letter underlined ?

2011-05-25 Thread Fernand Vanrie
Rony, When making mi extentions i found (by accident if forgot to use ~) the system (at least for menubar items) automaticly gives a underlined letter Hop it helps Fernand Hi there, in the meantime I have been able to add shortcuts to the toolbar items and they are operational. However, th

[api-dev] Re: MailMerge settings

2011-05-12 Thread Fernand Vanrie
hope it works Fernand 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

[api-dev] Re: MailMerge settings

2011-05-11 Thread Fernand Vanrie
Paolo , I think you need "refresh" your textfields, when needed i can send you some code tomorrow Greetz Fernand 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 Modify->Chang

[api-dev] Re: Where to plaid for PDF as graphic format

2011-04-15 Thread Fernand Vanrie
t; in OO documents, with allow us to show a EPS without ratserized preview and the tranformation to a PDF go's well also. The problem with a OBJECT is that it have some properties like a "graphic" but not all ( a object can not been "cropped" ). Greetz Fernand Hi Fe

[api-dev] Where to plaid for PDF as graphic format

2011-04-14 Thread Fernand Vanrie
Where an how can i plaid to have PDF as graphic format, like Jpg, Tif etc So we can place a PDF as a picture in our OO documents Thanks for any consideration Fernand -- - To unsubscribe send email to dev-unsubscr...@api.openoff

[api-dev] Re: PDF/A validation problem

2011-04-11 Thread Fernand Vanrie
Seva, Most probably this validation message is comming due to Pictures in your document who has not the right "meta data" greetz Fernand Hi all, when I convert a text document in PDF/A-1a using OOo (3.x) and open it with Reader I see the info message "File is compatible with PDF/A standard

[api-dev] Re: Severe PrinterSettings Problems, need confirmation

2011-03-16 Thread Fernand Vanrie
Mathias, Any idea, who is working on or in what version we can do some testing ? thanks Fernand Hi Fernand, On 09.03.2011 14:24, Fernand Vanrie wrote: Hallo Sinds 3.3 (windows) all PrinterSettings except the Printer Name are no longer persistent and not stored anywhere not in the profile

[api-dev] Re: UNO AWT TabPageContainer issue 113362

2011-03-10 Thread Fernand Vanrie
Stupid me :-) have overlooked "DEV300" have not downloaded this version yet sorry sory Peter, can confirm: OOO330m20 -Windows model.Createinstance("com.sun.star.awt.tab.UnoControlTabPageContainerModel") gives a null object Greetz Fernand Hi, the Basic code in http://eis.services.openo

[api-dev] Re: UNO AWT TabPageContainer issue 113362

2011-03-10 Thread Fernand Vanrie
Peter, can confirm: OOO330m20 -Windows model.Createinstance("com.sun.star.awt.tab.UnoControlTabPageContainerModel") gives a null object Greetz Fernand Hi, the Basic code in http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Ftabcontrol doesn't work for me in m101 (General E

[api-dev] Severe PrinterSettings Problems, need confirmation

2011-03-09 Thread Fernand Vanrie
Hallo Sinds 3.3 (windows) all PrinterSettings except the Printer Name are no longer persistent and not stored anywhere not in the profile, not in the document. Within the settings we have the "options" who are not Printer specific and we have "Settings" who are bound to a specific printer.

Re: [api-dev] about macros and database

2011-02-18 Thread Fernand Vanrie
Joe, Andrew Pitonyack has a excelent Book and Base Document with lot of macro's Google also for "Roberto Benitez" , he wrote a Base book and have also lots of macro's an information on the web (www.lulu.com) Andrew Pitonyack has also a excelent Book and Base Document with lot of macro's Hope

Re: [api-dev] Error setPropertyValue(Unknown Source) in Calc

2011-02-07 Thread Fernand Vanrie
Dietmar, I found that the API using the Borderline Structure is broken in LO, but so far everyting is still working in OO LO trie to make Borderline more compatible with MSword. Greetz Fernand Current investigations indicate, that it is an issue of this particular Openoffice.org flavor

Re: [api-dev] Opening the file in MS Word, linked images wrong size

2011-02-07 Thread Fernand Vanrie
cdfleischmann , in OO or LO the "Keep Ratio" must been active before you start the export to MS word. When "nothing" is set i supose the Converting go's back to the original ratio's who are this we find back in MS word. I supose this can been done with the API to ? Hope it Helps Fernand Hel

Re: [api-dev] Opening the file in MS Word, linked images wrong size

2011-02-07 Thread Fernand Vanrie
cdfleischmann, xProps.getPropertyValue("IsPixelContour") have no sence when using "linked" images, this property only works with embeded images. Maybe thats the reason for your problems. When setting xProps.setPropertyValue("Width", width); to a percentage and not a fixed value, can also be the

Re: [api-dev] Grid control on OOo 3.3.0

2011-02-04 Thread Fernand Vanrie
Bernard , Frank, Oliver, Folowed this thread with great interest, because i believe that Dialogs are the way to make a controllable Frontend to our databases. One remark: We can also implement a DatasourceBrowser in a dialog, less coding with more functionality (for the moment). My hope i

Re: [api-dev] problem of determining the location in the document

2011-01-26 Thread Fernand Vanrie
Zbigniew , a Viewcursor tell's you if you are in a TextTable, cell , TextFrame, Textsection the Viewcursor.position is the position in the document. Witht this ellements you always know where you are in the document, no ? Say you have a Table2 in a cell of Table1 If you know the "start"

Re: [api-dev] ConfigurationProvider getByHierarchicalName regression

2011-01-10 Thread Fernand Vanrie
Bernard , could that also been the reason why oCfgManager = oDoc.getUIConfigurationManager() oToolbarSettings = oCfgManager.getSettings( xResourceURL, True) no longer works ? Greetz Fernand Hi, Running a code that works in previous versions (up to 1.1.5 !) I found that it throws an exce

[api-dev] Re: how to change a Graphic ContourPolyPolygon

2011-01-06 Thread Fernand Vanrie
OK found it myself: a ContourPolyPolygon is a bouble Array, with a Array of plygons and Arrays of Point structures based on the size of the original graphic oGraphicobject.graphic) who are needed to build the controur Polygon. oPoly(Polypoints()) now it's easy to change the Polygon points to

[api-dev] how to change a Graphic ContourPolyPolygon

2011-01-05 Thread Fernand Vanrie
Hallo, I Trie to preserve the Graphicobject ContourPolyPolygon after i changed the Graphic behind this object. The original Contour is still there but with the size , position off the old Graphic. How can i using BASIC, change this ContourPolyPolygon also named " ::com::sun::star::drawing::P

Re: [api-dev] How to make MenuBar chnages Persistent par Document.

2011-01-05 Thread Fernand Vanrie
OCarsten, Thanks, works like a charm now :-) Fernand - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org

[api-dev] How to make MenuBar chnages Persistent par Document.

2011-01-05 Thread Fernand Vanrie
Hallo, I can make disappear some Buttons from a Menubar in a document). But After saving an reopening the doc, the buttons are "again" in place. my code uses oMenuBar.Persistent = true In the ODK help i can find: If the property Persistent is *true* changes on the structure of the user inte

Re: [api-dev] How to insert the text/bookmark to position where I found another text

2010-12-27 Thread Fernand Vanrie
gintare, Alot off questions, i think you must trie to understand the use off a viewcursor and textcusors to place content in a document. Every where on the net you can find code to work with viewcursor etc.. Hope it helps Fernand * Q – uno.RuntimeException * 1) Phylosophuc question: Is i

Re: [api-dev] Are there changes to the resourceURL 's ?

2010-12-22 Thread Fernand Vanrie
s like a bug (i run OOO330m17 on Windows) Fernand Hello Fernand, On Tuesday 21 December 2010, 16:42, Fernand Vanrie wrote: Ariel , Stupit me :-) not a typo, just the wrong copy of one of my tests The problem is still there oFrame = oDoc.getCurrentController().getFrame() oCf

Re: [api-dev] Are there changes to the resourceURL 's ?

2010-12-22 Thread Fernand Vanrie
tax: "private:resource/$type/$name. It is only allowed to use ascii characters for type and name. here $type = "toolbar" and $name = "standardbar" smiles like a bug (i run OOO330m17 on Windows) Fernand Hello Fernand, On Tuesday 21 December 2010, 16:42, Fernand Vanri

Re: [api-dev] Are there changes to the resourceURL 's ?

2010-12-21 Thread Fernand Vanrie
present ?? where can i find the right resourceURL's ? fernand Hello Fernand, On Tuesday 21 December 2010, 14:42, Fernand Vanrie wrote: I trie to remove some buttons on the standard Toolbar I found some BASIC code made by Andrew Pitonyack, but i run in a error, saying that "private:res

[api-dev] Are there changes to the resourceURL 's ?

2010-12-21 Thread Fernand Vanrie
I trie to remove some buttons on the standard Toolbar I found some BASIC code made by Andrew Pitonyack, but i run in a error, saying that "private:resource/toolbar/standardbar" is no valid element for settings in the UIConfigurationManager Please try this simple code from in a writerdoc o

Re: [api-dev] OpenOffice 3.2.1 not printing on Windows Servers through the API

2010-12-20 Thread Fernand Vanrie
Herter, don't sea your exact problem but please find the correct way to print in Basic oDocument.setModified(false) Dim mPrinter(1) As New com.sun.star.beans.PropertyValue mPrinter(0).Name="wait" mPrinter(0).value=true mPrinter(1).Name = "IsBusy" dim bIsBusy as boolean bIsBusy = True

Re: [api-dev] sunjavaplugin.dylib could not load Java runtime library (MacOS)

2010-12-15 Thread Fernand Vanrie
oliver sind OOO330m17 you have to delete the library before installing the extentsion (had the same problem with basic baseed extensions)µ hope it helps Fernand Hello, yesterday I have an update for MacOS-X. When I try to install a OOo plugin using 'unopkg' I'll get now the following error me

Re: [api-dev] BASIC runtime error: object variable not set

2010-12-15 Thread Fernand Vanrie
oliver, Its a typical Basic error, when you trie to change a object using a "null" or "empty" variable. I suppose your plugin is using a Basic add startup so you can not open in advance the Basic IDE to sea what happens. Find out where your plugin is using Basic at startup, for a start

[api-dev] Need Confirmation OOO330m17 crashes on running BasicAddonBuilder Extension

2010-12-13 Thread Fernand Vanrie
Tried to build a Extension, using Paolo's BasicAddonBuilder Extention, OOO330m17( build :9551) on Windows, crashes in the latest fases when creation the extension. Can someone confirm this behavior Thanks Fernand

Re: [api-dev] Open a file with standard application from dialog

2010-12-04 Thread Fernand Vanrie
he latest dimensions. hope it helps Fernand Am 02.12.2010 10:31, schrieb Fernand Vanrie: please find the code here: '-FILEPICKER START-- ... '--FILEPICKER END--

Re: [api-dev] Copy textstring to Clipboard

2010-12-03 Thread Fernand Vanrie
ch for a few hundred cell ranges. Maybe your approach doesn't suffer from this. A comment from the devs would be great on which method is recommended for copying stuff around. Greetings, Steffen Am 02.12.2010 12:15, schrieb Fernand Vanrie: Somewhere on the web (http://hermione.s41.xrea.com/p

Re: [api-dev] Copy textstring to Clipboard

2010-12-02 Thread Fernand Vanrie
n which method is recommended for copying stuff around. Greetings, Steffen Am 02.12.2010 12:15, schrieb Fernand Vanrie: Somewhere on the web (http://hermione.s41.xrea.com/pukiwiki/) i found finaly the correct Basic code to copy a text to the clipboard without opening ghidden docs etc...

[api-dev] Copy textstring to Clipboard

2010-12-02 Thread Fernand Vanrie
Somewhere on the web (http://hermione.s41.xrea.com/pukiwiki/) i found finaly the correct Basic code to copy a text to the clipboard without opening ghidden docs etc... I hope its usefull for others as well Fernand |Global sTxtCString AsString Sub clipboard_1 sText ="123456" CopyToClipBoa

Re: [api-dev] Open a file with standard application from dialog

2010-12-02 Thread Fernand Vanrie
Volker please find the code here: '-FILEPICKER START-- sub runPicker UseSystemFileDialogs(false) 'sPath = FileNameoutofPath(ThisComponent.Url , "/") If (Not GlobalScope.BasicLibraries.isLibraryLoaded("Tools")) Then Glo

Re: [api-dev] Open a file with standard application from dialog

2010-12-02 Thread Fernand Vanrie
Volker, I uses for years a "handmade" picker dialog who shows in the left preview the content off all grahic files , PDF, txt and al Opendocument types. I can send you the code in Basic, just says where to drop Fernand I have a file picker as a dialog control. The file name is to be used as

Re: [api-dev] Re: Examining a directory with OpenOffice.org Basic

2010-12-01 Thread Fernand Vanrie
Johnny , ConvertToURL all path's ? Den 2010-12-01 14:53:01 skrev Clayton : On 12/01/2010 02:38 PM, Johnny Rosenberg wrote: 2010/12/1 Johnny Rosenberg: If I know the name of a directory, let's say ~/MyImages, how can I easily read the names of all the files in that directory? Let's say that

Re: [api-dev] Examining a directory with OpenOffice.org Basic

2010-12-01 Thread Fernand Vanrie
Johnny , have a look in the Gimicks library of the OO-basic-macro's, maybe a bit complicated but you will find what you are looking for. Hope it helps Fernand If I know the name of a directory, let's say ~/MyImages, how can I easily read the names of all the files in that directory? Let's s

Re: [api-dev] Document Server Memory Leak Suspicion

2010-11-02 Thread Fernand Vanrie
and then trie to uses Cor's idea, open and closing 2 OO-services On 2/11/2010 17:39, Fernand Vanrie wrote: Chris , gives 3.3 a trie ? FYI, we are using 3.2.1 Chris On 11/02/2010 12:02 PM, Fernand Vanrie wrote: Chris , Thanks for the comment/insight... I'll try to investigat

Re: [api-dev] Document Server Memory Leak Suspicion

2010-11-02 Thread Fernand Vanrie
Chris , gives 3.3 a trie ? FYI, we are using 3.2.1 Chris On 11/02/2010 12:02 PM, Fernand Vanrie wrote: Chris , Thanks for the comment/insight... I'll try to investigate, but not hopeful. It happens once a document is closed, seemingly (could be on open, too)... and each subse

Re: [api-dev] Document Server Memory Leak Suspicion

2010-11-02 Thread Fernand Vanrie
ou trie to use the latest 3.2 or 3.3 ? For the record, the ImageControls are no longer leaking sinds 3.2 :-) Fernand Chris On 11/02/2010 11:12 AM, Fernand Vanrie wrote: Chris , I have no experience with server applications but in the past, i found some "leaks" when using &quo

Re: [api-dev] Document Server Memory Leak Suspicion

2010-11-02 Thread Fernand Vanrie
Chris , I have no experience with server applications but in the past, i found some "leaks" when using "ImageControls", its not necerarly the document itselfs who leaks, Trye to reproduce the operation on a local machine ad see when or where the memory eating starts ? Fernand I hope this is

[api-dev] Eventlistener not working on Code-Created-Dialogs

2010-10-27 Thread Fernand Vanrie
Hallo all, I tried to implement a "com.sun.star.lang.XEventListener" on a code-created Dialog, the Listener is not working. I used the same "Listener" on loading a manuel created Dialog from a library, here the listener works a expected. Please test my code if we have a iussue or a fault i

Re: [api-dev] Missing Macro Toolbar

2010-10-11 Thread Fernand Vanrie
11:44, schrieb Fernand Vanrie: When opening the Basic IDE the Macro Toolbar is no longer present and can no langer been choosen from the view>toolbar menu ? Checked on other forum's , same problem is signaled but no answers ? Where can i alter some settings to have again a Macro Toolb

[api-dev] Missing Macro Toolbar

2010-10-07 Thread Fernand Vanrie
When opening the Basic IDE the Macro Toolbar is no longer present and can no langer been choosen from the view>toolbar menu ? Checked on other forum's , same problem is signaled but no answers ? Where can i alter some settings to have again a Macro Toolbar in de basic IDE ? Thanks for any

Re: [api-dev] Restricting Open and Save File to One Directory...

2010-09-28 Thread Fernand Vanrie
Hal , You can always trye to use the "custumation" events by opening or saving a document where you can put a macro who checks where or from where a document is openend or saved. Maybe you can "save' this "custumation" under the "default" template who is used to open an new document ? G

Re: [api-dev] change toolbar name

2010-09-24 Thread Fernand Vanrie
Martin , You must have a look at the exellent BasicAddonBuilder extention made by Paolo Mantovani. In the code you can compare with your work Hope it helps Fernand hi and don't forget to change "oor:name="WriterWindowState" " to oor:name="CalcWindowState" Thanks i haven't seen that Bu

Re: [api-dev] How can I check, if a macro (basic) is still running?

2010-08-20 Thread Fernand Vanrie
dow(k) if HasUnoInterfaces(oWin, "com.sun.star.awt.XDialog") then if left(oWin.Title, len(sTitle)) = sTitle then ' GetWindowOpen = oWin exit function endif endif next k end function Fernand Vanrie schrieb: Thomas, Do not look for a "frame" your d

Re: [api-dev] How can I check, if a macro (basic) is still running?

2010-08-20 Thread Fernand Vanrie
Thomas, Do not look for a "frame" your dialog is opened in a "window" oWin = GetWindowOpen("Dialog1") this gives you yes or no a a window object containing "Dialog1" hope it helps Fernand Hey, I do have some macros, which will start on events (for example "document close") or with user-ac

Re: [api-dev] Re: ERRCODE_IO_CANTWRITE writing a PDF file

2010-07-30 Thread Fernand Vanrie
Joaquin , have you also tryed "StoreToStream" ? Greetz Fernand Hi Bernard, in Python when you do: def foo(**args): for k, v in args.items(): print "%s: %s" % (k, v) foo(arg1='val1', arg2='val2') arg1: val1 arg2: val2 The **args part means "collect all the

Re: [api-dev] Re: ERRCODE_IO_CANTWRITE writing a PDF file

2010-07-29 Thread Fernand Vanrie
Joaquin , Have you tryed "storeAsURL" ? greetz Fernand I forgot to include a link to the code I'm using: http://pastebin.com/Xusn0XR2 On Tue, Jul 27, 2010 at 9:11 PM, Joaquin Cuenca Abela wrote: Hi, I'm trying to convert some files from .odt to .pdf using a modified PyODConverter, where

Re: [api-dev] How to set Writer Multiple page view with the API

2010-07-14 Thread Fernand Vanrie
ave to look a bit closer to the ViewData property who is probably :-) a array of with the positions depending on the actual ViewLayout ? I comback with the hard figures. Thanks for the routines Fernand Message de Fernand Vanrie date 2010-07-13 12:15 : Hello, I tried to change the &q

Re: [api-dev] Maybe a stupid question w.r.t. XPrintable

2010-07-13 Thread Fernand Vanrie
Rony , don' know: got the snipped years ago from thelegendary Danny B. my "wait" is a basic function needed to let works the routine properly Fernand Hi Fernand, i use for years a routine for printing maybe it can help ? thank you very much for your hint! In the meantime I stum

Re: [api-dev] Maybe a stupid question w.r.t. XPrintable

2010-07-13 Thread Fernand Vanrie
Rony , i use for years a routine for printing maybe it can help ? Fernand If (Not GlobalScope.BasicLibraries.isLibraryLoaded("Tools")) Then GlobalScope.BasicLibraries.LoadLibrary("Tools") End If oDocument.setModified(false) 'Printen naar Default printer Dim PrinterProps(1) As New

Re: [api-dev] How to set Writer Multiple page view with the API

2010-07-13 Thread Fernand Vanrie
mback with the hard figures. Thanks for the routines Fernand Message de Fernand Vanrie date 2010-07-13 12:15 : Hello, I tried to change the "multiple pageview" (2 page side by side) and the according zoom factor with the apI. I tried Thiscomponent.currentController.ViewSet

[api-dev] How to set Writer Multiple page view with the API

2010-07-13 Thread Fernand Vanrie
Hello, I tried to change the "multiple pageview" (2 page side by side) and the according zoom factor with the apI. I tried Thiscomponent.currentController.ViewSettings, I Found a property to change the zoom factor , but nothing to show 2 page side by side on the screen Thanks for any hint

Re: [api-dev] Some remarks about cursors

2010-07-07 Thread Fernand Vanrie
Patrick, you need here a Tablecursor or use viewcursor.cell.string ' Get The view cursor oViewCursor = thisComponent.getCurrentController().getViewCursor() ' Get Table and the Cell where the View cursor is oTable = oViewCursor.TextTable oCurrentCell = oViewCursor.Cell ' create a

Re: [api-dev] Regarding max value of UnoControlNumericField

2010-06-15 Thread Fernand Vanrie
Madhur , Forget mi stupid remark your are working with the control, do wath Bernard saied: use the "model" :-) ;-) trie to set "Max" and "Min" in the "control" Fernand Hi, I am using OOO 3.2. I do not know the max value of the numeric field inputs I get from user. So, in other words I w

Re: [api-dev] Regarding max value of UnoControlNumericField

2010-06-15 Thread Fernand Vanrie
Madhur , trie to set "Max" and "Min" in the "control" Fernand Hi, I am using OOO 3.2. I do not know the max value of the numeric field inputs I get from user. So, in other words I wan to leave it to the highest value supported by the precision of the field (double I believe). While creating t

Re: [api-dev] Base: Disable navigator save button

2010-05-20 Thread Fernand Vanrie
Peter Eberlein wrote: Hi, Am 20.05.2010 14:07, schrieb Fernand Vanrie: Johannes Öberg wrote: Thanks! What is the call I make to perform the same action as when pushing the Save Record button? Starts making a "save" macro ("record" the save action with the macro record

Re: [api-dev] Base: Disable navigator save button

2010-05-20 Thread Fernand Vanrie
macro /J 2010/5/20 Fernand Vanrie Johannes Öberg wrote: Wow, if that's what it takes, it seems easier to write the app in C++ or something... No :-) just basic will do the job, you can find a lot of examples on the net How can I disable the navigator buttons but still

Re: [api-dev] Base: Disable navigator save button

2010-05-20 Thread Fernand Vanrie
rs it becomes hard to change the properties, and do not forget the GUI-user has only "view" rights on the Tables (not really a problem, but not the "right solution"). Thanks /J 2010/5/20 Fernand Vanrie Johannes , I was troubled with same problems, we finaly decided N

Re: [api-dev] Base: Disable navigator save button

2010-05-20 Thread Fernand Vanrie
Johannes , I was troubled with same problems, we finaly decided NOT to uses the OO buttons for "Editing" only for "Viewing", and keeping the Gui-users as far as posible from or "Tables" We avoid to open OO-DBase-DOC (infact the Gui-user do not know of the exitens of this DbaseDoc) we only "op

Re: [api-dev] Limiting the selection base of a combobox based on another

2010-05-18 Thread Fernand Vanrie
Johannes , I think you need to use a event who fire some macro's to change the SQL statement behind the comboboxes depending on the content of the others hope it helps Fernand I'm trying to make a selection form for selecting a single customer from a database that contains quite a lot of cust

[api-dev] Saving time SRB

2010-05-12 Thread Fernand Vanrie
I filed a issue 111542 about the fact that saving a SRB report takes as long as running the same report with a possible memory leakage . In the mean time i found also a workaround: installing a tempory filter who makes the data-gathering

Re: [api-dev] Form, how do I set Control Property to Empty (BackgroundColor)

2010-04-29 Thread Fernand Vanrie
Fernand Vanrie wrote: Johannes Öberg wrote: Ah, the beauty of Basic! :-) Thanks! /J 2010/4/29 Bernard Marcelly Hi Johannes, Message de Johannes Öberg date 2010-04-29 15:11 : How can I set the BackgroundColor of a label to transparent from a macro? When I Xray BackgroundColor

Re: [api-dev] Form, how do I set Control Property to Empty (BackgroundColor)

2010-04-29 Thread Fernand Vanrie
Johannes Öberg wrote: Ah, the beauty of Basic! :-) Thanks! /J 2010/4/29 Bernard Marcelly Hi Johannes, Message de Johannes Öberg date 2010-04-29 15:11 : How can I set the BackgroundColor of a label to transparent from a macro? When I Xray BackgroundColor after setting it to "Defa

Re: [api-dev] Form, how do I set Control Property to Empty (BackgroundColor)

2010-04-29 Thread Fernand Vanrie
Johannes, I am not sure 0 = white -1 = tranparent Fernand How can I set the BackgroundColor of a label to transparent from a macro? When I Xray BackgroundColor after setting it to "Default" from the Form designer, it says it is of type Empty. Should i remove the property? How do I do that?

Re: [api-dev] Form in Base, trigger macro on changing record?

2010-04-28 Thread Fernand Vanrie
Johannes , On very FormControl or on the Form itself, you can put "events" who call a macro. Thre are a lot of available events who can are covering all your needs as "Prior to reset", "After reset", "Before updating", "After Updating" .. Hope it helps Fernand Hi! (Sorry if this does

Re: [api-dev] Updating extensions

2010-04-26 Thread Fernand Vanrie
Patrick , Why not using "com.sun.star.configuration.ConfigurationProvider" to store your global variables ? I learned from Danny B. and uses it mostyl to store some Pathsettings who must een remembered by opening and closing some Dialogs. Your new exention can check if the "data" writen by th

Re: [api-dev] Sending email to multiple recipients

2010-04-22 Thread Fernand Vanrie
Oliver, Have you any idea if in the future we could have acces to the "body" using the published API stuff. Is it true that "STAROFFICE" can do the job ? Fernand On 22.04.2010 15:03, Peter Eberlein wrote: The API has not only the XSimpleMailMessage interface, but a complete module com.

Re: [api-dev] Sending email to multiple recipients

2010-04-21 Thread Fernand Vanrie
Laurent , I know but a attachment for a simple message is - a bit rediculous and time consuming when send to our own workflow organisation - and always -spam- suspicious for outsiders fernand Hi just a thought if OOo Api can attach a file, create a plain-text file and write your body in i

Re: [api-dev] Sending email to multiple recipients

2010-04-21 Thread Fernand Vanrie
ndos" This is a modified code to send email to a specific email account and shorten links through tinyurl. If you dont need this you can ignore the second part of the script. Also if you want to On Wed, Apr 21, 2010 at 1:58 AM, Mathias Bauer wrote: Hi, Fernand Vanrie wrote: Paolo

Re: [api-dev] Sending email to multiple recipients

2010-04-21 Thread Fernand Vanrie
to sent a messages with the OO-API where no further responses are needed from the receiver. Fernand Hi, Fernand Vanrie wrote: Paolo , Andrew, all Can i have hope to set also the "body" of a email message ? This is not possible by intent, as (at least to my knowledge)

Re: [api-dev] Sending email to multiple recipients

2010-04-20 Thread Fernand Vanrie
Paolo , Andrew, all Can i have hope to set also the "body" of a email message ? Fernand 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, a

Re: [api-dev] soffice.bin crashed while executing storeToUrl.

2010-03-31 Thread Fernand Vanrie
Jeremy , We have sam problems with Writerdocs, after placing some pictures "StoreToURL" gives somtimes a IO exception. I supose due to the fact that the embeded picture houshold is not totaly in order. There for we check if the URL is existent if not we use StoreToURL else we do Doc.store who

Re: [api-dev] Problems with MySQL Connection Sun native Driver

2010-03-30 Thread Fernand Vanrie
t;forms"so we have a better control over the data-integrity How are you doing this job? best regards Thomas Fernand Vanrie schrieb: Thomas , To avoid problems like you desribed we nowadays uses the "com.sun.star.sdb.DatabaseContext" as a "binding" point to our MySQL se

Re: [api-dev] Problems with MySQL Connection Sun native Driver

2010-03-30 Thread Fernand Vanrie
Thomas , To avoid problems like you desribed we nowadays uses the "com.sun.star.sdb.DatabaseContext" as a "binding" point to our MySQL server. So we place a OO-DB-document where all OO- users can acces the document with the lowest posible rights ( to avoid unwanted acces to the MySQL Tables)

Re: [api-dev] Paths options page customization

2010-03-29 Thread Fernand Vanrie
Paolo, Ading a submenu to Tools and made your proper Dialog and doing all the stuff with the API ? 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 altho

Re: [api-dev] Paths options page customization

2010-03-29 Thread Fernand Vanrie
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 ? I think you must have to look at de "localisation name giving" because the propertie

Re: [api-dev] Inserting GraphicObjects into XTextFrame

2010-03-18 Thread Fernand Vanrie
Steffen , thats pretty simple: I use some basic code to find out if the Cursor in a Table, Frame or Document oViewCursor = oDocument.getCurrentController().getViewCursor() If Not isEmpty(oViewCursor.TextTable) then ' Cursor is in een Tabel sFrameofTabel = "TABEL" ' rather complex

Re: [api-dev] read odt from database

2010-03-10 Thread Fernand Vanrie
t = "Doc" then oInsertCursor = oVC.text.createTextCursorByRange(oVC,false) endif oInsertCursor.InsertDocumentFromURL("" , oProps()) opipe.flush opipe.closeinputostorage.dispose ostream = nothing end sub Hi, Am 10.03.2010 11:16, schrieb Fernand Vanrie: rf, I think it d

Re: [api-dev] read odt from database

2010-03-10 Thread Fernand Vanrie
uot;Cell" then oInsertCursor = oVC.cell.createTextCursorByRange(oVC,false) elseif wat = "Frame" thenoInsertCursor = oVC.TextFrame.createTextCursorByRange(oVC,false) elseif wat = "Doc" then oInsertCursor = oVC.text.createTextCursorByRange(oVC,false) endif oInsertCursor.InsertDocumentFro

Re: [api-dev] read odt from database

2010-03-10 Thread Fernand Vanrie
ame.createTextCursorByRange(oVC,false) elseif wat = "Doc" then oInsertCursor = oVC.text.createTextCursorByRange(oVC,false) endif oInsertCursor.InsertDocumentFromURL("" , oProps()) opipe.flush opipe.closeinput ostorage.dispose ostream = nothing end sub Hi, Am 10.0

Re: [api-dev] read odt from database

2010-03-10 Thread Fernand Vanrie
rf, I think it depends on the complexity off the content, I use a technic, where we store some simple formated text as "html" in a datbase and then import this "thml" coded text in a exiting OO writerdoc. The OO html import filterrebuild the text with his formating. If wanted then is can pos

Re: [api-dev] How to get document's windows (position, size, moving) via UNO ?

2010-03-03 Thread Fernand Vanrie
Rony , maybe ContainerWindow.Toolkit can do the job Fernand, thank you! Unfortunately, this does not help solve the problem. On 3/3/2010 9:19 AM, Fernand Vanrie wrote: For doing things when opening Formdocs i use 2 BASIC subs, maybe they can help you ? Sub setDocPosSize(Doc As

Re: [api-dev] How to get document's windows (position, size, moving) via UNO ?

2010-03-03 Thread Fernand Vanrie
Rony , For doing things when opening Formdocs i use 2 BASIC subs, maybe they can help you ? Sub setDocPosSize(Doc As Object , X As long, Y as long , Width as long, Height as long ) Dim Window As Object ' CONTAINER WINDOW If IsNull(Doc) Or IsEmpty(Doc) Then Exit Sub Window=Doc

Re: [api-dev] css.sdb.application.XDatabaseDocumentUI: new methods

2010-02-22 Thread Fernand Vanrie
Frank , I doesn't crash indeed ! as long the DBdoc is open on the desktop :-) I Fill a issue Greetz Hi Fernand, oReport.OpenDesign >> craches OO (3.2 with windows XP) Do i fill a issue or is it related with the "Hidden" opening issue ? Hmm, doesn't crash here with 3.2 on WinXP,

  1   2   3   4   5   >