CWS-TOOLING: integrate CWS mba32issues02
2009-09-17 mb93783 merge commit 2009-09-03 tb121644 #i104748 - slot unification to .uno:PasteSpecial 2009-09-01 mba #101455#: code simplification 2009-08-31 mb93783 iso locales for norwegian builds are nb and nn, not no 2009-08-25 mba merge to m55 2009-07-29 mba cleanup after rebase 2009-07-29 mba #i103200#: wrong order of first and last name in CJK UI 2009-07-27 mba adding dictionary changes from broken svn CWS 2009-07-27 mba adding dictionary changes from broken svn CWS 2009-07-27 mba apply patch from broken svn CWS
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
#include <sfx2/app.hxx>
|
||||
#include <sfx2/objface.hxx>
|
||||
#include <sfx2/viewfrm.hxx>
|
||||
#include <sfx2/bindings.hxx>
|
||||
#include <sfx2/docfilt.hxx>
|
||||
#include <sfx2/fcontnr.hxx>
|
||||
#include <sfx2/request.hxx>
|
||||
@@ -457,17 +458,21 @@ void SwSrcView::Execute(SfxRequest& rReq)
|
||||
break;
|
||||
case SID_UNDO:
|
||||
pTextView->Undo();
|
||||
GetViewFrame()->GetBindings().InvalidateAll(FALSE);
|
||||
break;
|
||||
case SID_REDO:
|
||||
pTextView->Redo();
|
||||
GetViewFrame()->GetBindings().InvalidateAll(FALSE);
|
||||
break;
|
||||
case SID_REPEAT:
|
||||
break;
|
||||
case SID_CUT:
|
||||
pTextView->Cut();
|
||||
if(pTextView->HasSelection())
|
||||
pTextView->Cut();
|
||||
break;
|
||||
case SID_COPY:
|
||||
pTextView->Copy();
|
||||
if(pTextView->HasSelection())
|
||||
pTextView->Copy();
|
||||
break;
|
||||
case SID_PASTE:
|
||||
pTextView->Paste();
|
||||
@@ -588,6 +593,8 @@ void SwSrcView::GetState(SfxItemSet& rSet)
|
||||
case SID_DIRECTEXPORTDOCASPDF:
|
||||
case SID_EXPORTDOC:
|
||||
case SID_REPEAT:
|
||||
case SID_BROWSER_MODE:
|
||||
case FN_PRINT_LAYOUT:
|
||||
rSet.DisableItem(nWhich);
|
||||
break;
|
||||
case SID_CUT:
|
||||
@@ -731,6 +738,10 @@ USHORT SwSrcView::StartSearchAndReplace(const SvxSearchItem& rSearchItem,
|
||||
USHORT SwSrcView::SetPrinter(SfxPrinter* pNew, USHORT nDiffFlags, bool )
|
||||
{
|
||||
SwDocShell* pDocSh = GetDocShell();
|
||||
SfxPrinter* pOld = pDocSh->GetDoc()->getPrinter( false );
|
||||
if ( pOld && pOld->IsPrinting() )
|
||||
return SFX_PRINTERROR_BUSY;
|
||||
|
||||
if ( (SFX_PRINTER_JOBSETUP | SFX_PRINTER_PRINTER) & nDiffFlags )
|
||||
{
|
||||
pDocSh->GetDoc()->setPrinter( pNew, true, true );
|
||||
|
Reference in New Issue
Block a user