Disable Exit application (Ctrl-Q) from preview mode.
Again, to prevent a modified document from launching the "do you want to save this doc?" dialog while in page preview mode. Change-Id: I638ca308a14ad5941b9db164a0753e0aad8e7968
This commit is contained in:
parent
d0c3c24da2
commit
20aad2af9b
2 changed files with 2 additions and 0 deletions
|
@ -164,6 +164,7 @@ interface TablePrintPreview
|
|||
SID_SAVEASDOC [ StateMethod = GetState; Export = FALSE; ]
|
||||
SID_MAIL_SENDDOC [ StateMethod = GetState; Export = FALSE; ]
|
||||
SID_VIEW_DATA_SOURCE_BROWSER [ StateMethod = GetState; Export = FALSE; ]
|
||||
SID_QUITAPP [ StateMethod = GetState; Export = FALSE; ]
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -843,6 +843,7 @@ void ScPreviewShell::GetState( SfxItemSet& rSet )
|
|||
case SID_SAVEASDOC:
|
||||
case SID_MAIL_SENDDOC:
|
||||
case SID_VIEW_DATA_SOURCE_BROWSER:
|
||||
case SID_QUITAPP:
|
||||
rSet.DisableItem(nWhich);
|
||||
break;
|
||||
case SID_PREVIEW_PREVIOUS:
|
||||
|
|
Loading…
Reference in a new issue