Kaydet (Commit) a91b5943 authored tarafından Armin Le Grand's avatar Armin Le Grand

i63399 add to clipboard as URL only when no fill and no line style, just a simple URL

üst 7496ed4f
...@@ -256,11 +256,20 @@ void SdTransferable::CreateObjectReplacement( SdrObject* pObj ) ...@@ -256,11 +256,20 @@ void SdTransferable::CreateObjectReplacement( SdrObject* pObj )
{ {
const SvxURLField* pURL = (SvxURLField*) pData; const SvxURLField* pURL = (SvxURLField*) pData;
// #63399# This special code identifies TextFrames which have just an URL
// as content and directly add this to the clipboard, probably to avoid adding
// an unnecessary DrawObject to the target where paste may take place. This is
// wanted only for SdrObjects with no fill and no line, else it is necessary to
// use the whole SdrObect. Test here for Line/FillStyle and take shortcut only
// when both are unused
if(!pObj->HasFillStyle() && !pObj->HasLineStyle())
{
mpBookmark = new INetBookmark( pURL->GetURL(), pURL->GetRepresentation() ); mpBookmark = new INetBookmark( pURL->GetURL(), pURL->GetRepresentation() );
} }
} }
} }
} }
}
SdIMapInfo* pInfo = static_cast< SdDrawDocument* >( pObj->GetModel() )->GetIMapInfo( static_cast< SdrObject* >( pObj ) ); SdIMapInfo* pInfo = static_cast< SdDrawDocument* >( pObj->GetModel() )->GetIMapInfo( static_cast< SdrObject* >( pObj ) );
......
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