fuconrec.cxx (79aad27f) | fuconrec.cxx (c7be74b1) |
---|---|
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 --- 577 unchanged lines hidden (view full) --- 586|* 587|* Linienanfaenge und -enden fuer das zu erzeugende Objekt setzen 588|* 589\************************************************************************/ 590 591::basegfx::B2DPolyPolygon getPolygon( sal_uInt16 nResId, SdrModel* pDoc ) 592{ 593 ::basegfx::B2DPolyPolygon aRetval; | 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 --- 577 unchanged lines hidden (view full) --- 586|* 587|* Linienanfaenge und -enden fuer das zu erzeugende Objekt setzen 588|* 589\************************************************************************/ 590 591::basegfx::B2DPolyPolygon getPolygon( sal_uInt16 nResId, SdrModel* pDoc ) 592{ 593 ::basegfx::B2DPolyPolygon aRetval; |
594 XLineEndList* pLineEndList = pDoc->GetLineEndList(); | 594 XLineEndListSharedPtr aLineEndList = pDoc->GetLineEndListFromSdrModel(); |
595 | 595 |
596 if( pLineEndList ) | 596 if( aLineEndList.get() ) |
597 { 598 String aArrowName( SVX_RES(nResId) ); | 597 { 598 String aArrowName( SVX_RES(nResId) ); |
599 long nCount = pLineEndList->Count(); | 599 long nCount = aLineEndList->Count(); |
600 long nIndex; 601 for( nIndex = 0L; nIndex < nCount; nIndex++ ) 602 { | 600 long nIndex; 601 for( nIndex = 0L; nIndex < nCount; nIndex++ ) 602 { |
603 XLineEndEntry* pEntry = pLineEndList->GetLineEnd(nIndex); | 603 XLineEndEntry* pEntry = aLineEndList->GetLineEnd(nIndex); |
604 if( pEntry->GetName() == aArrowName ) 605 { 606 aRetval = pEntry->GetLineEnd(); 607 break; 608 } 609 } 610 } 611 --- 409 unchanged lines hidden --- | 604 if( pEntry->GetName() == aArrowName ) 605 { 606 aRetval = pEntry->GetLineEnd(); 607 break; 608 } 609 } 610 } 611 --- 409 unchanged lines hidden --- |