Kaydet (Commit) e240f5dc authored tarafından jp's avatar jp

should change: remove image

üst 85f0d1fd
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: grfsh.hxx,v $ * $RCSfile: grfsh.hxx,v $
* *
* $Revision: 1.1.1.1 $ * $Revision: 1.2 $
* *
* last change: $Author: hr $ $Date: 2000-09-18 17:14:40 $ * last change: $Author: jp $ $Date: 2000-10-05 11:34:19 $
* *
* 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
...@@ -69,7 +69,6 @@ public: ...@@ -69,7 +69,6 @@ public:
SFX_DECL_INTERFACE(SW_GRFSHELL); SFX_DECL_INTERFACE(SW_GRFSHELL);
void Execute(SfxRequest &); void Execute(SfxRequest &);
void GetState(SfxItemSet &);
void ExecAttr(SfxRequest &); void ExecAttr(SfxRequest &);
void GetAttrState(SfxItemSet &); void GetAttrState(SfxItemSet &);
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: grfsh.cxx,v $ * $RCSfile: grfsh.cxx,v $
* *
* $Revision: 1.1.1.1 $ * $Revision: 1.2 $
* *
* last change: $Author: hr $ $Date: 2000-09-18 17:14:46 $ * last change: $Author: jp $ $Date: 2000-10-05 11:35:18 $
* *
* 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
...@@ -433,29 +433,6 @@ void SwGrfShell::Execute(SfxRequest &rReq) ...@@ -433,29 +433,6 @@ void SwGrfShell::Execute(SfxRequest &rReq)
} }
break; break;
case SID_SIM_START:
if ( SFX_APP()->HasFeature( SFX_FEATURE_SIMAGE ))
{
String sGrfNm;
rSh.GetGrfNms( &sGrfNm, 0 );
if( sGrfNm.Len() )
{
InfoBox aAsk( GetView().GetWindow(),
SW_RES(MSG_REMOVE_LINK));
if( RET_NO == aAsk.Execute())
break;
}
GetView().GetEditWin().GrfToOle();
if( rSh.IsOLEObj() )
{
rSh.LaunchOLEObj();
}
else
rSh.GetView().GetViewFrame()->GetDispatcher()->Execute( FN_FORMAT_GRAFIC_DLG );
}
break;
case FN_GRAPHIC_MIRROR_ON_EVEN_PAGES: case FN_GRAPHIC_MIRROR_ON_EVEN_PAGES:
{ {
SfxItemSet aSet(rSh.GetAttrPool(), RES_GRFATR_MIRRORGRF, RES_GRFATR_MIRRORGRF); SfxItemSet aSet(rSh.GetAttrPool(), RES_GRFATR_MIRRORGRF, RES_GRFATR_MIRRORGRF);
...@@ -466,12 +443,10 @@ void SwGrfShell::Execute(SfxRequest &rReq) ...@@ -466,12 +443,10 @@ void SwGrfShell::Execute(SfxRequest &rReq)
} }
break; break;
default: default:
ASSERT(!this, falscher Dispatcher); ASSERT(!this, falscher Dispatcher);
return; return;
} }
} }
...@@ -585,25 +560,6 @@ void SwGrfShell::ExecAttr( SfxRequest &rReq ) ...@@ -585,25 +560,6 @@ void SwGrfShell::ExecAttr( SfxRequest &rReq )
GetView().GetViewFrame()->GetBindings().Invalidate(rReq.GetSlot()); GetView().GetViewFrame()->GetBindings().Invalidate(rReq.GetSlot());
} }
void SwGrfShell::GetState(SfxItemSet &rSet)
{
// case SID_SIM_START:
if ( GetShell().IsSelObjProtected(FLYPROTECT_CONTENT) ||
!SFX_APP()->HasFeature( SFX_FEATURE_SIMAGE ) )
{
rSet.DisableItem(SID_SIM_START);
}
else
{
SwDocShell &rSh = *GetView().GetDocShell();
if ( rSh.GetProtocol().IsInPlaceActive() ||
rSh.GetCreateMode() == SFX_CREATE_MODE_EMBEDDED )
rSet.DisableItem(SID_SIM_START);
}
}
void SwGrfShell::GetAttrState(SfxItemSet &rSet) void SwGrfShell::GetAttrState(SfxItemSet &rSet)
{ {
SwWrtShell &rSh = GetShell(); SwWrtShell &rSh = GetShell();
...@@ -963,6 +919,9 @@ IMPL_LINK( SwTextShell, InitGraphicFrame, Button *, pButton ) ...@@ -963,6 +919,9 @@ IMPL_LINK( SwTextShell, InitGraphicFrame, Button *, pButton )
/*------------------------------------------------------------------------ /*------------------------------------------------------------------------
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.1.1.1 2000/09/18 17:14:46 hr
initial import
Revision 1.134 2000/09/18 16:06:04 willem.vandorp Revision 1.134 2000/09/18 16:06:04 willem.vandorp
OpenOffice header added. OpenOffice header added.
......
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