Re: [libreoffice-users] trouble installing fonts to use with Libre Office

2016-09-19 Thread Niklas Johansson
Hi Sigrid

Which weights are missing. If it is the bold and italic versions of
the fonts then there is really nothing to fix because the get mapped to the
bold/italic buttons of their respective "regular" font.

For example if you install Work Sans
https://fonts.google.com/specimen/Work+Sans

You will se a lot of weights of the font like Work Sans Black, Work Sans
Thin etc. However you will not see any Work Sans Bold in the list of fonts
but if you use the font called Work Sans and press the bold button
LibreOffice will automatically use the Work Sans Bold font. One way to
check this out is to export to pdf and then inspect the fonts that is in
use.

If other weights than bold and italic are missing then it would be
interesting to dig deeper into why they are not available.

/Niklas

2016-09-18 0:23 GMT+02:00 Sigrid Carrera :

> Hi,
>
> I have some trouble with LibreOffice recognizing the different weights for
> some fonts I have installed.
>
> Some basic info first:
> LibreOffice 5.2.1.2
> Ubuntu 2016.04
>
> I installed several fonts (otf / ttf files). I downloaded the fonts from
> either Google fonts or font squirrel and installed them all in the correct
> directory, where all the other fonts are as well.
>
> When I check in the Font Manager in Ubuntu, everything is ok, and all the
> different weights and styles are there. However, when I start LibreOffice,
> I see for some of those fonts only 1 style in the dropdown list, whereas
> for others I see all the different weights and styles. While in the font
> manager, I can't see any different behaviour between the affected fonts.
>
> Any ideas what I can try to solve the issue?
>
> Thanks for any ideas you might have.
>
> Sigrid
>
> --
> 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
>

-- 
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


Re: [libreoffice-users] Get spell check to ignore website addresses?

2015-09-18 Thread Niklas Johansson
Hi

Well normally this just works. ;)

The way it is designed is that LibreOffice first recognize that you have
typed a hyperlink. Then it automatically turns it into an actual link. By
doing that it also applies the character style called hyperlink, you know
that blue text which is underlined. That style also has the language set to
None which makes the spell checker ignore it.

If you however turn of the automatic detection of hyperlinks then I suppose
that you need to manually set the language to None. If you turned it of
because you do not like the format of the hyperlink then I would suggest
that you create a template and change the relevant character style to your
liking and set that template as your default template. Note that there is
also a style for visited links.

/Niklas

fredag 18 september 2015 skrev captainludd5 :

> Still no response to this? I can't find anything about it anywhere. For an
> editor, it's fairly important, which is why Office includes the function
> (though, for other reasons, it is no longer effective either).
>
>
>
> --
> View this message in context:
> http://nabble.documentfoundation.org/Get-spell-check-to-ignore-website-addresses-tp4091851p4160650.html
> Sent from the Users mailing list archive at Nabble.com.
>
> --
> 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
>
>

-- 
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


Re: [libreoffice-users] Re: Unable to Protect/Unprotect cells in Libreoffice 5

2015-09-08 Thread Niklas Johansson

Hi

Den 2015-09-06 kl. 17:26, skrev Tanstaafl:

...
I wonder - would it be possible to create a more generic (and I'm sure
more complicated) extension that allows you to create new sub-menu
content entries like this?

Or, maybe, just one that allows you to add one of the main menus (ie, in
this case, 'Table') to the context menu?

Anyway, just thinking how to make it more useful to others...
Well, the short answer is that sure it is possible, but it is quite an 
undertaking to do it.
It would require time that I simply don't have at the moment. However 
I'll probably
look into doing it, or at least a simplified version of it from time to 
time. ;)
One of the harder part would be to create a simple and intuitive dialog 
for the

feature.

Might be good to note that it is definitely easier to add context menu 
entries if

I only now what to add and where.

/Niklas



--
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


Re: [libreoffice-users] Re: Unable to Protect/Unprotect cells in Libreoffice 5

2015-09-05 Thread Niklas Johansson
Hi

I created an extension that adds a submenu, Cell Protection, to the context
menu of tables. Feel free to give feedback, and I will try to publish the
extension to the LibreOffice Extension Center.

Note that at the moment the extension is in English only.

For the time being, you can download the extension from:
https://www.dropbox.com/s/3e3ok1kxyrshay8/CellProtectContextMenu.oxt?dl=1

/Niklas

2015-09-01 15:35 GMT+02:00 Tanstaafl :

> On 8/30/2015 1:19 PM, Tanstaafl  wrote:
> > I'll go and create a new enhancement request to allow customizing the
> > context menus.
>
> Done: bug 93837
>
> https://bugs.documentfoundation.org/show_bug.cgi?id=93837
>
>
> --
> 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
>
>

-- 
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


Re: [libreoffice-users] Warning when downloading LibreOffice 5.0.0b3

2015-06-15 Thread Niklas Johansson

Sorry about that. Should be fixed now. Thanks for the note.

Med vänlig hälsning
Niklas Johansson

M Henri Day skrev den 2015-06-15 15:34:

​I don't wish to make a fuss about this graphical lapse, which is why​ I
haven't filed a bug, but when downloading (the Swedish version of) the
latest LO 5.0 beta for Windows, I note that a warning to the effect that it
is the first version in the 4.4 series and professional users are
recommended to employ a more stalbe version from the 4,2 or 4.3 series
appears, see the screenshot below. If this is also the case when versions
in other languages are downloaded, I suggest that the warning text be
modified

Henri


​




--
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


Re: [libreoffice-users] Impress Default Style in Drawing Object Styles

2015-02-27 Thread Niklas Johansson

Hi

Well one thing that comes to mind is if I do not like the default color 
of objects then I'll change the color in the Default style. That will 
also change the color for the children. Of course not all the children 
use this setting but see for example Object with shadow.
Another example might be that you want to chante the font used inside 
objects. Change the default and see how it changes in the style Text, 
Text body and so on.


Try it out and test it on different shapes and figures. Make a test 
presentation and go wild for a moment. I hope that it will become more 
clear to you when you experimented a bit with it.


Regards,
Niklas Johansson

Kevin O'Brien skrev den 2015-02-26 22:44:

This is something I have not seen before, and I am not entirely clear
on it. Nor can I find it searching through the Impress guide. When I
look at the hierarchical view in the Styles and Formatting it is
implied that all other styles are based on it, but that doesn't make a
lot of sense to me. Just what is the Default style good for, and how
should it be used?

Thanks,




--
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


Re: [libreoffice-users] LO Basic: problem retrieving document Keywords property

2014-11-26 Thread Niklas Johansson

Hi John

It seems that Keywords is stored as a string array, so if you want to 
read it into a string you need to convert it into a string. One way to 
do this is to use the Join-function. In your case exchange the line that 
crashes with.

pDates = Join(oDoc.DocumentProperties.Keywords, , )

I'm not 100 % sure if comma is used as a separator in all languages, let 
us know if the code above does not work for you.


Regards,
Niklas Johansson

john herron skrev den 2014-11-26 07:55:


For billing purposes I store parameters into the Description fields of 
LO text document properties.


Have no problems retrieving data entered in the Title, Subject, 
Description property fields by simply assigning the data to string 
variables.
However, when I try to assign to a string variable the contents of the 
Keywords property, I get the error message depicted in the following 
code screenshot:


http://tinypic.com/m/imus2c/4

Can anyone help me figure out what the problem might be?
Thanks.

jdh




--
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


Re: [libreoffice-users] Managing PopUp Menus

2014-11-10 Thread Niklas Johansson

Hi Paolo

If I understand this correctly you have created a dialog that contains a 
button that you want to give dropdown-functionality. The Main method 
starts the dialog and when the button is pressed it calls the sub 
PopupButton that creates the popup button and sets up the XMenuListener 
and a couple of subs that are used by the listener.


If you look at the api docs and search for XMenuListener you'll find:
http://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1awt_1_1XMenuListener.html

There you'll find out that the memberfunctions for this listener is not 
the same as the ones you used. I actually think this is true for newer 
versions of Apache OpenOffice as well, but that is a side note and I 
haven't looked into this to deeply.


This means that you need to adapt the names of last five subs from
PopupMenuListener_select - PopupMenuListener_itemSelected
PopupMenuListener_highlight - PopupMenuListener_itemHighlighted
PopupMenuListener_activate - PopupMenuListener_itemActivated
PopupMenuListener_deactivate - PopupMenuListener_itemDeactivated
PopupMenuListener_disposing - PopupMenuListener_disposing

OK the last one did not need any adaption. ;)

A quick tip if you create a uno listener is to inspect it with xray to 
find out what methods (subs) you need to create. Let us know if you need 
more guidance.


Regards,
Niklas Johansson

Paolo Ferrario skrev 2014-11-10 07:47:

Hello everybody

We are moving from OpenOffice to LibreOffice

We have some macros that uses popup menus that work perfectly in
OpenOffice but they don't work in LibreOffice.

We developed our code starting from examples (thanks Hania and Ermione)
that we found over the internet and that are attached.

Any suggestions to make the macro run fine?
Thanks to everybody

  


REM  *  BASIC  *

  


Dim oDialog As Object

Dim oPopupMenu As Object

  


Sub Main

   sLibName = Standard

   sDialogName = Dialog1

   DialogLibraries.LoadLibrary(sLibName)

   ' create new dialog

   oDialog = CreateUnoDialog( _

 DialogLibraries.getByName(sLibName).getByName(sDialogName))

   oDialog.execute()

End Sub

  


Sub PopupButton

   ' get the size of the button

   oButton = oDialog.getControl(CommandButton1)

   aPosSize = oButton.PosSize

   ' set the position of the popup menu

   Dim aRect As New com.sun.star.awt.Rectangle

   With aRect

 .X = aPosSize.X

 .Y = aPosSize.Y + aPosSize.Height

 .Width = 0'100

 .Height = 0'100

   End With

   ' menu listener

   oMenuListener = CreateUnoListener( _

 PopupMenuListener_, com.sun.star.awt.XMenuListener)

   ' new popupmenu

   oPopupMenu = CreateUnoService(com.sun.star.awt.PopupMenu)

   ' set listener and insert menu items

   With oPopupMenu

 .addMenuListener(oMenuListener)

 .insertItem(1,Menu 1,0,0) 'id, label, type, position

 .insertItem(2,Menu 2,0,2)

 .insertSeparator(1)

 .setCommand(1,item1)

 .setCommand(2,item2)

   End With

   ' show popup menu

   oPopupMenu.execute(oDialog.Peer,aRect, _

 com.sun.star.awt.PopupMenuDirection.EXECUTE_DEFAULT)

   oPopupMenu.removeMenuListener(oMenuListener)

End Sub

  


Sub PopupMenuListener_select ( oEv )

   sCmd = oEv.Source.getCommand(oEv.MenuId)

   msgbox sCmd

End Sub

Sub PopupMenuListener_highlight ( oEv )

End Sub

Sub PopupMenuListener_activate ( oEv )

End Sub

Sub PopupMenuListener_deactivate ( oEv )

End Sub

Sub PopupMenuListener_disposing( oEv )

End Sub

  

  

  

  

  

  




Ferrario Luigi s.r.l.
Ing. Paolo Ferrario
Viale Edison 629
20099 Sesto S. Giovanni
Tel: +39.02.22.47.48.49
Fax: +39.02.24.40.418
e-mail: paolo.ferra...@ferrarioimpianti.it
mailto:paolo.ferra...@ferrarioimpianti.it


The information transmitted is intended only for the person or entity to
which
it is addressed and may contain confidential and/or privileged material.
Any
review, retransmission, dissemination or other use of, or taking of any
action
in reliance upon, this information by persons or entities other than the
intended recipient is prohibited. If you received this in error, please
contact the sender and delete the material from any computer.

  






--
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



Re: [libreoffice-users] Small bug(?) when loading file into Writer

2014-07-22 Thread Niklas Johansson
Hi Jon

It is a small bug that seems to have crept in between the 4.1 series and
the 4.2 series. I'm trying to track down the exact commit at the moment.
Let's hope I can understand what has gone wrong and fix it. Otherwise I'll
open a bug (I did not find any bug reported in bugzilla).

/Niklas

tisdag 15 juli 2014 skrev Jon Harringdon jonathan.harring...@virgin.net:

 If I load a document into LO Writer (after I'd entered user information)
 it automatically jumps to the position in the file I was on when I last
 saved. Very nice.

 However, this helpful feature doesn't seem to work correctly if the file
 has text in columns. In this case the app does jump to the correct page
 but then stays on the first character of that page. If I press shift+F5
 it then jumps to where it's supposed to go in the first place.

 Can others confirm this?

 Jon

 --
 To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
 javascript:;
 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



-- 
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


Re: [libreoffice-users] Macro to autoload first recent doc

2014-07-21 Thread Niklas Johansson

Let's improve the code a bit...

When we open the registry key we do not need it to be editable so let's 
open it as read only. By default GetRegistryKeyContent opens it as such. 
For some reason LibreOffice complains about named arguments not 
supported for the object, as Jon pointed out to me.


I've changed the key as well to correspond exactly with the key in 
registry. You can search for the key in the registrymodifications.xcu 
file (with the path 
%appdata%\LibreOffice\4\user\registrymodifications.xcu on windows).


I've added a new sub which opens the file and sets some open arguments 
according to what is saved in the registry and if the file is a template 
it should be opened in edit mode. I do not think that the password part 
works at the moment, so that part of the code probably needs some love. ;)


Sub Load1st()
Dim oCUA, oList, oItem As Object
 If Not BasicLibraries.isLibraryLoaded(Tools) Then 
BasicLibraries.LoadLibrary(Tools)

 REM use GetRegistryKeyContent function from the module Tools.Misc
 oList = 
GetRegistryKeyContent(/org.openoffice.Office.Histories/Histories/org.openoffice.Office.Histories:HistoryInfo['PickList']/OrderList)

 If oList.hasByName(0) Then
  oItem = oList.getByName(0)
  OpenRecentFile(oItem.HistoryItemRef)
 End If
End Sub

Sub OpenRecentFile(sFileURL as String)
Dim oPickList As Object, oPickListArgs As Object
Dim loadArgs(2) As New com.sun.star.beans.PropertyValue
 If Not BasicLibraries.isLibraryLoaded(Tools) Then 
BasicLibraries.LoadLibrary(Tools)
 oPickList = 
GetRegistryKeyContent(/org.openoffice.Office.Histories/Histories/org.openoffice.Office.Histories:HistoryInfo['PickList']/ItemList)

 If oPickList.hasByName(sFileURL) Then
  oPickListArgs = oPickList.getByName(sFileURL)
  If FileExists(sFileURL) Then
   loadArgs(0).Name  = AsTemplate'We never want to open a recent 
file as template

   loadArgs(0).Value = false
   loadArgs(1).Name  = Filter
   loadArgs(1).Value = oPickListArgs.getByName(Filter)
   loadArgs(2).Name  = Password
   loadArgs(2).Value = oPickListArgs.getByName(Password)
   REM use OpenDocument function from the module Tools.Misc
   OpenDocument(sFileURL, loadArgs())
  End If
 End If
End Sub


'I loosely took inspiration from the LibreOffice code 
http://opengrok.libreoffice.org/xref/core/unotools/source/config/historyoptions.cxx 



Regards,
Niklas Johansson


--
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


Re: [libreoffice-users] Problem with Export as PDF

2014-07-17 Thread Niklas Johansson
I would not really call it a bug. If you only want to export a part of the
document as PDF and embed the odf then how much of the odf should be
embedded. If only part of the document would be embedded then how would
LibreOffice know what to throw away.

I'd recommend, take a copy of the document and remove the unwanted parts
and then do the export with the embed option enabled.

/Niklas

onsdag 16 juli 2014 skrev m.a.riosv miguelange...@libreoffice.org:

 Hi Pat,

 location for user profile is detailed in:
 https://wiki.documentfoundation.org/UserProfile

 about your issue:

 select what export seems incompatible with the option for Embed
 OpenDocument file,
 maybe a bug.

 Miguel Ángel.



 --
 View this message in context:
 http://nabble.documentfoundation.org/Problem-with-Export-as-PDF-tp4115670p4115786.html
 Sent from the Users mailing list archive at Nabble.com.

 --
 To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
 javascript:;
 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


-- 
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-users] Re: [libreoffice-accessibility] How to enable focus caret tracking with Gnome magnifier

2014-03-01 Thread Niklas Johansson
Hi Bas

Do you have Gnome Magnifier running when you start LibreOffice?

If I'm not mistaken LibreOffice checks if there are any
accessibility applications running when it starts up. If it finds any then
it starts sending accessibility events otherwise it does not.

On Feodora you should not have to change any option from within LibreOffice
to enable accessibility.

/Niklas

lördagen den 1:e mars 2014 skrev Bas Cancrinus basca...@gmail.com:

 Hi Tom,

 Unfortunately I haven't. I appreciate any help with this issue very much!

 Cheers, Bas

  Op 27 feb. 2014 om 22:51 heeft Tom Davies tomc...@gmail.comjavascript:;
 het volgende geschreven:
 
  Hi :)
  Sorry for the lack of responses!  Have you managed to fix this issue yet?
  Apologies and regards from
  Tom :)
 
 
  On 26 February 2014 10:57, Bas Cancrinus b...@cloud64.nl javascript:;
 wrote:
  Hi,
  I'm on Fedora 20 and I'm trying to get focus  caret tracking with the
  Gnome magnifier. The magnifier doesn't respond to any event in LibO
  now.
 
  LibO should work out of the box with the Gnome magnifier according to:
  https://wiki.documentfoundation.org/Accessibility#GNOME
 
  But the option Enable assistive technologies is not there (v4.1.5.3).
  How to proceed?
 
  Many thanks in advance!
 
  Cheers, Bas
 
  --
  To unsubscribe e-mail to:
 accessibility+unsubscr...@global.libreoffice.org javascript:;
  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/accessibility/
  All messages sent to this list will be publicly archived and cannot be
 deleted

 --
 To unsubscribe e-mail to: 
 accessibility+unsubscr...@global.libreoffice.orgjavascript:;
 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/accessibility/
 All messages sent to this list will be publicly archived and cannot be
 deleted



-- 
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



Re: [libreoffice-users] autotext in 4.xx - anybody please

2014-02-26 Thread Niklas Johansson

Hi Thomas

Just to recap:
You've upgraded Windows from XP to Windows 7 and then upgraded 
LibreOffice 3.6 to 4.1.


The path to the user folder is moved by Windows in the upgrade of 
Windows. My guess is that the path to the AutoText-files, that is stored 
under that folder, did not get converted properly.

- Open the dialog AutoText (Ctrl + F3) and click on Paths...
- Do you see a path that looks something like this:
C:\Users\your username\AppData\Roaming\LibreOffice 4\user\autotext

If you do not see such a path then you can add it and try again. You 
might also want to check the paths for other program functions.
Go to Tools - Options... and in the dialog that pops up look under the 
section LibreOffice - Paths (the list to the left). If you see an entry 
that starts with C:\Documents and Settings... it is likely wrong so 
select it in the list and click on the button Default. If everything 
goes well you should now see a path that starts with C:\Users\...


After Windows XP Microsoft moved a lot of folders around among others 
the %AppData% folder where the user profile of LibreOffice is stored. 
Now the problem is that these files contains some settings that links to 
the paths that no longer exist.


Sorry for the late answer, I hope this solves your problems.
If it does not, please let us know what paths are listed in your 
AutoText dialog so we can figure out what else might have gone wrong.


Anyway let us know how it turns out.

Regards,
Niklas Johansson


--
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


Re: [libreoffice-users] opening file via macro failes

2014-02-26 Thread Niklas Johansson

Hi HP

So first of all I tried your macro with the LibreOffice 4.2.0 and did 
not experience any problems, once I set up a valid url of course. I used 
the following code.


Sub TryToOpenCsvFromTheInternet
   Dim loadArgs2(1) as New com.sun.star.beans.PropertyValue

   lurl = 
http://download.finance.yahoo.com/d/quotes.csv?s=%40%5EDJI,GOOGf=nsl1ope=.csv;
   lsfo = 44/32,34,ANSI,2,

   loadArgs2(0).Name = FilterName
   loadArgs2(0).Value = Text - txt - csv (StarCalc)
   loadArgs2(1).Name = FilterOptions
   loadArgs2(1).Value = lsfo

   lDoc = StarDesktop.LoadComponentFromURL(lurl,_blank,0,loadArgs2())
   lSheet = lDoc.Sheets().getByIndex(0)
End Sub


When it comes to the documentation of the filter options this is 
probably as close as you get:

https://wiki.openoffice.org/wiki/Documentation/DevGuide/Spreadsheets/Filter_Options#Filter_Options_for_the_CSV_Filter

There is also a simple and effective way to find out different options, 
as described by Villeroy [1]


quote
Open the csv manually with all bells and whistles. Then run the 
following code and copy the FilterOptions.


|Sub showFilterOptions()
Dim args(),i%
   args() = ThisComponent.getArgs()
   for i = 0 to uBound(Args())
  if args(i).Name = FilterOptions then inputbox 
args(i).Name,,cStr(args(i).value)

   next
End Sub|
end of quote

[1] http://140.211.11.67/en/forum/viewtopic.php?t=58105p=256500#p256500

Med vänlig hälsning
Niklas Johansson

HP4 skrev 2014-02-25 16:57:

Hi,
I can't find any information on how to set the arguments for
LoadComponentFromURL when loading a csv-file via macro over the network.
The example below worked fine with OpenOffice some time ago, but yields
exceptions when running it with LibreOffice because the function call
returns a NULL pointer. So my question:

- where can I find a list of valid filters for LibreOffice?
- what arguments do I have to provide to read csv-files?

The available documentation in the API on how to supply these arguments is
useless when it doesn't provide the allowed values or a hint how to
construct them. Also I couldn't find any helpful information via Google.

BR
HP

Sub Main
Dim loadArgs2(1) as New com.sun.star.beans.PropertyValue

lurl = http://domain.org/file.csv;
lsfo = 44/32,34,ANSI,2,

loadArgs2(0).Name = FilterName
loadArgs2(0).Value = Text - txt - csv (StarCalc)
loadArgs2(1).Name = FilterOptions
loadArgs2(1).Value = lsfo

lDoc = StarDesktop.LoadComponentFromURL(lurl,_blank,0,loadArgs2())
lSheet = lDoc.Sheets().getByIndex(0)
End Sub





--
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



Re: [libreoffice-users] help

2013-12-16 Thread Niklas Johansson

Hi Markus

Sorry to hear that you are having problems with LibreOffice. There are 
quite a few issues surrounding combo boxes, list boxes and pop up 
buttons in LibreOffice. Even though the program has had some great 
improvements in the last year issues with list boxes and pop up buttons 
still remain to be fixed.


I will try to guide you through a few steps in a hope that you at least 
can get something exported.

I suppose it is the odt2braille extension your talking about?

Go to File - Export to braille
Press tab three times to get to the first pop-up button
Press the down arrow twice to select PEF format (sorry VoiceOver does 
not announce anything but the PEF is last). At least for me the 
extension seems to save my last setting. Also note that PEF seems to be 
the only of the three available choices that disables the next pop-up 
button so if pressing tab takes you to a check box then you have 
selected the correct format.


The rest of the settings in this dialog should be accessible from the 
VoiceOver-cursor.


Let us know if you can make it work. I'm getting some exception with 
liblouisxml that I haven't looked into but that might be something with 
my specific setup.


Let's hope that the improvements to Windows accessibility, that is 
currently going on within the project, will rub off on the accessibility 
improvements for other platforms as well.


Regards,
Niklas Johansson



--
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



Re: [libreoffice-users] Mail Merge and Labels

2013-12-16 Thread Niklas Johansson
So I tried to look in to this and checked the measurements that I get 
when I create the labels and they seem to be correct. Of course it is 
like Virgil said there is no space before the text whereas Word ads 
0,07 both to the left and the right of the text. You can easily mimic 
that distance by modifying the Default Style to add an Indent 
Before/After text of 0,07.


Could you create a simple label document and mail it to me directly? 
Just so that I can check if you do not get different measurements the me.


Sorry for not being able to get back to you sooner.

Regards,
Niklas Johansson

Jeff Hahn skrev 2013-12-06 00:37:

I use LO 4.1.3 and Windows 7.  I should repeat that in my case the first 2 
columns print properly (although the print starts right at the edge of the 
label).  It is only the third (right) column that is off.

Jeff Hahn


From: cuyfa...@hotmail.com
To: users@global.libreoffice.org
Subject: Re: [libreoffice-users] Mail Merge and Labels
Date: Thu, 5 Dec 2013 12:31:46 -0500

I just noticed this thread, and I have to chime in that, the last time I
tried to create labels, I too noticed that the LO Avery 5160 template
alignment was off. I had to adjust the contents of every cell. At that time,
I was still using LO 3.5.x. I have not yet tried since upgrading to the
4.x.x range.

At the time, I just installed Apache OO, as its template worked properly.

If I recall correctly, I think there may have been other label templates
online as extensions that worked better than LO's label template.

Virgil

-Original Message-
From: Niklas Johansson
Sent: Thursday, December 05, 2013 12:20 PM
To: Jeff Hahn ; users@global.libreoffice.org
Subject: Re: [libreoffice-users] Mail Merge and Labels

So I looked at the configuration in LibreOffice 4.0.6 and LibreOffice
4.2 beta-version and the configuration seems to be correct. I even
compared it to the result that I get in Word 2013 for the same label
(sorry for not thinking about doing that earlier). So before I put
anymore time into this it would be good to know what version of
LibreOffice you used when you created the labels?

Niklas Johansson

Jeff Hahn skrev 2013-12-05 17:22:

I think the configuration in the wizard may be wrong.  The Avery 5160 has
30 labels on a 8.5 x 11 sheet each measuring 1 x 2 5/8.  It is
probably one of the most common labels used so I am surprised the issue
hasn't previously been raised.  As I indicated in my email, I didn't have
any problem when I switched to Word so I am reasonably confident the issue
is not related to my printer.

Jeff Hahn



Date: Thu, 5 Dec 2013 17:04:24 +0100
From: sleeping.pil...@gmail.com
To: users@global.libreoffice.org
Subject: Re: [libreoffice-users] Mail Merge and Labels

Hi Jeff

Is the issue that you used lable sheets of the type Avery 5160 and that
the preconfiguration for these lables were wrong?
I think that I remember reading some issues with the label

functionality

(File - New - Label) in an earlier version of LibreOffice that might
or might not be fixed in newer versions. What version of LibreOffice

did

you use?

Do you have any specifications for the measurements of these specific
labels so I can do a quick review if there seems to be any issues there?

Note also that you can tweak the measurements under the Format tab of
the Labels-dialog. Not that you should need to if you use labels that
has a preset configuration.

Kind regards,
Niklas Johansson

Jeff Hahn wrote 2013-12-04 16:41:



I tried to do my labels for Christmas
cards using LO's mail merge. I was able to create the data base and
print without difficulty. Unfortunately, the entire third column

was not

properly spaced and printed outside of the label, a couple of

spaces to the left. The first two columns were they were supposed to be. I
was using standard

configuration for Avery 5160. I finally gave up created the labels
with Excel and Word.




I am not sure where to send an email to
suggest that the matter be looked into so I am sending this
information to this list with the hope the matter will be picked for
investigation. Also, although I suspect it has been suggested
before, it would be nice to be able to do a mail merge directly from
the spreadsheet without creating a database file.




Jeff Hahn




--
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


--
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

Re: [libreoffice-users] LO Base - Pushbutton on Form not working.

2013-10-01 Thread Niklas Johansson
In short the message you get tells you that the macro that the button is 
linked to cannot be found. Then it tells you where it is looking for the 
macro. If you look closer at this it is looking for the macro that is 
located within the document and has the path Standard.Story.OpenForm. Is 
the macro really located there?


If it is still giving you issues what happens if you try to attach the 
macro to the button again?


Regards,
Niklas Johansson

Ian Whitfield skrev 2013-09-30 12:03:

Hi All

After some time working on other aspects of my Database I'm back to 
trying to get a Pushbutton working to open a SubForm.


PClinuxOS 2013.08; LO Base 4.1.1.2; MySQL 5.1.55

My Database - FSNew
Tables - Members  Story
Forms - FSNew.Members  FSNew.Story

The Pushbutton on the Members Form has the event -
Mouse Button Pressed - Standard.Story.OpenForm .

On Clicking on the Button in the Members Form I get the error -

A Scripting Framework error occurred while running the Basic script 
vnd.sun.star.script:Standard.Story.OpenForm?language=Basiclocation=document.


Message: The following Basic script could not be found:
library: 'Standard'
module: 'Story'
method: 'OpenForm'
location: 'document'

Can someone decipher this for me please?? Thanks!!

IanW
Pretoria RSA






--
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



Re: [libreoffice-users] LibreOffice 4.1 won't start on Windows 8 64-bit

2013-09-02 Thread Niklas Johansson
Ok, thanks for letting me know. Then it's likely something in my 
computer configuration that is wrong. As long as nobody else has the 
same issue, I won't open any bug report.


Regards,
Niklas Johansson

M Henri Day skrev 2013-09-01 13:20:
2013/9/1 Niklas Johansson sleeping.pil...@gmail.com 
mailto:sleeping.pil...@gmail.com


Hi

I'm having some issues with LibreOffice 4.1.0 and 4.1.1 on Windows
8 64-bit (Swedish).

When I first try to install it, it complains that I need to stop
the Microsoft Windows Search Host Protocol after some searching
I was able to pause it for 15 minutes, since I don't really need
the search functionality on that computer I also stopped the
indexing on all places. After that I tried to install LibreOffice
again and it went through the installation process without any
more hassle.

Next problem, the program won't start! :(

Has anybody else seen this problem, or been able to install on
Windows 8 64-bit?

PS. Master build from yesterday won't start after installation
either, but 4.0.5 does work.

-- 
Niklas



​Hej Niklas !

I've hitherto installed the Swedish-language version of LO 4.1.1.2 on 
four computers running 64-bit Windows 8, three of which are dual boots 
with Win7, on which I've also installed 4.1.1.2. I've encountered no 
problems, nor did I encounter any when I previously installed 4.1.0.4 
on them


Henri



--
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-users] LibreOffice 4.1 won't start on Windows 8 64-bit

2013-09-01 Thread Niklas Johansson

Hi

I'm having some issues with LibreOffice 4.1.0 and 4.1.1 on Windows 8 
64-bit (Swedish).


When I first try to install it, it complains that I need to stop the 
Microsoft Windows Search Host Protocol after some searching I was able 
to pause it for 15 minutes, since I don't really need the search 
functionality on that computer I also stopped the indexing on all 
places. After that I tried to install LibreOffice again and it went 
through the installation process without any more hassle.


Next problem, the program won't start! :(

Has anybody else seen this problem, or been able to install on Windows 8 
64-bit?


PS. Master build from yesterday won't start after installation either, 
but 4.0.5 does work.


--
Niklas


--
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



Re: [libreoffice-users] LO WRITER BASIC: insert an image, put a drawing-text on top and jump to next page

2013-08-19 Thread Niklas Johansson

Your observation that the image is still selected, is correct.
You can deselect an object (image) by pressing the Esc-button.
In other words I would add the following line before Wend:
dispatcher.executeDispatch(document, .uno:Escape, , 0, Array())

That will probably solve your problem, you might need to adjust
the exact location of the code line so that the image gets deselected
at the right time.

Regards,
Niklas Johansson

Alain Van Utterbeeck skrev 2013-08-19 10:44:

Hello Andrew,

Thanks for your help.
I tried this:

document   = ThisComponent.CurrentController.Frame
dispatcher = 
createUnoService(com.sun.star.frame.DispatchHelper)

mDoc = ThisComponent
mCurs = mDoc.currentController.getViewCursor()
mGraph = 
ThisComponent.CreateInstance(com.sun.star.text.GraphicObject)

dim args4(3) as new com.sun.star.beans.PropertyValue
While sale_order_type.next
rem Add a new paragraph, which will use the same 
formatting as the current cursor location
dispatcher.executeDispatch(document, 
.uno:InsertPara, , 0, Array())


rem Move the cursor back to where it was.
dim args2(1) as new com.sun.star.beans.PropertyValue
args2(0).Name = Count
args2(0).Value = 1
args2(1).Name = Select
args2(1).Value = false

dispatcher.executeDispatch(document, .uno:GoLeft, 
, 0, args2())

args4(0).Name = FileName
args4(0).Value = sale_order_type.getString(1)
args4(1).Name = FilterName
args4(1).Value = Alle indelingen
args4(2).Name = AsLink
args4(2).Value = false
args4(3).Name = Style
args4(3).Value = Afbeeldingen
dispatcher.executeDispatch(document, 
.uno:InsertGraphic, , 0, args4())
dispatcher.executeDispatch(document, 
.uno:SetAnchorToPara, , 0, Array())
dispatcher.executeDispatch(document, .uno:GoRight, 
, 0, args2())
dispatcher.executeDispatch(document, 
.uno:InsertLinebreak, , 0, Array())
dispatcher.executeDispatch(document, 
.uno:InsertPagebreak, , 0, Array())

Wend
mCurs = mDoc.currentController.getViewCursor()
oIndex = 
ThisComponent.CreateInstance(com.sun.star.text.ContentIndex)

oIndex.CreateFromOutline = True
ThisComponent.getText().insertTextContent(mCurs, oIndex, 
False)


The image is inserted correctly but I now get an error on the last line:
BASIC-runtime-fout.
Er is een uitzondering opgetreden
Type: com.sun.star.uno.RuntimeException
Message: text interface and cursor not related

What I see is that the image is still the selected object...
What am I missing?

Thanks for any help in advance...

Greetings,
Alain

On 18-08-13 19:57, Andrew Douglas Pitonyak wrote:


Depending on what you really have in mind, some things may be easily 
doable still using the macro recorder. For example,  I started with 
the cursor on


sub InsertSomeText(someText$)
dim document   as object
dim dispatcher as object
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService(com.sun.star.frame.DispatchHelper)

rem Add a new paragraph, which will use the same formatting as the 
current cursor location

dispatcher.executeDispatch(document, .uno:InsertPara, , 0, Array())

rem Move the cursor back to where it was.
dim args2(1) as new com.sun.star.beans.PropertyValue
args2(0).Name = Count
args2(0).Value = 1
args2(1).Name = Select
args2(1).Value = false

dispatcher.executeDispatch(document, .uno:GoLeft, , 0, args2())

rem Set the font size (you said something about changing a size).
dim args3(2) as new com.sun.star.beans.PropertyValue
args3(0).Name = FontHeight.Height
args3(0).Value = 14
args3(1).Name = FontHeight.Prop
args3(1).Value = 100
args3(2).Name = FontHeight.Diff
args3(2).Value = 0

dispatcher.executeDispatch(document, .uno:FontHeight, , 0, args3())

rem Center the paragraph Horizontally
dim args4(0) as new com.sun.star.beans.PropertyValue
args4(0).Name = CenterPara
args4(0).Value = true

dispatcher.executeDispatch(document, .uno:CenterPara, , 0, args4())

rem Insert the desired text here
dim args5(0) as new com.sun.star.beans.PropertyValue
args5(0).Name = Text
args5(0).Value = someText

dispatcher.executeDispatch(document, .uno:InsertText, , 0, args5())


REM Now, move the cursor back to the next line, which is where I 
expect you probably want to insert your image.
REM If you wanted this line to be centered horizontally, you need to 
do that CenterPara thing.

dispatcher.executeDispatch(document, .uno:GoRight, , 0, args2())

end sub

Now, what are you trying to set for a vertical alignment? The image? 
Are you able to do that directly from the GUI?


On 08/17/2013 04:10 AM, Alain Van Utterbeeck wrote:

Hello Andrew,

Thanks

Re: [libreoffice-users] Problem with eLAIX extension on LibO 4.0

2013-08-13 Thread Niklas Johansson

Hi

To bad it did not work out for you. I can't see any issue with the way 
you installed as a shared extension. I usually start LibreOffice as 
administrator and install the extension through the GUI instead of doing 
it the terminal way but that is just a preference.


Med vänlig hälsning
Niklas Johansson

Joaquín Lameiro skrev 2013-08-12 17:25:

Hi. Thanks for the help, Niklas.

First: Neither DlgAbout nor DlgBookmark under eLAIX node when installed as a 
user extension.

Second: I followed your advise and try to install eLAIX as a shared macro, but 
it didn't work either. I just summarize what I did so you can check I didn't 
make any mistake:

I'm running LibO 4.0 on Windows Vista 32 bits SP 2. I opened the extension manager 
through the GUI (Tools - Extension manager) and uninstalled eLAIX. I closed 
LibO and downloaded the OXT file from the web into my user folder. I right-clicked 
on the Windows promt icon and selected 'Open as administrator'. The Windows prompt 
popped up in a new window. I executed 'unopkg add --shared c:/path/file.oxt' from 
the 'program' sub-folder of LibO (of course I changed the 'path' and 'file' 
generic names for the actual ones). Unopkg run without problems, printed a copy of 
the license and asked me to agree, which I did. It came out to the promt without 
error. I exited the administrator promt and started Write. The eLAIX extension was 
installed, but:
-gave the same error
-when checking the macros manager (Alt+F11), eLAIX was under the shared macros, 
but DlgAbout and/or DlgBookmark were still missing from the node.

No idea why the macros are being deleted, but hope this information could help 
to report a bug (I don't have the knowledge to report it properly). Thanks 
again everybody,
Joaquín




Sorry to hear that you are still having troubles with this.

So what that line of code is suppose to do is to load the dialogs in the
library eLAIX so that they can be used by the program. For some reason
this is not possible.

I've seen some problems with dialog libraries disappearing in some cases
so let's see if we can pin down if this is what has happened.

Open Writer
Press Alt+F11
Press the button Edit in the dialog that appears
On the left side in the editor you have a tree structure, find eLAIX and
expand that node
Do you see a DlgAbout or DlgBookmark there under?

We should probably try to formulate a bug report about vanishing dialog
libraries (as well as basic libraries). I found it hard to formulate
such a bug since I haven't found when it happens just that it happens
some times, and I believe it's more and more frequent.

Just a thought, you could try to install the extension as a shared
extension.
If it is installed as a shared extension then LibreOffice will need
elevated rights to change the dialogs, which it should not have under
normal circumstances. Of course this does not fix the actual problem but
it might make it possible for you to use eLAIX without having to
repeatedly reinstalling the extension each time the dialogs disappear.

Let us know if you need more information on how to install a shared
extension, and in that case please let us know what operating system
your using (Windows, Mac, some sort of Linux distribution ...)

Regards,
Niklas Johansson

Joaquín Lameiro skrev 2013-08-12 13:56:

Hi.
Seems it was not that easy to solve. The reinstallation of eLAIX worked the first time, but now I'm 
getting the same problem again. Besides the error message, LibO opens the Basic editor and outputs 
the macro, marking the line that is causing the problem. I copy the pertinent part of the output, 
and underline the specific line, which is actually 'DialogLibraries.LoadLibrary( eLAIX 
)' from the Document related functions section:


[...]

'**
' Document related functions: Doc Open | Doc Metadata | Doc Check | Doc Export
'**


function DocImport()
 ImportFromILIAS
end
function


sub DocCheck()
dim oGraphic as object
dim oControl as object
dim sPath as string
dim sImgPath as string
dim oStructure as object
dim oSyncOutlines as object
dim oEmptyHeadings as object
dim oDoubleSpaces as object
dim oStatus as object
dim vState as integer

   
   'initialize dialog and elements

   DialogLibraries.LoadLibrary( eLAIX )
   goDlgCheck = CreateUnoDialog( DialogLibraries.eLAIX.DlgCheck )
   sPath = GetPackageDirURL(vnd.harryboldt.elaix)
   sImgPath = sPath  /icons/dialog/check.png
   oControl = goDlgCheck.getControl(imgLogo)
 
oControl.getModel().ImageURL = ConvertToURL( sImgPath )


   'setting the dialog elements
   oStructure = goDlgCheck.getControl(chkStructure)
   oSyncOutlines = goDlgCheck.getControl(chkSyncOutlines)
   oEmptyHeadings = goDlgCheck.getControl(chkEmptyHeadings)
   oDoubleSpaces = goDlgCheck.getControl

Re: [libreoffice-users] Problem with eLAIX extension on LibO 4.0

2013-08-12 Thread Niklas Johansson

Sorry to hear that you are still having troubles with this.

So what that line of code is suppose to do is to load the dialogs in the 
library eLAIX so that they can be used by the program. For some reason 
this is not possible.


I've seen some problems with dialog libraries disappearing in some cases 
so let's see if we can pin down if this is what has happened.


Open Writer
Press Alt+F11
Press the button Edit in the dialog that appears
On the left side in the editor you have a tree structure, find eLAIX and 
expand that node

Do you see a DlgAbout or DlgBookmark there under?

We should probably try to formulate a bug report about vanishing dialog 
libraries (as well as basic libraries). I found it hard to formulate 
such a bug since I haven't found when it happens just that it happens 
some times, and I believe it's more and more frequent.


Just a thought, you could try to install the extension as a shared 
extension.
If it is installed as a shared extension then LibreOffice will need 
elevated rights to change the dialogs, which it should not have under 
normal circumstances. Of course this does not fix the actual problem but 
it might make it possible for you to use eLAIX without having to 
repeatedly reinstalling the extension each time the dialogs disappear.


Let us know if you need more information on how to install a shared 
extension, and in that case please let us know what operating system 
your using (Windows, Mac, some sort of Linux distribution ...)


Regards,
Niklas Johansson

Joaquín Lameiro skrev 2013-08-12 13:56:

Hi.
Seems it was not that easy to solve. The reinstallation of eLAIX worked the first time, but now I'm 
getting the same problem again. Besides the error message, LibO opens the Basic editor and outputs 
the macro, marking the line that is causing the problem. I copy the pertinent part of the output, 
and underline the specific line, which is actually 'DialogLibraries.LoadLibrary( eLAIX 
)' from the Document related functions section:


[...]

'**
' Document related functions: Doc Open | Doc Metadata | Doc Check | Doc Export
'**


function DocImport()
   ImportFromILIAS
end
  function


sub DocCheck()
dim oGraphic as object
dim oControl as object
dim sPath as string
dim sImgPath as string
dim oStructure as object
dim oSyncOutlines as object
dim oEmptyHeadings as object
dim oDoubleSpaces as object
dim oStatus as object
dim vState as integer

 
 'initialize dialog and elements

 DialogLibraries.LoadLibrary( eLAIX )
 goDlgCheck = CreateUnoDialog( DialogLibraries.eLAIX.DlgCheck )
 sPath = GetPackageDirURL(vnd.harryboldt.elaix)
 sImgPath = sPath  /icons/dialog/check.png
 oControl = goDlgCheck.getControl(imgLogo)

  oControl.getModel().ImageURL = ConvertToURL( sImgPath )


 'setting the dialog elements
 oStructure = goDlgCheck.getControl(chkStructure)
 oSyncOutlines = goDlgCheck.getControl(chkSyncOutlines)
 oEmptyHeadings = goDlgCheck.getControl(chkEmptyHeadings)
 oDoubleSpaces = goDlgCheck.getControl(chkDoubleSpaces)
 oStatus = goDlgCheck.getControl(txtStatus)
 oStatus.Text = Please select check-options and then start the document check 
and optimizing.
 
 'get check-setting from document

 oStructure.State = GetInternalDocString(eLAIXCheckStructure)
 oSyncOutlines.State = GetInternalDocString(eLAIXCheckSyncOutlines)
 oEmptyHeadings.State =
  GetInternalDocString(eLAIXCheckEmptyHeadings)
 oDoubleSpaces.State = GetInternalDocString(eLAIXCheckDoubleSpaces)

 goDlgCheck.execute
end sub

[...]




Hi :)

Congrats on fixing it!  Sometimes it is worth pinpointing exactly what caused 
the problem but other times it is better to shrug it off and put it down to bad 
luck which you have now beaten (inshalla).  Maybe if it happens again it might 
be worth
  finding the cause?

Regards from
Tom :)









Thanks, Niklas and Fernand.

I just reinstalled once more eLAIX 4.0.3 and now it runs perfectly. Anyway, before 
reinstalling it, I check the BASIC macros and LibO had eLAIX there (under My 
macros), but, apparently, some of the paths were wrong. Maybe because I first 
installed eLAIX on LibO 4.1 and then downgrade to 4.0? No idea, but still it works now, 
so thanks everybody!


Joaquín




Hi Joaquín

It sounds like the macro code is not located where the toolbar thinks
it's located or is missing.

If you press Alt+F11
Under My macros (Mina makron in Swedish) do you find a eLAIX?
if not do you see eLAIX under LibreOffice Macros

  (LibreOffice-makron)?

I did personally not have any issues installing and using the extension
on LibreOffice 4.0.4 on Windows 7 64-bit so it should be compatible with
that version.

Just to make sure, you

Re: [libreoffice-users] Problem with eLAIX extension on LibO 4.0

2013-08-08 Thread Niklas Johansson

Hi Joaquín

It sounds like the macro code is not located where the toolbar thinks 
it's located or is missing.


If you press Alt+F11
Under My macros (Mina makron in Swedish) do you find a eLAIX?
if not do you see eLAIX under LibreOffice Macros (LibreOffice-makron)?

I did personally not have any issues installing and using the extension 
on LibreOffice 4.0.4 on Windows 7 64-bit so it should be compatible with 
that version.


Just to make sure, you have reinstalled the extension, in any case do it 
again and see if you get any different result. Something might have gone 
wrong when you upgraded that might be fixed by uninstalling and 
reinstalling the extension.


Med vänlig hälsning
Niklas Johansson

Joaquín Lameiro skrev 2013-08-08 14:26:

Hello.

I have installed the eLAIX extension for Libre Office and it won't work. No 
matter what action I try to perform, I get a message of this kind:
BASIC runtime error.
An exception of
Type: com.sun.star.container.NoSuchElementException
Message: occurred.

(the message occurs in Swedish, this is a quick translation).

I used eLAIX for Libre Office in other computers and systems, and it worked 
perfectly, so I have no idea what the problem might be.
This time, I am running Libre Office 4.0.4.2 on Windows Vista 32 bits SP 2 and 
I've tried eLAIX versions 4.0.3 (current stable version) and 4.0.1 (first 
version supporting LibO 4.0). I had previously tried eLAIX 4.0.3 on LibO 4.1.0, 
and I thought the problem was due to eLAIX not supporting LibO 4.1, so I 
uninstalled LibO 4.1 and returned to 4.0. Anyway, the problem still the same: 
no matter what version of LibO or eLAIX I use, I get the above error message or 
something similar.

Could you give me a hand on this? Thanks for your kindness.

Best regards,
Joaquín




--
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



Re: [libreoffice-users] writer macro record function missing

2013-08-04 Thread Niklas Johansson

Hi

To be able to use the Macro recorder you need to activate Experimental 
feautres. You do this opening the menu Tools - Options (on Mac it's 
the menu LibreOffice - Preferences). In the dialog open LibreOffice - 
General and at the bottom you find a check-box that says Enable 
experimental (unstable) features. This should be activated.


When this is activated then you'll find the menu entry Tools - Macros - 
Record Macro  and you should be able to continue following the 
instructions in help.


Let us know if you run into any more issues with this.

/Niklas


MissKeating skrev 2013-08-03 17:45:
Using LO-writer Version 3.6.1.2 (Build ID: e29a214), the unhelpful 
help says that in order to record a macro, one should: Choose *Tools 
- Macros - Record Macro*.


Under *Tools - Macros -- *there are just 3 live options: *Run Macro -- 
Organize Macros -- Organize Dialogs. *A fourth, Digital Signature, 
is grayed out.


There is no *Record *facility, either at the expected menu level, or 
under *Run*or *Organize*.


It is hard to see the relevance, but for completeness:this is all 
happening on an Acer laptop running Curtains 7; 2 GHz P6100; 3 mB L3 
cache; 4 gB.


If one ever managed to generate a macro, then there would be this 
problem: *To save the macro, first select the object where you want 
the macro to be saved in the Save macro in list box.* What is an 
object in this context? Is it what we would know as a subdirectory, 
or is there yet another new level of understanding to be mastered here?


trj





--
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



Re: [libreoffice-users] Claris Works 3 6

2013-07-30 Thread Niklas Johansson

Hi Tink

Tinkerer skrev 2013-07-25 17:40:

I have a lot of files going back ten years which are from my early Mac days,
before System X.
They are suffixed .cwk and as I remember all Claris Works files had the same
suffix. .cwk
Will LO 4.1.0.3 open these?
You might be in luck in this case, as I understand it, files from 
AppleWorks/ClarisWorks are among the file formats that is supposed to be 
readable [1]. For more information on the new Import filters see 
Fridrichs blogpost LibreOffice import filter for legacy Mac 
file-formats... [2]. I can't speak for the quality, I have no files in 
those formats but hopefully it will make it easier for you to salvage 
those old files.


[1]: http://sourceforge.net/p/libmwaw/wiki/Home/
[2]: 
http://fridrich.blogspot.se/2013/06/libreoffice-import-filter-for-legacy.html


---

Kind regards,
Niklas Johansson


--
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-users] Re: Constant values for Function arguments

2011-08-21 Thread Niklas Johansson
The problem here is that this...

Public Const STRING=4

… should not be possible. String is a reserved word and it should not be
possible to use as a name for variable. Exchange it with Public Const
sSTRING=4 and both situations you described will work just fine.

--
View this message in context: 
http://nabble.documentfoundation.org/Constant-values-for-Function-arguments-tp3264516p3267650.html
Sent from the Users mailing list archive at Nabble.com.

-- 
For unsubscribe instructions e-mail to: users+h...@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