diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-03-09 11:30:23 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-03-09 09:41:44 +0100 |
commit | c7ff07b2dab639b901c80f1f62efee4dd3ad549b (patch) | |
tree | 580551b479fa8694799facbdccd967b1d0fef7ee /editeng | |
parent | b288fdf89386446854debea35f8b8d013fec671d (diff) |
remove MID_GRAPHIC_URL and related mappings, implementation
Change-Id: I752a2f036791720d12fb04b95f53d4127d605c7e
Reviewed-on: https://gerrit.libreoffice.org/50979
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/frmitems.cxx | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index 46fac60bb578..e49ad5d79572 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -3196,22 +3196,6 @@ bool SvxBrushItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const rVal <<= ( aColor.GetTransparency() == 0xff ); break; - case MID_GRAPHIC_URL: - { - OUString sLink; - if ( !maStrLink.isEmpty() ) - sLink = maStrLink; - else if (xGraphicObject) - { - OUString sId(OStringToOUString( - xGraphicObject->GetUniqueID(), - RTL_TEXTENCODING_ASCII_US)); - sLink = UNO_NAME_GRAPHOBJ_URLPREFIX + sId; - } - rVal <<= sLink; - } - break; - case MID_GRAPHIC: { uno::Reference<graphic::XGraphic> xGraphic; @@ -3294,38 +3278,6 @@ bool SvxBrushItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) aColor.SetTransparency( Any2Bool( rVal ) ? 0xff : 0 ); break; - case MID_GRAPHIC_URL: - { - if ( rVal.getValueType() == ::cppu::UnoType<OUString>::get() ) - { - OUString sLink; - rVal >>= sLink; - if( sLink.startsWith( UNO_NAME_GRAPHOBJ_URLPKGPREFIX ) ) - { - OSL_FAIL( "package urls aren't implemented" ); - } - else if( sLink.startsWith( UNO_NAME_GRAPHOBJ_URLPREFIX ) ) - { - maStrLink.clear(); - OString sId(OUStringToOString(sLink.copy( sizeof(UNO_NAME_GRAPHOBJ_URLPREFIX)-1 ), - RTL_TEXTENCODING_ASCII_US)); - std::unique_ptr<GraphicObject> xOldGrfObj(std::move(xGraphicObject)); - xGraphicObject.reset(new GraphicObject(sId)); - ApplyGraphicTransparency_Impl(); - xOldGrfObj.reset(); - } - else - { - SetGraphicLink(sLink); - } - if ( !sLink.isEmpty() && eGraphicPos == GPOS_NONE ) - eGraphicPos = GPOS_MM; - else if( sLink.isEmpty() ) - eGraphicPos = GPOS_NONE; - } - } - break; - case MID_GRAPHIC: { if (rVal.getValueType() == cppu::UnoType<graphic::XGraphic>::get()) |