Kaydet (Commit) 6249b038 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS aw013 (1.27.156); FILE MERGED

2004/06/24 09:28:16 aw 1.27.156.1: #i29181#
üst 93f20583
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: baside3.cxx,v $ * $RCSfile: baside3.cxx,v $
* *
* $Revision: 1.27 $ * $Revision: 1.28 $
* *
* last change: $Author: vg $ $Date: 2003-04-24 18:19:40 $ * last change: $Author: rt $ $Date: 2004-07-12 15:54:25 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -277,7 +277,7 @@ void DialogWindow::Command( const CommandEvent& rCEvt ) ...@@ -277,7 +277,7 @@ void DialogWindow::Command( const CommandEvent& rCEvt )
if ( pDispatcher ) if ( pDispatcher )
{ {
SdrView* pView = GetView(); SdrView* pView = GetView();
if( !rCEvt.IsMouseEvent() && pView->HasMarked() ) if( !rCEvt.IsMouseEvent() && pView->AreObjectsMarked() )
{ {
Rectangle aMarkedRect( pView->GetMarkedRect() ); Rectangle aMarkedRect( pView->GetMarkedRect() );
Point MarkedCenter( aMarkedRect.Center() ); Point MarkedCenter( aMarkedRect.Center() );
...@@ -347,7 +347,7 @@ void __EXPORT DialogWindow::GetState( SfxItemSet& rSet ) ...@@ -347,7 +347,7 @@ void __EXPORT DialogWindow::GetState( SfxItemSet& rSet )
case SID_COPY: case SID_COPY:
{ {
// any object selected? // any object selected?
if ( !pEditor->GetView()->HasMarkedObj() ) if ( !pEditor->GetView()->AreObjectsMarked() )
rSet.DisableItem( nWh ); rSet.DisableItem( nWh );
} }
break; break;
...@@ -356,7 +356,7 @@ void __EXPORT DialogWindow::GetState( SfxItemSet& rSet ) ...@@ -356,7 +356,7 @@ void __EXPORT DialogWindow::GetState( SfxItemSet& rSet )
case SID_BACKSPACE: case SID_BACKSPACE:
{ {
// any object selected? // any object selected?
if ( !pEditor->GetView()->HasMarkedObj() ) if ( !pEditor->GetView()->AreObjectsMarked() )
rSet.DisableItem( nWh ); rSet.DisableItem( nWh );
if ( IsReadOnly() ) if ( IsReadOnly() )
...@@ -441,7 +441,7 @@ void __EXPORT DialogWindow::GetState( SfxItemSet& rSet ) ...@@ -441,7 +441,7 @@ void __EXPORT DialogWindow::GetState( SfxItemSet& rSet )
{ {
BasicIDEShell* pIDEShell = IDE_DLL()->GetShell(); BasicIDEShell* pIDEShell = IDE_DLL()->GetShell();
SfxViewFrame* pViewFrame = pIDEShell ? pIDEShell->GetViewFrame() : NULL; SfxViewFrame* pViewFrame = pIDEShell ? pIDEShell->GetViewFrame() : NULL;
if ( pViewFrame && !pViewFrame->HasChildWindow( SID_SHOW_PROPERTYBROWSER ) && !pEditor->GetView()->HasMarkedObj() ) if ( pViewFrame && !pViewFrame->HasChildWindow( SID_SHOW_PROPERTYBROWSER ) && !pEditor->GetView()->AreObjectsMarked() )
rSet.DisableItem( nWh ); rSet.DisableItem( nWh );
if ( IsReadOnly() ) if ( IsReadOnly() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment