Re: [libreoffice-users] Indexing problem

2013-06-19 Thread Tom Davies
Hi :)
I thought there was some discussion about this one but now i look in Nabble i 
can't find it.  Was there a good answer to this one?
Regards from 
Tom :)  





>
> From: Séamas Ó Brógáin 
>To: users@global.libreoffice.org 
>Sent: Wednesday, 29 May 2013, 13:12
>Subject: [libreoffice-users] Indexing problem
> 
>
>I have just noticed a very undesirable problem with Libre Office, and one that 
>I cannot find a way around.
>
>When a word is selected to be an index entry (Insert > Indexes and tables > 
>Entry), the width of the word is increased slightly––sometimes enough to push 
>the last word on that line on to the next line (and so making a mess of my 
>nice tight spacing).
>
>I know that indexing a word creates a tag (a very long one) in the underlying 
>XML file, but this is invisible and presumably should have no effect on the 
>visible document.
>
>
-- 
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: A possibly critical bug in LibreOffice?

2013-06-19 Thread Tom
Hi :)  
Did you manage to work-around this problem?  

Sometimes it is better to save a "local" copy, ie to download it onto your
own machine.  Then work on it there and then re-upload it.  I often do that
even if working on a file that is on a LAN, let alone on the Cloud.  There
are just to many variables and too much potential for various different 3rd
party connections to go wrong.  A local copy means you have a back-up.  

Sorry you didn't get any answers sooner!  
Apols and regards from 
Tom :)  



Odd Karsten Hanken wrote
> I had just started on the document and only written half a page or so with
> notes from a trip, therefore did the error not make much problem for me,
> but it could have, if it had happen later.  
> 
> The file was saved in a Dropbox folder, I opened it yesterday, wrote a few
> more sentences and then I tried to put in a picture; got the wrong one
> first, deleted it and replaced it with the right image. When I then tried
> to save the document again did I get I/O error... and the file was
> overwritten by a 4.1kb empty document, which i attach to this email.
> 
> My (unqualified) guess is that the problem might be related to inserting,
> removing and then inserting picture and frame, or to saving in Dropbox.
> 
> Versjon 4.0.2.2 (Bygg-ID: 400m0(Build:2))
> 
> KDE 4.10.4 Ubuntu 13.04
> 
> 
> Odd Karsten Hanken





--
View this message in context: 
http://nabble.documentfoundation.org/A-possibly-critical-bug-in-LibreOffice-tp4061843p4062307.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



[libreoffice-users] Re: save state

2013-06-19 Thread mariosv
Also there is an option to set it up.
Miguel Ángel.
 




--
View this message in context: 
http://nabble.documentfoundation.org/save-state-tp4062232p4062301.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


Re: [libreoffice-users] save state

2013-06-19 Thread Andrew Douglas Pitonyak

This is how I do it in Basic

oDoc.setModified(True)


On 06/19/2013 09:06 AM, Vieri wrote:

Hi,

My java macro is trying to make an odt file "with the SAVE button enabled" (not 
grayed out).
What's the best way to do this?

I'm trying a hack such as inserting a space at end of file and removing it 
asap. This should re-enable the save button:

   XModel xDocModel = xScriptContext.getDocument();

   XTextDocument xtextdocument = (XTextDocument) 
UnoRuntime.queryInterface(
   XTextDocument.class, xDocModel);
   XText xText = xtextdocument.getText();
   XTextRange xTextRange = xText.getEnd();
   xTextRange.setString( " " );

How can I remove the space?

Or is there a better way to change the doc's save state?

Thanks,

Vieri






--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
Info:  http://www.pitonyak.org/oo.php


--
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: Serious application development with LibreOffice and LibreOffice Basic

2013-06-19 Thread Adam Tauno Williams
On Thu, 2013-05-02 at 21:48 -0400, Andrew Douglas Pitonyak wrote:
> On 05/02/2013 12:47 PM, Alexander Thurgood wrote:
> > Look at UNO, look at the language bindings, decide which is the most
> > appropriate for what you want to do :
> > http://api.libreoffice.org/
> > http://api.libreoffice.org/docs/common/ref/com/sun/star/sdb/module-ix.htm
> > http://api.libreoffice.org/docs/common/ref/com/sun/star/sdbc/module-ix.html
> > http://api.libreoffice.org/docs/common/ref/com/sun/star/sdbcx/module-ix.html
> > http://www.openoffice.org/udk/
> I usually check the online API docs (as shown above), inspecting the 
> objects, and I have even bothered to dive into the source code when I 
> was totally befuddled.

One thing I haven't found is a good example of presenting / driving some
UI from within the scope of LOo from Python.   I don't even know that it
is possible.  But I've been lurking the developer list[s] and see talk
about LOo & glade... that would be really nice.

--
Adam Tauno Williams  GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA


-- 
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] Serious application development with LibreOffice and LibreOffice Basic

2013-06-19 Thread Adam Tauno Williams
> > This is a client/server application backing up to a SQL back-end
> > database.
> > I am interested in the capabilities of LibreOffice Basic along the
> > same lines.
> > The documentation for LibreOffice Basic seems very space compared to
> > MS VBA.
> An actual application with more logic than just CRUD would very
> probably gain a lot if it was implemented in a rich, powerful language
> such as Python which profits from a vast module library. Since the
> Python API of LO (not only Base) is essentially undocumented, this
> would require an actual GUI framework, however. 

Yep.  I stare at it occasionally thinking
man-i-bet-that-can-do-some-awesome-stuff... but the lack of
documentation is overwhelming.

> > I have double class wrapped each logical type of data record. One
> > level is the DB table class, which manages INSERT / UPDATE / SELECT
> > type operations with a consistent interface. The next class layer is
> > a Validation class which handles DB class to Form Control mapping
> > (to/from) and also performs data type validation on the fields, marks
> > bad data fields red/error, and so on. Also I make extensive use of
> > in-memory collection classes: Thing / Things classes, where the
> > Things class contains one/many Thing class object instances.
> With Python and a decent RAD framework (there are quite a few), you
> don't need to implement anything like that yourself. 

"and a decent RAD framework (there are quite a few)"

Really??? Name *ONE*.

ORMs are a no brainer;  SQLalchemy is simply fantastic.  But the UI part
of the RAD solution is seriously lacking.

> > At first I would like to use MySQL as the BE DB for use with
> > LibreOffice.
> That's a B-A-D idea if you want to get your data back in a consistent
> state with a certain reliability. Use PostgreSQL instead.

+1 PostgreSQL.

--
Adam Tauno Williams  GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA


-- 
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: Serious application development with LibreOffice and LibreOffice Basic

2013-06-19 Thread Michael Lueck

Tom Davies wrote:

Hi :)
I think Base can either use an SQL-based back-end or LO Calc spreadsheets.  
Just not both at the same time.


Most distressing that LO Base must use LO Calc spreadsheet files as non SQL DB 
store. (head shaking) :-(

--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.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



[libreoffice-users] Triage Contest

2013-06-19 Thread Joel Madero

Hi All!

Contest is starting in just a few hours. If there are any questions 
please don't hesitate to ask, I'll be in the chat room quite frequently 
over the next couple weeks, always available to help if I'm in there.


Again here is the link for the contest: 
https://wiki.documentfoundation.org/QA/Projects/Bug_Triage_Contest



Warm Regards,
Joel

--
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] save state

2013-06-19 Thread Vieri
Hi,

My java macro is trying to make an odt file "with the SAVE button enabled" (not 
grayed out).
What's the best way to do this?

I'm trying a hack such as inserting a space at end of file and removing it 
asap. This should re-enable the save button:

  XModel xDocModel = xScriptContext.getDocument();

  XTextDocument xtextdocument = (XTextDocument) 
UnoRuntime.queryInterface(
  XTextDocument.class, xDocModel);
  XText xText = xtextdocument.getText();
  XTextRange xTextRange = xText.getEnd();
  xTextRange.setString( " " );

How can I remove the space?

Or is there a better way to change the doc's save state?

Thanks,

Vieri




-- 
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] disable quit application

2013-06-19 Thread Vieri


--- On Wed, 6/19/13, Adam Tauno Williams  wrote:

> Vieri wrote:
> >It disables the "Quit" menu item. However, how can I
> also disable the X
> >(top-right corner) to quit the application (using
> Windows)? I want my
> >users to quit only through a custom macro call (checks
> stuff, closes
> >document and quits app).
> 
> I've no clue how to do that on Windows; but it probably has
> something to
> do with removing "window decorations".  What is in the
> window frame is
> typically only tangentially controlled by the application.
> 
> You will also need to capture Ctrl-Q and Ctrl-W to prevent
> 'uncontrolled' exit.

I also thought it could be a window manager issue but then I saw the LO/OOO 
"CloseWin" command but it doesn't seem to do the job.

Thanks for the tip,

Vieri



-- 
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] disable quit application

2013-06-19 Thread Adam Tauno Williams
On Wed, 2013-06-19 at 05:05 -0700, Vieri wrote:
>It disables the "Quit" menu item. However, how can I also disable the X
>(top-right corner) to quit the application (using Windows)? I want my
>users to quit only through a custom macro call (checks stuff, closes
>document and quits app).

I've no clue how to do that on Windows; but it probably has something to
do with removing "window decorations".  What is in the window frame is
typically only tangentially controlled by the application.

You will also need to capture Ctrl-Q and Ctrl-W to prevent
'uncontrolled' exit.

--
Adam Tauno Williams  GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA


-- 
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] disable quit application

2013-06-19 Thread Vieri


--- On Wed, 6/19/13, Vieri  wrote:

> Hi,
> 
> I'm currently using the file:
> 
> C:\Program Files\LibreOffice
> 4.0\share\registry\data\org\openoffice\Office\commands.xcu
> 
> with the following content:
> 
>   
>                   
>       oor:package="org.openoffice.Office" 
>                
>       xmlns:oor="http://openoffice.org/2001/registry"; 
>                
>       xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
>                
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>       
>            oor:name="Disabled">
>                oor:name="com.mycompany.a-chosen-unique-name.m3"
> oor:op="replace">
>                
>   
>                
>       About
>                
>   
>              
> 
>                oor:name="com.mycompany.a-chosen-unique-name.m4"
> oor:op="replace">
>                
>   
>                
>       Quit
>                
>   
>              
> 
>           
>       
>   
> 
> It disables the "Quit" menu item. However, how can I also
> disable the X (top-right corner) to quit the application
> (using Windows)? I want my users to quit only through a
> custom macro call (checks stuff, closes document and quits
> app).

I tried to add this but it doesn't seem to have any effect:

  
  
  CloseWin
  
  


Thanks,

Vieri



-- 
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] disable quit application

2013-06-19 Thread Vieri
Hi,

I'm currently using the file:

C:\Program Files\LibreOffice 
4.0\share\registry\data\org\openoffice\Office\commands.xcu

with the following content:

  
  http://openoffice.org/2001/registry"; 
  xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  
  
  
  
  About
  
  
  
  
  Quit
  
  
  
  
  

It disables the "Quit" menu item. However, how can I also disable the X 
(top-right corner) to quit the application (using Windows)? I want my users to 
quit only through a custom macro call (checks stuff, closes document and quits 
app).

Thanks,

Vieri


-- 
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] Cannot Create A Stacked Chart

2013-06-19 Thread Adam Tauno Williams
Version 4.0:build-303 (Build ID: 400m0(Build:303))

I'm having a terrible time creating a stacked bar chart.  I've done this
many times before but now [possibly due to update/upgrade?] it just will
not 'stack';  whereas it always did it more or less automatically
before.

Data is like:
DATE | CATEGORY | COUNT
-MM | CATEGORY  | COUNT
-MM | CATEGORY  | COUNT
...

I select the entire range, insert chart, select stacked graph... but no
matter how I fiddle with the ranges - it just doesn't stack.

Char should be like:

C|
O|   1
U|   3   1   1
N|   2 2 3 1 1 1
T| 1 2 3 3 2 2 3 

   Y Y Y Y Y Y Y Y Y Y
   Y Y Y Y Y Y Y Y Y Y
   Y Y Y Y Y Y Y Y Y Y
   Y Y Y Y Y Y Y Y Y Y
   M M M M M M M M M M
   M M M M M M M M M M

Tips / Suggestions ...?

I've been over the wiki pages, they aren't terribly illuminating as to
when-it-doesn't-work situations.

-- 
Adam Tauno Williams 
System Administrator, OpenGroupware Developer, LPI / CNA
Fingerprint 8C08 209A FBE3 C41A DD2F A270 2D17 8FA4 D95E D383


-- 
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] "close application" event

2013-06-19 Thread Vieri
Hi,

The "close application" event doesn't seem to fire my macro when I exit LO.
Does anyone know why?

My macro is quite simple:
Print Exiting...

and I associated the "close application" event to this macro.
When I "exit LO" the message isn't displayed.

Thanks,

Vieri


-- 
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 Calv - Vertical Split

2013-06-19 Thread Ian Whitfield
Thanks to everyone who has helped me out in the last week or so - 
appreciated!!
It's fantastic to have a Forum like this, (as is the Scribus Forum that 
I also use).


A week or so back I asked about 'Searching in a Column' so thanks to 
Suo, Tom and Luuk for that help - Not exactly how I would like it but a 
suitable workround.


With my latest problem with 'Splits' and then "vanishing" Tab thanks to 
Regina, Brian and Oogie for their help!!


I "found" my Tabs again - during me playing with Splits it seems that 
the entire Tab system had been compressed totally to the left and was 
all but invisible except for a small un-noticed "Bar". Only by 
picking-up on this Bar could I drag the Tabs back on to the screen. 
strange!!(??)


Again thanks to all and the Forum in general

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


[libreoffice-users] disable "save as" in menu

2013-06-19 Thread Vieri
Hi,

I'd like to disable the "save as" menu item and keep that setting within an odt 
(not as a global application setting).

I can do this easily for the "save as" button in the TOOLBAR (I'm allowed to 
keep this setting within the .odt file).
However, I can't seem to do it for the MENU (I can remove the "save as" entry 
but it's at the global application level, not at document level).

Can this be done even if I were to hack the .odt file content?

Thanks,

Vieri


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