Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


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("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 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+unsubscribe@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+unsubscribe@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+unsubscribe@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

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.