20#include <com/sun/star/awt/XBitmap.hpp>
21#include <com/sun/star/embed/NoVisualAreaSizeException.hpp>
22#include <com/sun/star/container/XChild.hpp>
23#include <com/sun/star/drawing/BitmapMode.hpp>
24#include <com/sun/star/drawing/FillStyle.hpp>
25#include <com/sun/star/embed/EmbedStates.hpp>
26#include <com/sun/star/embed/Aspects.hpp>
27#include <com/sun/star/frame/XTitle.hpp>
28#include <com/sun/star/frame/XModel.hpp>
69#include <unoprnms.hxx>
70#include <unoevent.hxx>
71#include <com/sun/star/util/XModifyBroadcaster.hpp>
72#include <com/sun/star/text/TextContentAnchorType.hpp>
73#include <com/sun/star/text/WrapTextMode.hpp>
74#include <com/sun/star/beans/PropertyAttribute.hpp>
75#include <com/sun/star/drawing/PointSequenceSequence.hpp>
76#include <com/sun/star/drawing/PointSequence.hpp>
108#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
141using ::com::sun::star::frame::XModel;
142using ::com::sun::star::container::XNameAccess;
143using ::com::sun::star::style::XStyleFamiliesSupplier;
179 OSL_ENSURE(
false,
"OOps, target SfxItemSet *should* have a parent which contains XFILL_NONE as XFillStyleItem (!)");
186 const ::uno::Any* pAnchorType;
189 const ::uno::Any* pAnchorPgNo;
206 const bool bSvxBrushItemPropertiesUsed(
254 const bool bFillStyleUsed(pXFillStyleItem && pXFillStyleItem->
hasValue() &&
255 (pXFillStyleItem->get<drawing::FillStyle>() != drawing::FillStyle_SOLID || (!pGraphic || !pGraphicURL) ));
257 "sw.uno",
"FillBaseProperties: ignoring invalid FillStyle");
258 const bool bXFillStyleItemUsed(
261 pXFillGradientItem || pXFillGradientNameItem ||
262 pXFillHatchItem || pXFillHatchNameItem ||
263 pXFillBitmapItem || pXFillBitmapNameItem ||
264 pXFillTransparenceItem ||
265 pXGradientStepCountItem ||
267 pXFillBmpSizeXItem ||
268 pXFillBmpSizeYItem ||
269 pXFillFloatTransparenceItem || pXFillFloatTransparenceNameItem ||
270 pXSecondaryFillColorItem ||
271 pXFillBmpSizeLogItem ||
272 pXFillBmpTileOffsetXItem ||
273 pXFillBmpTileOffsetYItem ||
274 pXFillBmpPosOffsetXItem ||
275 pXFillBmpPosOffsetYItem ||
276 pXFillBackgroundItem ||
277 pOwnAttrFillBmpItem);
287 if(bSvxBrushItemPropertiesUsed && !bXFillStyleItemUsed)
311 if(!pColTrans ||
Any2Bool( *pTrans ))
343 if(bXFillStyleItemUsed)
346 std::unique_ptr<SvxBrushItem> aBrush(std::make_unique<SvxBrushItem>(
RES_BACKGROUND));
350 aXFillStyleItem.
PutValue(*pXFillStyleItem, 0);
351 rToSet.
Put(aXFillStyleItem);
359 aXFillColorItem.
PutValue(*pXFillColorItem, 0);
360 rToSet.
Put(aXFillColorItem);
365 else if (aXFillStyleItem.GetValue() == drawing::FillStyle_SOLID && (pCol || pRGBCol))
376 if(pXFillGradientItem || pXFillGradientNameItem)
378 if(pXFillGradientItem)
385 rToSet.
Put(aXFillGradientItem);
388 if(pXFillGradientNameItem)
392 if(!(*pXFillGradientNameItem >>= aTempName ))
394 throw lang::IllegalArgumentException();
399 if (aXFillStyleItem.GetValue() == drawing::FillStyle_GRADIENT)
406 "FillBaseProperties: ignoring invalid FillGradientName");
411 if(pXFillHatchItem || pXFillHatchNameItem)
416 const XHatch aNullHatch(aNullCol);
420 rToSet.
Put(aXFillHatchItem);
423 if(pXFillHatchNameItem)
427 if(!(*pXFillHatchNameItem >>= aTempName ))
429 throw lang::IllegalArgumentException();
436 if (pXFillBitmapItem || pXFillBitmapNameItem)
444 rToSet.
Put(aXFillBitmapItem);
447 if(pXFillBitmapNameItem)
451 if(!(*pXFillBitmapNameItem >>= aTempName ))
453 throw lang::IllegalArgumentException();
460 if (pXFillTransparenceItem)
463 aXFillTransparenceItem.PutValue(*pXFillTransparenceItem, 0);
464 rToSet.
Put(aXFillTransparenceItem);
466 else if (pColTrans &&
467 !pXFillFloatTransparenceItem && !pXFillFloatTransparenceNameItem)
475 *pColTrans >>= nGraphicTransparency;
476 if (aXFillStyleItem.GetValue() != drawing::FillStyle_BITMAP)
480 if (aXFillStyleItem.GetValue() == drawing::FillStyle_SOLID)
487 if(pXGradientStepCountItem)
491 aXGradientStepCountItem.PutValue(*pXGradientStepCountItem, 0);
492 rToSet.
Put(aXGradientStepCountItem);
499 aXFillBmpPosItem.PutValue(*pXFillBmpPosItem, 0);
500 rToSet.
Put(aXFillBmpPosItem);
503 if(pXFillBmpSizeXItem)
507 aXFillBmpSizeXItem.PutValue(*pXFillBmpSizeXItem, 0);
508 rToSet.
Put(aXFillBmpSizeXItem);
511 if(pXFillBmpSizeYItem)
515 aXFillBmpSizeYItem.PutValue(*pXFillBmpSizeYItem, 0);
516 rToSet.
Put(aXFillBmpSizeYItem);
519 if(pXFillFloatTransparenceItem || pXFillFloatTransparenceNameItem)
521 if(pXFillFloatTransparenceItem)
528 rToSet.
Put(aXFillFloatTransparenceItem);
531 if(pXFillFloatTransparenceNameItem)
535 if(!(*pXFillFloatTransparenceNameItem >>= aTempName ))
537 throw lang::IllegalArgumentException();
544 if(pXSecondaryFillColorItem)
549 aXSecondaryFillColorItem.
PutValue(*pXSecondaryFillColorItem, 0);
550 rToSet.
Put(aXSecondaryFillColorItem);
553 if(pXFillBmpSizeLogItem)
557 aXFillBmpSizeLogItem.PutValue(*pXFillBmpSizeLogItem, 0);
558 rToSet.
Put(aXFillBmpSizeLogItem);
561 if(pXFillBmpTileOffsetXItem)
565 aXFillBmpTileOffsetXItem.PutValue(*pXFillBmpTileOffsetXItem, 0);
566 rToSet.
Put(aXFillBmpTileOffsetXItem);
569 if(pXFillBmpTileOffsetYItem)
573 aXFillBmpTileOffsetYItem.PutValue(*pXFillBmpTileOffsetYItem, 0);
574 rToSet.
Put(aXFillBmpTileOffsetYItem);
577 if(pXFillBmpPosOffsetXItem)
581 aXFillBmpPosOffsetXItem.PutValue(*pXFillBmpPosOffsetXItem, 0);
582 rToSet.
Put(aXFillBmpPosOffsetXItem);
585 if(pXFillBmpPosOffsetYItem)
589 aXFillBmpPosOffsetYItem.PutValue(*pXFillBmpPosOffsetYItem, 0);
590 rToSet.
Put(aXFillBmpPosOffsetYItem);
593 if(pXFillBackgroundItem)
597 aXFillBackgroundItem.PutValue(*pXFillBackgroundItem, 0);
598 rToSet.
Put(aXFillBackgroundItem);
601 if(pOwnAttrFillBmpItem)
603 drawing::BitmapMode
eMode;
605 if(!(*pOwnAttrFillBmpItem >>=
eMode))
609 if(!(*pOwnAttrFillBmpItem >>= nMode))
611 throw lang::IllegalArgumentException();
614 eMode =
static_cast<drawing::BitmapMode
>(nMode);
622 const ::uno::Any* pCont =
nullptr;
624 const ::uno::Any* pPos =
nullptr;
626 const ::uno::Any*
pName =
nullptr;
628 if(pCont||pPos||
pName)
641 const ::uno::Any* pHori =
nullptr;
643 const ::uno::Any* pHoriP =
nullptr;
645 const ::uno::Any* pHoriR =
nullptr;
647 const ::uno::Any* pPageT =
nullptr;
649 if(pHori||pHoriP||pHoriR||pPageT)
665 const ::uno::Any* pVert =
nullptr;
667 const ::uno::Any* pVertP =
nullptr;
669 const ::uno::Any* pVertR =
nullptr;
671 if(pVert||pVertP||pVertR)
684 const ::uno::Any* pURL =
nullptr;
686 const ::uno::Any* pTarget =
nullptr;
688 const ::uno::Any* pHyLNm =
nullptr;
690 const ::uno::Any* pHySMp =
nullptr;
692 if(pURL||pTarget||pHyLNm||pHySMp)
706 const ::uno::Any* pL =
nullptr;
708 const ::uno::Any* pR =
nullptr;
719 const ::uno::Any* pT =
nullptr;
721 const ::uno::Any* pB =
nullptr;
732 const ::uno::Any* pOp;
736 bRet &=
static_cast<SfxPoolItem&
>(aOp).PutValue(*pOp, 0);
739 const ::uno::Any* pPrt;
743 bRet &=
static_cast<SfxPoolItem&
>(aPrt).PutValue(*pPrt, 0);
746 const ::uno::Any* pSh;
753 const ::uno::Any* pShTr;
760 const ::uno::Any* pSur =
nullptr;
762 const ::uno::Any* pSurCont =
nullptr;
764 const ::uno::Any* pSurAnch =
nullptr;
777 const ::uno::Any* pLeft =
nullptr;
779 const ::uno::Any* pRight =
nullptr;
781 const ::uno::Any* pTop =
nullptr;
783 const ::uno::Any* pBottom =
nullptr;
785 const ::uno::Any* pDistance =
nullptr;
787 const ::uno::Any* pLeftDistance =
nullptr;
789 const ::uno::Any* pRightDistance =
nullptr;
791 const ::uno::Any* pTopDistance =
nullptr;
793 const ::uno::Any* pBottomDistance =
nullptr;
795 const ::uno::Any* pLineStyle =
nullptr;
797 const ::uno::Any* pLineWidth =
nullptr;
799 if( pLeft || pRight || pTop || pBottom || pDistance ||
800 pLeftDistance || pRightDistance || pTopDistance || pBottomDistance ||
801 pLineStyle || pLineWidth )
820 if( pBottomDistance )
829 const ::uno::Any* pRelH =
nullptr;
831 const ::uno::Any* pRelHRelation =
nullptr;
833 const ::uno::Any* pRelW =
nullptr;
835 const ::uno::Any* pRelWRelation =
nullptr;
837 const ::uno::Any* pSyncWidth =
nullptr;
839 const ::uno::Any* pSyncHeight =
nullptr;
841 const ::uno::Any* pWidth =
nullptr;
843 const ::uno::Any* pHeight =
nullptr;
845 const ::uno::Any* pSize =
nullptr;
847 const ::uno::Any* pSizeType =
nullptr;
849 const ::uno::Any* pWidthType =
nullptr;
851 if( pWidth || pHeight ||pRelH || pRelHRelation || pRelW || pRelWRelation || pSize ||pSizeType ||
852 pWidthType ||pSyncWidth || pSyncHeight )
882 rToSet.
Put(aFrameSz);
890 aSize.Width = constTwips_1cm;
891 aSize.Height = constTwips_1cm;
895 rToSet.
Put(aFrameSz);
898 const ::uno::Any* pFrameDirection =
nullptr;
903 aAttr.
PutValue(*pFrameDirection, 0);
906 const ::uno::Any* pUnknown =
nullptr;
916 const ::uno::Any* pFollowTextFlow =
nullptr;
922 if( pFollowTextFlow )
927 rToSet.
Put(aFormatFollowTextFlow);
931 const ::uno::Any* pWrapInfluenceOnObjPos =
nullptr;
933 const ::uno::Any* pAllowOverlap =
nullptr;
935 if ( pWrapInfluenceOnObjPos || pAllowOverlap )
938 if (pWrapInfluenceOnObjPos)
942 rToSet.
Put(aFormatWrapInfluenceOnObjPos);
946 const ::uno::Any* pTextVertAdjust =
nullptr;
948 if ( pTextVertAdjust )
951 bRet &=
static_cast<SfxPoolItem&
>(aTextVertAdjust).PutValue(*pTextVertAdjust, 0);
952 rToSet.
Put(aTextVertAdjust);
956 const ::uno::Any* pDecorative =
nullptr;
961 bRet &= item.
PutValue(*pDecorative, 0);
965 const ::uno::Any* pFlySplit =
nullptr;
970 bRet &= aSplit.
PutValue(*pFlySplit, 0);
982 SwFrameProperties_Impl();
989SwFrameProperties_Impl::SwFrameProperties_Impl():
1007 const ::uno::Any *pStyleName;
1014 *pStyleName >>= sStyle;
1017 SfxStyleFamily::Frame));
1020 const ::uno::Any* pColumns =
nullptr;
1025 const ::SfxItemSet *pItemSet = &xStyle->GetItemSet();
1026 bRet = FillBaseProperties( rSet, *pItemSet, rSizeFound );
1032 bRet = FillBaseProperties( rSet, *pItemSet, rSizeFound );
1035 const ::uno::Any* pEdit;
1039 item.PutValue(*pEdit, 0);
1050 SwGraphicProperties_Impl();
1057SwGraphicProperties_Impl::SwGraphicProperties_Impl( ) :
1062static void lcl_FillMirror (
SfxItemSet &rToSet, const ::SfxItemSet &rFromSet, const ::uno::Any *pHEvenMirror, const ::uno::Any *pHOddMirror, const ::uno::Any *pVMirror,
bool &rRet )
1064 if(pHEvenMirror || pHOddMirror || pVMirror )
1073 rToSet.
Put(aMirror);
1077bool SwGraphicProperties_Impl::AnyToItemSet(
1085 const ::uno::Any *pStyleName;
1091 *pStyleName >>= sStyle;
1094 SfxStyleFamily::Frame));
1097 const ::uno::Any* pHEvenMirror =
nullptr;
1098 const ::uno::Any* pHOddMirror =
nullptr;
1099 const ::uno::Any* pVMirror =
nullptr;
1107 const ::SfxItemSet *pItemSet = &xStyle->GetItemSet();
1108 bRet = FillBaseProperties(rFrameSet, *pItemSet, rSizeFound);
1109 lcl_FillMirror ( rGrSet, *pItemSet, pHEvenMirror, pHOddMirror, pVMirror, bRet );
1114 bRet = FillBaseProperties(rFrameSet, *pItemSet, rSizeFound);
1115 lcl_FillMirror ( rGrSet, *pItemSet, pHEvenMirror, pHOddMirror, pVMirror, bRet );
1118 static const ::sal_uInt16 nIDs[] =
1133 const ::uno::Any* pAny;
1140 bRet &= pItem->PutValue(*pAny, nMId );
1141 rGrSet.
Put(std::move(pItem));
1150class SwOLEProperties_Impl :
public SwFrameProperties_Impl
1153 SwOLEProperties_Impl() {}
1160bool SwOLEProperties_Impl::AnyToItemSet(
1163 const ::uno::Any* pTemp;
1169 SwFrameProperties_Impl::AnyToItemSet( pDoc, rFrameSet, rSet, rSizeFound);
1182OUString SwXFrame::getImplementationName()
1187sal_Bool SwXFrame::supportsService(
const OUString& rServiceName)
1192uno::Sequence< OUString > SwXFrame::getSupportedServiceNames()
1194 return {
"com.sun.star.text.BaseFrame",
"com.sun.star.text.TextContent",
"com.sun.star.document.LinkTarget" };
1197SwXFrame::SwXFrame(
FlyCntType eSet, const ::SfxItemPropertySet* pSet,
SwDoc *pDoc)
1199 , m_pFrameFormat(nullptr)
1203 , m_bIsDescriptor(true)
1204 , m_nDrawAspect(embed::Aspects::MSOLE_CONTENT)
1205 , m_nVisibleAreaWidth(0)
1206 , m_nVisibleAreaHeight(0)
1214 uno::Reference < XStyleFamiliesSupplier > xFamilySupplier ( xModel, uno::UNO_QUERY );
1216 uno::Reference < XNameAccess > xFamilies = xFamilySupplier->getStyleFamilies();
1218 const ::uno::Any aAny = xFamilies->getByName (
"FrameStyles");
1219 aAny >>= mxStyleFamily;
1226 uno::Any aAny2 = mxStyleFamily->getByName (
"Frame");
1227 aAny2 >>= mxStyleData;
1228 m_pProps.reset(
new SwFrameProperties_Impl);
1233 uno::Any aAny2 = mxStyleFamily->getByName (
"Graphics");
1234 aAny2 >>= mxStyleData;
1235 m_pProps.reset(
new SwGraphicProperties_Impl);
1240 uno::Any aAny2 = mxStyleFamily->getByName (
"OLE");
1241 aAny2 >>= mxStyleData;
1242 m_pProps.reset(
new SwOLEProperties_Impl);
1254 , m_pFrameFormat(&rFrameFormat)
1258 , m_bIsDescriptor(false)
1259 , m_nDrawAspect(embed::Aspects::MSOLE_CONTENT)
1260 , m_nVisibleAreaWidth(0)
1261 , m_nVisibleAreaHeight(0)
1266SwXFrame::~SwXFrame()
1273template<
class NameLookupIsHard>
1277 assert(!pFrameFormat || &rDoc == pFrameFormat->
GetDoc());
1281 xFrame =
dynamic_cast<NameLookupIsHard*
>(pFrameFormat->
GetXObject().get().get());
1286 ?
new NameLookupIsHard(*pFrameFormat)
1287 : new NameLookupIsHard(&rDoc);
1293 xFrame->SwXFrame::m_pImpl->m_wThis = uno::Reference<XWeak>(
xFrame.get());
1298OUString SwXFrame::getName()
1304 if(!m_bIsDescriptor)
1305 throw uno::RuntimeException();
1309void SwXFrame::setName(
const OUString& rName)
1316 if(pFormat->
GetName() != rName)
1318 throw uno::RuntimeException(
"SwXFrame::setName(): Illegal object name. Duplicate name?");
1321 else if(m_bIsDescriptor)
1324 throw uno::RuntimeException();
1327uno::Reference< beans::XPropertySetInfo > SwXFrame::getPropertySetInfo()
1329 uno::Reference< beans::XPropertySetInfo > xRef;
1330 static uno::Reference< beans::XPropertySetInfo > xFrameRef;
1331 static uno::Reference< beans::XPropertySetInfo > xGrfRef;
1332 static uno::Reference< beans::XPropertySetInfo > xOLERef;
1336 if( !xFrameRef.is() )
1337 xFrameRef = m_pPropSet->getPropertySetInfo();
1342 xGrfRef = m_pPropSet->getPropertySetInfo();
1347 xOLERef = m_pPropSet->getPropertySetInfo();
1364 pObject = pContactObject->GetMaster();
1366 const ::SwFormatSurround& rSurround = rFormat.
GetSurround();
1368 ( css::text::WrapTextMode_THROUGH == rSurround.GetSurround() &&
1391 SfxStyleFamily::Frame));
1399void SwXFrame::setPropertyValue(
const OUString& rPropertyName, const ::uno::Any& _rValue)
1403 if (!pFormat && !IsDescriptor())
1404 throw uno::RuntimeException();
1407 if(rPropertyName ==
"FRMDirection")
1413 aItem.PutValue(_rValue, 0);
1418 m_pProps->SetProperty(o3tl::narrowing<sal_uInt16>(
RES_FRAMEDIR), 0, _rValue);
1423 const ::SfxItemPropertyMapEntry* pEntry = m_pPropSet->getPropertyMap().getByName(rPropertyName);
1428 if (rPropertyName !=
"CursorNotIgnoreTables")
1429 throw beans::UnknownPropertyException(
"Unknown property: " + rPropertyName,
static_cast <cppu::OWeakObject*
> (
this));
1433 const sal_uInt8 nMemberId(pEntry->nMemberId);
1437 if(pEntry->nMoreFlags & PropertyMoreFlags::METRIC_ITEM)
1441 if(XATTR_FILLBMP_SIZEX == pEntry->nWID || XATTR_FILLBMP_SIZEY == pEntry->nWID)
1447 if(aValue >>= nValue)
1455 const SwDoc* pDoc = (IsDescriptor() ? m_pDoc : pFormat->
GetDoc());
1459 if(eMapUnit != MapUnit::Map100thMM)
1468 bool bNextFrame =
false;
1469 if ( pEntry->nFlags & beans::PropertyAttribute::READONLY)
1470 throw beans::PropertyVetoException(
"Property is read-only: " + rPropertyName,
static_cast < cppu::OWeakObject *
> (
this ) );
1485 drawing::PointSequenceSequence aParam;
1486 if(!aValue.hasValue())
1488 else if(aValue >>= aParam)
1491 for(const ::drawing::PointSequence& rPointSeq : std::as_const(aParam))
1493 sal_Int32 nPoints = rPointSeq.getLength();
1494 const ::awt::Point* pPoints = rPointSeq.getConstArray();
1496 for(sal_Int32 j = 0; j < nPoints; j++)
1498 Point aPoint(pPoints[j].X, pPoints[j].Y);
1499 aSet.SetPoint(aPoint, o3tl::narrowing<sal_uInt16>(j));
1502 aSet.Optimize( PolyOptimizeFlags::CLOSE );
1503 aPoly.Insert( aSet );
1508 throw lang::IllegalArgumentException();
1521 throw lang::IllegalArgumentException();
1529 m_pPropSet->setPropertyValue(*pEntry, aValue, aSet);
1541 GetOrCreateSdrObject(rFlyFormat);
1548 aValue >>= sTooltip;
1555 OUString sDescription;
1556 aValue >>= sDescription;
1558 GetOrCreateSdrObject(rFlyFormat);
1565 throw lang::IllegalArgumentException();
1569 std::optional<SfxItemSet> pSet;
1577 if (
auto pFlyFrameFormat =
dynamic_cast<const SwFlyFrameFormat*
>(pFormat) )
1578 pFly = pFlyFrameFormat->GetFrame();
1584 pSet->Put( *pItem );
1601 aValue >>= sFltName;
1610 throw uno::RuntimeException();
1612 SwPaM aGrfPaM(*pGrfNode);
1619 if (aValue.has<OUString>())
1621 OUString
aURL = aValue.get<OUString>();
1622 if (!
aURL.isEmpty())
1627 else if (aValue.has<uno::Reference<graphic::XGraphic>>())
1629 uno::Reference<graphic::XGraphic> xGraphic = aValue.get<uno::Reference<graphic::XGraphic>>();
1645 throw uno::RuntimeException();
1647 SwPaM aGrfPaM(*pGrfNode);
1655 if (aValue.has<OUString>())
1657 OUString
aURL = aValue.get<OUString>();
1658 if (!
aURL.isEmpty())
1663 else if (aValue.has<uno::Reference<graphic::XGraphic>>())
1665 uno::Reference<graphic::XGraphic> xGraphic = aValue.get<uno::Reference<graphic::XGraphic>>();
1674 const ::SwFormatContent* pCnt = &pFormat->
GetContent();
1675 if ( pCnt->GetContentIdx() && pDoc->
GetNodes()[ pCnt->GetContentIdx()->GetIndex() + 1 ] )
1677 SwOLENode* pOleNode = pDoc->
GetNodes()[ pCnt->GetContentIdx()->GetIndex() + 1 ]->GetOLENode();
1682 rEmbeddedObject.
SetGraphic(aGraphic, OUString() );
1690 OUString sChainName;
1691 aValue >>= sChainName;
1692 if (sChainName.isEmpty())
1709 for(
size_t i = 0;
i <
nCount; ++
i )
1712 if(sChainName == pFormat2->
GetName() )
1722 pDoc->
Chain(*pSource, *pDest);
1728 sal_Int32 nZOrder = - 1;
1738 SetObjectOrdNum(
pObject->GetOrdNum(), nZOrder);
1744 uno::Reference<text::XTextFrame>
xFrame;
1745 if(aValue >>= xFrame)
1747 SwXFrame* pFrame =
dynamic_cast<SwXFrame*
>(
xFrame.get());
1748 if(pFrame &&
this != pFrame && pFrame->GetFrameFormat() && pFrame->GetFrameFormat()->GetDoc() == pDoc)
1754 SwPosition aPos(*pFrame->GetFrameFormat()->GetContent().GetContentIdx());
1756 aAnchor.
SetType(RndStdIds::FLY_AT_FLY);
1763 throw lang::IllegalArgumentException();
1784 std::unique_ptr<SvxBrushItem> aChangedBrushItem(aOriginalBrushItem->Clone());
1786 aChangedBrushItem->PutValue(aValue, nMemberId);
1788 if(*aChangedBrushItem != *aOriginalBrushItem)
1798 drawing::BitmapMode
eMode;
1800 if(!(aValue >>= eMode))
1802 sal_Int32 nMode = 0;
1804 if(!(aValue >>= nMode))
1806 throw lang::IllegalArgumentException();
1809 eMode =
static_cast<drawing::BitmapMode
>(nMode);
1824 switch(pEntry->nWID)
1833 if(!(aValue >>= aTempName ))
1835 throw lang::IllegalArgumentException();
1850 switch(pEntry->nWID)
1857 aXFillBitmapItem.PutValue(aValue, nMemberId);
1858 aSet.Put(aXFillBitmapItem);
1877 m_pPropSet->setPropertyValue(*pEntry, aValue, aSet);
1883 if(aAnchor.
GetAnchorId() == RndStdIds::FLY_AT_FLY)
1886 SwFrameFormat* pFlyFormat = pAnchorNode ? pAnchorNode->GetFlyFormat() :
nullptr;
1889 lang::IllegalArgumentException aExcept;
1890 aExcept.Message =
"Anchor to frame: no frame found";
1901 else if ((aAnchor.
GetAnchorId() != RndStdIds::FLY_AT_PAGE) &&
1919 pFly = pFrameFormat->GetFrame();
1937 throw lang::IllegalArgumentException();
1948 m_pProps->SetProperty(pEntry->nWID, nMemberId, aValue);
1951 OUString sStyleName;
1952 aValue >>= sStyleName;
1955 uno::Any aAny = mxStyleFamily->getByName ( sStyleName );
1956 aAny >>= mxStyleData;
1958 catch ( container::NoSuchElementException
const & )
1961 catch ( lang::WrappedTargetException
const & )
1964 catch ( uno::RuntimeException
const & )
1970 OUString sAspect =
"";
1973 if (sAspect ==
"Icon")
1974 m_nDrawAspect = embed::Aspects::MSOLE_ICON;
1975 else if (sAspect ==
"Content")
1976 m_nDrawAspect = embed::Aspects::MSOLE_CONTENT;
1980 OUString sAspect =
"";
1982 m_nVisibleAreaWidth = sAspect.toInt64();
1986 OUString sAspect =
"";
1988 m_nVisibleAreaHeight = sAspect.toInt64();
1996class DisplayLockGuard
2011uno::Any SwXFrame::getPropertyValue(
const OUString& rPropertyName)
2014 DisplayLockGuard aDisplayGuard;
2019 throw beans::UnknownPropertyException(
"Unknown property: " + rPropertyName,
static_cast < cppu::OWeakObject *
> (
this ) );
2025 uno::Sequence<text::TextContentAnchorType>
aTypes
2027 text::TextContentAnchorType_AT_PARAGRAPH,
2028 text::TextContentAnchorType_AS_CHARACTER,
2029 text::TextContentAnchorType_AT_PAGE,
2030 text::TextContentAnchorType_AT_FRAME,
2031 text::TextContentAnchorType_AT_CHARACTER
2053 drawing::PointSequenceSequence aPtSeq(aContour.
Count());
2054 drawing::PointSequence* pPSeq = aPtSeq.getArray();
2055 for(sal_uInt16 i = 0;
i < aContour.
Count();
i++)
2059 awt::Point* pPoints = pPSeq[
i].getArray();
2060 for(sal_uInt16 j = 0; j < rPoly.
GetSize(); j++)
2063 pPoints[j].
X = rPoint.
X();
2064 pPoints[j].Y = rPoint.
Y();
2081 m_pPropSet->getPropertyValue(*pEntry, aSet, aAny);
2088 uno::Reference<graphic::XGraphic> xGraphic;
2095 throw uno::RuntimeException();
2114 throw uno::RuntimeException(
"Getting from this property is not supported");
2124 throw uno::RuntimeException();
2137 throw uno::RuntimeException();
2144 SwFrame* pCurrFrame = pEditShell->GetCurrFrame(
false);
2149 awt::Size aFrameSize = getSize();
2150 Size aSize100thmm(aFrameSize.Width, aFrameSize.Height);
2155 double fX =
static_cast<double>(aSize.
getWidth()) / 1280;
2156 double fY =
static_cast<double>(aSize.
getHeight()) / 720;
2157 double fFactor = fX > fY ? fX : fY;
2180 GetOrCreateSdrObject(rFlyFormat);
2193 GetOrCreateSdrObject(rFlyFormat);
2203 Size aActSize = aIdx.GetNode().GetNoTextNode()->GetTwipSize();
2217 if( pObj ==
nullptr )
2221 aAny <<= static_cast<sal_Int32>(pObj->
GetOrdNum());
2232 GetIndex() + 1 ]->GetOLENode(),
"no OLE-Node?");
2240 aHexCLSID = aClassName.GetHexName();
2245 uno::Reference < lang::XComponent > xComp( xIP->getComponent(), uno::UNO_QUERY );
2246 uno::Reference < frame::XModel >
xModel( xComp, uno::UNO_QUERY );
2250 OSL_ENSURE( pDoc->
GetDocShell(),
"no doc shell => no client site" );
2278 pEditShell->CalcLayout();
2288 aAny <<= awt::Size( aMM100Size.
Width(), aMM100Size.
Height() );
2293 if (!m_xParentText.is())
2301 aAny <<= m_xParentText;
2314 if(!aOriginalBrushItem->QueryValue(aAny, nMemberId))
2316 OSL_ENSURE(
false,
"Error getting attribute from RES_BACKGROUND (!)");
2323 if (
rSet.
Get(XATTR_FILLBMP_TILE).GetValue())
2325 aAny <<= drawing::BitmapMode_REPEAT;
2327 else if (
rSet.
Get(XATTR_FILLBMP_STRETCH).GetValue())
2329 aAny <<= drawing::BitmapMode_STRETCH;
2333 aAny <<= drawing::BitmapMode_NO_REPEAT;
2341 m_pPropSet->getPropertyValue(*pEntry, rSet, aAny);
2345 else if(IsDescriptor())
2348 throw uno::RuntimeException();
2352 if (!m_pProps->GetProperty(pEntry->
nWID, nMemberId, pAny))
2353 aAny = mxStyleData->getPropertyValue( rPropertyName );
2359 throw uno::RuntimeException();
2366 aAny <<= static_cast<sal_Int16>(nValue);
2370 if(pEntry->
nMoreFlags & PropertyMoreFlags::METRIC_ITEM)
2374 if(XATTR_FILLBMP_SIZEX == pEntry->
nWID || XATTR_FILLBMP_SIZEY == pEntry->
nWID)
2388 const SwDoc* pDoc = (IsDescriptor() ? m_pDoc : GetFrameFormat()->GetDoc());
2392 if(eMapUnit != MapUnit::Map100thMM)
2402void SwXFrame::addPropertyChangeListener(
const OUString& ,
2403 const uno::Reference< beans::XPropertyChangeListener > & )
2405 OSL_FAIL(
"not implemented");
2408void SwXFrame::removePropertyChangeListener(
const OUString& ,
2409 const uno::Reference< beans::XPropertyChangeListener > & )
2411 OSL_FAIL(
"not implemented");
2414void SwXFrame::addVetoableChangeListener(
const OUString& ,
2415 const uno::Reference< beans::XVetoableChangeListener > & )
2417 OSL_FAIL(
"not implemented");
2420void SwXFrame::removeVetoableChangeListener(
2421 const OUString& ,
const uno::Reference< beans::XVetoableChangeListener > & )
2423 OSL_FAIL(
"not implemented");
2426beans::PropertyState SwXFrame::getPropertyState(
const OUString& rPropertyName )
2429 uno::Sequence< OUString > aPropertyNames { rPropertyName };
2430 uno::Sequence< beans::PropertyState > aStates = getPropertyStates(aPropertyNames);
2431 return aStates.getConstArray()[0];
2434uno::Sequence< beans::PropertyState > SwXFrame::getPropertyStates(
2435 const uno::Sequence< OUString >& aPropertyNames )
2438 uno::Sequence< beans::PropertyState > aStates(aPropertyNames.getLength());
2439 auto [pStates,
end] = asNonConstRange(aStates);
2443 const OUString* pNames = aPropertyNames.getConstArray();
2445 for(
int i = 0;
i < aPropertyNames.getLength();
i++)
2449 throw beans::UnknownPropertyException(
"Unknown property: " + pNames[i],
static_cast < cppu::OWeakObject *
> (
this ) );
2460 pStates[
i] = beans::PropertyState_DIRECT_VALUE;
2464 if(SfxItemState::SET == rFormatSet.
GetItemState(XATTR_FILLBMP_STRETCH,
false)
2465 || SfxItemState::SET == rFormatSet.
GetItemState(XATTR_FILLBMP_TILE,
false))
2467 pStates[
i] = beans::PropertyState_DIRECT_VALUE;
2471 pStates[
i] = beans::PropertyState_AMBIGUOUS_VALUE;
2481 pStates[
i] = beans::PropertyState_DIRECT_VALUE;
2483 pStates[
i] = beans::PropertyState_DEFAULT_VALUE;
2495 aSet.GetItemState(pEntry->
nWID);
2496 if(SfxItemState::SET == aSet.GetItemState( pEntry->
nWID,
false ))
2497 pStates[
i] = beans::PropertyState_DIRECT_VALUE;
2503 pStates[
i] = beans::PropertyState_DIRECT_VALUE;
2505 pStates[
i] = beans::PropertyState_DEFAULT_VALUE;
2510 else if(IsDescriptor())
2512 std::fill(pStates, end, beans::PropertyState_DIRECT_VALUE);
2515 throw uno::RuntimeException();
2519void SwXFrame::setPropertyToDefault(
const OUString& rPropertyName )
2527 throw beans::UnknownPropertyException(
"Unknown property: " + rPropertyName,
static_cast < cppu::OWeakObject *
> (
this ) );
2528 if ( pEntry->
nFlags & beans::PropertyAttribute::READONLY)
2529 throw uno::RuntimeException(
"setPropertyToDefault: property is read-only: " + rPropertyName,
static_cast < cppu::OWeakObject *
> (
this ) );
2537 aSet.ClearItem(XATTR_FILLBMP_STRETCH);
2538 aSet.ClearItem(XATTR_FILLBMP_TILE);
2543 else if( pEntry->
nWID &&
2556 aSet.ClearItem(pEntry->
nWID);
2566 GetOrCreateSdrObject(rFlyFormat);
2574 GetOrCreateSdrObject(rFlyFormat);
2582 aSet.ClearItem(pEntry->
nWID);
2605 else if(!IsDescriptor())
2606 throw uno::RuntimeException();
2610uno::Any SwXFrame::getPropertyDefault(
const OUString& rPropertyName )
2619 throw beans::UnknownPropertyException(
"Unknown property: " + rPropertyName,
static_cast < cppu::OWeakObject *
> (
this ) );
2629 else if(!IsDescriptor())
2630 throw uno::RuntimeException();
2634void SAL_CALL SwXFrame::addEventListener(
2635 const uno::Reference<lang::XEventListener> & xListener)
2637 std::unique_lock aGuard(
m_pImpl->m_Mutex);
2638 m_pImpl->m_EventListeners.addInterface(aGuard, xListener);
2641void SAL_CALL SwXFrame::removeEventListener(
2642 const uno::Reference<lang::XEventListener> & xListener)
2644 std::unique_lock aGuard(
m_pImpl->m_Mutex);
2645 m_pImpl->m_EventListeners.removeInterface(aGuard, xListener);
2648void SwXFrame::DisposeInternal()
2650 mxStyleData.clear();
2651 mxStyleFamily.clear();
2653 uno::Reference<uno::XInterface>
const xThis(
m_pImpl->m_wThis);
2659 lang::EventObject
const ev(xThis);
2660 std::unique_lock aGuard(
m_pImpl->m_Mutex);
2661 m_pImpl->m_EventListeners.disposeAndClear(aGuard, ev);
2663 m_pFrameFormat =
nullptr;
2668 if(rHint.
GetId() == SfxHintId::Dying)
2690 if (rFormatAnchor.
GetAnchorId() == RndStdIds::FLY_AS_CHAR)
2702uno::Reference< text::XTextRange > SwXFrame::getAnchor()
2708 throw uno::RuntimeException();
2713 if ((rAnchor.
GetAnchorId() != RndStdIds::FLY_AT_PAGE) ||
2716 if (rAnchor.
GetAnchorId() == RndStdIds::FLY_AT_PARA)
2729void SwXFrame::ResetDescriptor()
2731 m_bIsDescriptor =
false;
2732 mxStyleData.clear();
2733 mxStyleFamily.clear();
2737void SwXFrame::attachToRange(uno::Reference<text::XTextRange>
const& xTextRange,
2738 SwPaM const*
const pCopySource)
2742 throw uno::RuntimeException();
2744 OTextCursorHelper* pCursor =
dynamic_cast<OTextCursorHelper*
>(xTextRange.get());
2746 SwDoc* pDoc = pRange ? &pRange->
GetDoc() : pCursor ? pCursor->GetDoc() :
nullptr;
2748 throw lang::IllegalArgumentException();
2767 SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER>
2775 if (!m_pProps->AnyToItemSet(pDoc, aFrameSet, aGrSet, bSizeFound))
2776 throw lang::IllegalArgumentException();
2778 *aPam.GetPoint() = *aIntPam.GetPoint();
2779 if(aIntPam.HasMark())
2782 *aPam.GetMark() = *aIntPam.GetMark();
2785 RndStdIds eAnchorId = RndStdIds::FLY_AT_PARA;
2788 eAnchorId = pItem->GetAnchorId();
2789 if( RndStdIds::FLY_AT_FLY == eAnchorId &&
2790 !aPam.GetPointNode().FindFlyStartNode())
2794 aFrameSet.Put(aAnchor);
2796 else if ((RndStdIds::FLY_AT_PAGE == eAnchorId) &&
2797 0 == pItem->GetPageNum() )
2800 aAnchor.
SetType(RndStdIds::FLY_AT_CHAR);
2802 aFrameSet.Put(aAnchor);
2805 if (eAnchorId == RndStdIds::FLY_AT_PAGE)
2807 sal_Int16 nRelOrient(aFrameSet.Get(
RES_HORI_ORIENT).GetRelationOrient());
2810 SAL_WARN(
"sw.core",
"SwXFrame: fixing invalid horizontal RelOrientation for at-page anchor");
2813 item.SetRelationOrient(nRelOrient);
2814 aFrameSet.Put(item);
2819 const ::uno::Any* pStyle;
2830 std::unique_ptr<SwFormatAnchor> pAnchorItem;
2833 if (eAnchorId != RndStdIds::FLY_AT_PAGE)
2835 pAnchorItem.reset(aFrameSet.Get(
RES_ANCHOR).Clone());
2843 aIntPam.DeleteMark();
2845 *aPam.GetPoint() = *aIntPam.GetPoint();
2849 pParentFrameFormat );
2850 if(pAnchorItem && pFormat)
2853 pAnchorItem->SetAnchor( pCopySource->
Start() );
2855 aAnchorSet.Put( std::move(pAnchorItem) );
2861 pFormat = pDoc->
MakeFlySection( RndStdIds::FLY_AT_PARA, aPam.GetPoint(),
2862 &aFrameSet, pParentFrameFormat );
2867 m_pFrameFormat = pFormat;
2873 static_cast<SwXTextFrame*
>(
this)->SetDoc( m_bIsDescriptor ? m_pDoc : GetFrameFormat()->GetDoc() );
2881 const ::uno::Any* pGraphicURL;
2884 OUString sGraphicURL;
2885 uno::Reference<awt::XBitmap> xBitmap;
2886 if (((*pGraphicURL) >>= sGraphicURL) && !sGraphicURL.isEmpty())
2888 else if ((*pGraphicURL) >>= xBitmap)
2890 uno::Reference<graphic::XGraphic> xGraphic(xBitmap, uno::UNO_QUERY);
2892 aGraphic = xGraphic;
2896 const ::uno::Any* pGraphicAny;
2897 const bool bHasGraphic = m_pProps->GetProperty(
FN_UNO_GRAPHIC, 0, pGraphicAny);
2900 uno::Reference<graphic::XGraphic> xGraphic;
2901 (*pGraphicAny) >>= xGraphic;
2905 OUString sFilterName;
2909 (*pFilterAny) >>= sFilterName;
2913 aPam, OUString(), sFilterName, &aGraphic, &aFrameSet, &aGrSet, pParentFrameFormat);
2920 m_pFrameFormat = pFormat;
2927 const ::uno::Any* pSurroundContour;
2930 const ::uno::Any* pContourOutside;
2933 const ::uno::Any* pContourPoly;
2936 const ::uno::Any* pPixelContour;
2939 const ::uno::Any* pAutoContour;
2945 const ::uno::Any* pCLSID =
nullptr;
2946 const ::uno::Any* pStreamName =
nullptr;
2947 const ::uno::Any* pEmbeddedObject =
nullptr;
2952 throw uno::RuntimeException();
2958 uno::Reference < embed::XEmbeddedObject > xIPObj;
2959 std::unique_ptr < comphelper::EmbeddedObjectContainer > pCnt;
2960 if( (*pCLSID) >>= aCLSID )
2962 if( !aClassName.
MakeId( aCLSID ) )
2964 lang::IllegalArgumentException aExcept;
2965 aExcept.Message =
"CLSID invalid";
2973 xIPObj = pCnt->CreateEmbeddedObject(aClassName.
GetByteSequence(), aName,
2982 if ( m_nDrawAspect == embed::Aspects::MSOLE_CONTENT
2983 && m_nVisibleAreaWidth && m_nVisibleAreaHeight )
2985 sal_Int64 nAspect = m_nDrawAspect;
2990 aSz.Width = aSize.
Width();
2991 aSz.Height = aSize.
Height();
2992 xIPObj->setVisualAreaSize(m_nDrawAspect, aSz);
2998 sal_Int64 nAspect = m_nDrawAspect;
3004 uno::Reference < container::XChild > xChild( xIPObj, uno::UNO_QUERY );
3013 aSize = xIPObj->getVisualAreaSize( nAspect );
3015 catch ( embed::NoVisualAreaSizeException& )
3020 Size aSz( aSize.Width, aSize.Height );
3021 if ( !aSz.Width() || !aSz.Height() )
3024 aSz.setHeight(5000);
3028 MapMode aMyMap( MapUnit::MapTwip );
3032 aFrameSet.Put(aFrameSz);
3038 aPam, xObjRef, &aFrameSet );
3041 uno::Reference< frame::XTitle > xModelTitle( pDoc->
GetDocShell()->
GetModel(), css::uno::UNO_QUERY );
3042 if( xModelTitle.is() )
3043 xIPObj->setContainerName( xModelTitle->getTitle() );
3045 assert(pFormat2 &&
"Doc->Insert(notxt) failed.");
3048 m_pFrameFormat = pFormat2;
3055 else if( pStreamName )
3057 OUString sStreamName;
3058 (*pStreamName) >>= sStreamName;
3062 aPam, sStreamName, m_nDrawAspect, &aFrameSet,
nullptr);
3078 uno::Reference< frame::XTitle > xModelTitle( pDoc->
GetDocShell()->
GetModel(), css::uno::UNO_QUERY );
3079 if( xModelTitle.is() )
3080 xObj->setContainerName( xModelTitle->getTitle() );
3085 m_pFrameFormat = pFrameFormat;
3091 else if (pEmbeddedObject)
3093 uno::Reference< embed::XEmbeddedObject > obj;
3094 (*pEmbeddedObject) >>= obj;
3096 xObj.
Assign( obj, embed::Aspects::MSOLE_CONTENT );
3110 m_pFrameFormat = pFrameFormat;
3118 GetOrCreateSdrObject(*pFormat);
3119 const ::uno::Any* pOrder;
3122 const ::uno::Any* pReplacement;
3126 const ::uno::Any* pTitle;
3132 const ::uno::Any* pDescription;
3139 const uno::Any* pFrameIntropgrabbagItem;
3149void SwXFrame::attach(
const uno::Reference< text::XTextRange > & xTextRange)
3155 attachToRange(xTextRange);
3166 throw lang::IllegalArgumentException();
3172 if (aAnchor.
GetAnchorId() == RndStdIds::FLY_AS_CHAR)
3174 throw lang::IllegalArgumentException(
3175 "SwXFrame::attach(): re-anchoring AS_CHAR not supported",
3184awt::Point SwXFrame::getPosition()
3186 uno::RuntimeException aRuntime;
3187 aRuntime.Message =
"position cannot be determined with this method";
3191void SwXFrame::setPosition(
const awt::Point& )
3193 uno::RuntimeException aRuntime;
3194 aRuntime.Message =
"position cannot be changed with this method";
3198awt::Size SwXFrame::getSize()
3201 awt::Size
const * pRet = o3tl::doAccess<awt::Size>(aVal);
3205void SwXFrame::setSize(
const awt::Size& aSize)
3211OUString SwXFrame::getShapeType()
3213 return "FrameShape";
3236 return CreateXFrame<SwXTextFrame>(rDoc, pFrameFormat);
3241 SwXFrame::acquire();
3246 SwXFrame::release();
3251 ::uno::Any aRet = SwXFrame::queryInterface(aType);
3255 aRet = SwXTextFrameBaseClass::queryInterface(aType);
3262 SwXTextFrameBaseClass::getTypes(),
3263 SwXFrame::getTypes(),
3270 return css::uno::Sequence<sal_Int8>();
3297 throw uno::RuntimeException();
3316 if(!pNewStartNode || pNewStartNode != pOwnStartNode)
3318 uno::RuntimeException aExcept;
3319 aExcept.Message =
"no text available";
3331 throw uno::RuntimeException();
3334 throw uno::RuntimeException();
3354 auto pUnoCursor(
GetDoc()->CreateUnoCursor(aPos));
3371 SwXFrame::attach(xTextRange);
3377 return SwXFrame::getAnchor();
3388 SwXFrame::addEventListener(aListener);
3393 SwXFrame::removeEventListener(aListener);
3398 return "SwXTextFrame";
3408 uno::Sequence < OUString > aRet = SwXFrame::getSupportedServiceNames();
3409 aRet.realloc(aRet.getLength() + 2);
3410 OUString* pArray = aRet.getArray();
3411 pArray[aRet.getLength() - 2] =
"com.sun.star.text.TextFrame";
3412 pArray[aRet.getLength() - 1] =
"com.sun.star.text.Text";
3433 aRet = SwXFrame::getPropertyValue(rPropertyName);
3456 return CreateXFrame<SwXTextGraphicObject>(rDoc, pFrameFormat);
3461 return "SwXTextGraphicObject";
3471 uno::Sequence < OUString > aRet = SwXFrame::getSupportedServiceNames();
3472 aRet.realloc(aRet.getLength() + 1);
3473 OUString* pArray = aRet.getArray();
3474 pArray[aRet.getLength() - 1] =
"com.sun.star.text.TextGraphicObject";
3478uno::Reference<container::XNameReplace> SAL_CALL
3503 return CreateXFrame<SwXTextEmbeddedObject>(rDoc, pFrameFormat);
3509 return xObj.is() ? uno::Reference<lang::XComponent>(xObj->getComponent(), uno::UNO_QUERY) :
nullptr;
3514 uno::Reference< embed::XEmbeddedObject > xResult;
3522 GetIndex() + 1 ]->GetOLENode(),
"no OLE-Node?");
3533 uno::Reference < lang::XComponent > xComp( xResult->getComponent(), uno::UNO_QUERY );
3534 uno::Reference< util::XModifyBroadcaster > xBrdcst( xComp, uno::UNO_QUERY);
3535 uno::Reference< frame::XModel >
xModel( xComp, uno::UNO_QUERY);
3555 GetIndex() + 1 ]->GetOLENode(),
"no OLE-Node?");
3560 return embed::Aspects::MSOLE_CONTENT;
3572 GetIndex() + 1 ]->GetOLENode(),
"no OLE-Node?");
3587 GetIndex() + 1 ]->GetOLENode(),
"no OLE-Node?");
3594 return uno::Reference< graphic::XGraphic >();
3599 return "SwXTextEmbeddedObject";
3609 uno::Sequence < OUString > aRet = SwXFrame::getSupportedServiceNames();
3610 aRet.realloc(aRet.getLength() + 1);
3611 OUString* pArray = aRet.getArray();
3612 pArray[aRet.getLength() - 1] =
"com.sun.star.text.TextEmbeddedObject";
3616uno::Reference<container::XNameReplace> SAL_CALL
3632 return aIdx.GetNode().GetNoTextNode()->GetOLENode();
3637 : m_pOLEFormat(&rOLEFormat)
3638 , m_xOLEModel(
std::move(xOLE))
3651 throw uno::RuntimeException();
3655 sal_Int32
nState = xIP->getCurrentState();
3656 if(
nState == embed::EmbedStates::INPLACE_ACTIVE ||
nState == embed::EmbedStates::UI_ACTIVE)
3667 uno::Reference<util::XModifyListener> xListener(
this );
3668 uno::Reference<frame::XModel>
xModel(rEvent.Source, uno::UNO_QUERY);
3669 uno::Reference<util::XModifyBroadcaster> xBrdcst(
xModel, uno::UNO_QUERY);
3674 xBrdcst->removeModifyListener(xListener);
3676 catch(uno::Exception
const &)
3678 OSL_FAIL(
"OLE Listener couldn't be removed");
3684 if(rHint.
GetId() == SfxHintId::Dying)
constexpr auto convertTwipToMm100(N n)
constexpr OUStringLiteral sDocumentBaseURL
void SetProperty(sal_uInt16 nWID, sal_uInt8 nMemberId, const uno::Any &rVal)
bool FillBaseProperties(SfxItemSet &rToSet, const SfxItemSet &rFromSet, bool &rSizeFound)
virtual bool AnyToItemSet(SwDoc *pDoc, SfxItemSet &rFrameSet, SfxItemSet &rSet, bool &rSizeFound)=0
SwUnoCursorHelper::SwAnyMapHelper m_aAnyMap
bool GetProperty(sal_uInt16 nWID, sal_uInt8 nMemberId, const uno::Any *&pAny)
virtual ~BaseFrameProperties_Impl()
static void SetLock(bool bLock)
MapMode GetPrefMapMode() const
const Graphic & GetGraphic() const
Graphic GetTransformedGraphic(const Size &rDestSize, const MapMode &rDestMap, const GraphicAttr &rAttr) const
css::uno::Reference< css::graphic::XGraphic > GetXGraphic() const
virtual void ReRead(SwPaM &, const OUString &rGrfName, const OUString &rFltName, const Graphic *pGraphic)=0
Transpose graphic (with undo)
virtual SwFlyFrameFormat * InsertOLE(const SwPaM &rRg, const OUString &rObjName, sal_Int64 nAspect, const SfxItemSet *pFlyAttrSet, const SfxItemSet *pGrfAttrSet)=0
virtual SwFlyFrameFormat * InsertGraphic(const SwPaM &rRg, const OUString &rGrfName, const OUString &rFltName, const Graphic *pGraphic, const SfxItemSet *pFlyAttrSet, const SfxItemSet *pGrfAttrSet, SwFrameFormat *)=0
Insert graphic or formula.
virtual SwFlyFrameFormat * InsertEmbObject(const SwPaM &rRg, const svt::EmbeddedObjectRef &xObj, SfxItemSet *pFlyAttrSet)=0
Insert OLE-objects.
virtual SwDrawModel * GetOrCreateDrawModel()=0
virtual SdrLayerID GetHellId() const =0
virtual SdrLayerID GetHeavenId() const =0
virtual const SwDrawModel * GetDrawModel() const =0
Draw Model and id accessors.
virtual void DelLayoutFormat(SwFrameFormat *pFormat)=0
virtual SwFrameFormat * GetFrameFormatFromPool(sal_uInt16 nId)=0
Return required automatic format.
virtual SwPageDesc * GetPageDescFromPool(sal_uInt16 nId, bool bRegardLanguage=true)=0
Return required automatic page style.
SAL_WARN_UNUSED_RESULT Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
constexpr tools::Long Y() const
constexpr tools::Long X() const
const SdrPage * GetPage(sal_uInt16 nPgNum) const
virtual void InsertObject(SdrObject *pObj, size_t nPos=SAL_MAX_SIZE)
SdrObjUserCall * GetUserCall() const
sal_uInt32 GetOrdNum() const
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8) override
const SfxPoolItem & GetDefaultItem(sal_uInt16 nWhich) const
virtual MapUnit GetMetric(sal_uInt16 nWhich) const
const SfxItemSet * GetParent() const
bool HasItem(sal_uInt16 nWhich, const SfxPoolItem **ppItem=nullptr) const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
css::uno::Reference< css::frame::XModel3 > GetModel() const
css::uno::Reference< css::frame::XModel3 > GetBaseModel() const
virtual OUString getDocumentBaseURL() const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId)
virtual SfxStyleSheetBase * Find(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
constexpr tools::Long getHeight() const
constexpr tools::Long Height() const
constexpr tools::Long getWidth() const
void setWidth(tools::Long nWidth)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
bool MakeId(std::u16string_view rId)
css::uno::Sequence< sal_Int8 > GetByteSequence() const
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
bool StartListening(SvtBroadcaster &rBroadcaster)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
static bool SetFillAttribute(sal_uInt16 nWID, const OUString &rName, SfxItemSet &rSet, SdrModel const *pModel)
tools::Long GetHeight() const
tools::Long GetWidth() const
void SetHeight(tools::Long n)
void SetSize(const Size &rSize)
void SetWidth(tools::Long n)
const SwAttrSet & GetSwAttrSet() const
Does node has already its own auto-attributes? Access to SwAttrSet.
virtual bool SetAttr(const SfxPoolItem &)
made virtual
SfxInPlaceClient * GetIPClient(const ::svt::EmbeddedObjectRef &xObjRef)
virtual SfxStyleSheetBasePool * GetStyleSheetPool() override
For Style PI.
SwFrameFormat * GetFrameFormat()
bool SetFrameFormatToFly(SwFrameFormat &rFlyFormat, SwFrameFormat &rNewFormat, SfxItemSet *pSet=nullptr, bool bKeepOrient=false)
SwFlyFrameFormat * MakeFlySection(RndStdIds eAnchorType, const SwPosition *pAnchorPos, const SfxItemSet *pSet=nullptr, SwFrameFormat *pParent=nullptr, bool bCalledFromShell=false)
void SetFlyFrameTitle(SwFlyFrameFormat &rFlyFrameFormat, const OUString &sNewTitle)
void SetFlyName(SwFlyFrameFormat &rFormat, const OUString &rName)
SwChainRet Chain(SwFrameFormat &rSource, const SwFrameFormat &rDest)
void SetFlyFrameDescription(SwFlyFrameFormat &rFlyFrameFormat, const OUString &sNewDescription)
SwFrameFormat * GetFlyNum(size_t nIdx, FlyCntType eType, bool bIgnoreTextBoxes=false)
void Unchain(SwFrameFormat &rFormat)
IDocumentContentOperations const & getIDocumentContentOperations() const
IDocumentUndoRedo & GetIDocumentUndoRedo()
void SetOLEObjModified()
update all modified OLE-Objects.
bool IsInXMLImport() const
size_t GetFlyCount(FlyCntType eType, bool bIgnoreTextBoxes=false) const
Access to frames.
SwEditShell const * GetEditShell() const
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
static void GetGrfNms(const SwFlyFrameFormat &rFormat, OUString *pGrfName, OUString *pFltName)
SfxObjectShell * GetPersist() const
IDocumentStylePoolAccess const & getIDocumentStylePoolAccess() const
const SwAttrPool & GetAttrPool() const
SwFlyFrameFormat * MakeFlyAndMove(const SwPaM &rPam, const SfxItemSet &rSet, const SwSelBoxes *pSelBoxes, SwFrameFormat *pParent)
IDocumentDrawModelAccess const & getIDocumentDrawModelAccess() const
const SwFrameFormat * GetDfltFrameFormat() const
bool SetFlyFrameAttr(SwFrameFormat &rFlyFormat, SfxItemSet &rSet)
SwDocShell * GetDocShell()
general base class for all free-flowing frames
Content, content of frame (header, footer, fly).
const SwNodeIndex * GetContentIdx() const
const SwRect & getFrameArea() const
bool isFrameAreaDefinitionValid() const
Base class of the Writer layout elements.
void SetChgTwipSize(bool b)
GraphicAttr & GetGraphicAttr(GraphicAttr &, const SwFrame *pFrame) const
Returns the with our graphic attributes filled Graphic-Attr-Structure.
const GraphicObject & GetGrfObj(bool bWait=false) const
const Graphic & GetGrf(bool bWait=false) const
const GraphicObject * GetReplacementGrfObj() const
Layout frame for SwNoTextNode, i.e. graphics and OLE nodes (including charts).
void SetContour(const tools::PolyPolygon *pPoly, bool bAutomatic=false)
void SetAutomaticContour(bool bSet)
void SetContourAPI(const tools::PolyPolygon *pPoly)
bool HasAutomaticContour() const
bool IsContourMapModeValid() const
bool GetContourAPI(tools::PolyPolygon &rPoly) const
void SetPixelContour(bool bSet)
bool IsPixelContour() const
Marks a node in the document model.
SwNodeOffset GetIndex() const
Base class of the Writer document model elements.
SwStartNode * GetStartNode()
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
const SwStartNode * FindFlyStartNode() const
SwTableNode * FindTableNode()
Search table node, in which it is.
SwStartNode * FindSttNodeByType(SwStartNodeType eTyp)
SwOLENode * GetOLENode()
Inline methods from Node.hxx.
SwNoTextNode * GetNoTextNode()
const SwEndNode * EndOfSectionNode() const
SwNode & GetEndOfContent() const
Regular ContentSection (i.e. the BodyText).
SwContentNode * GoNext(SwNodeIndex *) const
const SwOLEObj & GetOLEObj() const
void SetOLESizeInvalid(bool b)
svt::EmbeddedObjectRef & GetObject()
css::uno::Reference< css::embed::XEmbeddedObject > const & GetOleRef()
const OUString & GetCurrentPersistName() const
PaM is Point and Mark: a selection of the document model.
const SwPosition * GetMark() const
SwNode & GetPointNode() const
bool Move(SwMoveFnCollection const &fnMove=fnMoveForward, SwGoInDoc fnGo=GoInContent)
Movement of cursor.
const SwPosition * GetPoint() const
const SwPosition * Start() const
Of course Writer needs its own rectangles.
void Height(tools::Long nNew)
void Width(tools::Long nNew)
Starts a section of nodes in the document model.
static const OUString & GetProgName(const OUString &rName, SwGetPoolIdFromName)
static void FillUIName(const OUString &rName, OUString &rFillName, SwGetPoolIdFromName)
static bool isTextBox(const SwFrameFormat *pFormat, sal_uInt16 nType, const SdrObject *pObject=nullptr)
Is the frame format a text box?
SwTextNode is a paragraph in the document model.
void DeleteAttributes(const sal_uInt16 nWhich, const sal_Int32 nStart, const sal_Int32 nEnd=0)
delete all attributes of type nWhich at nStart (opt. end nEnd)
bool FillValue(sal_uInt16 nWhichId, sal_uInt16 nMemberId, const css::uno::Any *&pAny)
void SetValue(sal_uInt16 nWhichId, sal_uInt16 nMemberId, const css::uno::Any &rAny)
uno::WeakReference< uno::XInterface > m_wThis
::comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > m_EventListeners
virtual ~SwXOLEListener() override
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
virtual void SAL_CALL modified(const css::lang::EventObject &aEvent) override
css::uno::Reference< css::frame::XModel > m_xOLEModel
virtual void Notify(const SfxHint &) override
SwXOLEListener(SwFormat &rOLEFormat, css::uno::Reference< css::frame::XModel > xOLE)
static rtl::Reference< SwXTextEmbeddedObject > CreateXTextEmbeddedObject(SwDoc &rDoc, SwFrameFormat *pFrameFormat)
virtual css::uno::Reference< css::graphic::XGraphic > SAL_CALL getReplacementGraphic() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Reference< css::lang::XComponent > SAL_CALL getEmbeddedObject() override
virtual ::sal_Int64 SAL_CALL getAspect() override
css::uno::Reference< css::util::XModifyListener > m_xOLEListener
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
SwXTextEmbeddedObject(SwDoc *pDoc)
virtual css::uno::Reference< css::container::XNameReplace > SAL_CALL getEvents() override
virtual ~SwXTextEmbeddedObject() override
virtual void SAL_CALL setAspect(::sal_Int64 _aspect) override
virtual css::uno::Reference< css::embed::XEmbeddedObject > SAL_CALL getExtendedControlOverEmbeddedObject() override
virtual OUString SAL_CALL getImplementationName() override
virtual SW_DLLPUBLIC css::uno::Reference< css::text::XText > SAL_CALL getText() override
virtual void SAL_CALL acquire() noexcept override
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL hasElements() override
SwXTextFrame(SwDoc *pDoc)
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
virtual SW_DLLPUBLIC css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual void SAL_CALL attach(const css::uno::Reference< css::text::XTextRange > &xTextRange) override
virtual const SwStartNode * GetStartNode() const override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual SW_DLLPUBLIC void SAL_CALL release() noexcept override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
virtual rtl::Reference< SwXTextCursor > createXTextCursor() override
virtual rtl::Reference< SwXTextCursor > createXTextCursorByRange(const ::css::uno::Reference< ::css::text::XTextRange > &aTextPosition) override
virtual void SAL_CALL dispose() override
virtual css::uno::Type SAL_CALL getElementType() override
virtual ~SwXTextFrame() override
static SW_DLLPUBLIC rtl::Reference< SwXTextFrame > CreateXTextFrame(SwDoc &rDoc, SwFrameFormat *pFrameFormat)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getAnchor() override
virtual css::uno::Reference< css::container::XNameReplace > SAL_CALL getEvents() override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
static rtl::Reference< SwXTextGraphicObject > CreateXTextGraphicObject(SwDoc &rDoc, SwFrameFormat *pFrameFormat)
SwXTextGraphicObject(SwDoc *pDoc)
virtual css::uno::Reference< css::container::XNameReplace > SAL_CALL getEvents() override
virtual ~SwXTextGraphicObject() override
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
const SwDoc * GetDoc() const
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &rPropertyName) override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
static MapUnit UnoEmbed2VCLMapUnit(sal_Int32 nUnoEmbedMapUnit)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
css::uno::Type const & get()
static bool TryRunningState(const css::uno::Reference< css::embed::XEmbeddedObject > &)
void SetGraphic(const Graphic &rGraphic, const OUString &rMediaType)
void Assign(const css::uno::Reference< css::embed::XEmbeddedObject > &xObj, sal_Int64 nAspect)
#define FN_UNO_VISIBLE_AREA_WIDTH
#define FN_EMBEDDED_OBJECT
#define FN_UNO_PARENT_TEXT
#define FN_PARAM_LINK_DISPLAY_NAME
#define FN_UNO_REPLACEMENT_GRAPHIC
#define FN_UNO_IS_PIXEL_CONTOUR
#define FN_UNO_FRAME_STYLE_NAME
#define FN_UNO_IS_AUTOMATIC_CONTOUR
#define FN_UNO_TRANSFORMED_GRAPHIC
#define FN_UNO_DRAW_ASPECT
#define FN_UNO_GRAPHIC_PREVIEW
#define FN_UNO_STREAM_NAME
#define FN_UNO_VISIBLE_AREA_HEIGHT
#define FN_UNO_ACTUAL_SIZE
#define FN_UNO_DESCRIPTION
#define FN_UNO_REPLACEMENT_GRAPHIC_URL
#define FN_UNO_ANCHOR_TYPES
#define FN_UNO_ALTERNATIVE_TEXT
#define FN_UNO_GRAPHIC_URL
#define FN_UNO_GRAPHIC_FILTER
#define FN_PARAM_CONTOUR_PP
EmbeddedObjectRef * pObject
const EnumerationType m_eType
bool sw_ChkAndSetNewAnchor(const SwFlyFrame &rFly, SfxItemSet &rSet)
also used in unoframe.cxx
constexpr TypedWhichId< SvxFrameDirectionItem > RES_FRAMEDIR(126)
constexpr sal_uInt16 RES_FRMATR_BEGIN(RES_PARATR_LIST_END)
constexpr TypedWhichId< SwFormatURL > RES_URL(117)
constexpr TypedWhichId< SwLuminanceGrf > RES_GRFATR_LUMINANCE(144)
constexpr TypedWhichId< SwTransparencyGrf > RES_GRFATR_TRANSPARENCY(151)
constexpr TypedWhichId< SwFormatFrameSize > RES_FRM_SIZE(89)
constexpr sal_uInt16 RES_GRFATR_BEGIN(RES_FRMATR_END)
constexpr TypedWhichId< SwFormatCol > RES_COL(115)
constexpr TypedWhichId< SwFormatHoriOrient > RES_HORI_ORIENT(109)
constexpr TypedWhichId< SwChannelRGrf > RES_GRFATR_CHANNELR(146)
constexpr TypedWhichId< SvxShadowItem > RES_SHADOW(113)
constexpr TypedWhichId< SwFormatVertOrient > RES_VERT_ORIENT(108)
constexpr TypedWhichId< SwContrastGrf > RES_GRFATR_CONTRAST(145)
constexpr TypedWhichId< SvXMLAttrContainerItem > RES_UNKNOWNATR_CONTAINER(RES_UNKNOWNATR_BEGIN)
constexpr sal_uInt16 RES_FRMATR_END(141)
constexpr TypedWhichId< SwFormatEditInReadonly > RES_EDIT_IN_READONLY(118)
constexpr TypedWhichId< SvxBrushItem > RES_BACKGROUND(111)
constexpr TypedWhichId< SwDrawModeGrf > RES_GRFATR_DRAWMODE(152)
constexpr TypedWhichId< SwChannelBGrf > RES_GRFATR_CHANNELB(148)
constexpr TypedWhichId< SwInvertGrf > RES_GRFATR_INVERT(150)
constexpr TypedWhichId< SvxOpaqueItem > RES_OPAQUE(105)
constexpr TypedWhichId< SwFlyFrameFormat > RES_FLYFRMFMT(162)
constexpr TypedWhichId< SwFormatWrapInfluenceOnObjPos > RES_WRAP_INFLUENCE_ON_OBJPOS(132)
constexpr TypedWhichId< SvxProtectItem > RES_PROTECT(106)
constexpr TypedWhichId< SfxGrabBagItem > RES_FRMATR_GRABBAG(136)
constexpr TypedWhichId< SwMirrorGrf > RES_GRFATR_MIRRORGRF(RES_GRFATR_BEGIN)
constexpr TypedWhichId< SwChannelGGrf > RES_GRFATR_CHANNELG(147)
constexpr TypedWhichId< SwDrawFrameFormat > RES_DRAWFRMFMT(165)
constexpr TypedWhichId< SwFormatFlyCnt > RES_TXTATR_FLYCNT(58)
constexpr TypedWhichId< SwFormatAnchor > RES_ANCHOR(110)
constexpr TypedWhichId< SvxBoxItem > RES_BOX(112)
constexpr TypedWhichId< SfxBoolItem > RES_DECORATIVE(140)
constexpr TypedWhichId< SwRotationGrf > RES_GRFATR_ROTATION(143)
constexpr TypedWhichId< SdrTextVertAdjustItem > RES_TEXT_VERT_ADJUST(137)
constexpr TypedWhichId< SwFormatFlySplit > RES_FLY_SPLIT(129)
constexpr TypedWhichId< SwFormatSurround > RES_SURROUND(107)
constexpr TypedWhichId< SwFormatFollowTextFlow > RES_FOLLOW_TEXT_FLOW(130)
constexpr TypedWhichId< SwCropGrf > RES_GRFATR_CROPGRF(142)
constexpr sal_uInt16 RES_GRFATR_END(156)
constexpr TypedWhichId< SwGammaGrf > RES_GRFATR_GAMMA(149)
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(97)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(98)
constexpr TypedWhichId< SvxPrintItem > RES_PRINT(104)
bool isGRFATR(const sal_uInt16 nWhich)
const SfxPoolItem * GetDfltAttr(sal_uInt16 nWhich)
Get the default attribute from corresponding default attribute table.
WhichRangesContainer const aFrameFormatSetRange(svl::Items< RES_FRMATR_BEGIN, RES_FRMATR_END-1, RES_UNKNOWNATR_BEGIN, RES_UNKNOWNATR_END-1, XATTR_FILL_FIRST, XATTR_FILL_LAST >)
#define SAL_INFO_IF(condition, area, stream)
#define SAL_WARN(area, stream)
#define MID_GRAPHIC_POSITION
#define MID_PROTECT_POSITION
#define MID_SHADOW_TRANSPARENCE
#define LEFT_BORDER_DISTANCE
#define MID_BACK_COLOR_R_G_B
#define MID_PROTECT_CONTENT
#define TOP_BORDER_DISTANCE
#define RIGHT_BORDER_DISTANCE
#define MID_BACK_COLOR_TRANSPARENCY
#define BOTTOM_BORDER_DISTANCE
#define MID_GRAPHIC_TRANSPARENT
#define MID_GRAPHIC_FILTER
#define MID_GRAPHIC_TRANSPARENCY
bool needToMapFillItemsToSvxBrushItemTypes(const SfxItemSet &rSet, sal_uInt16 const nMID)
helper to check if fill style is set to color or bitmap and thus formerly used SvxBrushItem parts nee...
css::uno::Sequence< T > concatSequences(const css::uno::Sequence< T > &rS1, const Ss &... rSn)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
constexpr auto toTwips(N number, Length from)
constexpr Point convert(const Point &rPoint, o3tl::Length eFrom, o3tl::Length eTo)
VBAHELPER_DLLPUBLIC bool setPropertyValue(css::uno::Sequence< css::beans::PropertyValue > &aProp, const OUString &aName, const css::uno::Any &aValue)
css::uno::Reference< css::animations::XAnimationNode > Clone(const css::uno::Reference< css::animations::XAnimationNode > &xSourceNode, const SdPage *pSource=nullptr, const SdPage *pTarget=nullptr)
bool getPropertyValue(ValueType &rValue, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, OUString const &propName)
uno::Reference< text::XText > CreateParentXText(SwDoc &rDoc, const SwPosition &rPos)
bool XTextRangeToSwPaM(SwUnoInternalPaM &rToFill, const uno::Reference< text::XTextRange > &xTextRange, ::sw::TextRangeMode const eMode)
bool GetAtPageRelOrientation(sal_Int16 &rOrientation, bool const isIgnorePrintArea)
UNOTOOLS_DLLPUBLIC css::uno::Any GetProperty(OUString const &url, OUString const &property)
Graphic loadFromURL(OUString const &rURL, weld::Window *pParentWin)
bool GoInNode(SwPaM &rPam, SwMoveFnCollection const &fnMove)
bool GoInDoc(SwPaM &rPam, SwMoveFnCollection const &fnMove)
SwMoveFnCollection const & fnMoveBackward
SwMoveFnCollection const & fnMoveForward
SwPam::Move()/Find() default argument.
@ RES_POOLPAGE_STANDARD
Standard page.
@ RES_POOLFRM_FRAME
Frame.
@ RES_POOLFRM_GRAPHIC
Graphics.
bool Any2Bool(const css::uno::Any &rValue)
PropertyMoreFlags nMoreFlags
Marks a position in the document model.
void Assign(const SwNode &rNd, SwNodeOffset nDelta, sal_Int32 nContentOffset=0)
These all set both nNode and nContent.
static rtl::Reference< SwXParagraphEnumeration > Create(css::uno::Reference< css::text::XText > const &xParent, const std::shared_ptr< SwUnoCursor > &pCursor, const CursorType eType, SwTableBox const *const pTableBox=nullptr)
Reference< XFrame > xFrame
Reference< XModel > xModel
SVXCORE_DLLPUBLIC std::unique_ptr< SvxBrushItem > getSvxBrushItemFromSourceSet(const SfxItemSet &rSourceSet, sal_uInt16 nBackgroundID, bool bSearchInParents=true, bool bXMLImportHack=false)
SVXCORE_DLLPUBLIC void setSvxBrushItemAsFillAttributesToTargetSet(const SvxBrushItem &rBrush, SfxItemSet &rToSet)
static SwFrameFormat * lcl_GetFrameFormat(const ::uno::Any &rValue, SwDoc *pDoc)
static void lcl_FillCol(SfxItemSet &rToSet, const ::SfxItemSet &rFromSet, const ::uno::Any *pAny)
static void lcl_FillMirror(SfxItemSet &rToSet, const ::SfxItemSet &rFromSet, const ::uno::Any *pHEvenMirror, const ::uno::Any *pHOddMirror, const ::uno::Any *pVMirror, bool &rRet)
cppu::ImplInheritanceHelper< SwXFrame, css::document::XEmbeddedObjectSupplier2, css::document::XEventsSupplier > SwXTextEmbeddedObjectBaseClass
cppu::ImplInheritanceHelper< SwXFrame, css::document::XEventsSupplier > SwXTextGraphicObjectBaseClass
class SAL_DLLPUBLIC_RTTI SAL_LOPLUGIN_ANNOTATE("crosscast") SwXFrame typedef cppu::ImplInheritanceHelper< SwXFrame, css::text::XTextFrame, css::container::XEnumerationAccess, css::document::XEventsSupplier > SwXTextFrameBaseClass
void SvxUnoConvertToMM(const MapUnit eSourceMapUnit, uno::Any &rMetric) noexcept
void SvxUnoConvertFromMM(const MapUnit eDestinationMapUnit, uno::Any &rMetric) noexcept
SwUnoPropertyMapProvider aSwMapProvider
#define PROPERTY_MAP_TEXT_FRAME
#define PROPERTY_MAP_EMBEDDED_OBJECT
#define OWN_ATTR_FILLBMP_MODE
#define PROPERTY_MAP_TEXT_GRAPHIC
#define MID_HORIORIENT_RELATION
#define MID_FRMSIZE_REL_WIDTH_RELATION
#define MID_FRMSIZE_REL_HEIGHT_RELATION
#define MID_ANCHOR_ANCHORFRAME
#define MID_VERTORIENT_RELATION
#define MID_FRMSIZE_IS_SYNC_HEIGHT_TO_WIDTH
#define MID_SURROUND_ANCHORONLY
#define MID_FRMSIZE_REL_WIDTH
#define MID_WRAP_INFLUENCE
#define MID_FRMSIZE_SIZE_TYPE
#define MID_HORIORIENT_PAGETOGGLE
#define MID_VERTORIENT_POSITION
#define MID_FRMSIZE_WIDTH
#define MID_URL_SERVERMAP
#define MID_FRMSIZE_WIDTH_TYPE
#define MID_SURROUND_SURROUNDTYPE
#define MID_VERTORIENT_ORIENT
#define MID_ANCHOR_PAGENUM
#define MID_HORIORIENT_POSITION
#define MID_URL_HYPERLINKNAME
#define MID_MIRROR_HORZ_ODD_PAGES
#define MID_FRMSIZE_REL_HEIGHT
#define MID_FOLLOW_TEXT_FLOW
#define MID_ANCHOR_ANCHORTYPE
#define MID_SURROUND_CONTOUR
#define MID_FRMSIZE_HEIGHT
#define MID_SURROUND_CONTOUROUTSIDE
#define MID_HORIORIENT_ORIENT
#define MID_MIRROR_HORZ_EVEN_PAGES
#define MID_FRMSIZE_IS_SYNC_WIDTH_TO_HEIGHT
#define MID_ALLOW_OVERLAP
constexpr OUStringLiteral UNO_NAME_DESCRIPTION
constexpr OUStringLiteral UNO_NAME_CHAIN_NEXT_NAME
constexpr OUStringLiteral UNO_NAME_START_REDLINE
constexpr OUStringLiteral UNO_NAME_FRAME_INTEROP_GRAB_BAG
constexpr OUStringLiteral UNO_NAME_IS_PIXEL_CONTOUR
constexpr OUStringLiteral UNO_NAME_ANCHOR_TYPE
constexpr OUStringLiteral UNO_NAME_CHAIN_PREV_NAME
constexpr OUStringLiteral UNO_NAME_CONTOUR_OUTSIDE
constexpr OUStringLiteral UNO_NAME_CONTOUR_POLY_POLYGON
constexpr OUStringLiteral UNO_NAME_Z_ORDER
constexpr OUStringLiteral UNO_NAME_IS_AUTOMATIC_CONTOUR
constexpr OUStringLiteral UNO_NAME_ACTUAL_SIZE
constexpr OUStringLiteral UNO_NAME_SURROUND_CONTOUR
constexpr OUStringLiteral UNO_NAME_GRAPHIC
constexpr OUStringLiteral UNO_NAME_END_REDLINE
constexpr OUStringLiteral UNO_NAME_TITLE
constexpr TypedWhichId< XFillBmpPosOffsetYItem > XATTR_FILLBMP_POSOFFSETY(XATTR_FILL_FIRST+18)
constexpr TypedWhichId< XGradientStepCountItem > XATTR_GRADIENTSTEPCOUNT(XATTR_FILL_FIRST+6)
constexpr TypedWhichId< XFillBmpPosItem > XATTR_FILLBMP_POS(XATTR_FILL_FIRST+8)
constexpr TypedWhichId< XFillColorItem > XATTR_FILLCOLOR(XATTR_FILL_FIRST+1)
constexpr TypedWhichId< XFillBmpTileOffsetXItem > XATTR_FILLBMP_TILEOFFSETX(XATTR_FILL_FIRST+14)
constexpr TypedWhichId< XFillTransparenceItem > XATTR_FILLTRANSPARENCE(XATTR_FILL_FIRST+5)
constexpr TypedWhichId< XSecondaryFillColorItem > XATTR_SECONDARYFILLCOLOR(XATTR_FILL_FIRST+12)
constexpr TypedWhichId< SfxMetricItem > XATTR_FILLBMP_SIZEX(XATTR_FILL_FIRST+9)
#define COL_DEFAULT_SHAPE_FILLING
constexpr TypedWhichId< XFillBmpPosOffsetXItem > XATTR_FILLBMP_POSOFFSETX(XATTR_FILL_FIRST+17)
constexpr TypedWhichId< XFillBmpTileOffsetYItem > XATTR_FILLBMP_TILEOFFSETY(XATTR_FILL_FIRST+15)
constexpr TypedWhichId< XFillBmpSizeYItem > XATTR_FILLBMP_SIZEY(XATTR_FILL_FIRST+10)
constexpr sal_uInt16 XATTR_FILL_FIRST(XATTRSET_LINE+1)
constexpr TypedWhichId< XFillHatchItem > XATTR_FILLHATCH(XATTR_FILL_FIRST+3)
constexpr TypedWhichId< XFillBmpSizeLogItem > XATTR_FILLBMP_SIZELOG(XATTR_FILL_FIRST+13)
constexpr sal_uInt16 XATTR_FILL_LAST(XATTR_FILLUSESLIDEBACKGROUND)
constexpr TypedWhichId< XFillBitmapItem > XATTR_FILLBITMAP(XATTR_FILL_FIRST+4)
#define COL_DEFAULT_SHAPE_STROKE
constexpr TypedWhichId< XFillBackgroundItem > XATTR_FILLBACKGROUND(XATTR_FILL_FIRST+19)
constexpr TypedWhichId< XFillFloatTransparenceItem > XATTR_FILLFLOATTRANSPARENCE(XATTR_FILL_FIRST+11)
constexpr TypedWhichId< XFillStyleItem > XATTR_FILLSTYLE(XATTR_FILL_FIRST)
constexpr TypedWhichId< XFillGradientItem > XATTR_FILLGRADIENT(XATTR_FILL_FIRST+2)
static SwOLENode * lcl_GetOLENode(const SwFrameFormat *pFrameFormat)