Re: Open a New Window in read-only mode?

2008-11-19 Thread Keith Roberts

On Tue, 18 Nov 2008, Paul A. Rubin wrote:


To: lyx-users@lists.lyx.org
From: Paul A. Rubin [EMAIL PROTECTED]
Subject: Re: Open a New Window in read-only mode?

Keith Roberts wrote:
Thanks Paul. That sounds feasable. I did edit the document in both 
windows! Maybe there could be an option in preferences to set the 
second or more window(s) to read-only mode? That will stop anyone from 
accidently editing the document in the other opened windows.




That would be IMHO a sensible thing.  You could enter it as an 
enhancement request in bugzilla.


/Paul


Done:

http://bugzilla.lyx.org/show_bug.cgi?id=5544

Keith

-
Websites:
http://www.php-debuggers.net
http://www.karsites.net
http://www.raised-from-the-dead.org.uk

Where will you spend Eternity?
http://www.fellowshiptractleague.org/tracts/images/PDF/tract_130.pdf

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-


Re: Open a New Window in read-only mode?

2008-11-19 Thread Keith Roberts

On Tue, 18 Nov 2008, Paul A. Rubin wrote:


To: lyx-users@lists.lyx.org
From: Paul A. Rubin [EMAIL PROTECTED]
Subject: Re: Open a New Window in read-only mode?

Keith Roberts wrote:
Thanks Paul. That sounds feasable. I did edit the document in both 
windows! Maybe there could be an option in preferences to set the 
second or more window(s) to read-only mode? That will stop anyone from 
accidently editing the document in the other opened windows.




That would be IMHO a sensible thing.  You could enter it as an 
enhancement request in bugzilla.


/Paul


Done:

http://bugzilla.lyx.org/show_bug.cgi?id=5544

Keith

-
Websites:
http://www.php-debuggers.net
http://www.karsites.net
http://www.raised-from-the-dead.org.uk

Where will you spend Eternity?
http://www.fellowshiptractleague.org/tracts/images/PDF/tract_130.pdf

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-


Re: Open a New Window in read-only mode?

2008-11-19 Thread Keith Roberts

On Tue, 18 Nov 2008, Paul A. Rubin wrote:


To: lyx-users@lists.lyx.org
From: Paul A. Rubin <[EMAIL PROTECTED]>
Subject: Re: Open a New Window in read-only mode?

Keith Roberts wrote:
Thanks Paul. That sounds feasable. I did edit the document in both 
windows! Maybe there could be an option in preferences to set the 
second or more window(s) to read-only mode? That will stop anyone from 
accidently editing the document in the other opened windows.




That would be IMHO a sensible thing.  You could enter it as an 
enhancement request in bugzilla.


/Paul


Done:

http://bugzilla.lyx.org/show_bug.cgi?id=5544

Keith

-
Websites:
http://www.php-debuggers.net
http://www.karsites.net
http://www.raised-from-the-dead.org.uk

Where will you spend Eternity?
http://www.fellowshiptractleague.org/tracts/images/PDF/tract_130.pdf

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-


Re: Open a New Window in read-only mode?

2008-11-18 Thread Paul A. Rubin

Keith Roberts wrote:
Thanks Paul. That sounds feasable. I did edit the document in both 
windows! Maybe there could be an option in preferences to set the second 
or more window(s) to read-only mode? That will stop anyone from 
accidently editing the document in the other opened windows.




That would be IMHO a sensible thing.  You could enter it as an 
enhancement request in bugzilla.


/Paul



Re: Open a New Window in read-only mode?

2008-11-18 Thread Paul A. Rubin

Keith Roberts wrote:
Thanks Paul. That sounds feasable. I did edit the document in both 
windows! Maybe there could be an option in preferences to set the second 
or more window(s) to read-only mode? That will stop anyone from 
accidently editing the document in the other opened windows.




That would be IMHO a sensible thing.  You could enter it as an 
enhancement request in bugzilla.


/Paul



Re: Open a New Window in read-only mode?

2008-11-18 Thread Paul A. Rubin

Keith Roberts wrote:
Thanks Paul. That sounds feasable. I did edit the document in both 
windows! Maybe there could be an option in preferences to set the second 
or more window(s) to read-only mode? That will stop anyone from 
accidently editing the document in the other opened windows.




That would be IMHO a sensible thing.  You could enter it as an 
enhancement request in bugzilla.


/Paul



Open a New Window in read-only mode?

2008-11-17 Thread Keith Roberts
Is it possible to open a new window in read-only mode, on a 
lyx file that is r/w please?


I want to refer to previous sections of a document in 
read-only mode in a new window, so I can keep a consistent 
format for new sections written later in the same document.


TIA

Keith Roberts

-
Websites:
http://www.php-debuggers.net
http://www.karsites.net
http://www.raised-from-the-dead.org.uk

Where will you spend Eternity?
http://www.fellowshiptractleague.org/tracts/images/PDF/tract_130.pdf

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-


Re: Open a New Window in read-only mode?

2008-11-17 Thread Guenter Milde
Keith Roberts [EMAIL PROTECTED] schrieb:
 Is it possible to open a new window in read-only mode, on a 
 lyx file that is r/w please?

 I want to refer to previous sections of a document in 
 read-only mode in a new window, so I can keep a consistent 
 format for new sections written later in the same document.

I do not know of a straightforward way to achieve this.

Depending on what exactly you intend, there are two ways that spring to my
mind:

a) ViewPDF  (or ViewPS): the output is read-only of course.

b) open the file in a second lyx process, started as a different user with
   read-only rights for this file.
   
Günter   



Re: Open a New Window in read-only mode?

2008-11-17 Thread Paul A. Rubin

Keith Roberts wrote:
Is it possible to open a new window in read-only mode, on a lyx file 
that is r/w please?


I want to refer to previous sections of a document in read-only mode in 
a new window, so I can keep a consistent format for new sections written 
later in the same document.


TIA

Keith Roberts



With LyX 1.6.0, you can open the doc and then use View - Split View 
into Left and Right Half (or View - Split View into Upper and Lower 
Half) to get two views on the same document.  AFAIK neither is 
read-only, but hopefully you can restrain yourself from editing one of 
them.  :-)


/Paul



Re: Open a New Window in read-only mode?

2008-11-17 Thread Keith Roberts
Thanks Guenter. I want to view the lyx source code itself, 
so I can use that as a pattern for more sections.


Keith

On Mon, 17 Nov 2008, Guenter Milde wrote:


To: lyx-users@lists.lyx.org
From: Guenter Milde [EMAIL PROTECTED]
Subject: Re: Open a New Window in read-only mode?

Keith Roberts [EMAIL PROTECTED] schrieb:

Is it possible to open a new window in read-only mode, on a
lyx file that is r/w please?



I want to refer to previous sections of a document in
read-only mode in a new window, so I can keep a consistent
format for new sections written later in the same document.


I do not know of a straightforward way to achieve this.

Depending on what exactly you intend, there are two ways that spring to my
mind:

a) ViewPDF  (or ViewPS): the output is read-only of course.

b) open the file in a second lyx process, started as a different user with
  read-only rights for this file.

Günter



Re: Open a New Window in read-only mode?

2008-11-17 Thread Keith Roberts
Thanks Paul. That sounds feasable. I did edit the document 
in both windows! Maybe there could be an option in 
preferences to set the second or more window(s) to read-only 
mode? That will stop anyone from accidently editing the 
document in the other opened windows.


Keith

On Mon, 17 Nov 2008, Paul A. Rubin wrote:


To: lyx-users@lists.lyx.org
From: Paul A. Rubin [EMAIL PROTECTED]
Subject: Re: Open a New Window in read-only mode?

Keith Roberts wrote:
Is it possible to open a new window in read-only mode, on a lyx file 
that is r/w please?


I want to refer to previous sections of a document in read-only mode in 
a new window, so I can keep a consistent format for new sections 
written later in the same document.


TIA

Keith Roberts



With LyX 1.6.0, you can open the doc and then use View - Split View into 
Left and Right Half (or View - Split View into Upper and Lower Half) to 
get two views on the same document.  AFAIK neither is read-only, but 
hopefully you can restrain yourself from editing one of them.  :-)


/Paul




Open a New Window in read-only mode?

2008-11-17 Thread Keith Roberts
Is it possible to open a new window in read-only mode, on a 
lyx file that is r/w please?


I want to refer to previous sections of a document in 
read-only mode in a new window, so I can keep a consistent 
format for new sections written later in the same document.


TIA

Keith Roberts

-
Websites:
http://www.php-debuggers.net
http://www.karsites.net
http://www.raised-from-the-dead.org.uk

Where will you spend Eternity?
http://www.fellowshiptractleague.org/tracts/images/PDF/tract_130.pdf

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-


Re: Open a New Window in read-only mode?

2008-11-17 Thread Guenter Milde
Keith Roberts [EMAIL PROTECTED] schrieb:
 Is it possible to open a new window in read-only mode, on a 
 lyx file that is r/w please?

 I want to refer to previous sections of a document in 
 read-only mode in a new window, so I can keep a consistent 
 format for new sections written later in the same document.

I do not know of a straightforward way to achieve this.

Depending on what exactly you intend, there are two ways that spring to my
mind:

a) ViewPDF  (or ViewPS): the output is read-only of course.

b) open the file in a second lyx process, started as a different user with
   read-only rights for this file.
   
Günter   



Re: Open a New Window in read-only mode?

2008-11-17 Thread Paul A. Rubin

Keith Roberts wrote:
Is it possible to open a new window in read-only mode, on a lyx file 
that is r/w please?


I want to refer to previous sections of a document in read-only mode in 
a new window, so I can keep a consistent format for new sections written 
later in the same document.


TIA

Keith Roberts



With LyX 1.6.0, you can open the doc and then use View - Split View 
into Left and Right Half (or View - Split View into Upper and Lower 
Half) to get two views on the same document.  AFAIK neither is 
read-only, but hopefully you can restrain yourself from editing one of 
them.  :-)


/Paul



Re: Open a New Window in read-only mode?

2008-11-17 Thread Keith Roberts
Thanks Guenter. I want to view the lyx source code itself, 
so I can use that as a pattern for more sections.


Keith

On Mon, 17 Nov 2008, Guenter Milde wrote:


To: lyx-users@lists.lyx.org
From: Guenter Milde [EMAIL PROTECTED]
Subject: Re: Open a New Window in read-only mode?

Keith Roberts [EMAIL PROTECTED] schrieb:

Is it possible to open a new window in read-only mode, on a
lyx file that is r/w please?



I want to refer to previous sections of a document in
read-only mode in a new window, so I can keep a consistent
format for new sections written later in the same document.


I do not know of a straightforward way to achieve this.

Depending on what exactly you intend, there are two ways that spring to my
mind:

a) ViewPDF  (or ViewPS): the output is read-only of course.

b) open the file in a second lyx process, started as a different user with
  read-only rights for this file.

Günter



Re: Open a New Window in read-only mode?

2008-11-17 Thread Keith Roberts
Thanks Paul. That sounds feasable. I did edit the document 
in both windows! Maybe there could be an option in 
preferences to set the second or more window(s) to read-only 
mode? That will stop anyone from accidently editing the 
document in the other opened windows.


Keith

On Mon, 17 Nov 2008, Paul A. Rubin wrote:


To: lyx-users@lists.lyx.org
From: Paul A. Rubin [EMAIL PROTECTED]
Subject: Re: Open a New Window in read-only mode?

Keith Roberts wrote:
Is it possible to open a new window in read-only mode, on a lyx file 
that is r/w please?


I want to refer to previous sections of a document in read-only mode in 
a new window, so I can keep a consistent format for new sections 
written later in the same document.


TIA

Keith Roberts



With LyX 1.6.0, you can open the doc and then use View - Split View into 
Left and Right Half (or View - Split View into Upper and Lower Half) to 
get two views on the same document.  AFAIK neither is read-only, but 
hopefully you can restrain yourself from editing one of them.  :-)


/Paul




Open a New Window in read-only mode?

2008-11-17 Thread Keith Roberts
Is it possible to open a new window in read-only mode, on a 
lyx file that is r/w please?


I want to refer to previous sections of a document in 
read-only mode in a new window, so I can keep a consistent 
format for new sections written later in the same document.


TIA

Keith Roberts

-
Websites:
http://www.php-debuggers.net
http://www.karsites.net
http://www.raised-from-the-dead.org.uk

Where will you spend Eternity?
http://www.fellowshiptractleague.org/tracts/images/PDF/tract_130.pdf

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-


Re: Open a New Window in read-only mode?

2008-11-17 Thread Guenter Milde
Keith Roberts <[EMAIL PROTECTED]> schrieb:
> Is it possible to open a new window in read-only mode, on a 
> lyx file that is r/w please?

> I want to refer to previous sections of a document in 
> read-only mode in a new window, so I can keep a consistent 
> format for new sections written later in the same document.

I do not know of a straightforward way to achieve this.

Depending on what exactly you intend, there are two ways that spring to my
mind:

a) View>PDF  (or View>PS): the output is read-only of course.

b) open the file in a second lyx process, started as a different user with
   read-only rights for this file.
   
Günter   



Re: Open a New Window in read-only mode?

2008-11-17 Thread Paul A. Rubin

Keith Roberts wrote:
Is it possible to open a new window in read-only mode, on a lyx file 
that is r/w please?


I want to refer to previous sections of a document in read-only mode in 
a new window, so I can keep a consistent format for new sections written 
later in the same document.


TIA

Keith Roberts



With LyX 1.6.0, you can open the doc and then use View -> Split View 
into Left and Right Half (or View -> Split View into Upper and Lower 
Half) to get two views on the same document.  AFAIK neither is 
read-only, but hopefully you can restrain yourself from editing one of 
them.  :-)


/Paul



Re: Open a New Window in read-only mode?

2008-11-17 Thread Keith Roberts
Thanks Guenter. I want to view the lyx source code itself, 
so I can use that as a pattern for more sections.


Keith

On Mon, 17 Nov 2008, Guenter Milde wrote:


To: lyx-users@lists.lyx.org
From: Guenter Milde <[EMAIL PROTECTED]>
Subject: Re: Open a New Window in read-only mode?

Keith Roberts <[EMAIL PROTECTED]> schrieb:

Is it possible to open a new window in read-only mode, on a
lyx file that is r/w please?



I want to refer to previous sections of a document in
read-only mode in a new window, so I can keep a consistent
format for new sections written later in the same document.


I do not know of a straightforward way to achieve this.

Depending on what exactly you intend, there are two ways that spring to my
mind:

a) View>PDF  (or View>PS): the output is read-only of course.

b) open the file in a second lyx process, started as a different user with
  read-only rights for this file.

Günter



Re: Open a New Window in read-only mode?

2008-11-17 Thread Keith Roberts
Thanks Paul. That sounds feasable. I did edit the document 
in both windows! Maybe there could be an option in 
preferences to set the second or more window(s) to read-only 
mode? That will stop anyone from accidently editing the 
document in the other opened windows.


Keith

On Mon, 17 Nov 2008, Paul A. Rubin wrote:


To: lyx-users@lists.lyx.org
From: Paul A. Rubin <[EMAIL PROTECTED]>
Subject: Re: Open a New Window in read-only mode?

Keith Roberts wrote:
Is it possible to open a new window in read-only mode, on a lyx file 
that is r/w please?


I want to refer to previous sections of a document in read-only mode in 
a new window, so I can keep a consistent format for new sections 
written later in the same document.


TIA

Keith Roberts



With LyX 1.6.0, you can open the doc and then use View -> Split View into 
Left and Right Half (or View -> Split View into Upper and Lower Half) to 
get two views on the same document.  AFAIK neither is read-only, but 
hopefully you can restrain yourself from editing one of them.  :-)


/Paul




Read only mode?

2006-09-22 Thread Rudi Gaelzer
Is there a read only mode for lyx?

From a message sent by Jean-Marc in may, I gathered that there is such a 
thing:
--- snip --
You can use buffer-readonly-toggle (which can even be added as a menu
item or icon).

JMarc
--- snip --

I would like to have the possibility to open a lyx document in read-only mode.  
In fact, I would even like to be able to choose it as the default action.

Can I do that with lyx 1.4.3? How?  When I enter buffer-readonly-toggle on 
the minibuffer, I got an Unknown action...

Thanks.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
Registered linux user # 153741


Re: Read only mode?

2006-09-22 Thread José Matos
On Friday 22 September 2006 19:58, Rudi Gaelzer wrote:
 Is there a read only mode for lyx?

 From a message sent by Jean-Marc in may, I gathered that there is such a
 thing:
 --- snip --
 You can use buffer-readonly-toggle (which can even be added as a menu
 item or icon).

 JMarc
 --- snip --

 I would like to have the possibility to open a lyx document in read-only
 mode. In fact, I would even like to be able to choose it as the default
 action.

  When I want a document in read only permanently I remove the write flags 
from its properties.

$ chmod a-w file

in linux and other unices...

  LyX recognises this and acts accordingly. :-)

 Can I do that with lyx 1.4.3? How?  When I enter buffer-readonly-toggle
 on the minibuffer, I got an Unknown action...

In minibuffer tab is your friend. :-)
buffer-toggle-read-only

 Thanks.

-- 
José Abílio


Re: Read only mode?

2006-09-22 Thread Rudi Gaelzer
On Friday 22 September 2006 16:16, José Matos wrote:
   When I want a document in read only permanently I remove the write flags
 from its properties.

 $ chmod a-w file

 in linux and other unices...

Well, thanks anyway, I know that and it's not what I want...

   LyX recognises this and acts accordingly. :-)

  Can I do that with lyx 1.4.3? How?  When I enter buffer-readonly-toggle
  on the minibuffer, I got an Unknown action...

 In minibuffer tab is your friend. :-)
 buffer-toggle-read-only
That works.  The syntax is slightly different from what I used.

  Thanks.

And how can I include a Toggle Read Only option in the Edit menu (or as an 
icon on the toolbar)?

Thanks again.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: Read only mode?

2006-09-22 Thread Paul A. Rubin

Rudi Gaelzer wrote:


Can I do that with lyx 1.4.3? How?  When I enter buffer-readonly-toggle
on the minibuffer, I got an Unknown action...

In minibuffer tab is your friend. :-)
buffer-toggle-read-only

That works.  The syntax is slightly different from what I used.

Thanks.


And how can I include a Toggle Read Only option in the Edit menu (or as an 
icon on the toolbar)?




(Note:  I have not tested the following.) I think you can edit 
.../Resources/ui/stdmenus.ui and add a new Item to the edit menu, 
something like


Item Toggle read-only|Q buffer-toggle-read-only

(perhaps changing Q to a more salubrious hot key, or omitting it).  I 
would save the hacked file in the ui subfolder under your home 
directory, so that it would survive reinstallations and upgrades.


On the other hand, the path of least resistance might be simply to use
File-New from template... to open documents you don't want to modify. 
The resulting file is writable, but it gets a default name (e.g. 
newfile1.lyx), so inadvertently saving it will at worst clutter your 
drive a bit.


/Paul



Re: Read only mode?

2006-09-22 Thread Rudi Gaelzer
On Friday 22 September 2006 18:24, Paul A. Rubin wrote:

 (Note:  I have not tested the following.) I think you can edit
 .../Resources/ui/stdmenus.ui and add a new Item to the edit menu,
 something like

 Item Toggle read-only|Q buffer-toggle-read-only

That works!  I made a copy of /usr/share/lyx/ui/stdmenus.ui to ~/.lyx/ui/ and 
included the Item as you suggested (using T  instead of Q as shortcut) 
and it works.  Now I can happily toggle to and fro the read-only mode...

Thanks a lot, Paul.

 (perhaps changing Q to a more salubrious hot key, or omitting it).  I
 would save the hacked file in the ui subfolder under your home
 directory, so that it would survive reinstallations and upgrades.

 On the other hand, the path of least resistance might be simply to use
 File-New from template... to open documents you don't want to modify.
 The resulting file is writable, but it gets a default name (e.g.
 newfile1.lyx), so inadvertently saving it will at worst clutter your
 drive a bit.

 /Paul

-- 
Rudi Gaelzer
Departamento de Física
Instituto de Física e Matemática
Fundação Universidade Federal de Pelotas
Caixa Postal 354 - Campus UFPel
96010-900 Pelotas - RS
Fone: (53) 3275-7416
FAX:  (53) 3275-7343
Usuário de Linux registrado # 153741


Read only mode?

2006-09-22 Thread Rudi Gaelzer
Is there a read only mode for lyx?

From a message sent by Jean-Marc in may, I gathered that there is such a 
thing:
--- snip --
You can use buffer-readonly-toggle (which can even be added as a menu
item or icon).

JMarc
--- snip --

I would like to have the possibility to open a lyx document in read-only mode.  
In fact, I would even like to be able to choose it as the default action.

Can I do that with lyx 1.4.3? How?  When I enter buffer-readonly-toggle on 
the minibuffer, I got an Unknown action...

Thanks.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
Registered linux user # 153741


Re: Read only mode?

2006-09-22 Thread José Matos
On Friday 22 September 2006 19:58, Rudi Gaelzer wrote:
 Is there a read only mode for lyx?

 From a message sent by Jean-Marc in may, I gathered that there is such a
 thing:
 --- snip --
 You can use buffer-readonly-toggle (which can even be added as a menu
 item or icon).

 JMarc
 --- snip --

 I would like to have the possibility to open a lyx document in read-only
 mode. In fact, I would even like to be able to choose it as the default
 action.

  When I want a document in read only permanently I remove the write flags 
from its properties.

$ chmod a-w file

in linux and other unices...

  LyX recognises this and acts accordingly. :-)

 Can I do that with lyx 1.4.3? How?  When I enter buffer-readonly-toggle
 on the minibuffer, I got an Unknown action...

In minibuffer tab is your friend. :-)
buffer-toggle-read-only

 Thanks.

-- 
José Abílio


Re: Read only mode?

2006-09-22 Thread Rudi Gaelzer
On Friday 22 September 2006 16:16, José Matos wrote:
   When I want a document in read only permanently I remove the write flags
 from its properties.

 $ chmod a-w file

 in linux and other unices...

Well, thanks anyway, I know that and it's not what I want...

   LyX recognises this and acts accordingly. :-)

  Can I do that with lyx 1.4.3? How?  When I enter buffer-readonly-toggle
  on the minibuffer, I got an Unknown action...

 In minibuffer tab is your friend. :-)
 buffer-toggle-read-only
That works.  The syntax is slightly different from what I used.

  Thanks.

And how can I include a Toggle Read Only option in the Edit menu (or as an 
icon on the toolbar)?

Thanks again.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: Read only mode?

2006-09-22 Thread Paul A. Rubin

Rudi Gaelzer wrote:


Can I do that with lyx 1.4.3? How?  When I enter buffer-readonly-toggle
on the minibuffer, I got an Unknown action...

In minibuffer tab is your friend. :-)
buffer-toggle-read-only

That works.  The syntax is slightly different from what I used.

Thanks.


And how can I include a Toggle Read Only option in the Edit menu (or as an 
icon on the toolbar)?




(Note:  I have not tested the following.) I think you can edit 
.../Resources/ui/stdmenus.ui and add a new Item to the edit menu, 
something like


Item Toggle read-only|Q buffer-toggle-read-only

(perhaps changing Q to a more salubrious hot key, or omitting it).  I 
would save the hacked file in the ui subfolder under your home 
directory, so that it would survive reinstallations and upgrades.


On the other hand, the path of least resistance might be simply to use
File-New from template... to open documents you don't want to modify. 
The resulting file is writable, but it gets a default name (e.g. 
newfile1.lyx), so inadvertently saving it will at worst clutter your 
drive a bit.


/Paul



Re: Read only mode?

2006-09-22 Thread Rudi Gaelzer
On Friday 22 September 2006 18:24, Paul A. Rubin wrote:

 (Note:  I have not tested the following.) I think you can edit
 .../Resources/ui/stdmenus.ui and add a new Item to the edit menu,
 something like

 Item Toggle read-only|Q buffer-toggle-read-only

That works!  I made a copy of /usr/share/lyx/ui/stdmenus.ui to ~/.lyx/ui/ and 
included the Item as you suggested (using T  instead of Q as shortcut) 
and it works.  Now I can happily toggle to and fro the read-only mode...

Thanks a lot, Paul.

 (perhaps changing Q to a more salubrious hot key, or omitting it).  I
 would save the hacked file in the ui subfolder under your home
 directory, so that it would survive reinstallations and upgrades.

 On the other hand, the path of least resistance might be simply to use
 File-New from template... to open documents you don't want to modify.
 The resulting file is writable, but it gets a default name (e.g.
 newfile1.lyx), so inadvertently saving it will at worst clutter your
 drive a bit.

 /Paul

-- 
Rudi Gaelzer
Departamento de Física
Instituto de Física e Matemática
Fundação Universidade Federal de Pelotas
Caixa Postal 354 - Campus UFPel
96010-900 Pelotas - RS
Fone: (53) 3275-7416
FAX:  (53) 3275-7343
Usuário de Linux registrado # 153741


Read only mode?

2006-09-22 Thread Rudi Gaelzer
Is there a read only mode for lyx?

From a message sent by Jean-Marc in may, I gathered that there is such a 
thing:
--- snip --
You can use buffer-readonly-toggle (which can even be added as a menu
item or icon).

JMarc
--- snip --

I would like to have the possibility to open a lyx document in read-only mode.  
In fact, I would even like to be able to choose it as the default action.

Can I do that with lyx 1.4.3? How?  When I enter "buffer-readonly-toggle" on 
the minibuffer, I got an "Unknown action"...

Thanks.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
Registered linux user # 153741


Re: Read only mode?

2006-09-22 Thread José Matos
On Friday 22 September 2006 19:58, Rudi Gaelzer wrote:
> Is there a read only mode for lyx?
>
> From a message sent by Jean-Marc in may, I gathered that there is such a
> thing:
> --- snip --
> You can use buffer-readonly-toggle (which can even be added as a menu
> item or icon).
>
> JMarc
> --- snip --
>
> I would like to have the possibility to open a lyx document in read-only
> mode. In fact, I would even like to be able to choose it as the default
> action.

  When I want a document in read only permanently I remove the write flags 
from its properties.

$ chmod a-w file

in linux and other unices...

  LyX recognises this and acts accordingly. :-)

> Can I do that with lyx 1.4.3? How?  When I enter "buffer-readonly-toggle"
> on the minibuffer, I got an "Unknown action"...

In minibuffer tab is your friend. :-)
buffer-toggle-read-only

> Thanks.

-- 
José Abílio


Re: Read only mode?

2006-09-22 Thread Rudi Gaelzer
On Friday 22 September 2006 16:16, José Matos wrote:
>   When I want a document in read only permanently I remove the write flags
> from its properties.
>
> $ chmod a-w file
>
> in linux and other unices...

Well, thanks anyway, I know that and it's not what I want...
>
>   LyX recognises this and acts accordingly. :-)
>
> > Can I do that with lyx 1.4.3? How?  When I enter "buffer-readonly-toggle"
> > on the minibuffer, I got an "Unknown action"...
>
> In minibuffer tab is your friend. :-)
> buffer-toggle-read-only
That works.  The syntax is slightly different from what I used.
>
> > Thanks.

And how can I include a "Toggle Read Only" option in the Edit menu (or as an 
icon on the toolbar)?

Thanks again.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: Read only mode?

2006-09-22 Thread Paul A. Rubin

Rudi Gaelzer wrote:


Can I do that with lyx 1.4.3? How?  When I enter "buffer-readonly-toggle"
on the minibuffer, I got an "Unknown action"...

In minibuffer tab is your friend. :-)
buffer-toggle-read-only

That works.  The syntax is slightly different from what I used.

Thanks.


And how can I include a "Toggle Read Only" option in the Edit menu (or as an 
icon on the toolbar)?




(Note:  I have not tested the following.) I think you can edit 
.../Resources/ui/stdmenus.ui and add a new Item to the edit menu, 
something like


Item "Toggle read-only|Q" "buffer-toggle-read-only"

(perhaps changing Q to a more salubrious hot key, or omitting it).  I 
would save the hacked file in the ui subfolder under your home 
directory, so that it would survive reinstallations and upgrades.


On the other hand, the path of least resistance might be simply to use
File->New from template... to open documents you don't want to modify. 
The resulting file is writable, but it gets a default name (e.g. 
newfile1.lyx), so inadvertently saving it will at worst clutter your 
drive a bit.


/Paul



Re: Read only mode?

2006-09-22 Thread Rudi Gaelzer
On Friday 22 September 2006 18:24, Paul A. Rubin wrote:
>
> (Note:  I have not tested the following.) I think you can edit
> .../Resources/ui/stdmenus.ui and add a new Item to the edit menu,
> something like
>
> Item "Toggle read-only|Q" "buffer-toggle-read-only"

That works!  I made a copy of /usr/share/lyx/ui/stdmenus.ui to ~/.lyx/ui/ and 
included the Item as you suggested (using "T"  instead of "Q" as shortcut) 
and it works.  Now I can happily toggle to and fro the read-only mode...

Thanks a lot, Paul.
>
> (perhaps changing Q to a more salubrious hot key, or omitting it).  I
> would save the hacked file in the ui subfolder under your home
> directory, so that it would survive reinstallations and upgrades.
>
> On the other hand, the path of least resistance might be simply to use
> File->New from template... to open documents you don't want to modify.
> The resulting file is writable, but it gets a default name (e.g.
> newfile1.lyx), so inadvertently saving it will at worst clutter your
> drive a bit.
>
> /Paul

-- 
Rudi Gaelzer
Departamento de Física
Instituto de Física e Matemática
Fundação Universidade Federal de Pelotas
Caixa Postal 354 - Campus UFPel
96010-900 Pelotas - RS
Fone: (53) 3275-7416
FAX:  (53) 3275-7343
Usuário de Linux registrado # 153741