List Info

Thread: problem about undo of header and footer




problem about undo of header and footer
user name
2007-08-20 03:06:33
Hi Mathias,

I found an undo problem when the header or footer is
changed.
For example:
First, I do some operations on a document(now there is no
header or footer) when the UNDO button is lighted;
Second, I insert the header or footer to the document. Then,
the UNDO and REDO button is grey and I can't 
undo any of the operations before.
I think this is unreasonable.

I found the codes in sw/source/core/doc/docdesc.cxx like
this:

// #i46909# no undo if header or footer changed
if( bHeaderFooterChanged )
    {
        ClearRedo();
        DelAllUndoObj();
    }

This is to make undo and redo grey if header or footer is
changed.
The codes above is to solve issue 46909. After tracking on
issuezilla, I found there are a few crash problems with undo
of
header and footer before, so engineers of the community
accepted this solution for the moment ?

So, that means we should just remove all the undo operations
when header or footer is changed ?
Should it be this ?

I need your help.Thank you!

Best wishes,



lijian
2007-08-20
Re: problem about undo of header and footer
user name
2007-08-20 03:22:34
Hi Lijian,

Andreas (AMA) will be back tomorrow. I think he's the best
to answer
your questions.


Regards, Oliver.

lijian wrote:
> Hi Mathias,
> 
> I found an undo problem when the header or footer is
changed.
> For example:
> First, I do some operations on a document(now there is
no header or footer) when the UNDO button is lighted;
> Second, I insert the header or footer to the document.
Then, the UNDO and REDO button is grey and I can't 
> undo any of the operations before.
> I think this is unreasonable.
> 
> I found the codes in sw/source/core/doc/docdesc.cxx
like this:
> 
> // #i46909# no undo if header or footer changed
> if( bHeaderFooterChanged )
>     {
>         ClearRedo();
>         DelAllUndoObj();
>     }
> 
> This is to make undo and redo grey if header or footer
is changed.
> The codes above is to solve issue 46909. After tracking
on issuezilla, I found there are a few crash problems with
undo of
> header and footer before, so engineers of the community
accepted this solution for the moment ?
> 
> So, that means we should just remove all the undo
operations when header or footer is changed ?
> Should it be this ?
> 
> I need your help.Thank you!
> 
> Best wishes,
> 
> 
> 
> lijian
> 2007-08-20
> 

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesw.openoffice.org
For additional commands, e-mail: dev-helpsw.openoffice.org


Re: problem about undo of header and footer
user name
2007-08-20 03:47:04
Hi Oliver,

OK, I will wait for him. Thank you for your reply.
> Andreas (AMA) will be back tomorrow. I think he's the
best to answer
> your questions.

Besh wishes,
Lijian
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )