Lines Matching refs:rObj

113 void ImplEESdrWriter::ImplFlipBoundingBox( ImplEESdrObject& rObj, EscherPropertyContainer& rPropOpt…  in ImplFlipBoundingBox()  argument
115 sal_Int32 nAngle = rObj.GetAngle(); in ImplFlipBoundingBox()
116 Rectangle aRect( rObj.GetRect() ); in ImplFlipBoundingBox()
140 rObj.SetAngle( nAngle ); in ImplFlipBoundingBox()
141 rObj.SetRect( aRect ); in ImplFlipBoundingBox()
150 rObj.SetShapeId( nShapeID ); \
152 rSolverContainer.AddShape( rObj.GetShapeRef(), nShapeID ); \
160 aPropOpt.CreateFillProperties( rObj.mXPropSet, sal_True ); \
161 if( rObj.ImplGetText() ) \
162 aPropOpt.CreateTextProperties( rObj.mXPropSet, \
163 mpEscherEx->QueryTextID( rObj.GetShapeRef(), \
164 rObj.GetShapeId() ) ); \
174 sal_uInt32 ImplEESdrWriter::ImplWriteShape( ImplEESdrObject& rObj, in ImplWriteShape() argument
185 …mpHostAppData = mpEscherEx->StartShape( rObj.GetShapeRef(), (mpEscherEx->GetGroupLevel() > 1) ? &r… in ImplWriteShape()
191 if( const SdrObject* pSdrObj = rObj.GetSdrObject() ) in ImplWriteShape()
197 if( rObj.GetType().EqualsAscii( "drawing.Group" )) in ImplWriteShape()
199 Reference< XIndexAccess > xXIndexAccess( rObj.GetShapeRef(), UNO_QUERY ); in ImplWriteShape()
203 nShapeID = mpEscherEx->EnterGroup( aShapeName, &rObj.GetRect() ); in ImplWriteShape()
218 rObj.SetAngle( rObj.ImplGetInt32PropertyValue( ::rtl::OUString::createFromAscii("RotateAngle") )); in ImplWriteShape()
220 if( ( rObj.ImplGetPropertyValue( ::rtl::OUString::createFromAscii("IsFontwork") ) && in ImplWriteShape()
221 ::cppu::any2bool( rObj.GetUsrAny() ) ) || in ImplWriteShape()
222rObj.GetType().EqualsAscii( "drawing.Measure" ) || rObj.GetType().EqualsAscii( "drawing.Caption" )… in ImplWriteShape()
232 rObj.SetType( String( RTL_CONSTASCII_STRINGPARAM( in ImplWriteShape()
237 const ::com::sun::star::awt::Size aSize100thmm( rObj.GetShapeRef()->getSize() ); in ImplWriteShape()
238 const ::com::sun::star::awt::Point aPoint100thmm( rObj.GetShapeRef()->getPosition() ); in ImplWriteShape()
248 if ( rObj.GetType().EqualsAscii( "drawing.Custom" ) ) in ImplWriteShape()
254 …MSO_SPT eShapeType = aPropOpt.GetCustomShapeType( rObj.GetShapeRef(), nMirrorFlags, sCustomShapeTy… in ImplWriteShape()
258 …if ( aPropOpt.CreateGraphicProperties( rObj.mXPropSet, String( RTL_CONSTASCII_USTRINGPARAM( "MetaF… in ImplWriteShape()
263 SdrObject* pObj = GetSdrObjectFromXShape( rObj.GetShapeRef() ); in ImplWriteShape()
269 rObj.SetRect( Rectangle( aPosition, aSize ) ); in ImplWriteShape()
270 rObj.SetAngle( 0 ); in ImplWriteShape()
280 aPropOpt.CreateCustomShapeProperties( eShapeType, rObj.GetShapeRef() ); in ImplWriteShape()
281 aPropOpt.CreateFillProperties( rObj.mXPropSet, sal_True ); in ImplWriteShape()
282 if ( rObj.ImplGetText() ) in ImplWriteShape()
285 aPropOpt.CreateTextProperties( rObj.mXPropSet, mpEscherEx->QueryTextID( in ImplWriteShape()
286 rObj.GetShapeRef(), rObj.GetShapeId() ), sal_True, sal_False ); in ImplWriteShape()
290 else if ( rObj.GetType().EqualsAscii( "drawing.Rectangle" )) in ImplWriteShape()
293 sal_Int32 nRadius = (sal_Int32)rObj.ImplGetInt32PropertyValue( in ImplWriteShape()
299 sal_Int32 nLenght = rObj.GetRect().GetWidth(); in ImplWriteShape()
300 if ( nLenght > rObj.GetRect().GetHeight() ) in ImplWriteShape()
301 nLenght = rObj.GetRect().GetHeight(); in ImplWriteShape()
313 aPropOpt.CreateFillProperties( rObj.mXPropSet, sal_True ); in ImplWriteShape()
314 if( rObj.ImplGetText() ) in ImplWriteShape()
315 aPropOpt.CreateTextProperties( rObj.mXPropSet, in ImplWriteShape()
316 mpEscherEx->QueryTextID( rObj.GetShapeRef(), in ImplWriteShape()
317 rObj.GetShapeId() ), sal_False, sal_False ); in ImplWriteShape()
319 else if ( rObj.GetType().EqualsAscii( "drawing.Ellipse" )) in ImplWriteShape()
323 if ( rObj.ImplGetPropertyValue( ::rtl::OUString::createFromAscii("CircleKind") ) ) in ImplWriteShape()
325 eCircleKind = *( (CircleKind*)rObj.GetUsrAny().getValue() ); in ImplWriteShape()
353 aPropOpt.CreateFillProperties( rObj.mXPropSet, sal_True );; in ImplWriteShape()
358 if ( !rObj.ImplGetPropertyValue( ::rtl::OUString::createFromAscii("CircleStartAngle") ) ) in ImplWriteShape()
360 nStartAngle = *( (sal_Int32*)rObj.GetUsrAny().getValue() ); in ImplWriteShape()
361 if( !rObj.ImplGetPropertyValue( ::rtl::OUString::createFromAscii("CircleEndAngle") ) ) in ImplWriteShape()
363 nEndAngle = *( (sal_Int32*)rObj.GetUsrAny().getValue() ); in ImplWriteShape()
382 if( rObj.GetAngle() ) in ImplWriteShape()
384 aPolygon.Rotate( rRect.TopLeft(), (sal_uInt16)( rObj.GetAngle() / 10 ) ); in ImplWriteShape()
385 rObj.SetAngle( 0 ); in ImplWriteShape()
395 …aPropOpt.CreatePolygonProperties( rObj.mXPropSet, ESCHER_CREATEPOLYGON_POLYPOLYGON, sal_False, aNe… in ImplWriteShape()
396 aPropOpt.CreateFillProperties( rObj.mXPropSet, sal_True ); in ImplWriteShape()
402 …aPropOpt.CreatePolygonProperties( rObj.mXPropSet, ESCHER_CREATEPOLYGON_POLYLINE, sal_False, aNewRe… in ImplWriteShape()
403 aPropOpt.CreateLineProperties( rObj.mXPropSet, sal_False ); in ImplWriteShape()
407 rObj.SetRect( Rectangle( ImplMapPoint( Point( aNewRect.X, aNewRect.Y ) ), in ImplWriteShape()
410 if ( rObj.ImplGetText() ) in ImplWriteShape()
411 aPropOpt.CreateTextProperties( rObj.mXPropSet, in ImplWriteShape()
412 mpEscherEx->QueryTextID( rObj.GetShapeRef(), in ImplWriteShape()
413 rObj.GetShapeId() ), sal_False, sal_False ); in ImplWriteShape()
416 else if ( rObj.GetType().EqualsAscii( "drawing.Control" )) in ImplWriteShape()
420 else if ( rObj.GetType().EqualsAscii( "drawing.Connector" )) in ImplWriteShape()
424 if ( aPropOpt.CreateConnectorProperties( rObj.GetShapeRef(), in ImplWriteShape()
427 rObj.SetRect( Rectangle( ImplMapPoint( Point( aNewRect.X, aNewRect.Y ) ), in ImplWriteShape()
433 else if ( rObj.GetType().EqualsAscii( "drawing.Measure" )) in ImplWriteShape()
517 else if ( rObj.GetType().EqualsAscii( "drawing.Line" )) in ImplWriteShape()
520 …aPropOpt.CreatePolygonProperties( rObj.mXPropSet, ESCHER_CREATEPOLYGON_LINE, sal_False, aNewRect, … in ImplWriteShape()
521 MapRect(rObj); in ImplWriteShape()
533 aPropOpt.CreateLineProperties( rObj.mXPropSet, sal_False ); in ImplWriteShape()
534 rObj.SetAngle( 0 ); in ImplWriteShape()
536 else if ( rObj.GetType().EqualsAscii( "drawing.PolyPolygon" )) in ImplWriteShape()
538 if( rObj.ImplHasText() ) in ImplWriteShape()
540 nGrpShapeID = ImplEnterAdditionalTextGroup( rObj.GetShapeRef(), &rObj.GetRect() ); in ImplWriteShape()
546 …aPropOpt.CreatePolygonProperties( rObj.mXPropSet, ESCHER_CREATEPOLYGON_POLYPOLYGON, sal_False, aNe… in ImplWriteShape()
547 MapRect(rObj); in ImplWriteShape()
548 aPropOpt.CreateFillProperties( rObj.mXPropSet, sal_True ); in ImplWriteShape()
549 rObj.SetAngle( 0 ); in ImplWriteShape()
551 else if ( rObj.GetType().EqualsAscii( "drawing.PolyLine" )) in ImplWriteShape()
558 …aPropOpt.CreatePolygonProperties( rObj.mXPropSet, ESCHER_CREATEPOLYGON_POLYLINE, sal_False, aNewRe… in ImplWriteShape()
559 MapRect(rObj); in ImplWriteShape()
560 aPropOpt.CreateLineProperties( rObj.mXPropSet, sal_False ); in ImplWriteShape()
561 rObj.SetAngle( 0 ); in ImplWriteShape()
563 else if ( rObj.GetType().EqualsAscii( "drawing.OpenBezier" ) ) in ImplWriteShape()
570 …aPropOpt.CreatePolygonProperties( rObj.mXPropSet, ESCHER_CREATEPOLYGON_POLYLINE, sal_True, aNewRec… in ImplWriteShape()
571 MapRect(rObj); in ImplWriteShape()
572 aPropOpt.CreateLineProperties( rObj.mXPropSet, sal_False ); in ImplWriteShape()
573 rObj.SetAngle( 0 ); in ImplWriteShape()
575 else if ( rObj.GetType().EqualsAscii( "drawing.ClosedBezier" ) ) in ImplWriteShape()
577 if ( rObj.ImplHasText() ) in ImplWriteShape()
579 nGrpShapeID = ImplEnterAdditionalTextGroup( rObj.GetShapeRef(), &rObj.GetRect() ); in ImplWriteShape()
585 …aPropOpt.CreatePolygonProperties( rObj.mXPropSet, ESCHER_CREATEPOLYGON_POLYPOLYGON, sal_True, aNew… in ImplWriteShape()
586 MapRect(rObj); in ImplWriteShape()
587 aPropOpt.CreateFillProperties( rObj.mXPropSet, sal_True ); in ImplWriteShape()
588 rObj.SetAngle( 0 ); in ImplWriteShape()
590 else if ( rObj.GetType().EqualsAscii( "drawing.GraphicObject" )) in ImplWriteShape()
595 if( rObj.IsEmptyPresObj() && ( ePageType == NORMAL ) ) in ImplWriteShape()
598 sal_uInt32 nTxtBxId = mpEscherEx->QueryTextID( rObj.GetShapeRef(), in ImplWriteShape()
599 rObj.GetShapeId() ); in ImplWriteShape()
607 if( rObj.ImplGetText() ) in ImplWriteShape()
613 …if ( aPropOpt.CreateGraphicProperties( rObj.mXPropSet, String( RTL_CONSTASCII_USTRINGPARAM( "Graph… in ImplWriteShape()
620 if ( rObj.ImplGetText() ) in ImplWriteShape()
621 aPropOpt.CreateTextProperties( rObj.mXPropSet, in ImplWriteShape()
622 mpEscherEx->QueryTextID( rObj.GetShapeRef(), in ImplWriteShape()
623 rObj.GetShapeId() ), sal_False, sal_False ); in ImplWriteShape()
629 …if ( aPropOpt.CreateGraphicProperties( rObj.mXPropSet, String( RTL_CONSTASCII_USTRINGPARAM( "Graph… in ImplWriteShape()
634 else if ( rObj.GetType().EqualsAscii( "drawing.Text" )) in ImplWriteShape()
638 else if ( rObj.GetType().EqualsAscii( "drawing.Page" )) in ImplWriteShape()
648 else if ( rObj.GetType().EqualsAscii( "drawing.Frame" )) in ImplWriteShape()
652 else if ( rObj.GetType().EqualsAscii( "drawing.OLE2" )) in ImplWriteShape()
655 if( rObj.IsEmptyPresObj() && ( ePageType == NORMAL ) ) in ImplWriteShape()
658 sal_uInt32 nTxtBxId = mpEscherEx->QueryTextID( rObj.GetShapeRef(), in ImplWriteShape()
659 rObj.GetShapeId() ); in ImplWriteShape()
671 if ( aPropOpt.CreateOLEGraphicProperties( rObj.GetShapeRef() ) ) in ImplWriteShape()
689 else if( '3' == rObj.GetType().GetChar(8 ) && in ImplWriteShape()
690 'D' == rObj.GetType().GetChar( 9 ) ) // drawing.3D in ImplWriteShape()
693 if ( !rObj.ImplGetPropertyValue( ::rtl::OUString::createFromAscii("Bitmap") ) ) in ImplWriteShape()
699 …if ( aPropOpt.CreateGraphicProperties( rObj.mXPropSet, String( RTL_CONSTASCII_USTRINGPARAM( "Bitma… in ImplWriteShape()
702 else if ( rObj.GetType().EqualsAscii( "drawing.dontknow" )) in ImplWriteShape()
704 rObj.SetAngle( 0 ); in ImplWriteShape()
707 …if ( aPropOpt.CreateGraphicProperties( rObj.mXPropSet, String( RTL_CONSTASCII_USTRINGPARAM( "MetaF… in ImplWriteShape()
714 aPropOpt.CreateShadowProperties( rObj.mXPropSet ); in ImplWriteShape()
717 rObj.ImplGetPropertyValue( ::rtl::OUString::createFromAscii("LayerID") ) && in ImplWriteShape()
718 (*((sal_uInt16*)rObj.GetUsrAny().getValue()) ) == mpEscherEx->GetHellLayerId() ) in ImplWriteShape()
724 Rectangle aRect( rObj.GetRect() ); in ImplWriteShape()
726 rObj.SetRect( aRect ); in ImplWriteShape()
729 if( rObj.GetAngle() ) in ImplWriteShape()
730 ImplFlipBoundingBox( rObj, aPropOpt ); in ImplWriteShape()
732 aPropOpt.CreateShapeProperties( rObj.GetShapeRef() ); in ImplWriteShape()
733 mpEscherEx->Commit( aPropOpt, rObj.GetRect() ); in ImplWriteShape()
735 mpEscherEx->AddChildAnchor( rObj.GetRect() ); in ImplWriteShape()
739 mpHostAppData->WriteClientAnchor( *mpEscherEx, rObj.GetRect() ); in ImplWriteShape()
749 ImplWriteAdditionalText( rObj, aTextRefPoint ); in ImplWriteShape()
761 void ImplEESdrWriter::ImplWriteAdditionalText( ImplEESdrObject& rObj, in ImplWriteAdditionalText() argument
768 …mpHostAppData = mpEscherEx->StartShape( rObj.GetShapeRef(), (mpEscherEx->GetGroupLevel() > 1) ? &r… in ImplWriteAdditionalText()
772 const ::com::sun::star::awt::Size aSize100thmm( rObj.GetShapeRef()->getSize() ); in ImplWriteAdditionalText()
773 const ::com::sun::star::awt::Point aPoint100thmm( rObj.GetShapeRef()->getPosition() ); in ImplWriteAdditionalText()
778 rObj.SetAngle( rObj.ImplGetInt32PropertyValue( ::rtl::OUString::createFromAscii("RotateAngle"))); in ImplWriteAdditionalText()
779 sal_Int32 nAngle = rObj.GetAngle(); in ImplWriteAdditionalText()
780 if( rObj.GetType().EqualsAscii( "drawing.Line" )) in ImplWriteAdditionalText()
783 double fDist = hypot( rObj.GetRect().GetWidth(), in ImplWriteAdditionalText()
784 rObj.GetRect().GetHeight() ); in ImplWriteAdditionalText()
785 rObj.SetRect( Rectangle( rTextRefPoint, in ImplWriteAdditionalText()
790 if ( rObj.ImplGetText() ) in ImplWriteAdditionalText()
791 aPropOpt.CreateTextProperties( rObj.mXPropSet, in ImplWriteAdditionalText()
792 mpEscherEx->QueryTextID( rObj.GetShapeRef(), in ImplWriteAdditionalText()
793 rObj.GetShapeId() ) ); in ImplWriteAdditionalText()
801 ImplFlipBoundingBox( rObj, aPropOpt ); in ImplWriteAdditionalText()
808 if ( rObj.ImplGetText() ) in ImplWriteAdditionalText()
809 aPropOpt.CreateTextProperties( rObj.mXPropSet, in ImplWriteAdditionalText()
810 mpEscherEx->QueryTextID( rObj.GetShapeRef(), in ImplWriteAdditionalText()
811 rObj.GetShapeId() ) ); in ImplWriteAdditionalText()
825 rObj.GetRect() ); in ImplWriteAdditionalText()
827 rObj.GetRect() ); in ImplWriteAdditionalText()
829 rObj.SetAngle( nAngle ); in ImplWriteAdditionalText()
830 aPropOpt.CreateShapeProperties( rObj.GetShapeRef() ); in ImplWriteAdditionalText()
831 mpEscherEx->Commit( aPropOpt, rObj.GetRect() ); in ImplWriteAdditionalText()
834 mpEscherEx->AddChildAnchor( rObj.GetRect() ); in ImplWriteAdditionalText()
848 mpHostAppData->WriteClientAnchor( *mpEscherEx, rObj.GetRect() ); in ImplWriteAdditionalText()
1030 sal_uInt32 ImplEscherExSdr::ImplWriteTheShape( ImplEESdrObject& rObj ) in ImplWriteTheShape() argument
1033 return ImplWriteShape( rObj, *mpSolverContainer, NORMAL ); in ImplWriteTheShape()
1055 sal_uInt32 EscherEx::AddSdrObject( const SdrObject& rObj ) in AddSdrObject() argument
1057 ImplEESdrObject aObj( *mpImplEscherExSdr, rObj ); in AddSdrObject()
1124 const SdrObject& rObj ) : in ImplEESdrObject() argument
1132 SdrPage* pPage = rObj.GetPage(); in ImplEESdrObject()
1138 mXShape = uno::Reference< drawing::XShape >::query( ((SdrObject*)&rObj)->getUnoShape() );; in ImplEESdrObject()