Re: API-CHANGE - dropping string properties which use vnd.sun.star.GraphicObject URL

2018-04-30 Thread Fernand Vanrie

Tomaž,

How can we set the URL (using the API) for inserting a linked image

there is no "setGraphicURL" method ?

Greetz

Fernand


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: API-CHANGE - dropping string properties which use vnd.sun.star.GraphicObject URL

2018-04-30 Thread Fernand Vanrie

Tomaž,

when the image is "linked" how can we find (using the API) the URL where 
the image is linked to ?



Greetz

Fernand


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: API-CHANGE - dropping string properties which use vnd.sun.star.GraphicObject URL

2018-04-30 Thread Fernand Vanrie

Tomaž,

How should we find out if a image is embeded in the doc or not ?

we uses for now:

if left(oCheckgraphic1.GraphicURL,27) <> "vnd.sun.star.GraphicObject:" then

Greetz

Fernand


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice-qa] Resizing image in Calc nearly freezes whole system?

2016-07-07 Thread Fernand Vanrie

Works fine under Windows 10 LO 5.1.2.2
greetz
Fernand

Op 28/05/2016 om 16:14 schreef Pedro:

Thomas Hackert wrote

Is this reproducible on an other system to anyone? And: are you able
to get a strace / backtrace? Is this already reported to bugzilla?

When opening your sample file I had a single crash on LO 4.4.7.2 x86 under
Win 10 x64
The error message title was "LibreOffice 4.4 - Fatal Error" and the message
"bad allocation"
But I can't replicate the crash again...

No crashes with LO 5.1.3.2 x64 under Windows 10 x64 (but the resize problems
are the same, see below)

There is definitely a problem with image resize in Calc. Resizing down is
not so bad (although it is difficult to be accurate) but resizing up seems
to be completely out of control (of course you can simply type the exact
value but that is not expected in a GUI based program...)

Hope this helps...



--
View this message in context: 
http://nabble.documentfoundation.org/Libreoffice-qa-Resizing-image-in-Calc-nearly-freezes-whole-system-tp4184614p4184637.html
Sent from the QA mailing list archive at Nabble.com.
___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: https://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/


___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: https://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/

Need confirmation about a bug

2016-06-12 Thread Fernand Vanrie
During the tranformation from LO 4  upwards LO 5 we found a nasty 
regresssion bug under Windows.


Message boxes showup empty with white background 



Can someone confirm or negate the bug for the other operating Systems ?

Thanks

Fernand

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Open web page from dialog

2016-06-12 Thread Fernand Vanrie

Op 11/06/2016 om 21:25 schreef Jan Rheinländer:
jan, Andrew

there is a special control who opens hyperlinks

oDialogModel.createInstance( 
"com.sun.star.awt.UnoControlFixedHyperlinkModel")


the control  has a URL propperty

hope it helps

Greetz

Fernand


Hi,

is it possible to open a website in the user's preferred browser from a
dialog (or from a Basic macro, or through the UNO API)?

I see that the "Help" - "About" dialog does this, but it is defined in
the source in Glade format, different to the Basic dialogs.

Thanks for any ideas!

Jan

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Playing Video in LO Dialogs

2016-05-11 Thread Fernand Vanrie
We can play video (windows) using the simple set of macro's  I found in 
the cloud  (see below)
The secret to have some control over the playerwindow is in the 
misterious line:

'  oPlayer.createplayerwindow(array()) who nobody seems to can solve :-)

is there a other way to lay a video in a LO Dialog ?

Thanks for any hint
Fernand

Global video
Global oPlayer
Global Player_flag, Video_flag, Time

' --
Sub VideoPlayer
   If Video_flag = 0 Then
 video =converttoURL("C:\Users\PMG\Videos\Untitled.avi") ' La vidéo 
à charger

 Video_flag = 1
 oManager = CreateUnoService("com.sun.star.media.Manager_DirectX")
 oPlayer = oManager.createPlayer( video )
   '  oPlayer.createplayerwindow(array())
 oPlayer.start() ' Lecture
 Player_flag = 1
   Else
 oPlayer.start() ' Lecture
 Player_flag = 1
   End If
End Sub

' --
Sub VideoPlayer_pause
   If Player_flag = 1 Then
oPlayer.stop() ' Pause
Player_flag = 0
Time = oPlayer.getmediatime()
   End If
End Sub

' --
Sub VideoPlayer_avance_rapide
   If Player_flag = 0 Then
oPlayer.setmediatime(Time +1) ' Avance_rapide
Time = oPlayer.getmediatime()
   End If
End Sub

' --
Sub VideoPlayer_recul_rapide
   If Player_flag = 0 Then
oPlayer.setmediatime(Time -1) ' Recul_rapide
Time = oPlayer.getmediatime()
   End If
End Sub

' --
Sub VideoPlayer_stop
   oPlayer.stop() ' Pause
   'Video_flag = 1
   Time = 0
   oPlayer.setmediatime(Time)
End Sub


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Setting data in Writer chart from Basic

2016-01-24 Thread Fernand Vanrie

 Jan,

please find some code who works fine for me,

maybe its locking and unlocking whor provoke the refresh or its becuase 
i change some more things after setting the data ?


 oChart.lockControllers()
  oChart.Data.setData(DataArray())
 oChart.Data.setrowDescriptions(LabelsArray())

dim columnLabelsArray(2)

 columnLabelsArray(0) = "20" & mid(sjaarmin2,len(sjaarmin2)-4,2)
columnLabelsArray(1) = "20" & mid(sjaarmin1,len(sjaarmin2)-4,2)
 columnLabelsArray(2) = "20" & mid(sjaarnu,len(sjaarmin2)-4,2)

 oChart.Data.setColumnDescriptions(columnLabelsArray())
' Title
 oChart.HasMainTitle=false
oChart.Title.string = sTitel
' Labels
 oChart.DataSourceLabelsInFirstColumn = true
 oChart.DataSourceLabelsInFirstRow= false
' Legend
 ochart.hasLegend = true
' oSheet.getCharts.getByName("CHART1").getEmbeddedObject.hasLegend 
= true


 ochart.area.fillcolor = rgb(240,240,240)
 oChart.unlockControllers()

i resently found out that using the "dispatcher" also can provocke the 
refresh of some doc ellements


document = odoc.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
'here do changing the rowheigt in calc document the repositoning of 'all 
shapes in a doc

dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "RowHeight"
args1(0).Value = 500
dispatcher.executeDispatch(document , ".uno:RowHeight", "", 0, args1())


Hi,

with this code I can change the data in a Writer chart:

 set doc = thisComponent
 set ctrl = thisComponent.CurrentController
 xChart = ctrl.getModel().getEmbeddedObjects.getByName("Objekt1")
 set cDoc = xChart.getEmbeddedObject
 set cDataArray = cDoc.getDataProvider
 data = cDataArray.getData
 ' Do something with the data
 cDataArray.setData(data)

But I can't get the chart to update. The only way I see is to
double-click on the chart in the document, then it will update.

What is the right way to force an update via code?

Thank!
 Jan

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Question on 5.0 and StarDesktop.loadComponentFromURL

2015-08-15 Thread Fernand Vanrie

Jerry ,

can you load a new empty document ?

oDocument = 
StarDesktop.LoadComponentFromUrl(private:factory/swriter,_default,0,loadArgs())


what's  the operating system ?

Is the oDoc = StarDesktop.loadComponentFromURL still valid in 5.0 ?

I am calling it in my macro and getting an error about the  URL parameter
which is file:///tmp/file.ptt
so seems as though the file URL is OK and the file is present.

The error is BASIC runtime... type detection failed.

Is there a new/correct/better way to load and impress file  ?

Jerry


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Adding a image to a gridcontrol row using BASIC

2015-06-06 Thread Fernand Vanrie

Hello,

on a Openoffice wiki page i found some JAVA code to add a image into a 
GridControl Row
what i need is how to make a Object array in BASIC who supports 
graphics and octher data


thanks for any hint

The main change in milestone 3 regarding DataModel is the possibility to 
add not only text but also images. That's why addRow-method has as 
second parameter no more string array but object array. Futher supported 
types are int, double, float.


/Java/

 Object  dataModel=  xMultiComponentFactory.createInstanceWithContext(
com.sun.star.awt.grid.DefaultGridDataModel, m_xContext);
 XGridDataModel xGridDataModel=  (XGridDataModel)  UnoRuntime.queryInterface(
XGridDataModel.class, dataModel);
 Object  oGraphicProvider=  
xMultiComponentFactory.createInstanceWithContext(com.sun.star.graphic.GraphicProvider,
 m_xContext);
 XGraphicProvider xGraphicProvider=  (XGraphicProvider)  
UnoRuntime.queryInterface(XGraphicProvider.class, oGraphicProvider);
 // create the graphic object
 PropertyValue[]  aPropertyValues=  new  PropertyValue[1];
 PropertyValue aPropertyValue=  new  PropertyValue();
 aPropertyValue.Name  =  URL;
 aPropertyValue.Value  =  file:///c:/myimages/testimage.png;
 aPropertyValues[0]  =  aPropertyValue;
 XGraphic xGraphic=  xGraphicProvider.queryGraphic(aPropertyValues);
 xGridDataModel.addRow(1,new  Object[]{xGraphic,1,2,1.3});
 //one row which contains only text
 xGridDataModel.addRow(2,new  Object[]  {2,1,2,2,1,3}  );


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Playing mp4 video's in Libreoffice Windows

2014-06-25 Thread Fernand Vanrie
Wath 's the current situation and the future for playing mp4 video's in 
LibreOffice Windows ?


Mp4 can aperently been played on Mac and Ubuntu (LO 4.3)

From related issues  i learned that there is new code  using  VLC and 
his included codec's
Will the new code also  work using the Basic and API   who is currently 
using DirectX  and limited to some older codec's (avi etc)

oManager = CreateUnoService(com.sun.star.media.Manager_DirectX)
oPlayer = oManager.createPlayer( videoURL )

Thanks for any hints

Fernand

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Playing Video in a Dialog

2014-04-28 Thread Fernand Vanrie

On 28/04/2014 18:07, Michael Stahl wrote:

On 17/04/14 11:23, Fernand Vanrie wrote:

On The French user site i found usefull code to play video on Windows
using the API and Basic.

The code opens a MediaWindow and play any video

The player has a undocumented method CreatePlayerWindow who needs
arguments (a empty array do crash LO)

Do someone knows how to use this method and how Video can been played in
a Dialog ?

hi Fernand,

let's see...

avmedia/source/win/window.cxx:

bool Window::create( const uno::Sequence uno::Any  rArguments )
{
 IVideoWindow* pVideoWindow = const_cast IVideoWindow* ( 
mrPlayer.getVideoWindow() );
 WNDCLASS* mpWndClass = lcl_getWndClass();

 if( !mnFrameWnd  pVideoWindow  mpWndClass )
 {
 awt::Rectangle  aRect;
 sal_IntPtr   nWnd;

 rArguments[ 0 ] = nWnd;
 rArguments[ 1 ] = aRect;

 mnParentWnd = static_castint(nWnd);


so on Windows, parameters are a HWND of the parent and a rectangle...
probably the parameters are undocumented for a reason, very
system-dependent and subject to change without notice.  also i have no
idea how you can get a window's HWND from BASIC code.


Michael thakns for the hint

on the ooForum i found this code:


Dim arg(0) As Object
Dim oWindow As Object
...
   moSM = CreateObject(com.sun.star.ServiceManager)

   moDesk = moSM2.CreateInstance(com.sun.star.frame.Desktop)
  oWindow = moDesk.ActiveFrame.GetContainerWindow()
Dim tableau()
tableau = Array()
' the 1st param is an empty array, the 2nd is an integer = 1 (may 
be OS dependant ?)

mHwndOOo = oWindow.getWindowHandle(tableau, 1)

but how to make this work in a dialog ?

Greetz

Fernand




___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Playing Video in a Dialog

2014-04-17 Thread Fernand Vanrie
On The French user site i found usefull code to play video on Windows 
using the API and Basic.


The code opens a MediaWindow and play any video

The player has a undocumented method CreatePlayerWindow who needs 
arguments (a empty array do crash LO)


Do someone knows how to use this method and how Video can been played in 
a Dialog ?


Thanks for any hints

Global video
Global oPlayer
Global Player_flag, Video_flag, Time

' --
Sub VideoPlayer
   If Video_flag = 0 Then
 video =converttoURL(C:\Users\PMG\Videos\Untitled.avi) ' La vidéo 
à charger

 Video_flag = 1
'for windows:
 oManager = CreateUnoService(com.sun.star.media.Manager_DirectX)
' for Linux
' oManager = 
CreateUnoService(com.sun.star.media.Manager_GStreamer)

End Select
 oPlayer = oManager.createPlayer( video )
   '  oPlayer.CreatePlayerwindow(array()) ' do crash LO
 oPlayer.start() ' Lecture
 Player_flag = 1
   Else
 oPlayer.start() ' Lecture
 Player_flag = 1
   End If
End Sub

' --
Sub VideoPlayer_pause
   If Player_flag = 1 Then
oPlayer.stop() ' Pause
Player_flag = 0
Time = oPlayer.getmediatime()
   End If
End Sub

' --
Sub VideoPlayer_avance_rapide
   If Player_flag = 0 Then
oPlayer.setmediatime(Time +1) ' Avance_rapide
Time = oPlayer.getmediatime()
   End If
End Sub

' --
Sub VideoPlayer_recul_rapide
   If Player_flag = 0 Then
oPlayer.setmediatime(Time -1) ' Recul_rapide
Time = oPlayer.getmediatime()
   End If
End Sub

' --
Sub VideoPlayer_stop
   oPlayer.stop() ' Pause
   'Video_flag = 1
   Time = 0
   oPlayer.setmediatime(Time)
End Sub

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: UNO: Possible to get printing progress?

2014-04-07 Thread Fernand Vanrie

Ignaz ,

in Basic we use this code
as long the bIsBusy  is false , the printing is not finished

hope it helps

greetz

Fernand
 oDocument.setModified(false)
  Dim PrinterProps(1) As New com.sun.star.beans.PropertyValue
  PrinterProps(0).Name=wait
  PrinterProps(0).value=true
  PrinterProps(1).Name = IsBusy

dim bIsBusy as boolean
bIsBusy = True
While bIsBusy
dim aPrintConditions as object
   aPrintConditions = oDocument.getPrinter()
dim i as integer
   For i = LBound( aPrintConditions ) To UBound( aPrintConditions )
  If aPrintConditions(i).Name = IsBusy Then
 bIsBusy = aPrintConditions(i).Value
  EndIf
   Next
   Wait 10' Wait is a built in Basic statement
WEnd
oDocument.Print(array())
 endif

Hello,

is it possible to get the printing progress of a document via UNO? 
This would make it possible to give the user some feedback when 
printing large documents.


The closest thing I've found is the PrintJobEvent 
(http://api.libreoffice.org/docs/idl/ref/structcom_1_1sun_1_1star_1_1view_1_1PrintJobEvent.html), 
however the PrintableState seems to contain only very basic 
information (Started, Completed, Spooled)...


Thanks a lot,
Ignaz
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


How to put Basic IDE code completion to work

2014-03-18 Thread Fernand Vanrie
Found new Basic IDE options in 4.2 , but where to find some 
documentation how this new stuff works ?


Thanks for any hint

Fernand
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


need CONFIRMATION about images linked to a http location

2014-03-17 Thread Fernand Vanrie

With 4.2.2.1 windows

Pictures in Writer and Html documents linked to a http location no 
longer opens and can no longer been inserted what makes the use of 
images in a HTML doc imposible


A picture linked to http://pmg.pmgroup.be/enews/idb/grafiek9.jpg; can 
been opened and viewed in a writer and Html doc until 4.0 but no longer 
since  4.2


you can use the link to test

is it a bug or wanted behaviour ?

Greetz

Fernand


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [libreoffice-users] need CONFIRMATION about images linked to a http location

2014-03-17 Thread Fernand Vanrie

Dries , all,

Thanks, ist a bug , found it  myself now , only when using the option 
Use LibreOffice Dialogs the bug is happening , when using System 
dialogs , the Http locations can been used


i fill a issue

Greetz

Fernandnd

Fernand,

I just tried this in 4.2.2.1 as well, and this works just fine: I
created a new file and inserted an image through insert image from
file.

Met vriendelijke groeten, Salutations distinguées, Kind Regards,

DRIES FEYS
CORPORATE SERVICES • Specialist Software Developer

TVH GROUP NV
Brabantstraat 15 • BE-8790 WAREGEM
T +32 56 43 42 11 • F +32 56 43 44 88 • www.tvh.com
Watch our company movies on www.tvh.tv


On 17 March 2014 17:30, Fernand Vanrie s...@pmgroup.be wrote:

With 4.2.2.1 windows

Pictures in Writer and Html documents linked to a http location no longer
opens and can no longer been inserted what makes the use of images in a HTML
doc imposible

A picture linked to http://pmg.pmgroup.be/enews/idb/grafiek9.jpg; can
been opened and viewed in a writer and Html doc until 4.0 but no longer
since  4.2

you can use the link to test

is it a bug or wanted behaviour ?

Greetz

Fernand



--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems?
http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be
deleted



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: need CONFIRMATION about images linked to a http location

2014-03-17 Thread Fernand Vanrie



Thanks,
 found the bug myself now , only when using the option Use LibreOffice 
Dialogs the bug is happening , when using System dialogs , the Http 
locations can been used


i fill a issue

Fernand Vanrie schreef op 17/03/2014 17:30:

With 4.2.2.1 windows

Pictures in Writer and Html documents linked to a http location no 
longer opens and can no longer been inserted what makes the use of 
images in a HTML doc imposible


A picture linked to http://pmg.pmgroup.be/enews/idb/grafiek9.jpg; 
can been opened and viewed in a writer and Html doc until 4.0 but no 
longer since  4.2


you can use the link to test

is it a bug or wanted behaviour ?

Greetz

Fernand




___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


OfficeMenuBar no longer takes private menu's in StartModule

2014-03-13 Thread Fernand Vanrie

With  4.2 (Windows)

Private Extensions menu's are no longer visible in the StartModule
Private Toolbars are still visible in the StartModule

node oor:name=OfficeMenuBar
node oor:name=MyPrivateMenu.OfficeMenuBar oor:op=replace
prop oor:name=Context oor:type=xs:string 
valuecom.sun.star.frame.StartModule,com.sun.star.text.TextDocument,com.sun.star.sdb.TextReportDesign,com.sun.star.text.WebDocument,com.sun.star.xforms.XMLFormDocument,com.sun.star.text.GlobalDocument,com.sun.star.sdb.FormDesign,com.sun.star.sheet.SpreadsheetDocument,com.sun.star.drawing.DrawingDocument,com.sun.star.presentation.PresentationDocument,com.sun.star.sdb.OfficeDatabaseDocument/value

/prop

this menu shows in the different modules but 
com.sun.star.frame.StartModule is sillently ignored






node oor:name=MyPrivate Toolbar.OfficeToolBar oor:op=replace
node oor:name=m001 oor:op=replace
prop oor:name=Context oor:type=xs:string 
valuecom.sun.star.frame.StartModule,com.sun.star.text.TextDocument,com.sun.star.sdb.TextReportDesign,com.sun.star.text.WebDocument,com.sun.star.xforms.XMLFormDocument,com.sun.star.text.GlobalDocument,com.sun.star.sdb.FormDesign,com.sun.star.sheet.SpreadsheetDocument,com.sun.star.drawing.DrawingDocument,com.sun.star.presentation.PresentationDocument,com.sun.star.sdb.OfficeDatabaseDocument/value

/prop

here the Menubar is showed in the startModule


is it forbidden to show private Menu's in the start Module ?

Thanks for any hint
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Can XML been imported/transformed with API

2014-02-25 Thread Fernand Vanrie

  
  
Hallo,
  
In the past there was he "com.sun.star.comp.JAXTHelper" to
make a translation of a XML this stuff is now removed from LO

SaxtHelper is replaced by com.sun.star.comp.documentconversion.LibXSLTTransformer 
  
In the past there was some code (below originated from the
Hanja Hermione website) to work with this JAXThelper i tried the
same code but now using com.sun.star.comp.documentconversion.LibXSLTTransformer 
  

No errors but i end up with a empty "out.txt" file 

can someone explain how to work with the new stuff or is it simply
not possible to make XML transformations using the API.

(the SaxParser is working but to slow for big files)

Greetz

And thanks for any advice

Fernand
Sub Main
  bStarted = True
  oSFA = CreateUnoService( _
"com.sun.star.ucb.SimpleFileAccess" )
  
  oIn = oSFA.openFileRead("file:///C:/usr/content.xml")
  oOut = oSFA.openFileWrite("file:///C:/usr/out.txt")
  
  Dim aNamed(6) As New com.sun.star.beans.NamedValue
  aNamed(0).Name = "StylesheetURL"
  aNamed(0).Value = "file:///C:/yourXSLT.xsl"
  aNamed(1).Name = "SourceURL"
  aNamed(1).Value = "file:///C:/usr/yourcontent.xml"
  aNamed(2).Name = "TargetURL"
  aNamed(2).Value = "file:///C:/out.txt"
  aNamed(3).Name = "SourceBaseURL"
  aNamed(3).Value = "file:///C:/"
  aNamed(4).Name = "TargetBaseURL"
  aNamed(4).Value = "file:///C:/"
  aNamed(5).Name = "SystemType"
  aNamed(5).Value = ""
  aNamed(6).Name = "PublicType"
  aNamed(6).Value = ""
  
  oStreamListener = CreateUnoListener( "Stream_", _
"com.sun.star.io.XStreamListener" )
  
  oJAXHelper = CreateUnoService( _
  "om.sun.star.comp.documentconversion.LibXSLTTransformer " )
  oJAXHelper.initialize(aNamed)
  oJAXHelper.addListener(oStreamListener)
  oJAXHelper.setInputStream(oIn)
  oJAXHelper.setOutputStream(oOut)
  
  ' start translation
  oJAXHelper.start()
  
  ' needs to wait the end of translation
  While bStarted
wait 100
  WEnd
  
  oJAXHelper.removeListener(oStreamListener)
  oIn.closeInput()
  oOut.closeOutput()
End Sub


  

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Example in Java

2013-12-09 Thread Fernand Vanrie

Adriam, Miklos

indeed insertstring do not works when inserting text in a tablecell
we need to use setstring instead

code below shows how we need to now if we insert in a cell or in a textFrame

 if not isEmpty(oVC.Cell)  then
   oVC.cell.setstring(BMname) ' insertstring do not works here
 endif
if isEmpty(oVC.TextFrame) and isEmpty(oVC.Cell) then
oVc.gotostart(true)'alle tekst geselecteerd
oVc.text.InsertString(oVC,BMname,True)
endif

hope it helps

Fernand

On Fri, Dec 06, 2013 at 04:21:16PM -0500, Adriam Delgado Rivero 
adriv...@uci.cu wrote:

I'm watching the example 
http://api.libreoffice.org/examples/java/Text/SWriter.java , and insertString 
method does not work. This happens only with libreoffice 4. Works on 
libreoffice 3.6, anyone knows passes, took almost a month with this.

Hi,

What do you mean by does not work exactly? What is the error message
you get?

Miklos


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Vendors Name via UNO API / Basic Macros

2013-11-27 Thread Fernand Vanrie

On 26/11/2013 17:42, Lionel Elie Mamane wrote:

On Tue, Nov 26, 2013 at 02:36:41PM +0100, Fernand Vanrie wrote:

On 26/11/2013 13:56, Lionel Elie Mamane wrote:

On Thu, Nov 21, 2013 at 08:34:04PM +0100, Jan Holesovsky wrote:

Thomas Krumbein píše v Pá 15. 11. 2013 v 15:43 +0100:

Well, this change was a small technical thing - but with a very big
influence on typical market applications. Every custom macro application
with dialogs or forms for user interfaces is influenced if dialogs/forms
using Date/time fields.

Have you filed a bugreport, please?  A minimal example of the macro that
fails would be most appreciated.

Well - it´s not a bug, because you mentioned the change in release-notes
of version 4.1.

There are many ways how to make the problem less annoying in Basic
;-) - we control the Basic implementation, so can work around many
things, and if we are lucky, this will be one of them. I am sure
we'd try to do that before the release with the incompatible change
if we knew early.

Well, I considered doing some magic that when the property is
written,

why not a extra property , date = isodate as it was (all old code
can run it)
cdate = new way

That's essentially a variant of roll back the change.

1) This requires an incompatible change again; 4.2 would be
incompatible with 4.1.

is suppose that there is not a lot off API-basic code around for 4.2 :-)


2) Applied to Time, it leaves the problem of round-tripping.

3) If we set DataFieldProperty to the name of the new
(pseudo?)property (UnoDate? DateAsUNO? StructDate?), the other
problems I'm thinking about should go OK, except that indirect
access through DataFieldProperty will still be incompatible, but
that should be minor?

Go for it, then we can go for 4.1.
If not: then please let it know,  we can start changing the code using a 
conversion


Greetz

Fernand




___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Reformatting a text document via UNO

2013-11-27 Thread Fernand Vanrie

Pavel ,

all formating can been handled wit a macro, the Gimmicks library is 
a good start to see it working

Hi all,

is there a way to reformat parts or whole text document e.g. from a 
Basic macro? Without inserting / changing a text content to force 
formatting.
I am thinking about a macro changing a compatibility option called by 
user during document editing.


Thanks



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Vendors Name via UNO API / Basic Macros

2013-11-26 Thread Fernand Vanrie

On 26/11/2013 13:56, Lionel Elie Mamane wrote:

On Thu, Nov 21, 2013 at 08:34:04PM +0100, Jan Holesovsky wrote:

Thomas Krumbein píše v Pá 15. 11. 2013 v 15:43 +0100:

Well, this change was a small technical thing - but with a very big
influence on typical market applications. Every custom macro application
with dialogs or forms for user interfaces is influenced if dialogs/forms
using Date/time fields.

Have you filed a bugreport, please?  A minimal example of the macro that
fails would be most appreciated.

Well - it´s not a bug, because you mentioned the change in release-notes
of version 4.1.

There are many ways how to make the problem less annoying in Basic
;-) - we control the Basic implementation, so can work around many
things, and if we are lucky, this will be one of them. I am sure
we'd try to do that before the release with the incompatible change
if we knew early.

Well, I considered doing some magic that when the property is
written, if it gets an integer, interpret it the old way and if it
gets a UNO Date struct, interpret it the obvious (new) way. Someone
(Stephan Bergmann?) told me that one could do that for attributes but
not (pseudo?)properties (or something like that); the Basic
implementation (bridge?) would refuse to even pass a value of the
wrong type to the C++ code. I don't see how to achieve it short of
special-casing this into the bridge / other parts of the Basic
implementation. Which sounds like a guaranteed subscription for
maintenance nightmares, and thus not the best of ideas. Would the
Basic implementation / UNO bridge people be willing to actually have
that kind of special-casing?


What´s happend, you can read my article on my homepage. It is in german
language but I am sure, you get the context ;)
http://www.mic-consulting.de/index.php/opersource/api-makros-libo-aoo/10-datumsfelder-geaendert-in-lo-4-1-1

I am sorry, cannot get the context :-(  Can you please turn it into a
minimal example of what used to work, and send it here?  Or even better,
file the bugreport, and send here the link?

Another user already did that: https://bugs.freedesktop.org/68751

It already led to concrete mitigation steps (in the form of utility
functions to convert between the Basic native date type and UNO Date,
Time and DateTime) in 4.1.3 (correctly documented in 4.1.4).

If anybody has concrete actionable ideas on how to sweeten the bitter
pill (short of rollback the change), we sure can consider it.
why not a extra property , date = isodate as it was (all old code can 
run it)

   cdate = new way

Greetz

Fernand




___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Vendors Name via UNO API / Basic Macros

2013-11-19 Thread Fernand Vanrie

On 18/11/2013 22:21, Lionel Elie Mamane wrote:

On Mon, Nov 18, 2013 at 09:10:34PM +0100, David Ostrovsky wrote:

Lionel Elie Mamane wrote on Mon Nov 18 09:32:57 PST 2013

On Mon, Nov 18, 2013 at 06:10:34PM +0100, Fernand Vanrie wrote:
yep conversions are not the problem, its the exiting code who is
broken in many places ?

What exiting code?

This Basic-Macros excerpt:
oDlg.getControl(myDateField).date = CDatetoIso(now())
was broken in LibreOffice 4.1.1. The only known migration path is to
adjust all broken places with:
REM broken oDlg.getControl(myDateField).date = CDatetoIso(now())
dim oDat as new com.sun.star.util.Date
 with oDat
  .day = Day(now)
  .month = Month(now)
  .year = Year(now)
 end with
 oDlg.getControl(myDateField).date = oDat
Now, if you have thousands LoC of Basic Macros, ...

I had understood exiting code as the return value of a procedure, so
I was completely lost as to what was meant. I now understand that
Fernand meant exiSting code, where code is not a value (a number /
string), but a piece of program.

On a sidenote,

oDlg.getControl(myDateField).date = CDatetoIso(now())

can be replaced by

oDlg.getControl(myDateField).date = CDateToUnoDate(now())

Lionel,

Do you mean dat going back to

dlg.getControl(myDateField).date as Isovalue and adding a 
dlg.getControl(myDateField).cdate is not option anymore ?





___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Vendors Name via UNO API / Basic Macros

2013-11-19 Thread Fernand Vanrie

On 18/11/2013 18:32, Lionel Elie Mamane wrote:

On Mon, Nov 18, 2013 at 06:10:34PM +0100, Fernand Vanrie wrote:

On 18/11/2013 18:02, Lionel Elie Mamane wrote:

On Fri, Nov 15, 2013 at 03:43:10PM +0100, Thomas Krumbein wrote:

Am 15.11.2013 15:35, schrieb Jan Holesovsky:

Thomas Krumbein píše v Pá 15. 11. 2013 v 13:43 +0100:

Well, this change was a small technical thing - but with a very big
influence on typical market applications. Every custom macro application
with dialogs or forms for user interfaces is influenced if dialogs/forms
using Date/time fields.

Have you filed a bugreport, please?  A minimal example of the macro that
fails would be most appreciated.

Well - it´s not a bug, because you mentioned the change in release-notes
of version 4.1.
What´s happend, you can read my article on my homepage. It is in german
language but I am sure, you get the context ;)
http://www.mic-consulting.de/index.php/opersource/api-makros-libo-aoo/10-datumsfelder-geaendert-in-lo-4-1-1

I took a look; since ... 4.1.2? 4.1.3? not sure anymore, you can also
use:
  CDateFromUnoDate
to replace
  CDateFromIso

yep conversions are not the problem, its the exiting code who is
broken in many places ?

What exiting code?
sorry: existing  code like in my  private macro's and some extentions 
who uses the date property comming from a date control




___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Vendors Name via UNO API / Basic Macros

2013-11-18 Thread Fernand Vanrie

On 18/11/2013 18:02, Lionel Elie Mamane wrote:

On Fri, Nov 15, 2013 at 03:43:10PM +0100, Thomas Krumbein wrote:

Am 15.11.2013 15:35, schrieb Jan Holesovsky:

Thomas Krumbein píše v Pá 15. 11. 2013 v 13:43 +0100:

Well, this change was a small technical thing - but with a very big
influence on typical market applications. Every custom macro application
with dialogs or forms for user interfaces is influenced if dialogs/forms
using Date/time fields.

Have you filed a bugreport, please?  A minimal example of the macro that
fails would be most appreciated.

Well - it´s not a bug, because you mentioned the change in release-notes
of version 4.1.
What´s happend, you can read my article on my homepage. It is in german
language but I am sure, you get the context ;)
http://www.mic-consulting.de/index.php/opersource/api-makros-libo-aoo/10-datumsfelder-geaendert-in-lo-4-1-1

I took a look; since ... 4.1.2? 4.1.3? not sure anymore, you can also
use:

  CDateFromUnoDate
  CDateFromUnoTime
  CDateFromUnoDateTime
  CDateToUnoDate
  CDateToUnoTime
  CDateToUnoDateTime

to replace

  CDateFromIso
  CDateToIso

Lionel,
yep conversions are not the problem, its the exiting code who is broken 
in many places ?


can you restore  the Date property as a ISO value and add a extra 
property Cdate  then no code is broken ?


Greetz

Fernand

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Vendors Name via UNO API / Basic Macros

2013-11-15 Thread Fernand Vanrie

 Andrew ,
the problem is :

 stardiv.Toolkit.UnoDateFieldControls who has until 4.0 a date 
property who is a ISO representation of the datevalue.
Since 4.1 this date property is a structure (day, month, year) who is 
more handy but painfull for us with hundreds of code lines using the 
isovalue.


i signaled this already to Lionel, but he he is working hard to solving 
other base problems, i supose  e we should fil a Regresion issue for this ?


On 11/15/2013 07:43 AM, Thomas Krumbein wrote:
Every custom macro application with dialogs or forms for user 
interfaces is influenced if dialogs/forms using Date/time fields. And 
typicly most of them (in my applications about 70%) used those 
fields. So all applications will crash using LO 4.1.1.2 or upper.


Are you saying that if you use a Date / Time field in a form or dialog 
in LO, it fails? If there is more to it, can you be more specific, 
sorry if I am uninformed on this.




___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


TextListener behavior

2013-11-06 Thread Fernand Vanrie
When adding a Textlistener on a DialogControl the Listener is reacting 
on textchanged once when adding a character or replacing some 
characters. But  the Listenere is reactiong twice when using the  delete 
or backspace key.

Is this wanted behavior or a bug ?

Greetz

Fernand

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: XRowLocate::findColumn API definition ambiguities

2013-09-11 Thread Fernand Vanrie

Andrzej ,

maybe also implement a HasColumn to made the use of FindColumn more 
secure


Greetz

Fernand

Hi everyone,

The definition of XRowLocate::findColumn, and its implementations, all
seem to be slightly confused.

XRowLocate doesn't specify what should happen what happens if findColumn
is called for an invalid column name. Currently some drivers return -1,
some drivers return the number of columns + 1 (they loop over all the
columns and don't check for this case). A number of implementations
actually have comments to the effect that they should return -1 or throw
an Exception.

In the case of JDBC drivers: the JDBC specification states that an
SQLException should be thrown in this case. This is therefore probably
what happens with any JDBC driver since findColumn is just passed
directly to JDBC (this also includes the HSQLDB driver which runs via
JDBC).

This means that any user of findColumn has to expect either an exception
or various invalid numerical values. (IMHO the Exception is most correct
and is what I've done for now with the Firebird driver.)

Is it OK if I rewrite the specification of findColumn to mirror that of
the JDBC specification, perhaps with a note that some drivers may still
return invalid values instead? (Of course I'd also upgrade all the
drivers to reflect the new specification -- so this note would only
apply to any external drivers -- are there any?)

Cheers,

Andrzej

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice-qa] minutes of ESC call ...

2013-09-08 Thread Fernand Vanrie

Cor ,

+ 1 to have the navigator in a sidebar cleary showing the hidden 
elements (like graphics with sizes and formats) pressent in a document

Michael Meeks wrote (05-09-13 17:03)

 + come up with a proposal on what still needs improving in 
sidebar land (Astron)


Published some thoughts on this (as promised lóng ago ;) )

http://lists.freedesktop.org/archives/libreoffice-ux-advise/2013-September/002323.html 






___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/

Re: PDF Export: adding the print options

2013-09-05 Thread Fernand Vanrie

Brian,

Good to make PDF export better, more professional. We uses the export a 
lot to deliver PDF to our professional print houses.

It works very wel, exept the lack off  boxes in the PDF file
TRIMbox = where to cut the printed result (needed for pinting)
BLEEDbox = is mostly TRIMbox + 5mm  (needed for printing)
MEDIAbox not realy needed
CROPbox not realt needed

we to the printing with the API and basic code

below our code with all the Filterdata we know off (maybe there are more ?)
so we need some  filter options to set the TRIMbox and the BLEEDbox

pdfHighResFilterData() = 
array((makepropertyvalue(UseLosslessCompression, false))
 AddPropertyValue(pdfHighResFilterData,Quality,90) ' enkel als we 
UseLossLess FALSE is (dan is het jpg)

'AddPropertyValue(pdfHighResFilterData,ReduceImageResolution,true)
'AddPropertyValue(pdfHighResFilterData,MaxImageResolution,150) ' only 
if  reduceImages = TRUE and only  75, 150, 300, 600, 1200 available

AddPropertyValue(pdfHighResFilterData,UseTaggedPDF,false)
AddPropertyValue(pdfHighResFilterData,SelectPdfVersion,0) '0= pdf1.4 , 
1= pdf-xa

AddPropertyValue(pdfHighResFilterData,ExportNotes,false)
AddPropertyValue(pdfHighResFilterData,ExportBookmarks,false)
AddPropertyValue(pdfHighResFilterData,OpenBookmarkLevels,-1)
AddPropertyValue(pdfHighResFilterData,UseTransitionEffects,true)
AddPropertyValue(pdfHighResFilterData,IsSkipEmptyPages,true)
AddPropertyValue(pdfHighResFilterData,IsAddStream,false)
AddPropertyValue(pdfHighResFilterData,EmbedStandardFonts,false)
AddPropertyValue(pdfHighResFilterData,FormsType,0)
AddPropertyValue(pdfHighResFilterData,ExportFormFields,true)
AddPropertyValue(pdfHighResFilterData,AllowDuplicateFieldNames,false)
AddPropertyValue(pdfHighResFilterData,HideViewerToolbar,false)
AddPropertyValue(pdfHighResFilterData,HideViewerMenubar,false)
AddPropertyValue(pdfHighResFilterData,HideViewerWindowControls,false)
AddPropertyValue(pdfHighResFilterData,ResizeWindowToInitialPage,false)
AddPropertyValue(pdfHighResFilterData,CenterWindow,false)
AddPropertyValue(pdfHighResFilterData,OpenInFullScreenMode,false)
AddPropertyValue(pdfHighResFilterData,DisplayPDFDocumentTitle,true)
AddPropertyValue(pdfHighResFilterData,InitialView,0)
AddPropertyValue(pdfHighResFilterData,Magnification,0)
AddPropertyValue(pdfHighResFilterData,Zoom,100)
AddPropertyValue(pdfHighResFilterData,PageLayout,0)
AddPropertyValue(pdfHighResFilterData,FirstPageOnLeft,false)
AddPropertyValue(pdfHighResFilterData,InitialPage,1)
AddPropertyValue(pdfHighResFilterData,Printing,2)
AddPropertyValue(pdfHighResFilterData,Changes,4)
AddPropertyValue(pdfHighResFilterData,EnableCopyingOfContent,true)
AddPropertyValue(pdfHighResFilterData,EnableTextAccessForAccessibilityTools,true)
AddPropertyValue(pdfHighResFilterData,ExportLinksRelativeFsys,false)
AddPropertyValue(pdfHighResFilterData,PDFViewSelection,0)
AddPropertyValue(pdfHighResFilterData,ConvertOOoTargetToPDFTarget,false)
AddPropertyValue(pdfHighResFilterData,ExportBookmarksToPDFDestination,false)
AddPropertyValue(pdfHighResFilterData,_OkButtonString,)
AddPropertyValue(pdfHighResFilterData,EncryptFile,false)
AddPropertyValue(pdfHighResFilterData,DocumentOpenPassword,)
AddPropertyValue(pdfHighResFilterData,RestrictPermissions,false)
AddPropertyValue(pdfHighResFilterData,PermissionPassword,)

   oExport = Array( _
  MakePropertyValue(Overwrite, True), _
  MakePropertyValue(FilterName, writer_pdf_Export), _
  MakePropertyValue(FilterData, pdfHighResFilterData), _
   )

oDoc.storeTOURL(path,oExport)

hope i helps

greetz

Ferand


I'm new to LibreOffice development and looking at enhancing the PDF 
export functionality, especially for Impress. I would like to add the 
print options (such as print grayscale, black and white, 
pages-per-sheet, ...) to PDF exporting.


Specifically, I'm looking at adding the LibreOffice Impress and 
Page Layout tabs (from the File--Print dialog) to the 
File--Export as PDF dialog. I have traced the code enough to see 
that printing and PDF export use the same OutputDevice class, which 
seems to support at least some of the options in question, so I'm 
hopeful it would work well.


Questions I need help with:
1. Is this a reasonable feature idea?
2. Would this be reasonably straight-forward to implement (i.e., are 
printing and PDF export as compatible as I might hope)?
3. Where is the code for the print dialog's tabs, and the export to 
PDF dialog's tabs?
4. Where is the code for setting the output layout (ex: 4 pages per 
sheet)?


Some background info:
I am a university lecturer and I export PDFs of my notes daily. I can 
print to a PDF printer; however Acrobat and PDF Creator under Windows 
generate very large PDFs (they come out as bitmaps vs a more vector 
format). My slides have a background color and the PDF needs to be 
black-and-white (to print well without wasting ink), and have 4 slides 
per page. I have hacked around the code to prove I can generate a PDF 
in the correct black-and-white 

Re: How to know the current viewed page and line in writer

2013-07-24 Thread Fernand Vanrie

 Ptyl ,

as told before, you find all position information in the viewcursor object

Hi
I looked into fdo#40465, but could not find any code snippets or 
something similar i could integrate in my code.
Moreover, using XRays, i saw that getViewData returns the location and 
size of the window, with respect to the desktop, and not the relative 
location of the viewer, with respect to the document. The view data 
remains as is, no matter which portion of the document i view. 
Moreover, the ZoomFactor shows incorrect values, a fact which may be 
related with fro#40465.


Still, it is a fact, LibreOffice knows which portions of the document 
to show.

So what component holds this data, and is it reachable via UNO?
If it is not reachable through UNO, what is the closest component 
which is reachable through UNO, so that we could extend its UNO 
support, so to provide us this data?



On Mon, Jul 22, 2013 at 2:33 PM, Winfried Donkers 
w.donk...@dci-electronics.nl mailto:w.donk...@dci-electronics.nl 
wrote:


Hi Ptyl,

Bug fdo#40465 may give you (some) information you seek. There
appears to be a problem in correctly calculating/getting the page
in the viewer.

HTH,

Winfried




--

appicon.png



*Ptyl Dragon*

Twitter http://www.twitter.com/cloudoninc|LinkedIn 
http://www.linkedin.com/company/cloudon |Facebook 
http://www.facebook.com/cloudoninc|Blog http://site.cloudon.com/blog







___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: How to know the current viewed page and line in writer

2013-07-18 Thread Fernand Vanrie

 Ptyl ,

the secret is the vieuwcursor object who can tel you where you are in 
the document , page,or X-Y position etc...


For basic code :

oDoc =  ThisComponent
oText = oDoc.getText()
oCursor = oDoc.CurrentController.getViewCursor()
oCursor.gotoRange(oCursor.getEnd(), false)

greetz

Fernand

Hello

We would like to implement a new GUI element (for mobile), so to show 
the current viewed location in writer.


For this, we need to know:

1. Which line the writer GUI is currently showing (which may be 
different from the line the caret / cursor is on - such as when 
scrolling, for example)

2. How many lines there are in total, in the writer document

What is the simplest way to get this information?
is it available through UNO, and if not, how can we attain it?

Additionally, as a fallback, we would like to simply to know which 
page writer is showing, and how many pages there are in total.

What is the simplest way to get this data?

If there are no already existing accessors for this information, can 
you please direct me to methods and files to hack into or modify to 
get this data?


Thank you in advance

Ptyl


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Whats te alternative for com.sun.star.awt.DisplayAccess ?

2013-07-10 Thread Fernand Vanrie

Stephan,

On 07/04/2013 03:13 PM, Fernand Vanrie wrote:

sinds 4.1
com.sun.star.awt.DisplayAccess

is no longer working
 oDisplayAccess = createUnoService(com.sun.star.awt.DisplayAccess)
 oDisplayAccess is empty 
 oDisplayInfo = oDisplayAccess.getByIndex(0)
 aScreenArea = oDisplayInfo.ScreenArea
 iScreenW =aScreenArea.Width
 iScreenH =aScreenArea.Height

This was always undocumented i hope there is a documented 
alternative ?


FWIW, it got removed with 
http://cgit.freedesktop.org/libreoffice/core/commit/?id=dde234b6955a421d51d2b37e4fc3972c660146f0 
fdo#46808, remove awt::DisplayAccess service.



i know, filled a issue https://bugs.freedesktop.org/show_bug.cgi?id=66762

but who knows the alternative, its now impossible to find the screen 
size for machine who runs LO ! when using big dialogs its a absolute 
must have !


using the toolkit

otoolkit = createUnoService(com.sun.star.awt.Toolkit)
 aWorkRect = otoolkit.getWorkArea()

is also a deadlock because the workarea is empty (4 x0)

greetz

Fernand



Stephan

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Need Confirmation: since 4.1 MySQL datetime fields are wrangled in LO base tables

2013-07-10 Thread Fernand Vanrie
I connect with the Windows Native MYSQL connector  (compiled against 
4.0) to a MySQL database


since 4.1 all DateTime fields are wrangled  when showing  a table in 
LO base, when changing the values using LO then they are also wrangled 
in the original MySQL table

date values seems to be OK

can that been confirmed on other than windows machines and maybe other 
connectors ?


Lionel Elie Mamane suggested  that due to some changes in the base code 
the Windows Connector has to been recompiled against 4.1  ?


Greetz

Fernand
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Whats te alternative for com.sun.star.awt.DisplayAccess ?

2013-07-04 Thread Fernand Vanrie

sinds 4.1
com.sun.star.awt.DisplayAccess

is no longer working
oDisplayAccess = createUnoService(com.sun.star.awt.DisplayAccess)
oDisplayAccess is empty 
oDisplayInfo = oDisplayAccess.getByIndex(0)
aScreenArea = oDisplayInfo.ScreenArea
iScreenW =aScreenArea.Width
iScreenH =aScreenArea.Height

This was always undocumented i hope there is a documented alternative ?

Greetz

Fernand
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


how to add a GrapgicFilter to a com.sun.star.drawing.GraphicObjectShape

2013-05-26 Thread Fernand Vanrie
This can been done with the GUI but with the API  i do not found any 
property or method to add a graphicfilter to a 
com.sun.star.drawing.GraphicObjectShape


thanks for any hint
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: minutes of ESC call ...

2013-05-24 Thread Fernand Vanrie

 Lionel ,

i did a lot of googling, but still not know what are this extra properties ?

Greetz

Fernansd

On Fri, May 17, 2013 at 12:49:03PM +0200, Eike Rathke wrote:


On Thursday, 2013-05-16 16:25:40 +0100, Michael Meeks wrote:

+ double check Lionel's list-box / API change (Eike)

Done. The two properties added to
com.sun.star.form.component.DataBaseListBox are marked optional which
doesn't harm existing clients.

I did that on advice of ... Michael Stahl? ... on IRC to shut up the
incompatible API change error the build was giving me.

My understanding was that this was for the benefit of putative
existing *providers* of this service, that since the properties are
optional, we did not change the requirements under their feet and they
still conform to the service specification.

I don't understand how the properties being not optional would harm
*clients* (users of the service): clients written against the old
specification would simply not use the new properties, would they?

I toyed with the idea of adding a
com.sun.star.form.component.DataBaseListBox2 that makes them
non-optional so that users can be assured to have those properties,
but in the end I did not bother, and now we are past the 4.1 new
feature freeze.



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: minutes of ESC call ...

2013-04-12 Thread Fernand Vanrie

Op 11/04/2013 19:44, Michael Meeks schreef:

On Thu, 2013-04-11 at 19:25 +0200, Fernand Vanrie wrote:

Many weeks ago, the Mysql Native Connector was a Pending Action on
the  ESC call ...with a solution in view,  but since: no news

No idea who was working on that.

IIRC it is a matter of either encouraging someone to re-compile the
extension, -or- just installing the legacy stlport DLL on the system
[ IIRC ].


MySQL connectivity is a  big issue for many users, or they  stay with LO
3.6 or they have to go for aOO 4.0 who has a fine working Connector ?

IIRC someone was working on a new connector using the (compatible)
MariaDB connector library that has a sensible license that we can
distribute built-in [ which would be ideal ].

Not sure of the progress of any of that though, if you're interested -
it's worth keeping note of whomever was doing the work so you can poll
them later - can you dig all of that out of the archives and follow up ?


ESC call 2012-12-07
* LGPL / mariadb mysql client library (Lionel) + identical C / client 
API: http://openquery.com/blog/mariadb-client-libraries-end-duallicensing
+ need a compatible C++ API / wrapper for existing code to work or mysql 
connector needs re-writing
 + that wrapper is useful - bringing us to a JDBC interface + 
volunteer(s) to help out here appreciated.


ESC call 2013-01-24
* MySQL connector compat issues (Sweetshark, 15:51:39)
 * comments on the bugs: recompile against 4.0 for stlport drop 
(Sweetshark, 15:52:38)
* who releases, publishes that? TDF would host, if someone would build? 
Thorsten: maybe not even then, needs further resaerch. (Sweetshark, 
15:54:57)

* ACTION: Thorsten looking into the MySQL stuff (Sweetshark, 15:56:53)

ESC call 2013-02-07
+ STLPort removal - release-note: Document dropping the DLL and the VS 
run-time on the system in the release-notes (Fridrich) + German 
translators have special data for Duden too (nice!)
+ MySQL connector - can/will/where to ship it (Lionel) + just needs to 
be re-compiled vs. not having stlport + needs a volunteer to do that.


Thanks,

Michael.



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: minutes of ESC call ...

2013-04-11 Thread Fernand Vanrie

Michael ,

Many weeks ago, the Mysql Native Connector was a Pending Action on 
the  ESC call ...with a solution in view,  but since: no news


MySQL connectivity is a  big issue for many users, or they  stay with LO 
3.6 or they have to go for aOO 4.0 who has a fine working Connector ?


Greetz

Fernand

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Missing service SvgWriter - forgotten when rebasing with AOO

2013-03-07 Thread Fernand Vanrie

Michael ,

OK ,  but we need SVG and a working Native mySQL connector :-)

so: any news about a volonteer to compile Connector for 4.0 (windows) ?

Greetz

Fernand

Hi Fernand,

On Thu, 2013-03-07 at 08:45 +0100, Fernand Vanrie wrote:

any change the SVG stuff and this repairs happens also for later 3.6
releases ?

That seems unlikely; one reason is that I'd expect the SVG code to be
significantly different for 3.6 :-)

HTH,

Michael.



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Missing service SvgWriter - forgotten when rebasing with AOO

2013-03-06 Thread Fernand Vanrie

Tomaž,

yep: exporting using the api and 
com.sun.star.drawing.GraphicExportFilter with the image/svg+xml 
mediatype is also not working  (image/x-emf works and deliver proper 
Vector)


BTW: is your work around the Lancsoz interpolation also present in aOO ?

Greetz

Fernand



Hi,

 I am looking why exporting SVG doesn't work when exporting charts 
(fdo#60137). In [1] we need|com.sun.star.svg.SVGWriter| but it is 
not present in LO. Looks to me like we missed to include changes in 
[2] from AOO when rebasing. What should we do about this?


Regards, Tomaž

[1] 
http://cgit.freedesktop.org/libreoffice/core/tree/vcl/source/filter/graphicfilter.cxx#n2173
[2] 
http://cgit.freedesktop.org/libreoffice/core/commit/filter/source/svg/svgwriter.hxx?h=aoo/trunkid=891011181285d7ad54984ffd05ed44d825a70647



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Missing service SvgWriter - forgotten when rebasing with AOO

2013-03-06 Thread Fernand Vanrie

 Michael ,

any change the SVG stuff and this repairs happens also for later 3.6 
releases ?

Greetz
Fernand

  I am looking why exporting SVG doesn't work when exporting charts
(fdo#60137). In [1] we need com.sun.star.svg.SVGWriter but it is not
present in LO. Looks to me like we missed to include changes in [2]
from AOO when rebasing. What should we do about this?

Will fix it, thanks ! :-)

Michael.



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [tdf-discuss] macro compatibility between LO and AOO?

2013-03-04 Thread Fernand Vanrie

On 4/03/2013 8:27, M. Fioretti wrote:

On Mon, Mar 04, 2013 08:16:25 AM +0100, Fernand Vanrie wrote:


99% percent , changes comes and will come from incompatiliteis in de API.
for now this is OK, small changes from version to version, but
nothing who not can been repaired or handled with the code( basic)
itself

I knew that. The sense of my question is, is there is a list of things
to avoid beforehand, rather than wait that they break and fix the
code?
thats more a question for the developers list . 
LibreOffice@lists.freedesktop.org  and fore the aOO counterpart 
ooo-...@incubator.apache.org


Thanks,
Marco



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: are the New Graphic Compress features accessable for API

2013-02-28 Thread Fernand Vanrie

Caolán ,

Thanks for your interest,

On Sun, 2013-02-24 at 13:49 +0100, Fernand Vanrie wrote:

Tomaž Vajngerl made new Graphic Compress tools, they are sinds 4.0
available using the GUI and the new Compress Graphics Dialog in Draw,
Calc and Impress.

1: Can this features been accessed using the API and Basic ?

2: Is the new Lanczos Interpolation also available when using The
Graphic Profider to export a Graphic ?

- also  for Tomaž  future plans ?

I sort of doubt its accessible via UNO (but maybe I'm wrong),
- at least we need a argument in the export filter settings to choose  
the the interpolation quality using Draw-export and also for  the 
Graphic Provider





unless
Tomaž has future plans around that ?

C.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


are the New Graphic Compress features accessable for API

2013-02-25 Thread Fernand Vanrie
Tomaž Vajngerl made new Graphic Compress tools, they are sinds 4.0 
available using the GUI and the new Compress Graphics Dialog in Draw, 
Calc and Impress.


1: Can this features been accessed using the API and Basic ?

2: Is the new Lanczos Interpolation also available when using The 
Graphic Profider to export a Graphic ?


Thanks for any hint

Fernand
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice-qa] libre o. 4.0.0.3 - inaccurate pdf export (paper size)

2013-02-11 Thread Fernand Vanrie

 Michael,

i cannot sea any problem , the PDF document has the same size as your LO 
page formats ?

hi!

i am not sure where i can report bugs. therefore i hope this mail is 
sent to the right person :)


i am using LO 4003 with winxp32 and it is impossible for me to export 
really accurate pdf sizes.
it works neither with A4 nor with the attached file (test_210x210). i 
tried the export in standardmode and 100%; both failed.


i hope that bug will be fixed as soon as possible because its 
impossible to do serios work with that kind of offset.


regards michael


___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/


___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/

Re: [Libreoffice-qa] minutes of ESC call ...

2013-02-07 Thread Fernand Vanrie

On 7/02/2013 17:04, Michael Meeks wrote:

+ MySQL connector - can/will/where to ship it (Lionel)
+ just needs to be re-compiled vs. not having stlport
+ needs a volunteer to do that.
do not know what knowledge is needed, bur our Campagny is willing to 
sponsoring this exentsion also for future releases

so a volunteer can contact us !

greetz

Fernand
___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/

Need comfirmation about no function of Modeless Dialogs in 4.0

2013-01-28 Thread Fernand Vanrie
We uses the Basic codelines below to make Modeless Dialogs, sinds 4.0 we 
endup with a non-visible window

is this Windows only or a more general regression ?,
it was working until 3.6.4  windows?

Greetz

Fernand

Sub Main
  oDoc = ThisComponent
  oParentFrame = oDoc.CurrentController.Frame
  oPeer = oParentFrame.ContainerWindow
  oToolkit = oPeer.Toolkit

  oWindow = CreateNewWindow(oToolkit,oPeer,150,150,200,200)
  oFrame = CreateUnoService(com.sun.star.frame.Frame)
  oFrame.initialize(oWindow)
  oFrame.setCreator(oParentFrame)
  oFrame.setName(NewFrame)
  oFrame.Title = New Frame

  oParentFrame.getFrames().append(oFrame)

  oWindow.setVisible(True)
End Sub


Function CreateNewWindow( _
  oToolkit,oParent,nX,nY,nWidth,nHeight) As Object
  aRect = CreateUnoStruct(com.sun.star.awt.Rectangle)
  With aRect
.X = nX
.Y = nY
.Width = nWidth
.Height = nHeight
  End With
  aWinDesc = CreateUnoStruct(com.sun.star.awt.WindowDescriptor)
  With aWinDesc
.Type = com.sun.star.awt.WindowClass.TOP
.WindowServiceName = dialog
.ParentIndex = -1
.Bounds = aRect
.Parent = oParent
.WindowAttributes = _
  com.sun.star.awt.WindowAttribute.MOVEABLE + _
  com.sun.star.awt.WindowAttribute.CLOSEABLE
  End With
  CreateNewWindow = oToolkit.createWindow(aWinDesc)
End Function

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: MySQL connector and LO 4.0 Windows 78

2013-01-18 Thread Fernand Vanrie

Joren

thanks, i just added it also to most annoying bugs

Greetz

Fernand

Op 17-01-13 19:05, Fernand Vanrie schreef:
The native MySQL connector (extension 1.0.1 made by Oracle) can no 
longer been installed on LO 4.0 with Windows 78 (op XP it is still 
functioning)


Before we go to a issue, can someone explain wath are the future 
plans to connect LO to MySQL
There is already a bug report about it: 
https://bugs.freedesktop.org/show_bug.cgi?id=59516


OO Apache made there proper extension but this tool is also not 
working on LO 4.0  with Windows 78



Kind regards,
Joren


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: MySQL connector and LO 4.0 Windows 78

2013-01-18 Thread Fernand Vanrie

Alex ,

+1
as long as we can install whatever extension, or whatever tool to 
connect to MySQL, with the ease , the robustness and the speed of the 
current connector  we will be happy users :-)


greetz

On 01/18/2013 09:22 AM, Fernand Vanrie wrote:

Hi all,


Before we go to a issue, can someone explain wath are the future
plans to connect LO to MySQL

That would be nice :-)

but I'm pretty sure this was discussed on this list before, and from
what I remember, backwards compatibility was to be maintained, given
that the project itself did not want to integrate the native connector
directly into LO releases for a variety of reasons.

My understanding was :
- Linux : the distribs will deal with it, as they have done so in the past;
- Mac OSX : backwards compatibility to be maintained;
- Windows : backwards compatibility to be maintained.

Nevertheless, this was a while ago, and before the decision to allow ABI
breakage was taken (i.e. meaning that extensions could break, and it
would be up to the extension providers to fix them). So, if that
approach is still the mantra, then the connector is doomed, at least on
Windows 64bit OS, and also on OSX as I don't think Apache OO are
currently inclined to do the LibreOffice project any particular favours,
unless someone takes it under their wing (in a similar way to what
occurred in AOO as it happens, as the connector there is not officially
part of the project, from what I understand).

I suppose an accessory to the above question would be whether the AOO
connectors actually still work with the most recent versions of AOO,
that would give an indication that the problem is of a more general
nature, and not just with LO.

That said, I could be completely wrong with my take on the situation, at
least until some of the devs can comment.

Alex

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


MySQL connector and LO 4.0 Windows 78

2013-01-17 Thread Fernand Vanrie
The native MySQL connector (extension 1.0.1 made by Oracle) can no 
longer been installed on LO 4.0 with Windows 78 (op XP it is still 
functioning)


Before we go to a issue, can someone explain wath are the future plans 
to connect LO to MySQL


OO Apache made there proper extension but this tool is also not working 
on LO 4.0  with Windows 78


Greetz

Fernand
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Need confirmation about non-clearing of Character Styles

2013-01-10 Thread Fernand Vanrie

Sinds all or editors use LO 3.6.2 (before OO3.3)

We have complains about the fact that parts of the text, who are 
formated with a Character Style, can not been cleared to no-formating,

not by Clear formating
not by Clear Direct Formating (cntrl+M)

There is a dirty work-around by applying the Default character style

Paragraph Styles can been cleared
Is this intentional behavior or a regression open for a issue ?

Greetz

Fernand
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Need confirmation about non-clearing of Character Styles

2013-01-10 Thread Fernand Vanrie

Michael plaese see also my reply to Caloán

On 10/01/13 14:25, Caolán McNamara wrote:

On Thu, 2013-01-10 at 10:55 +0100, Fernand Vanrie wrote:

Sinds all or editors use LO 3.6.2 (before OO3.3)

We have complains about the fact that parts of the text, who are
formated with a Character Style, can not been cleared to
no-formating,
not by Clear Direct Formating (cntrl+M)

There is a dirty work-around by applying the Default character style

Paragraph Styles can been cleared
Is this intentional behavior or a regression open for a issue ?

My understanding is
a) that its intentional, see
http://lists.freedesktop.org/archives/ooo-build/2010-February/000540.html
and the commit
http://cgit.freedesktop.org/libreoffice/core/commit/?id=6e690e0909459d46c53d17e7939891abea11e566

the corresponding issues are an interesting read:

https://issues.apache.org/ooo/show_bug.cgi?id=47893 - patch author
arguing for the change
https://issues.apache.org/ooo/show_bug.cgi?id=85464 - a certain Cor
reporting the change as regression :)

i definitely think that there should be some button to reset formatting
that leaves character styles intact, and that should be the most easily
accessible option.  but i wouldn't object to a second button to reset
all formatting, including styles.

resetting the character styles should be as easy as setting Default
char style on the whole document, so i'm not sure if another option is
worth the additional clutter.

if you know this work around yes


but hyperlinks should not be touched by any reset formatting since
they are not formatting, but content entities (the reset feature also
doesn't convert fields to plain text).
when you works in the printing business you must get rid  of this kind 
of formating


also i'm thinking that ruby text should also not be touched by reset
formatting, and this has not yet been changed (i.e. it is reset
currently); the reset will actually throw away the ruby text.  i'm
already sitting on a patch to remove ruby from the reset list...

idem ditto


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Need confirmation about non-clearing of Character Styles

2013-01-10 Thread Fernand Vanrie

Caolán ,

thanks for the background and your atention to this problem

OK but ...its still very confusing for most users

they can clear all direct formating in the right place, the formating 
menu


they can clear Paragraph formating produced by a style using the 
Formating Toolbar option

why can they not clear Character formating produced by a style ?

+ there is no logic behind the clearing options
when using the formating tools in the Formating Toolbar we can use
 Clear Formating who clears the Paragraph format  who is actualy 
setting the slected text  to the default paragraph style
we can also do exactly the same by applying the   Default Style to the 
selected text


so i suppose we need to change  the Formating Toolbar Styles dropdown
- the existing option named Clear Formating has to name Clear 
Paragraph Style Formating
- a extra option named Clear Character Style formating  (who infact 
also will clear the Hyperlinks)


Greetz

Fernand

On Thu, 2013-01-10 at 10:55 +0100, Fernand Vanrie wrote:

Sinds all or editors use LO 3.6.2 (before OO3.3)

We have complains about the fact that parts of the text, who are
formated with a Character Style, can not been cleared to
no-formating,
not by Clear Direct Formating (cntrl+M)

There is a dirty work-around by applying the Default character style

Paragraph Styles can been cleared
Is this intentional behavior or a regression open for a issue ?

My understanding is
a) that its intentional, see
http://lists.freedesktop.org/archives/ooo-build/2010-February/000540.html
and the commit
http://cgit.freedesktop.org/libreoffice/core/commit/?id=6e690e0909459d46c53d17e7939891abea11e566
b) that paragraph styles are not cleared, i.e. the text should remain
using the original paragraph and character styles, but any additional
properties applied on top of that is reset to the underlying paragraph
and character styles properties.

C.


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


LibreOffice no longer works with Windows 1252 encoding ?

2012-12-20 Thread Fernand Vanrie

Maybe not the right forum ?
but is this new encoding behaviour intentional or a issue ?
since 3.6.3 LO no longer shows correctly non-standard-ascii characters 
with text imported from a database using Windows 1252 encoding(during 
the import), UTF-8 encoding now works fine but gives problems when 
exporting to PDF.


Older an recent files with text imported with a Windows 1252 encoding 
give problems when exporting to PDF,
Some fonts like Futura Sdt (Opentype)  has only  the  Latin 1252 code 
page and do not shows up when opening in a standard PDF viewer an do not 
print when using a PDF engine.
the Adobe Viewers gives the famous  error Can not extract the embedded 
fond 'FA+FuturaStdMedium' some characters
We found this behaviour  on Windows XP machines, PDF exported on Windows 
7 do not have this problem ?


The faulty PDF export is a regression starting from  LO 3.6.3 and also 
present in LO 3.4 beta.


ok: Window XP is a ending story, but maybe someone has the same problems 
with non-Windows machines


Greetz

Fernand



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Libre Office immproovemnt suggestions

2012-10-04 Thread Fernand Vanrie

Stephan,

Sorry but sea my inline comments

On 10/03/2012 05:14 PM, ls.discipulus.dei wrote:

Dear Libre Office devs,
You are doing an amazing job for developping such great software :-),
but I have a suggestion to improove Libre Office:
I am a teenager going to school and we often need to exchange files (we
have pcs in every room). We have then compability issues, thus I need to
export to pdf.

Pdf has become our international format, so I would like to *be able to
save as pdf, edit it and save it again (also automatically)*.


Note that this mailing list is about developing LibreOffice.  For 
questions like yours there are better channels at 
http://www.libreoffice.org/get-help/.


Anyway, what you can do is export to PDF with Embed OpenDocument 
file ticked on the General page of PDF Options.

here the original format-size is not respected and make this option unusable
That way, the PDF file contains an additional hidden version of the 
contents in LibreOffice's native format, and when you re-open the PDF 
file with LibreOffice, it automatically uses that additional data to 
allow editing.

please make PDF a accepted graphic format as svg, jpg, tif etc.


Stephan
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


can been solved Very slow cold start due to mass of Spelling Dictionaries

2012-10-03 Thread Fernand Vanrie
The annoying slow cold start is simply due to the mass off Spelling 
Dictionaries who are standard installed as Extensions.
After deleting the not-needed maps in the share/Extensions directory, LO 
start in a Glimp. We had complains from our users (compared to OO) , so 
we made a script to delete most off this Dictionaries and now they love 
LO :-)
It could be handy to explain the reason off the slow start and deliver a 
tool  for the less technical users ?


Greetz

Fernand
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [libreoffice-users] Creating High Res Images in Draw or Impress

2012-08-17 Thread Fernand Vanrie

On 15/08/2012 23:21, Mary Ellen Bost wrote:

Hi- not sure if this email thread is strictly for reporting bugs but I have a 
question and it's worth a shot.

I hate gimp  need to create a few simple graphics in Draw or Impress. But they 
need to be a specific size and high resolution.

I just created a picture 5.3in x 5.3 inch square in draw  exported it as a 
png. When the dpi option appeared- it was 48 dpi.

If I increase the dpi...the image shrinks.

dpi  ppi
dpi = the number of pixels used for representing the picture on a 
printer or a screen. This do not involved the number of pixels in your 
image, its a notation for the future output size
so: if we have 500 pixels and you ask for a dpi of 50, then your picture 
will showup  at 10 inches
in draw: if you need to endup with a resolution off 300 pixels you must 
gives  the also the size  500/300 = 1.666 inches

Hope it helps
Fernand


I know that there is a plug in for PowerPoint that allows you to export images 
in created in a ppt as high res.

Is there any plug in or anything I can do to create a high res image in any of 
the Libre Office programs?

PLEASE! Help

Thanks!


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: JPEG image opens differently on LibreOffice from on various Microsoft software -- bug or not?

2012-08-17 Thread Fernand Vanrie

On 15/08/2012 13:35, Michael Meeks wrote:

On Tue, 2012-08-14 at 10:56 -0700, Brennan T Vincent wrote:

The JPEG image at http://i47.tinypic.com/29cx4pe.jpg is noticeably
lighter in LibreOffice (for
Sorry this is not true for LO 3.6 Windows, here i found the picture a 
bit darker  :-) compared on IrfanView

I've seen similar issues with gamma correction information in png files
- which IIRC we ignore on import; cf. http://hsivonen.iki.fi/png-gamma/
etc. I guess as/when we finally get our color-correction story sorted
out properly life will be better but ...


I don't know if the free programs or the Microsoft programs are right
about this, so I'm not sure whether to file a bug in LibreOffice, in
some upstream JPEG library, or not at all. I would appreciate it if
someone with more knowledge of JPEG could advise. Please let me know
if I can give you any more information.

Heh - best of luck finding an answer; I'd be inclined to poke the
libjpeg people or some image-specific eg. ImageMagick guys for some
insight.

Thanks !

Michael.



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: MySQL Native Connector broken for LOdev 3.6

2012-06-13 Thread Fernand Vanrie

On 13/06/2012 17:26, Stephan Bergmann wrote:

On 06/12/2012 02:48 PM, Fernand Vanrie wrote:

Sinds dev 3.6 the MySQL Native connector (for Windows) is broken , the
Mysqlc.uno.dll can not been loaded during the extention installation , i
suppose the extension code have to be recompiled against the latest LO
code.


Ha, looks like
http://cgit.freedesktop.org/libreoffice/core/commit/?id=6e67c03dc0225fc66343546b14e902b9d238b1a3
Enable -Wnon-virtual-dtor for GCC 4.6 is the culprit.  Among other
things, it changed the destructor of cppu::OPropertySetHelper from
public to protected, which with MSC changes the corresponding mangled
symbol name from ??1OPropertySetHelper@cppu@@QAE@XZ to
??1OPropertySetHellper@cppu@IAE@XZ, so breaks compatibility of
cppuhelper3msc.dll.

I'm working on a fix.

Stephan,  also thanks but  Michael Meeks wrote also :

Fridrich is having a look, if it worked for 3.5 - it is possible there
is some funky linking issue and/or calling convention, or missing
back-compat piece we might need to re-instate.


Hopes you and Fridrich dont do the same job  :-)

Greetz

Fernand






Stephan


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


MySQL Native Connector broken for LOdev 3.6

2012-06-12 Thread Fernand Vanrie
As the MySQL Native Connector Extension is not supported by this 
community, filling a issue is not the point.


Sinds dev 3.6 the MySQL Native connector (for Windows) is broken , the 
Mysqlc.uno.dll can not been loaded during the extention installation , i 
suppose the extension code have to be recompiled against the latest LO 
code.
The extension was working well for LO 3.5 and (after some user data 
tweaking) also for OO 3.4
As this a huge handicap for all LO MySQL users i hope this minner 
compiling problem can been solved.

As i understood from Alex Thurhood,
For something to happen on Windows, it would require someone with the
dedication and knowledge to build AOO on that OS, and to know how to
re-integrate the build of the connector back into the build tree
(make/config files), because my understanding is that it has been ripped
out, unless there is just some magical configure switch that lets you
turn it back on again. 
this can been done but needs some knowledge, ltime and machine power ? I 
lack the knowledge, time and machine can been deliverd


Hope someone can helps

Greetz

Fernand


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Is there a future for EPS vector graphics in LO ?

2012-05-23 Thread Fernand Vanrie

On 23/05/2012 13:08, Michael Meeks wrote:

Hi Fernand,

Please CC the developer list :-)

On Wed, 2012-05-23 at 12:12 +0200, Fernand Vanrie wrote:

Thanks for your interest, but i need some answers:

Sure.


Will EPS in the future been exported as Vector Graphics ?

I know of no-one working on it; but it's a nicely self-contained task
to work on - writing an EPS import filter that would convert that to an
ODF graphic.


SVG still problematic when exported to PDF.

Right; I suspect it depends on how it is imported, whether as vectors,
or as higher-res bitmaps (for embedded objects).

i just inserted the famous Pingouin in a writer doc,  neither LO 3.5
and neither OO  3.4 do a correct export to pdf.

The SVG work is ongoing. If you insert an object in writer oyu will get
a bitmap, if you load it in draw then paste it in you'll get an editable
vector graphic; as/when we get the vector mode really good we'll drop
the bitmap mode.


I guess someone else would want to chip in here - but really, the best
place to ask is the users-list - this is not a development related
question about a code contribution.

Sorry, i hoped to find here a developer to produce the code ? and we are
candidate to sponsor this effort

Ah - so if you want to contract someone to do the work; it's good to
mention that :-) I guess there are prolly two things you could ask for -
you could (perhaps) use the WMF preview mode of EPS, and (if we don't
already) make the support for that work nicely in LibreOffice - that may
be a producer-side problem. You could also get an EPS -  ODF import
filter, which shouldn't be impossibly hard to get something quite
useful. I'd poke Lanedo, Credativ, Collabora, Codethink - that sort of
consultancy for a price - or perhaps someone here would like to jump on
that :-) I'd suggest thinking in the order of $10k+ - what is your

my budget is more 1k+ oriented :-)

budget ?


Either way sorry for the hassle; the hope is that the SVG rendering
will eventually get good enough that it will provide a good solution
here.

Will that been possible in the near Future ?

Nearness is affected only by the level of investment ;-) but in the
next six months I think it's unlikely.

All the best,

Michael.



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Is there a future for EPS vector graphics in LO ?

2012-05-22 Thread Fernand Vanrie
As EPS vector graphics are not correctly exported to PDF and also not 
correctly printed. (LO use the lowres pixel representation and not the 
EPS vector graphics), we need to make a decision on converting our EPS 
based Graphics Library to a convenient Vector Graphic format.

What will be the best choice ?
WMF or EMF are doing well as long there are no gradients in the graphics .
SVG still problematic when exported to PDF.
Are there other formats suitable for correct printing and exporting to PDF
Are there plans to make it possible to export EPS  to PDF ?

Thanks for any hints

Fernand
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


No page and Columns boundaries in 3.5

2012-02-14 Thread Fernand Vanrie
On the user lists the first complaints about no page and column 
boundaries for LO Writer 3.5 are comming in.


For some documents the new corner layout can be helpfull but without 
visible page and column boundaries it becomes very difficult to place 
images and other objects  in a mulptiple column layout.


Please make a simple option in Appearance to make the boundaries back 
to the user's choise.


Greetz

Fernand


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Storage of user's configuration

2012-01-24 Thread Fernand Vanrie

Martin ,

i use folowed BASIC code to make a path consitent , maybe  it helps ?

public sElementnaam , sfotopath as string
public oParameter as object

sub addFotoPath()
sRegisterPath = /org.openoffice.OpmaakMacro.FotoPath/Parameters/
CreateRegistrySchemaPathIfNotPresent(sRegisterPath)
aSettings = GetConfigSettings(sRegisterPath)
sElementNaam = FOTO
sParaNaam = FotoPath
sParameter = c:\test

call addParameter(aSettings, sParaNaam, sParaMeter)

end sub
sub getFotoPath
sRegisterPath = /org.openoffice.OpmaakMacro.FotoPath/Parameters/
aSettings = GetConfigSettings(sRegisterPath)
asElNames = aSettings.ElementNames
if aSettings.hasByName(FOTO) then
oParameter = aSettings.getByName(FOTO)

   sFOTOpath = oParameter.getByName(ParameterString)
   else
   sFOTOpath = 
   endif
end sub


function GetConfigSettings(sRegisterPath as String) as Object 'Taken 
from DannyB

Dim args(1) As new com.sun.star.beans.PropertyValue
aConfProv = 
createUnoService(com.sun.star.configuration.ConfigurationProvider)

args(1).Name = nodepath
args(1).Value = sRegisterPath
args(0).Name = EnableAsync
args(0).Value = false
GetConfigSettings = 
aConfProv.createInstanceWithArguments(com.sun.star.configuration.ConfigurationUpdateAccess, 
args())

end function

sub CreateRegistrySchemaPathIfNotPresent(sRegisterPath as String)
oPathSettings = CreateUnoService( com.sun.star.util.PathSettings )
xray oPathSettings
sPathConfig = oPathSettings.Work 'Config

asPath1 = split(sRegisterPath, /)
sFullDotPath = asPath1(1)
asPath2 = Split(sFullDotPath,.)
sFolder = join(asPath2,/)


sRegistrySchemaPath = file:///H:/  sFolder  .xcs

sFileName = asPath2(UBound(asPath2))
sPackage = left(sFullDotPath, len(sFullDotPath)-len(sFileName)-1)

oSFA = createUNOService (com.sun.star.ucb.SimpleFileAccess)
if not oSFA.exists(sRegistrySchemaPath) then 'See the chapter 15 of the 
dev guide for some explanation

print sRegistrySchemaPath
  oOutStream = oSFA.openFileWrite(sRegistrySchemaPath)
  oOutText = createUNOService (com.sun.star.io.TextOutputStream)
  oOutText.setOutputStream(oOutStream)

  oOutText.WriteString(?xml version='1.0' encoding='UTF-8'?  Chr(10))

  oOutText.WriteString(oor:component-schema oor:name=  sFileName 
  oor:package=  sPackage)
  oOutText.WriteString(xml:lang=en-US 
xmlns:oor=http://openoffice.org/2001/registry;  )

  oOutText.WriteString(xmlns:xs=http://www.w3.org/2001/XMLSchema;  )
  
oOutText.WriteString(xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 Chr(10))


  oOutText.WriteString(templates  Chr(10))
  oOutText.WriteString( group oor:name=Parameter  Chr(10))
  oOutText.WriteString( prop oor:name=ParameterName 
oor:type=xs:string/  Chr(10))
  oOutText.WriteString( prop oor:name=ParameterString 
oor:type=xs:string/  Chr(10))

  oOutText.WriteString( /group  Chr(10))
  oOutText.WriteString(/templates  Chr(10))

  oOutText.WriteString(component  Chr(10))
  oOutText.WriteString( set oor:name=Parameters 
oor:node-type=Parameter/  Chr(10))

  oOutText.WriteString(/component  Chr(10))

  oOutText.WriteString(/oor:component-schema  Chr(10))

  oOutText.closeOutput()
  oOutStream.closeOutput
  endif

end sub

sub addParameter(aSettings as Object, ParameterName as String, 
ParameterString as String)


  Dim arParameters1(0) As new com.sun.star.beans.PropertyValue
  arParameters1(0).Name = ParameterName
  arParameters1(0).Value = ParameterString
  call setParameters(aSettings, arParameters1(0))

end sub

function getParameterCount(aSettings as Object) as long
getParameterCount = UBound(aSettings.ElementNames)+1
end function



sub setParameters(aSettings as Object, aNewValue as Object)
  if aSettings.hasbyName(sElementnaam) then
'print aNewvalue.name
   oParameter = aSettings.createInstance()
  oParameter.ParameterName = aNewValue.Name
  oParameter.ParameterString = aNewValue.Value

  aSettings.ReplaceByName(sElementNaam , oParameter)

  aSettings.commitChanges()
  else
   oParameter =  aSettings.createInstance()
  oParameter.ParameterName = aNewValue.Name
  oParameter.ParameterString = aNewValue.Value

  aSettings.insertByName(sElementNaam , oParameter)
   aSettings.commitChanges()
   endif

end sub

Hi everybody,

I'm hacking the cross-platform filepicker (in fpicker/source/office). 
I added a Places (bookmarks) list on the left and I would like to 
save the entries that the user bookmarked .


Cedric Bosdonnat told me to look at xcu and xcs files, but I'm a bit 
lost. I'm looking for a code sample where user's persistent 
configuration is manipulated (read and written) and/or anything that 
can be usefull, like search keywords, links to old threads in the 
mailing list, which would help me to identify some good practices 
(naming conventions, for instance).


Cheers,
Martin Richard


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice



___
LibreOffice mailing 

Re: [Libreoffice] Storage of user's configuration

2012-01-24 Thread Fernand Vanrie

Martin,

I supose it is already cross platform and environment independent, neve 
tested it but interesting to know.




Hi Fernand,

Thank you for your response, it may help indeed.

It seems that you create your own xcs file from scratch and store it 
in a custom location. I think that in my case, I will need to find a 
way to make it cross platform and environment independent.


Cheers

2012/1/24 Fernand Vanrie s...@pmgroup.be mailto:s...@pmgroup.be

Martin ,

i use folowed BASIC code to make a path consitent , maybe  it
helps ?

public sElementnaam , sfotopath as string
public oParameter as object

sub addFotoPath()
sRegisterPath = /org.openoffice.OpmaakMacro.FotoPath/Parameters/
CreateRegistrySchemaPathIfNotPresent(sRegisterPath)
aSettings = GetConfigSettings(sRegisterPath)
sElementNaam = FOTO
sParaNaam = FotoPath
sParameter = c:\test

call addParameter(aSettings, sParaNaam, sParaMeter)

end sub
sub getFotoPath
sRegisterPath =
/org.openoffice.OpmaakMacro.FotoPath/Parameters/
aSettings = GetConfigSettings(sRegisterPath)
asElNames = aSettings.ElementNames
if aSettings.hasByName(FOTO) then
oParameter = aSettings.getByName(FOTO)

   sFOTOpath = oParameter.getByName(ParameterString)
   else
   sFOTOpath = 
   endif
end sub


function GetConfigSettings(sRegisterPath as String) as Object
'Taken from DannyB
Dim args(1) As new com.sun.star.beans.PropertyValue
aConfProv =
createUnoService(com.sun.star.configuration.ConfigurationProvider)
args(1).Name = nodepath
args(1).Value = sRegisterPath
args(0).Name = EnableAsync
args(0).Value = false
GetConfigSettings =

aConfProv.createInstanceWithArguments(com.sun.star.configuration.ConfigurationUpdateAccess,
args())
end function

sub CreateRegistrySchemaPathIfNotPresent(sRegisterPath as String)
oPathSettings = CreateUnoService( com.sun.star.util.PathSettings )
xray oPathSettings
sPathConfig = oPathSettings.Work 'Config

asPath1 = split(sRegisterPath, /)
sFullDotPath = asPath1(1)
asPath2 = Split(sFullDotPath,.)
sFolder = join(asPath2,/)


sRegistrySchemaPath = file:///H:/  sFolder  .xcs

sFileName = asPath2(UBound(asPath2))
sPackage = left(sFullDotPath, len(sFullDotPath)-len(sFileName)-1)

oSFA = createUNOService (com.sun.star.ucb.SimpleFileAccess)
if not oSFA.exists(sRegistrySchemaPath) then 'See the chapter 15
of the dev guide for some explanation
print sRegistrySchemaPath
  oOutStream = oSFA.openFileWrite(sRegistrySchemaPath)
  oOutText = createUNOService (com.sun.star.io.TextOutputStream)
  oOutText.setOutputStream(oOutStream)

  oOutText.WriteString(?xml version='1.0' encoding='UTF-8'? 
Chr(10))

  oOutText.WriteString(oor:component-schema oor:name= 
sFileName   oor:package=  sPackage)
  oOutText.WriteString(xml:lang=en-US
xmlns:oor=http://openoffice.org/2001/registry;
http://openoffice.org/2001/registry  )
 
oOutText.WriteString(xmlns:xs=http://www.w3.org/2001/XMLSchema;

http://www.w3.org/2001/XMLSchema  )
 
oOutText.WriteString(xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

http://www.w3.org/2001/XMLSchema-instance  Chr(10))

  oOutText.WriteString(templates  Chr(10))
  oOutText.WriteString( group oor:name=Parameter  Chr(10))
  oOutText.WriteString( prop oor:name=ParameterName
oor:type=xs:string/  Chr(10))
  oOutText.WriteString( prop oor:name=ParameterString
oor:type=xs:string/  Chr(10))
  oOutText.WriteString( /group  Chr(10))
  oOutText.WriteString(/templates  Chr(10))

  oOutText.WriteString(component  Chr(10))
  oOutText.WriteString( set oor:name=Parameters
oor:node-type=Parameter/  Chr(10))
  oOutText.WriteString(/component  Chr(10))

  oOutText.WriteString(/oor:component-schema  Chr(10))

  oOutText.closeOutput()
  oOutStream.closeOutput
  endif

end sub

sub addParameter(aSettings as Object, ParameterName as String,
ParameterString as String)

  Dim arParameters1(0) As new com.sun.star.beans.PropertyValue
  arParameters1(0).Name = ParameterName
  arParameters1(0).Value = ParameterString
  call setParameters(aSettings, arParameters1(0))

end sub

function getParameterCount(aSettings as Object) as long
getParameterCount = UBound(aSettings.ElementNames)+1
end function



sub setParameters(aSettings as Object, aNewValue as Object)
  if aSettings.hasbyName(sElementnaam) then
'print aNewvalue.name
   oParameter = aSettings.createInstance()
  oParameter.ParameterName = aNewValue.Name
  oParameter.ParameterString = aNewValue.Value

  aSettings.ReplaceByName(sElementNaam , oParameter)

  aSettings.commitChanges()
  else
   oParameter =  aSettings.createInstance()
  oParameter.ParameterName = aNewValue.Name

[Libreoffice] Do we have native SVG support in 3.5 ?

2012-01-11 Thread Fernand Vanrie

Do we now have native SVG support in 3.5 ?

When testing 3.5 dev if found that inserting SVG files is totaly 
different from 3.4.


The pictures shown  more correct and are stored in the document as 
SVG and no longer as SVM


Greetz

Fernand
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] Memory tweaking Graphics Cache tot avoid crash after deleting a graphic

2012-01-11 Thread Fernand Vanrie
Can a developer  explain how the Memory tweaking for the Graphics Cache 
is working.


I found that LO 3.4 can crash after deleting a Graphic in a document who 
contains  many or  a few Big pictures.
We  replace LowResolution Graphics with HighResolutions just before 
final printing . When the document is Loaded with HighResolution 
graphics, then LO can crash when deleting a Graphic.

This do not happens with OO 3.3 !
I supose it happens when i delete a graphic on a page where the size of 
the graphic if bigger than the setting of the Memory per Object in the 
UI Graphic Cache settings.
PLaying with the Cache size and the size per Object can avoid the crash, 
but there is no clear line why and when it happens.


so:
whats the meaning of Use for LO (who is max 256 MB)
whats the meaning of Memory per Object (who is also max 256 MB)

There are already many Issues posted for related Graphic 
deleting-disapearing problems


Greetz
Fernand
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice-qa] Mysql Native Connector can not been installed in 3.5

2011-12-20 Thread Fernand Vanrie

Can anyone confirm this posible stopper:

I use LOdev 3.5.0
Native Connector 1.0.1 or 1.0.0 (Windows) can not been installed

When already installed (and workin) in 3.4 the extension is disabled 
under 3.5 and can not been activated !


thanks

Fernand
___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/


[Libreoffice-qa] Mysql Native Connector can not been installed in 3.5

2011-12-20 Thread Fernand Vanrie

Can anyone confirm this posible stopper:

I use LOdev 3.5.0
Native MySQL Connector 1.0.1 or 1.0.0 (Windows) can not been installed

When already installed (and working) in LO3.4 , the extension is 
disabled under 3.5 and can not been activated !


thanks

Fernand
___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/


Re: [Libreoffice] [PATCH] Display resolution in PPI with the original size on Picture/Crop (in Writer)

2011-10-28 Thread Fernand Vanrie

László and all developers involved,
Fine, it is a first step in better handling of images. But as I 
mentioded before, having the PPI out of the image file is a wrong 
concept. The needed/wanted PPI must been stored in the document. The 
image sizes must been calculated according to the pixels in the image 
and the PPI stored (as a printer intention) in the Document.


Greetz

Fernand

Hi,

This patch adds PPI resolution to the default image size data in the
Picture dialog (only for bitmap images), see the attached screenshot.

Explanation: LibreOffice supports explicite resolutions of JPEG/PNG
picture formats to set default image size, but this important data is
missing from the UI, so we cannot verify the picture quality.

Best regards,
László

PS. There are some old bugs in the default image handling in
LibreOffice, see the attached test file, but the most important
picture format (JPEG with equal explicite x-y resolutions) works well
(except the rounding error in the percent data, see 101% on the
screenshot). This patch helps to handle these problems, too.


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] [PATCH] Display resolution in PPI with the original size on Picture/Crop (in Writer)

2011-10-28 Thread Fernand Vanrie

László and all developers involved,
Fine, it is a first step in better handling of images. But as I 
mentioded before, having the PPI out of the image file is a wrong 
concept. The needed/wanted PPI must been stored in the document. The 
image sizes must been calculated according to the pixels in the image 
and the PPI stored (as a printer intention) in the Document.


Greetz

Fernand

Hi,

This patch adds PPI resolution to the default image size data in the
Picture dialog (only for bitmap images), see the attached screenshot.

Explanation: LibreOffice supports explicite resolutions of JPEG/PNG
picture formats to set default image size, but this important data is
missing from the UI, so we cannot verify the picture quality.

Best regards,
László

PS. There are some old bugs in the default image handling in
LibreOffice, see the attached test file, but the most important
picture format (JPEG with equal explicite x-y resolutions) works well
(except the rounding error in the percent data, see 101% on the
screenshot). This patch helps to handle these problems, too.


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] Works LO connector with HTTPS ?

2011-05-26 Thread Fernand Vanrie
I Trye to use the latest Google Tasks API from in LO but now we need to 
connect with HTTPS
please can a developer tell me if my code had a change to work no or in 
the future ?


oConnector = createUnoService(com.sun.star.connection.Connector)
oConnection = 
oConnector.connect(socket,host=www.googleapis.com,port=80)  'or port 
(443)'
oConnection.write( StringToByteArray( GET 
https://www.googleapis.com/tasks/v1/lists/MDk5Nzc1MDY0NzQyMTk4NjEyMzM6MDow/tasks/MDk5Nzc1MDY0NzQyMTk4NjEyMzM6MDo4?pp=1key={YOUR_API_KEY};  
+ cCR + cLF ))


Greetz Fernand

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Works LO connector with HTTPS ?

2011-05-26 Thread Fernand Vanrie

Caolán,

Thanks, but with the UCB we are stucked to only GET and no POST etc...
Is it a good idea to ask for a enhancement to make connector a proper 
tool to make http/https requests ?


G.

On Thu, 2011-05-26 at 09:49 +0200, Fernand Vanrie wrote:

I Trye to use the latest Google Tasks API from in LO but now we need
to connect with HTTPS
please can a developer tell me if my code had a change to work no or
in the future ?

oConnector = createUnoService(com.sun.star.connection.Connector)

com.sun.star.connection.Connector is for connecting to a running
LibreOffice instance listening on the far side, i.e. connecting to an
UNO interprocess bridge.


oConnection =
oConnector.connect(socket,host=www.googleapis.com,port=80)  'or port
(443)'
oConnection.write( StringToByteArray( GET
https://www.googleapis.com/tasks/v1/lists/MDk5Nzc1MDY0NzQyMTk4NjEyMzM6MDow/tasks/MDk5Nzc1MDY0NzQyMTk4NjEyMzM6MDo4?pp=1key={YOUR_API_KEY};
  + cCR + cLF ))

You *might* have more luck with the ucb api, e.g.
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/UCB/Documents

C.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Oracle Report Builder corrupting chart objects

2011-05-17 Thread Fernand Vanrie

 Kohei,

Please, not option 3, ORB is the only descent way to have some  reports 
out of the Base app.


Greetz

Fernand

Hi there,

This is concerning the following bug report:

https://bugs.freedesktop.org/show_bug.cgi?id=36339

where chart objects get corrupted pretty much 100% of the time for the
reporters and several others but was not initially reproducible on my
side.  It turned out that it was because my development build didn't
have Oracle Report Builder (ORB) installed, and installing this
extension made this bug 100% reproducible.  Chart objects get destroyed
on double-check after load, 100% of the time.  This is very very bad.
Since our release ships with Oracle Report Builder, this makes chart
editing totally unusable with the release version of LibreOffice.

The reason that chart objects get corrupted is simple.  When the chart2
code queries for the service name of UNO object that can save the data
from document of type com.sun.star.chart2.ChartDocument into XML, both
the default chart filter 'chart8' and the 'StarOffice XML (Base) Report
Chart' filter (the one from ORB) claim to handle it.  And because the
report chart filter comes first during the loop to look for a handler
ser, it gets picked.

During the export, this doesn't really cause a problem since the chart2
code appears to expect this and provides necessary functionality for the
ORB extension even through ORB itself doesn't have any code for this.
The only difference is that the chart content stream is now associated
with the application/vnd.sun.xml.report.chart mime type, instead of
the default application/vnd.oasis.opendocument.chart type.

This mime type difference, however, causes load failure during import,
and because the chart content stream is read *when* you double-click on
the chart object, *not* when the file is loaded, it blanks the chart
object when double-clicked for the first time, as described in the bug
report.

Now, 3.3 also had ORB installed by default, and it didn't cause this
problem.  When it saves a document with chart, it saves the chart object
using the opendocument.chart mime type, not the report.chart mime type.
So I assume that's the correct behavior.

Ok. So far I've described why the bug happens. Now the question is how
do we fix it?  There are several ways to fix this.

1. Promote the chart8 filter as the preferred filter for the
chart2.Document type.  This can be done by the attached
chart8-is-preferred-for-chart-document.diff patch.  This will ensure
that during the query for the right filter service type, the chart8
filter gets picked over the one from ORB.

2. Remove the type detection definition for the chart2.Document type
from the report builder itself.  This can be done by the
report-builder-dont-act-like-chart-handler.diff patch.  This will
prevent ORB from advertising itself as the chart filter provider.

3. Don't ship with Oracle Report Builder.  I hope I don't need an
explanation for this.

I think option 1 is pretty safe, but I don't really know if this would
cause any side effect in other, unexpected places.  For instance, the
latest ORB seems to claim some limited charting functionality, and this
may mess that up, or perhaps it may not.

I'm not sure how safe option 2 is, since I'm not too familiar with the
ORB code (all written in Java I might add...).  There may be some code
that relies on the chart filter provider inside ORB, but then there may
not.  I don't really know.

My preferred option is option 3.  Because, while I was test-driving ORB,
it crashed several times due to null pointer exception from the Java
code.  And when it does that, it takes the whole soffice process down
with it.  It doesn't appear to be very stable.  But then, maybe there
are users out there who appreciates this extension.  I don't really
know.  It would be nice to know the original motivation behind including
this extension.  Was there a high demand for this functionality?

Anyway, we need to decide on one of these options.  Feedback is
appreciated.

Kohei



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] [REVIEW] Oracle Report Builder corrupting chart objects

2011-05-17 Thread Fernand Vanrie

Michael, Others,

In our Compagny, editing house, we uses OO and LO as the one and only 
application. Base is here used as a frontend for getting data out of 
flat-text-datbases and MySQL. Data we need to produce documents  in 
Writer, Calc etc... For producing reports we found ORB pretty stable, so 
please keep LO-Base-ORB at least at the current OO level

Thanks

Fernand

Hi Kohei,

On Mon, 2011-05-16 at 22:14 -0400, Kohei Yoshida wrote:

1. Promote the chart8 filter as the preferred filter for the
chart2.Document type.  This can be done by the attached
chart8-is-preferred-for-chart-document.diff patch.

Patch looks great to me :-) can we get that into -3-4 and get some more
reviews for -3-4-0 ?


2. Remove the type detection definition for the chart2.Document type
from the report builder itself.  This can be done by the
report-builder-dont-act-like-chart-handler.diff patch.  This will
prevent ORB from advertising itself as the chart filter provider.

Did you manage to play with the ORB chart feature ? I would strongly
prefer a potential, transient breakage there, than an ODF
incompatibility that will create broken files when we save ;-)


I think option 1 is pretty safe, but I don't really know if this would
cause any side effect in other, unexpected places.  For instance, the
latest ORB seems to claim some limited charting functionality, and this
may mess that up, or perhaps it may not.

Well - it sounds like the ORB is pretty messy anyway :-) so ... can it
really make it much worse if it crashes the whole app left and right ?


My preferred option is option 3.  Because, while I was test-driving ORB,
it crashed several times due to null pointer exception from the Java
code.  And when it does that, it takes the whole soffice process down
with it.

And for those complaining about the idea of removing ORB altogether:
doing some work to help out improve the stability of the implementation
sounds like it would be a good plan. Rather than just wishing it was
better, we need (new) developer resource applying to fixing it, with a
set of clearly filed and isolated bug reports - preferably with the Java
stack-frames that can come from the console (I think), and so on. If the
functionality is extremely sub-standard, and creates the risk of
data-loss for its users, then we may well want to disable it - or make
it 'experimental'. just reverting a commit is not an easy thing to do
- it requires first finding the problematic commit, also there are a lot
of interlocking pieces in most such piles of software :-) so again, real
developer resource is required: that can be grown out of sweat  tears
from technical QA guys digging deeper - or preferably from interest from
those who most need / use the feature.

ATB,

Michael.



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] [REVIEW] Oracle Report Builder corrupting chart objects

2011-05-17 Thread Fernand Vanrie

Michael ,

sorry, I was not Begging, just tryed to explain the quality's from OO 
and LO.
No funder for the moment because we are still OO-users :-) but we follow 
with interest the discussions about paid-bug-repair.


Greetz

Fenand



On Tue, 2011-05-17 at 13:00 +0200, Fernand Vanrie wrote:

In our Compagny, editing house, we uses OO and LO as the one and only
application. Base is here used as a frontend for getting data out of
flat-text-datbases and MySQL. Data we need to produce documents  in
Writer, Calc etc... For producing reports we found ORB pretty stable, so
please keep LO-Base-ORB at least at the current OO level

So - do you help fund LibreOffice development in some way ? even if
only indirectly via a support contract ? if so - you should feedback
your commercial needs to your partner and help fund development that
way.

HTH :-)

Michael.



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] LibreOffice / OpenOffice.org sniffing in extension

2011-05-16 Thread Fernand Vanrie

dag Christophe ,

in Basic and OO i use, works also for LO i think :-)

If (Not GlobalScope.BasicLibraries.isLibraryLoaded(Tools)) Then
  GlobalScope.BasicLibraries.LoadLibrary(Tools)
   End If
xray GetRegistryKeyContent(org.openoffice.Setup/Product)

hope it helps

Fernand

Hi,

I am involved in a project that develops a few extensions (mostly in Java)
for OpenOffice.org and LibreOffice, and I would like to find a way to make
an extension detect in which of these two office suites it is installed. I
have not been able to find this in API documentation or elsewhere. Can you
give me a hint?

(Background: each of the extensions work in both OOo and LibO, but two of
the extensions can't be used together in LibO 3.3.)

Best regards,

Christophe



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] When can we import xml data

2011-04-26 Thread Fernand Vanrie

Michael, others,


done: id=36610 https://bugs.freedesktop.org/show_bug.cgi?id=36610
found and attached the original xls code

Greetz

Fernand

On Wed, 2011-04-20 at 18:43 +0200, Fernand Vanrie wrote:

Thanks for your interest, With xml-data i mean a data-dump from a SQL
database.

Fine - so please open the bug as requested:

http://bugs.freedesktop.org/

And please provide a sample XML document, and work out where the
documentation for the XML dialect is (MSDN?). Also a link to the old
converter would be helpful.


The xml structure depends on the Table of the database but mostly its
something like:

Is it required to throw up a UI to do this ? or can we just whack it
straight into a set of spreadsheet tables ?


Hope it helps

Yes, but not enough to actually do anything about it (yet) more data
required :-)

ATB,

Michael.



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] When can we import xml data

2011-04-20 Thread Fernand Vanrie

Hi Michael ,

Thanks for your interest, With xml-data i mean a data-dump from a SQL 
database. Where records becomes rows and fields becomes columbs. MS Exel 
can flawless open this xml-files.
The xml structure depends on the Table of the database but mostly its 
something like:


?xml version='1.0'?
NewDataSet
Table
id1/id
linkid76497/linkid
TextBoxANC/TextBoxTypeWeek/Type
FormaatExecutive - 148x210mm/Formaat
Formaatuitz /
Kaftik heb reeds een kaft/Kaft
emaila...@pmg.be/email
/Table
Table
id2/id
linkid76502/linkid
TextBoxSAF/TextBox
TypeDag/Type
FormaatExecutive - 148x210mm/Formaat
Formaatuitz /
Kaftik heb nog geen kaft/Kaft
emails...@pmg.be/email
/Table

The StarXpert import filter clould handles this dumps at condition that 
all fields (also empty radio buttons etc..)  where represented by a tag.


Hope it helps

Fernand



Hi Fernand,

On Wed, 2011-04-13 at 10:29 +0200, Fernand Vanrie wrote:

I am just a humble advanced user, The extentsion from StarXpert is a
scrumbled jar file.

:-) with no source code ? if so, hard to deal with.


Its not the Extension who is faulty, its simple a lack of XML
import for Calc in LO and OO .

We import lots of styles and dialects of XML - what would really help
is a well-formed report: what kind of XML do you want to import ? where
is it specified ? is there an example set of files etc. ?


Just hoped to find here a coder who can/will make this happen or can
rewrite the StarXpert java Code into a nex etxtension.

Well, importing some sort of XML sounds pretty trivial to me - we could
make it an easy hack, if it is a popular dialect, and there are good
docs I guess. Can you file a bug with all the relevant details, and
reply to this mail with the number ?

Thanks,

Michael.



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] When can we import xml data

2011-04-13 Thread Fernand Vanrie
For some years there was a Java made extension StarXpert_XML2Calc  
(with limitations)  to Import XML data into Calc. Sinds 3.3 this 
extention is broken and the French makers seems no longer interested in 
this project. So please who can made this basic XML import happen.

It' s standard for MS spreadsheats users but a BIG lack in LO and OO users.

Thanks in advance

Fernand
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] When can we import xml data

2011-04-13 Thread Fernand Vanrie

Thorsten ,

I am just a humble advanced user, The extentsion from StarXpert is a 
scrumbled jar file.
Its not the Extension who is faulty, its simple a lack of XML import for 
Calc in LO and OO .
Just hoped to find here a coder who can/will make this happen or can 
rewrite the StarXpert java Code into a nex etxtension.

Greetz

Fernand

Fernand Vanrie wrote:

For some years there was a Java made extension StarXpert_XML2Calc
(with limitations)  to Import XML data into Calc. Sinds 3.3 this
extention is broken and the French makers seems no longer interested
in this project. So please who can made this basic XML import
happen.


Hi Fernand,

um, best file a (preferrably detailed) bug report - with pointers to
the source code, what is broken exactly - or maybe you could have a
look into this yourself?

Cheers,

-- Thorsten


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] When can we import xml data

2011-04-13 Thread Fernand Vanrie

Peter ,

Do you mean that your extension only can been used to export' some date 
from a spreadsheet ? (what i found after installing ) If it also can 
been used to import , please give us some more info


Thanks anyhow

Fernand

Hi,
Am 13.04.2011 10:15, schrieb Thorsten Behrens:

Fernand Vanrie wrote:

For some years there was a Java made extension StarXpert_XML2Calc
(with limitations)  to Import XML data into Calc. Sinds 3.3 this
extention is broken and the French makers seems no longer interested
in this project. So please who can made this basic XML import
happen.


Hi Fernand,

um, best file a (preferrably detailed) bug report - with pointers to
the source code, what is broken exactly - or maybe you could have a
look into this yourself?

XML Import should be done with a xslt-Filter, which can be deployed as 
extension, but this behavior seems to be buggy 
(http://openoffice.org/bugzilla/show_bug.cgi?id=117317)


(sorry Thorsten for the first mail)

Regards

Peter


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] export mathml

2011-03-31 Thread Fernand Vanrie

do not know wath you up to but

oMathObject = oEmbeddedObject.embeddedObject

is a LO MathDocument

the getmathML has probably never extisted

Greetz

Fernand

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] EPS Export with text for LaTex and PSFrag

2011-03-22 Thread Fernand Vanrie

Jesse,

Found some where on a forum, some Basic code to set this filter options 
by the API


hope it helps

Fernand

' gets all shapes in the current draw page
' @param page: A XDrawPage. If page is not a XDrawPage, an empty shapes 
collection is returned.
' @return: a com.sun.star.drawing.ShapeCollection containing all shapes, 
may be empty.

function getAllShapesInDrawPage(thePage as Object)
   ' create empty collection of shapes
   theShapes= createUnoService(com.sun.star.drawing.ShapeCollection)
   if not hasUnoInterfaces(thePage, com.sun.star.drawing.XDrawPage) then
  getAllShapesInDrawPage = theShapes
  exit function
   end if

   ' add all shapes in the page to the collection
   for i=0 to thePage.getCount() - 1
  theShapes.add(thePage.getByIndex(i))
   next i
   getAllShapesInDrawPage = theShapes
end function


' From a Draw page, export the current selection to eps. If the current 
selection is empty, select all
' shapes on the page and export them. If there are no shapes on the 
page, export the empty page.

' Parts of this code are taken from the code in ooo bug 7918.
sub exportSelectionOrPageToEps
   Dim currentPageName as String

   theDoc = StarDesktop.getCurrentComponent()
   if not theDoc.SupportsService( 
com.sun.star.drawing.DrawingDocument ) Then

  Msgbox(The current document must be a Draw document, 0)
  exit sub
   end if

theController = theDoc.currentController
   thePage = theController.currentPage
theSelection = theController.selection

   ' if nothing is selected, select all shapes in the current page
   if isEmpty(theSelection) then
  MsgBox(selection is empty, will select everything in current 
page, 0)

  theController.select(getAllShapesInDrawPage(thePage))
  theSelection = theDoc.currentController.selection
   end if

   'create url for storing
   Dim origUrl as String
   Dim exportUrl as new com.sun.star.util.URL
   origUrl = theDoc.url
   if isnull(thePage.name) then
  exportUrl.complete = Left( origUrl, Len(origUrl) - 4 ) + 
_Export + .eps

else
  exportUrl.complete = Left( origUrl, Len(origUrl) - 4 ) + _ + 
thePage.name + .eps

endif

   ' Create the export filter.
' A GraphicExportFilter uses a page, shape or collection of shapes 
as source.
theExporter = createUnoService( 
com.sun.star.drawing.GraphicExportFilter )


' Export selection if something is selected, otherwise whole page.
if not isEmpty(theSelection) then
   theExporter.SetSourceDocument(theSelection)
else
   msgbox(no selection, exporting whole page, 0)
   theExporter.SetSourceDocument(thePage)
endif

' Set the filter data
Dim aFilterData(5) as new com.sun.star.beans.PropertyValue
aFilterData(0).Name = Level '1=PS level 1, 2=PS level 2
aFilterData(0).Value = 2
aFilterData(1).Name = ColorFormat '1=color, 2=grayscale
aFilterData(1).Value = 1
aFilterData(2).Name = TextMode '0=glyph outlines, 1=no glyph 
outlines, see ooo bug 7918

aFilterData(2).Value = 1
aFilterData(3).Name = Preview '0=none,1=TIFF,2=EPSI,3=TIFF+EPSI
aFilterData(3).Value = 0
aFilterData(4).Name = CompressionMode ' 1=LZW, 2=none
aFilterData(4).Value = 2
Dim aArgs (2) as new com.sun.star.beans.PropertyValue
aArgs(0).Name = MediaType
aArgs(0).Value = image/x-eps
aArgs(1).Name = URL
aArgs(1).Value = exportUrl
aArgs(2).Name = FilterData
aArgs(2).Value = aFilterData()
theExporter.filter(aArgs())

MsgBox(exported  + origUrl +  to  + exportUrl.complete, 0)
End Sub



I may have solved my own problem and found the new setting.  Try the following

* Open the file C:\Program Files (x86)\LibreOffice
3\Basis\share\registry\main.xcd in a text editor
* Use the Find and Replace feature in your editor.
Find:

EPSprop oor:name=Preview
oor:type=xs:intvalue0/value/propprop oor:name=Version
oor:type=xs:intvalue2/value/propprop oor:name=ColorFormat
oor:type=xs:intvalue2/value/propprop
oor:name=CompressionMode
oor:type=xs:intvalue2/value/propprop oor:name=TextMode
oor:type=xs:intvalue0

Replace with:

EPSprop oor:name=Preview
oor:type=xs:intvalue0/value/propprop oor:name=Version
oor:type=xs:intvalue2/value/propprop oor:name=ColorFormat
oor:type=xs:intvalue2/value/propprop
oor:name=CompressionMode
oor:type=xs:intvalue2/value/propprop oor:name=TextMode
oor:type=xs:intvalue2


* Restart LibreOffice
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] media export ...

2011-03-02 Thread Fernand Vanrie

Thomas , Michael,

2 Corrections:

- I was wrong, in PDF documents we can now embed most off the Video-formats
- LO - (windows) still not accept flash video

Not so many applications allows to embed video in PDF, Android and Ipad 
will been allover the place, and PDF is still the most simple way to 
produce MultiMedia for this devices, so LO will have a very interesting 
new feather.


Greetz

Fernand


Hi,

On 03/01/2011 06:29 PM, Fernand Vanrie wrote:

Video in PDF can been done but it must be Flash-video :-)
So: or:  we need a on the fly conversion, or you havbe accept Flash
video in the LO documents. I can help to do some research but i am not a
coder, just a bit off a avandced user.

That sounds really nice. The Media Player already understands flv files,
but the file chooser isn't ready (no possibility to choose flv files).
Somehow I got a flv file added to the document with All files as
filter. Wrote this in an earlier mail, this stuff is some out of sync. I
may look at it later.

Thomas
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] media export ...

2011-03-02 Thread Fernand Vanrie

Thomas,

I did the trick with the All files under Windows, we get still a error 
saying that the file format is not accepted !


Using insert object ALL gives no error , LO places a kind of a 
graphic, not related to the Video, and then produce a General error


Greetz

Fernand

Hi Fernand,

On 03/02/2011 11:48 AM, Fernand Vanrie wrote:

2 Corrections:

- I was wrong, in PDF documents we can now embed most off the Video-formats
- LO - (windows) still not accept flash video

Use Insert -  Media and Sound -  Select 'All files' as filter, so you
are able to add flv videos, and all other formats the player is capable
of (works on Linux).


Not so many applications allows to embed video in PDF, Android and Ipad
will been allover the place, and PDF is still the most simple way to
produce MultiMedia for this devices, so LO will have a very interesting
new feather.

Thomas
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Tools - Media Player

2011-03-01 Thread Fernand Vanrie

Christoph,

Thanks for the reply, please find my comments in the text

,

No we are not placing video in odt, files, but our editors (while there
are working in writer), needs to see some video content as a source
for there work.

Wow, that seems to be a very special case - so from my side, if the menu
I think it is not so special to play some video content while writing 
some comments, tranlations etc...on it

item can be added manually (afterwards), then it should be fine for most
Why moving away some  functionality, (who will finaly been forgotten) on 
a sub-menu (they are invented for this purpose, no ? )

of the users. Of course, this might add some burden on your and your
editors, but most of the other users do have some benefit ...

Sorry, i do not see any benefit in hiding, removing some functionality ?

maybe this
is some kind of compensation? ;-)


But we would like to add some
video content to our Writerfiles and then transfer them to Epup or
interactive PDF's

As far as I understand, that's still possible.
Yes we can add some sound video content to our writer Documents, but 
this is useless, because the Sound and Video are consumed on the net 
(HTML5) and on the Ipads (Epub and/or PDF). We must  sea Writer as a  
one stop tool to produce multi-media content . In the begining we made 
our HTML from in Writer, later  we could make some interactive PDF's , 
now we have to make Epub, and HTML5 to keep up with the latest 
multi-media developements.



By the way, if I can help here ... please let me know.
Thanks,  you can help to convince our developers to make it posible to 
Export writer documents to PDF, Epub and HTML5 with Sound and Video 
included.

The only downside
is, that I'm still not that responsive as I would like to be :-)

In such cases like Media Player use (especially in the not too far
future), it would be nice to set up the usage data collection for
LibreOffice. Then we might track the use for our product, since the
OOo data gets old quickly ...

Cheers,
Christoph



On 02/25/2011 12:07 PM, Fernand Vanrie wrote:

Please consider: We are living and working in a Multi Media world:
Not only who is working with Impress needs a media player, all content
can have  mixed content and LO must be the one stop place to handle
all  multi media stuff.

I partially reverted the changes for writer. The background calls are
there again, so anybody who needs Media Player could add this by
customizing the menu. And I've enabled Media Player for web by default
as this make really sense.

Fernand, only for my personal interest: are you using videos in odt
files? Maybe I'm not knowing what's possible with this ;)

Thomas
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] media export ...

2011-03-01 Thread Fernand Vanrie

 Michael ,

Video in PDF can been done but it must be Flash-video :-)
So: or:  we need a on the fly conversion, or you havbe accept Flash 
video in the LO documents. I can help to do some research but i am not a 
coder, just a bit off a avandced user.


Greetz
Fernand

Hi Fernand,

On Tue, 2011-03-01 at 11:36 +0100, Fernand Vanrie wrote:

By the way, if I can help here ... please let me know.

Thanks,  you can help to convince our developers to make it posible to
Export writer documents to PDF, Epub and HTML5 with Sound and Video
included.

Oooh - that seems like a fun feature :-) I wonder if we could get video
into PDF files.

Actually, I believe we should prolly work on getting them into ODF
files first :-) currently (AFAIR) we only have lame file-system links in
documents rather than embedding the media content we want.

Might make quite a nice 'easy hack' though for someone that wants to
try to plug some avmedia streaming interface into vcl's PDF export
magic.

HTH,

Michael.



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Tools - Media Player

2011-02-25 Thread Fernand Vanrie

Yifan and others,

Please consider: We are living and working in a Multi Media world:
Not only who is working with Impress needs a media player, all content 
can have  mixed content and LO must be the one stop place to handle 
all  multi media stuff.


Greetz

Fernand

Hi Thomas,

On Wed, Feb 23, 2011 at 11:26:55PM +0100, Thomas Arnhold wrote:

Hi Yifan,

On 02/23/2011 10:47 AM, Yifan Jiang wrote:

I guess end-users could still bring the menu item back using the menu
customization UI (Tools-Customize...-Menus). Is that right?

That's possible. But for writer and calc the background calls are gone.
So it won't work.

There's another entry button of the media play in the customized toolbar
set. So I think this would also not work based on the context?


Maybe I re-enable them, so someone could still
customize his menus with Media Player enabled.

This would be perfectly acceptable in my personal opinion. We don't actually
know who will use the stand-alone player in other apps rather than impress, I
mean it depends on the end users' personal favour and habits.  So IMHO, we
should be cautious to *totally* take out an existing feature.

Michael? What about your opinion of this?

Best regards,
Yifan
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Tools - Media Player

2011-02-25 Thread Fernand Vanrie

Thomas ,

No we are not placing video in odt, files, but our editors (while there 
are working in writer), needs to see some video content as a source 
for there work. But we would like to add some
video content to our Writerfiles and then transfer them to Epup or 
interactive PDF's


Greetz

Fernand

Hi,

On 02/25/2011 12:07 PM, Fernand Vanrie wrote:

Please consider: We are living and working in a Multi Media world:
Not only who is working with Impress needs a media player, all content
can have  mixed content and LO must be the one stop place to handle
all  multi media stuff.

I partially reverted the changes for writer. The background calls are
there again, so anybody who needs Media Player could add this by
customizing the menu. And I've enabled Media Player for web by default
as this make really sense.

Fernand, only for my personal interest: are you using videos in odt
files? Maybe I'm not knowing what's possible with this ;)

Thomas
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] An image editing extension for writer

2011-01-18 Thread Fernand Vanrie

Michael,

I agree with your comments, specialy to make this tool available to 
other than Writer.
But can you have a look at a important OO and LO 's weakness: there is 
no way to make some Print Intentions par Document. When placing a 
Graphic, we need to know what resolution is needed to reproduce a grahic 
on a certain device(screen laserprinting, offset tect...). Actual, OO 
and alsoo LO got this information from the GraphicFileHeader, what is  
wrong concept, the author of a graphic or picture do not know under what 
conditions his work will been shown or printed.
So we need to set par Document this Printer Intentions, and i do not 
know if this properties can been placed in the ODF format ?


Greetz

Fernand

Hi Lakmal,

On Tue, 2011-01-18 at 02:32 +0530, lakmal padmakumara wrote:

I'm engaging in developing an extension(OXT) for writer
which allows users to

Wow :-) there are some great features here - and lots of good work. I
love the effort you've put in :-)

Personally - (as other people have mentioned) - I would love to have
much of this functionality integrated into every LibreOffice copy we
ship. We have a number of these features already present in the
'Picture' dialog in writer (crop, flip and so on) - but these are not
present in calc and draw/impress (as far as I recall) which is sad.


 * Download images to the app directly from Flickr.com

This is sweet :-) there was a chunk of work done by a GSOC student,
that needs completing around the gallery - to allow clipart images to be
downloaded; and I suspect that this integration would build on top of
that really nicely: are you interested in helping to complete and expand
that work ?


You need Java Run Time (JRE) in order to use this product

And of course; we'd tend to prefer things written in C++, and
integrated into the core (as has been discussed).


As this is my first step towards this wonderful and giant Open source
developing community ,I will be really glad if you can hit me back
with any feed backs .Please comment on the above pages mentioning any
drawbacks/bugs/improvements .

So - first - be encouraged :-) it looks like a fun extension to have
written, and a testament to your progamming skill. Of course, from a
user-experience perspective, I think we want to focus on improving the
integrated feature set, rather than providing (better) duplicates
outside - having two ways to do everything: one better, one worse in the
product just confuses people :-)

Thanks !

Michael.



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice