Search found 43 matches

by brunnerdan
Fri Sep 13, 2013 10:25 am
Forum: Tablets
Topic: [Solved] AndrOpen Office V1.2.6 and Gallery
Replies: 2
Views: 2128

[solved] Re: AndrOpen Office V1.2.6 and Gallery

I copied my "gallery" files form my PC into the following directory on my Android phone ;

/sdcard0/Android/data/com.andropenoffice/files/user/gallery

And it works fin.
by brunnerdan
Mon Sep 09, 2013 4:07 pm
Forum: Tablets
Topic: [Solved] AndrOpen Office V1.2.6 and Gallery
Replies: 2
Views: 2128

[Solved] AndrOpen Office V1.2.6 and Gallery

I just installed the Apache AndrOpen Office on my Android Tablet. How ist it possible copy a Gallery that I have on my PC to the AndrOpen Office.
by brunnerdan
Wed Jul 25, 2012 10:19 am
Forum: Install, Setup and Troubleshooting
Topic: [Solved] Deactivate the "Search for update" option
Replies: 7
Views: 2639

Re: Deactivate the "Search for update" option

Great, thanks and it works !
Daniel
by brunnerdan
Tue Jul 24, 2012 5:40 pm
Forum: Macros and UNO API
Topic: [Solved] Password protected library
Replies: 2
Views: 2414

Re: Password protected library

I tried to copy all the "Module" directory and it worked !
by brunnerdan
Tue Jul 24, 2012 3:29 pm
Forum: Install, Setup and Troubleshooting
Topic: [Solved] Deactivate the "Search for update" option
Replies: 7
Views: 2639

Re: Deactivate the "Search for update" option

Thanks for your help, but unfortunatly it's not the registrymodifications.xcu that is changed and I couldn't find the correct file yet !
by brunnerdan
Tue Jul 24, 2012 11:25 am
Forum: Macros and UNO API
Topic: [Solved] StarBasic : kill OpenOffice
Replies: 2
Views: 3297

[Solved] Re: StarBasic : kill OpenOffice

Great, the my solution is :

oDesktop = CreateUnoService("com.sun.star.frame.Desktop")
oDesktop.terminate()
by brunnerdan
Tue Jul 24, 2012 11:16 am
Forum: Install, Setup and Troubleshooting
Topic: [Solved] Deactivate the "Search for update" option
Replies: 7
Views: 2639

Re: Deactivate the "Search for update" option

Thanks for your answer. But I would like to know in which XML config file this parameter is written (and how the corresponding XML element is called).
by brunnerdan
Mon Jul 23, 2012 11:23 pm
Forum: Install, Setup and Troubleshooting
Topic: [Solved] Deactivate the "Search for update" option
Replies: 7
Views: 2639

[Solved] Deactivate the "Search for update" option

Where can the parameter be found (in which configuration file and how is it called) to desactivate the search for update option ?
by brunnerdan
Mon Jul 23, 2012 11:20 pm
Forum: Macros and UNO API
Topic: [Solved] Password protected library
Replies: 2
Views: 2414

[Solved] Password protected library

I created a modile that I protected with a passowrd (Module.xpa). Is it possible to copy in an easy way the Mobule to another OO instance ? Where is the password stored ?
by brunnerdan
Mon Jul 23, 2012 11:17 pm
Forum: Macros and UNO API
Topic: [Solved] StarBasic : kill OpenOffice
Replies: 2
Views: 3297

[Solved] StarBasic : kill OpenOffice

(How) is it possible to kill OpenOffice from within a StarBasic Macro ?
by brunnerdan
Fri Jun 29, 2012 11:31 am
Forum: Macros and UNO API
Topic: [Solved] HowTo add a row at the end of a TextTable
Replies: 2
Views: 1793

Re: HowTo add a row at the end of a TextTable : URGENT

Great, thanks, here is the solution :

Code: Select all

 
  oRows = oTable.getRows()
  iCount = oRows.getCount()
  
  oRows.insertByIndex( iCount, 1)

Kind regards
by brunnerdan
Fri Jun 29, 2012 11:00 am
Forum: Macros and UNO API
Topic: [Solved] HowTo add a row at the end of a TextTable
Replies: 2
Views: 1793

[Solved] HowTo add a row at the end of a TextTable

I have the following code that adds a TextTable at the end of the current document : Sub Main InsertATable() End Sub Sub InsertATable Dim oTable 'Newly created table to insert Dim oEnd REM Let the document create the text table. oTable = ThisComponent.createInstance( "com.sun.star.text.TextTabl...
by brunnerdan
Fri May 04, 2012 1:45 pm
Forum: Macros and UNO API
Topic: Running a macro when clicking in a Hyperlink in Writer
Replies: 5
Views: 4765

Re: Running a macro when clicking in a Hyperlink in Writer

Thanks for this feature that I didin't know but is not exactly what I need. I try to give some more explanation. Lets say that I add a description in a writer document that points to a website (for example Oracle = description, URL = http://www.oracle.com). When I open the writer document and I <crt...
by brunnerdan
Fri May 04, 2012 12:43 pm
Forum: Macros and UNO API
Topic: Running a macro when clicking in a Hyperlink in Writer
Replies: 5
Views: 4765

Re: Running a macro when clicking in a Hyperlink in Writer

I would like to run the macro as a hyperlink. The idea is that the macro get the "description" of the hyperlink and executes a macro taking the description as parameter.
by brunnerdan
Fri May 04, 2012 11:58 am
Forum: Macros and UNO API
Topic: Running a macro when clicking in a Hyperlink in Writer
Replies: 5
Views: 4765

Running a macro when clicking in a Hyperlink in Writer

Is it possible (or how is it possible) to specify a macro that should be run when clicking on an URL (hyperlink) that is defined in a Writer document ?
by brunnerdan
Wed May 02, 2012 10:04 am
Forum: Macros and UNO API
Topic: [Solved] Get the textfields in a cell of a table in Writer
Replies: 10
Views: 5181

Re: How to get the textfields in a cell of a table in Writer

Great ! Thanks ! I just put into comments the following line : If Not cur.isStartOfParagraph then cur.goRight(1,false) and now it works fine. What was the purpose of this line of code ? Here the complete example that works : Sub HyperlinkInWriterTable oDoc = ThisComponent oVC = oDoc.CurrentControlle...
by brunnerdan
Mon Apr 30, 2012 1:35 pm
Forum: Macros and UNO API
Topic: [Solved] Get the textfields in a cell of a table in Writer
Replies: 10
Views: 5181

Re: How to get the textfields in a cell of a table in Writer

I think we are very close to the solution. The code above works fine if I have the hyperling is in a Text. But it doesn't work for a hyperling that is in a Cell of a TextTable in a Writer document. How can I get access to the current character (I mean the actual character at the position of the curs...
by brunnerdan
Fri Apr 27, 2012 5:12 pm
Forum: Macros and UNO API
Topic: [Solved] Get the textfields in a cell of a table in Writer
Replies: 10
Views: 5181

Re: How to get the textfields in a cell of a table in Writer

Slowly but surely I get to the solution. I have now the following code : MyDoc = ThisComponent cursVis = myDoc.CurrentController.ViewCursor msgbox ("Hyp. URL: "+cursVis.HyperlinkURL) msgbox ("Hyp. Name: "+cursVis.HyperlinkName) msgbox ("Hyp. Target: "+cursVis.HyperlinkT...
by brunnerdan
Wed Apr 25, 2012 5:02 pm
Forum: Macros and UNO API
Topic: [Solved] Get the textfields in a cell of a table in Writer
Replies: 10
Views: 5181

Re: How to get the textfields in a cell of a table in Writer

As it is really an URGENT question, so I try to formulate again the question. I have an URL (TextField) in a Table Cell of a Writer document. The user will click in the URL (TextField). Via a Macro, I would like to show (via a Messagebox for example), the Description of the TextField (not the URL bu...
by brunnerdan
Tue Apr 24, 2012 2:50 pm
Forum: Macros and UNO API
Topic: [Solved] Get the textfields in a cell of a table in Writer
Replies: 10
Views: 5181

Re: How to get the textfields in a cell of a table in Writer

With the following code : Function GetFirstSelected Dim oSelections Dim oSel GetFirstSelected = "" oSelections = ThisComponent.getCurrentSelection() If IsNull(oSelections) Then Exit Function If oSelections.supportsService("com.sun.star.text.TextTableCursor") Then Exit Function En...
by brunnerdan
Tue Apr 24, 2012 9:52 am
Forum: Macros and UNO API
Topic: [Solved] Get the textfields in a cell of a table in Writer
Replies: 10
Views: 5181

Re: How to get the textfields in a cell of a table in Writer

I was looking and I tried some code, but didn't get the solution...
by brunnerdan
Mon Apr 23, 2012 5:37 pm
Forum: Macros and UNO API
Topic: [Solved] Get the textfields in a cell of a table in Writer
Replies: 10
Views: 5181

[Solved] Get the textfields in a cell of a table in Writer

Hi, I would like to write a macro the gets in a specific cell of a Table in Writer : 1) a reference to the actual textfield (in fact it is a link to a document) at the position of the cursor 2) a reference to all the textfields in the actual cell Another solution would be to get the actual selected ...
by brunnerdan
Mon Jan 30, 2012 12:52 pm
Forum: Macros and UNO API
Topic: Calc : start a macro via the contextual menu
Replies: 3
Views: 1594

Re: Calc : start a macro via the contextual menu

Thanks for the solution. So if I am right, there is no easy solution without "complex" development ? As we are using OpenOffice on a server (about 120 users are connected on the same Unix server) the solution is not quite usable (open 120 ports for connecting via Java).
by brunnerdan
Mon Jan 30, 2012 11:10 am
Forum: Macros and UNO API
Topic: Calc : start a macro via the contextual menu
Replies: 3
Views: 1594

Calc : start a macro via the contextual menu

Is it possible to add an entry in a contextual menu in Calc for starting a marco ? I know that it is possible to start a macro via a keyboard shortcup, but what I would need is to be able to start it via a contextual menu.
by brunnerdan
Wed Dec 21, 2011 2:35 pm
Forum: Macros and UNO API
Topic: [Solved] How to add a gallery image into a Writer table Cell
Replies: 3
Views: 8653

Re: Howto add a gallery image into a Writer table Cell ?

Thanks to all that helped my to finally reach my goal. Here is the solution : sub instertItemToCell( sItem as String, sTable as String, sCell as String ) C_TotalPageWidth = 18800 oTextGraphicObject = ThisComponent.createInstance("com.sun.star.text.TextGraphicObject") oItem = getItemFromGal...
by brunnerdan
Tue Dec 20, 2011 3:34 pm
Forum: Macros and UNO API
Topic: [Solved] How to get the Width of the first column of a Table
Replies: 4
Views: 5682

Re: How to get the Width of the first column of a Table ?

Thanks, it seems to work. But in which unit the oColumns(i).Position is returned ? How can I convert the value returned to "centimeters" ?
by brunnerdan
Mon Dec 19, 2011 8:10 pm
Forum: Macros and UNO API
Topic: [Solved] How to get the Width of the first column of a Table
Replies: 4
Views: 5682

[Solved] How to get the Width of the first column of a Table

Let's get a reference of a Table with the following code :

Code: Select all

   myDocument = ThisComponent
   myTable = myDocument.TextTables.getByName( "Table1" )
How can I get the width of the first column in my table ?
by brunnerdan
Fri Dec 16, 2011 5:32 pm
Forum: Macros and UNO API
Topic: [Solved] How to add a gallery image into a Writer table Cell
Replies: 3
Views: 8653

[Solved] How to add a gallery image into a Writer table Cell

I have the following code snippet : Sub Main Dim momDocument, maTable As Object Dim cursCell as Object monDocument = ThisComponent maTable = monDocument.TextTables.getByName( "Tableau1" ) cursCell = maTable.createCursorByCellName( "A1" ) oGTP = CreateUnoService("com.sun.star...