19#ifndef INCLUDED_SW_INC_FRMFMT_HXX
20#define INCLUDED_SW_INC_FRMFMT_HXX
23#include <com/sun/star/text/PositionLayoutDir.hpp>
28 template<
class T>
class FrameFormats;
52 class DocumentLayoutManager;
63 template<
class T>
class FrameFormats;
75 friend class ::sw::DocumentLayoutManager;
82 css::uno::WeakReference<css::uno::XInterface> m_wXObject;
90 std::shared_ptr< SwTextBoxNode > m_pOtherTextBoxFormats;
102 const char* pFormatNm,
109 const OUString &rFormatNm,
129 virtual void DelFrames();
134 virtual Graphic MakeGraphic(
ImageMap* pMap =
nullptr,
const sal_uInt32 nMaximumQuadraticPixels = 500000,
const std::optional<Size>& rTargetDPI = std::nullopt );
146 SwRect FindLayoutRect(
const bool bPrtArea =
false,
147 const Point* pPoint =
nullptr )
const;
160 {
return const_cast<SwFrameFormat*
>(
this)->FindSdrObject(); }
164 {
return const_cast<SwFrameFormat*
>(
this)->FindRealSdrObject(); }
178 virtual sal_Int16 GetPositionLayoutDir()
const;
179 virtual void SetPositionLayoutDir(
const sal_Int16 _nPositionLayoutDir );
183 SAL_DLLPRIVATE css::uno::WeakReference<css::uno::XInterface>
const&
GetXObject()
const
184 {
return m_wXObject; }
185 SAL_DLLPRIVATE
void SetXObject(css::uno::Reference<css::uno::XInterface>
const& xObject)
186 { m_wXObject = xObject; }
188 void RegisterToFormat(
SwFormat& rFormat );
192 virtual bool supportsFullDrawingLayerFillAttributeSet()
const override;
196 virtual void SetFormatName(
const OUString& rNewName,
bool bBroadcast=
false )
override;
198 virtual bool IsVisible()
const;
204 friend ::SwDrawFrameFormat;
205 friend ::SwFlyFrameFormat;
208 const OUString& rFormatName,
210 sal_uInt16 nFormatWhich)
211 :
SwFrameFormat(rPool, rFormatName, pDerivedFrame, nFormatWhich)
249 virtual Graphic MakeGraphic(
ImageMap* pMap =
nullptr,
const sal_uInt32 nMaximumQuadraticPixels = 500000,
const std::optional<Size>& rTargetDPI = std::nullopt )
override;
251 OUString GetObjTitle()
const;
252 void SetObjTitle(
const OUString& rTitle,
bool bBroadcast =
false );
254 const OUString & GetObjTooltip()
const;
255 void SetObjTooltip(
const OUString& rTooltip);
257 OUString GetObjDescription()
const;
258 void SetObjDescription(
const OUString& rDescription,
bool bBroadcast =
false );
259 void SetObjDecorative(
bool isDecorative);
270 virtual bool IsBackgroundTransparent()
const override;
281 bool IsBackgroundBrushInherited()
const;
362 m_rResult(rResult) {};
426 m_pSdrObjectCached(nullptr),
428 mnPositionLayoutDir(css::
text::PositionLayoutDir::PositionInLayoutDirOfAnchor),
437 virtual void DelFrames()
override;
443 virtual Graphic MakeGraphic(
ImageMap* pMap =
nullptr,
const sal_uInt32 nMaximumQuadraticPixels = 500000,
const std::optional<Size>& rTargetDPI = std::nullopt )
override;
448 virtual sal_Int16 GetPositionLayoutDir()
const override;
449 virtual void SetPositionLayoutDir(
const sal_Int16 _nPositionLayoutDir )
override;
SfxHint & operator=(SfxHint const &)=default
wrapper class for the positioning of Writer fly frames and drawing objects
general base class for all free-flowing frames
Of course Writer needs its own rectangles.
The root element of a Writer document layout.
SwTableBox is one table cell in the document model.
A TextBox is a TextFrame, that is tied to a drawinglayer shape.
struct _xmlTextWriter * xmlTextWriterPtr
virtual void GetDescription(OUString &rName) override
EmbeddedObjectRef * pObject
@ SwCheckDrawFrameFormatLayer
constexpr TypedWhichId< SwFlyFrameFormat > RES_FLYFRMFMT(162)
constexpr TypedWhichId< SwDrawFrameFormat > RES_DRAWFRMFMT(165)
constexpr TypedWhichId< SwFrameFormat > RES_FRMFMT(161)
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 >)
std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr
Dialog to specify the properties of date form field.
@ POST_RESTORE_FLY_ANCHOR
void CheckAnchoredFlyConsistency(SwDoc const &rDoc)
bool IsFlyFrameFormatInHeader(const SwFrameFormat &rFormat)
CollectTextObjectsHint(std::list< SdrTextObj * > &rTextObjects)
virtual ~CollectTextObjectsHint() override
std::list< SdrTextObj * > & m_rTextObjects
SwDrawContact ** m_ppContact
CreatePortionHint(SwDrawContact **ppContact)
virtual ~CreatePortionHint() override
FindSdrObjectHint(SdrObject *&rpObject)
GetObjectConnectedHint(bool &risConnected, const SwRootFrame *pRoot)
virtual ~GetObjectConnectedHint() override
const SwRootFrame * m_pRoot
GetZOrderHint(sal_uInt32 &rnZOrder)
virtual ~GetZOrderHint() override
virtual ~RestoreFlyAnchorHint() override
RestoreFlyAnchorHint(Point aPos)
WW8AnchorConvResult & m_rResult
WW8AnchorConvHint(WW8AnchorConvResult &rResult)
WW8AnchorConvResult(WW8AnchorConv eHoriConv, WW8AnchorConv eVertConv)
WW8AnchorConv m_eHoriConv
WW8AnchorConv m_eVertConv