Kaydet (Commit) 262ddea1 authored tarafından Michael Brauer's avatar Michael Brauer

TextWrap, SurroundContour and ContourOutside to work now

üst 8ff71b59
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: unoframe.cxx,v $ * $RCSfile: unoframe.cxx,v $
* *
* $Revision: 1.8 $ * $Revision: 1.9 $
* *
* last change: $Author: os $ $Date: 2000-11-15 15:00:48 $ * last change: $Author: mib $ $Date: 2000-11-16 12:49:04 $
* *
* 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
...@@ -553,6 +553,8 @@ sal_Bool BaseFrameProperties_Impl::FillBaseProperties(SfxItemSet& rSet) ...@@ -553,6 +553,8 @@ sal_Bool BaseFrameProperties_Impl::FillBaseProperties(SfxItemSet& rSet)
} }
uno::Any* pSur = 0; uno::Any* pSur = 0;
GetProperty(C2S(UNO_NAME_SURROUND), pSur); GetProperty(C2S(UNO_NAME_SURROUND), pSur);
if( !pSur )
GetProperty(C2S(UNO_NAME_TEXT_WRAP), pSur);
uno::Any* pSurAnch = 0; uno::Any* pSurAnch = 0;
GetProperty(C2S(UNO_NAME_SURROUND_ANCHORONLY), pSurAnch); GetProperty(C2S(UNO_NAME_SURROUND_ANCHORONLY), pSurAnch);
if(pSur || pSurAnch) if(pSur || pSurAnch)
...@@ -1716,7 +1718,6 @@ void SwXFrame::attachToRange(const uno::Reference< XTextRange > & xTextRange) ...@@ -1716,7 +1718,6 @@ void SwXFrame::attachToRange(const uno::Reference< XTextRange > & xTextRange)
SwFlyFrmFmt* pGFmt = pDoc->Insert(aPam, SwFlyFrmFmt* pGFmt = pDoc->Insert(aPam,
sGraphicURL, sGraphicURL,
sFltName, 0, &aFrmSet, &aGrSet); sFltName, 0, &aFrmSet, &aGrSet);
uno::Any* pAltText;
if(pGFmt) if(pGFmt)
{ {
pGFmt->Add(this); pGFmt->Add(this);
...@@ -1724,9 +1725,16 @@ void SwXFrame::attachToRange(const uno::Reference< XTextRange > & xTextRange) ...@@ -1724,9 +1725,16 @@ void SwXFrame::attachToRange(const uno::Reference< XTextRange > & xTextRange)
pDoc->SetFlyName((SwFlyFrmFmt&)*pGFmt, sName); pDoc->SetFlyName((SwFlyFrmFmt&)*pGFmt, sName);
} }
uno::Any* pSurroundContour;
if(pProps->GetProperty(C2S(UNO_NAME_SURROUND_CONTOUR), pSurroundContour))
setPropertyValue(C2U(UNO_NAME_SURROUND_CONTOUR), *pSurroundContour);
uno::Any* pContourOutside;
if(pProps->GetProperty(C2S(UNO_NAME_CONTOUR_OUTSIDE), pContourOutside))
setPropertyValue(C2U(UNO_NAME_CONTOUR_OUTSIDE), *pContourOutside);
uno::Any* pContourPoly; uno::Any* pContourPoly;
if(pProps->GetProperty(C2S(UNO_NAME_CONTOUR_POLY_POLYGON), pContourPoly)) if(pProps->GetProperty(C2S(UNO_NAME_CONTOUR_POLY_POLYGON), pContourPoly))
setPropertyValue(C2U(UNO_NAME_CONTOUR_POLY_POLYGON), *pContourPoly); setPropertyValue(C2U(UNO_NAME_CONTOUR_POLY_POLYGON), *pContourPoly);
uno::Any* pAltText;
if(pProps->GetProperty(C2S(UNO_NAME_ALTERNATIVE_TEXT), pAltText)) if(pProps->GetProperty(C2S(UNO_NAME_ALTERNATIVE_TEXT), pAltText))
setPropertyValue(C2U(UNO_NAME_ALTERNATIVE_TEXT), *pAltText); setPropertyValue(C2U(UNO_NAME_ALTERNATIVE_TEXT), *pAltText);
} }
...@@ -2640,6 +2648,9 @@ sal_uInt16 SwXOLEListener::FindEntry( const EventObject& rEvent,SwOLENode** ppNd ...@@ -2640,6 +2648,9 @@ sal_uInt16 SwXOLEListener::FindEntry( const EventObject& rEvent,SwOLENode** ppNd
/*------------------------------------------------------------------------ /*------------------------------------------------------------------------
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.8 2000/11/15 15:00:48 os
chg: use optimized SfxItemPropertySet::get/setPropertyValue - methods
Revision 1.7 2000/11/08 14:56:39 os Revision 1.7 2000/11/08 14:56:39 os
#80121# createTextCursor in frames: skip tables #80121# createTextCursor in frames: skip tables
......
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