transfer.cxx (ad6faf97) | transfer.cxx (8809675e) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 1956 unchanged lines hidden (view full) --- 1965 1966 if( GraphicConverter::Import( *xStm, aGraphic ) == ERRCODE_NONE ) 1967 { 1968 rMtf = aGraphic.GetGDIMetaFile(); 1969 bRet = sal_True; 1970 } 1971 } 1972 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 1956 unchanged lines hidden (view full) --- 1965 1966 if( GraphicConverter::Import( *xStm, aGraphic ) == ERRCODE_NONE ) 1967 { 1968 rMtf = aGraphic.GetGDIMetaFile(); 1969 bRet = sal_True; 1970 } 1971 } 1972 |
1973 if( !bRet && 1974 HasFormat( SOT_FORMATSTR_ID_SVG ) && 1975 SotExchange::GetFormatDataFlavor( SOT_FORMATSTR_ID_SVG, aSubstFlavor ) && 1976 GetSotStorageStream( aSubstFlavor, xStm ) ) 1977 { 1978 Graphic aGraphic; 1979 1980 if( GraphicConverter::Import( *xStm, aGraphic ) == ERRCODE_NONE ) 1981 { 1982 rMtf = aGraphic.GetGDIMetaFile(); 1983 bRet = sal_True; 1984 } 1985 } 1986 |
|
1973 return bRet; 1974} 1975 1976// ----------------------------------------------------------------------------- 1977 1978sal_Bool TransferableDataHelper::GetGraphic( SotFormatStringId nFormat, Graphic& rGraphic ) 1979{ 1980 if(FORMAT_BITMAP == nFormat) --- 565 unchanged lines hidden --- | 1987 return bRet; 1988} 1989 1990// ----------------------------------------------------------------------------- 1991 1992sal_Bool TransferableDataHelper::GetGraphic( SotFormatStringId nFormat, Graphic& rGraphic ) 1993{ 1994 if(FORMAT_BITMAP == nFormat) --- 565 unchanged lines hidden --- |