Issue 88467 - Undo is not possible after changing margins in page preview
Summary: Undo is not possible after changing margins in page preview
Status: CLOSED FIXED
Alias: None
Product: Calc
Classification: Application
Component: formatting (show other issues)
Version: DEV300m9
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: oc
QA Contact: issues@sc
URL:
Keywords:
Depends on:
Blocks: 72764
  Show dependency tree
 
Reported: 2008-04-19 13:48 UTC by jr
Modified: 2013-08-07 15:14 UTC (History)
5 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
The patch file is about i88467#-v1 (6.33 KB, text/plain)
2008-06-19 13:16 UTC, yonggang.mao
no flags Details
The patch is about i88467#-v2 (11.75 KB, text/plain)
2008-06-25 14:24 UTC, yonggang.mao
no flags Details
The patch is about i88467#-v3 (11.77 KB, text/plain)
2008-06-25 16:38 UTC, yonggang.mao
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jr 2008-04-19 13:48:25 UTC
checked with DEV300 m9, Win XP

Open page preview, adjust margins -> undo is not possible
Comment 1 jr 2008-05-03 15:03:28 UTC
jrahemipour -> OC: As discussed recently, it is a hinderance when using the new
feature. Via dialog, undo is possible and this is what the user must expect when
toying manually with page margins. This should be fixed before OOo 3.0 to
"complete" this new feature (sba agrees after I showed him this on OOo QA meeting).
Put sba and pj on c/c. 
Comment 2 oc 2008-05-19 09:56:02 UTC
Hi Niklas, any change for OOo3.0?
Comment 3 niklas.nebel 2008-05-21 09:41:33 UTC
In page preview mode, Undo is disabled because some of the existing actions
don't work there. I don't think we'll fix that for 3.0. An Undo action could be
added that can be seen only after leaving preview, similar to what happens when
the page format dialog is shown in page preview.
Comment 4 yonggang.mao 2008-05-21 17:32:53 UTC
Hello Niklas,
If the Undo can be added in Margins. Then in page preview mode, the Undo will 
work all the time. Do you think of my idea right? I have a look at MS-
Excel,when the page is in page preview mode, the Undo can't work.
Comment 5 niklas.nebel 2008-05-21 19:16:10 UTC
In page preview mode, some of the older undo implementations don't work. That's
why undo is completely disabled there.
Comment 6 yonggang.mao 2008-05-22 04:41:13 UTC
My opinion is the Undo can't be added in page preview mode. If the Undo is 
usable,then we must take those operations in the page format dialog into 
account.
Hi Niklas,I want to know the meaning of this sentence(some of the older undo 
implementations).
Comment 7 jr 2008-05-22 09:43:38 UTC
IMO undo must be possible for *all* actions which are done in a document, but I
do not see the need, why undo must be possible in page preview mode.

I would suggest this behaviour: If page margins and columns are adjusted in page
preview, page preview can be closed and these multiple actions can be undone in
one step.
Comment 8 yonggang.mao 2008-05-28 14:56:51 UTC
accept
Comment 9 yonggang.mao 2008-05-28 14:59:12 UTC
started
Comment 10 yonggang.mao 2008-06-19 13:16:13 UTC
Created attachment 54594 [details]
The patch file is about i88467#-v1
Comment 11 yonggang.mao 2008-06-19 13:21:07 UTC
Hi Niklas,
The patch have a bit small problem,it can't rightly undo for page margins.
It can work for PageHeader and PageFooter.I hope you can give me some advice 
about margin's problems. Thanks!
Comment 12 niklas.nebel 2008-06-24 15:56:46 UTC
How do you create your patches? Without changes, this doesn't compile because of
a missing brace. You should directly use diff output from working code.

The undo problem is actually caused by an error in the code from issue 51656:
You must never directly modify an item that is in an ItemSet (pLRItem in this
case). Instead, make a copy of the item, modify the copy and use it in
rStyleSet.Put.
Comment 13 yonggang.mao 2008-06-25 14:24:02 UTC
Created attachment 54733 [details]
The patch is about i88467#-v2
Comment 14 niklas.nebel 2008-06-25 16:04:21 UTC
One small thing: ScDocFunc::SetWidthOrHeight already sets the column width, so
the ScDocument::SetColWidth call is no longer needed.

Otherwise, this seems to work, and can be integrated when we have the branch for
3.1 and a CWS on that.
Comment 15 yonggang.mao 2008-06-25 16:38:10 UTC
Created attachment 54738 [details]
The patch is about i88467#-v3
Comment 16 niklas.nebel 2008-10-27 15:55:57 UTC
taking the issue
Comment 17 niklas.nebel 2008-10-27 15:57:04 UTC
I added the last patch to CWS "calc47".
Comment 18 niklas.nebel 2008-12-04 15:41:26 UTC
Reassigning to QA for verification
Comment 19 oc 2008-12-09 14:02:15 UTC
verified in internal build cws_calc47
Comment 20 vladimir_hitekschool 2009-04-03 00:27:52 UTC
As to 88467 has not been fixed in master version OOo-dev 3.1 .0 (OOO310m8 
Build:9395) for Windows XP. "Page preview, adjust margins -> undo" - has not 
been realized; "If page margins and columns are adjusted in page
preview, page preview can be closed and these multiple actions can be undone in
one step" - has not been realized.
Comment 21 amy2008 2009-04-13 09:12:06 UTC
vladimir_hitekschool,
Verified in OOo310m9 on WinXP and Fedora9, it works well.
when the page is in page preview mode, Undo doesn't work. If close preview,
check Undo down-arrow list, it works well.
Now closing this issue
Regards
Li Meiying