LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SwFlyFrameFormat Class Referencefinal

#include <frmfmt.hxx>

Inheritance diagram for SwFlyFrameFormat:
[legend]
Collaboration diagram for SwFlyFrameFormat:
[legend]

Public Member Functions

virtual ~SwFlyFrameFormat () override
 
virtual void MakeFrames () override
 Creates the views. More...
 
SwFlyFrame * GetFrame (const Point *pDocPos=nullptr) const
 
SwAnchoredObject * GetAnchoredObj () const
 
virtual Graphic MakeGraphic (ImageMap *pMap=nullptr, const sal_uInt32 nMaximumQuadraticPixels=500000, const std::optional< Size > &rTargetDPI=std::nullopt) override
 
OUString GetObjTitle () const
 
void SetObjTitle (const OUString &rTitle, bool bBroadcast=false)
 
const OUString & GetObjTooltip () const
 
void SetObjTooltip (const OUString &rTooltip)
 
OUString GetObjDescription () const
 
void SetObjDescription (const OUString &rDescription, bool bBroadcast=false)
 
void SetObjDecorative (bool isDecorative)
 
virtual bool IsBackgroundTransparent () const override
 SwFlyFrameFormat::IsBackgroundTransparent. More...
 
bool IsBackgroundBrushInherited () const
 SwFlyFrameFormat::IsBackgroundBrushInherited. More...
 
const Point & GetLastFlyFramePrtRectPos () const
 
void SetLastFlyFramePrtRectPos (const Point &rPoint)
 
SwFlyDrawContact * GetOrCreateContact ()
 
- Public Member Functions inherited from SwFrameFormat
const std::shared_ptr< SwTextBoxNode > & GetOtherTextBoxFormats () const
 
void SetOtherTextBoxFormats (const std::shared_ptr< SwTextBoxNode > &rNew)
 
virtual ~SwFrameFormat () override
 
 SwFrameFormat (SwFrameFormat const &)=default
 
 SwFrameFormat (SwFrameFormat &&)=default
 
SwFrameFormat & operator= (SwFrameFormat const &)=default
 
SwFrameFormat & operator= (SwFrameFormat &&)=default
 
virtual void DelFrames ()
 Destroys all Frames in aDepend (Frames are identified via dynamic_cast). More...
 
virtual void MakeFrames ()
 Creates the views. More...
 
virtual Graphic MakeGraphic (ImageMap *pMap=nullptr, const sal_uInt32 nMaximumQuadraticPixels=500000, const std::optional< Size > &rTargetDPI=std::nullopt)
 
IMapObject * GetIMapObject (const Point &rPoint, const SwFlyFrame *pFly=nullptr) const
 
SwRect FindLayoutRect (const bool bPrtArea=false, const Point *pPoint=nullptr) const
 
SdrObject * FindSdrObject ()
 
const SdrObject * FindSdrObject () const
 
SdrObject * FindRealSdrObject ()
 
const SdrObject * FindRealSdrObject () const
 
bool IsLowerOf (const SwFrameFormat &rFormat) const
 
virtual SwFrameFormat::tLayoutDir GetLayoutDir () const
 
virtual void SetLayoutDir (const SwFrameFormat::tLayoutDir _eLayoutDir)
 
virtual sal_Int16 GetPositionLayoutDir () const
 
virtual void SetPositionLayoutDir (const sal_Int16 _nPositionLayoutDir)
 
virtual OUString GetDescription () const
 
SAL_DLLPRIVATE css::uno::WeakReference< css::uno::XInterface > const & GetXObject () const
 
SAL_DLLPRIVATE void SetXObject (css::uno::Reference< css::uno::XInterface > const &xObject)
 
void RegisterToFormat (SwFormat &rFormat)
 
virtual drawinglayer::attribute::SdrAllFillAttributesHelperPtr getSdrAllFillAttributesHelper () const override
 
virtual bool supportsFullDrawingLayerFillAttributeSet () const override
 
void dumpAsXml (xmlTextWriterPtr pWriter) const
 
virtual void SetFormatName (const OUString &rNewName, bool bBroadcast=false) override
 
void MoveTableBox (SwTableBox &rTableBox, const SwFrameFormat *pOldFormat)
 
virtual bool IsVisible () const
 
- Public Member Functions inherited from SwFormat
virtual ~SwFormat () override
 
SwFormat & operator= (const SwFormat &)
 
sal_uInt16 Which () const
 for Querying of Writer-functions. More...
 
void CopyAttrs (const SwFormat &)
 Copy attributes even among documents. More...
 
void DelDiffs (const SfxItemSet &rSet)
 Delete all attributes that are not in rFormat. More...
 
void DelDiffs (const SwFormat &rFormat)
 
bool SetDerivedFrom (SwFormat *pDerivedFrom=nullptr)
 0 is Default. More...
 
const SfxPoolItem & GetFormatAttr (sal_uInt16 nWhich, bool bInParents=true) const
 If bInParents is FALSE, search only in this format for attribute. More...
 
template<class T >
const T & GetFormatAttr (TypedWhichId< T > nWhich, bool bInParents=true) const
 
SfxItemState GetItemState (sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
 
template<class T >
SfxItemState GetItemState (TypedWhichId< T > nWhich, bool bSrchInParent=true, const T **ppItem=nullptr) const
 
template<class T >
const T * GetItemIfSet (TypedWhichId< T > nWhich, bool bSrchInParent=true) const
 Templatized version of GetItemState() to directly return the correct type. More...
 
SfxItemState GetBackgroundState (std::unique_ptr< SvxBrushItem > &rItem) const
 
virtual bool SetFormatAttr (const SfxPoolItem &rAttr)
 
virtual bool SetFormatAttr (const SfxItemSet &rSet)
 
virtual bool ResetFormatAttr (sal_uInt16 nWhich1, sal_uInt16 nWhich2=0)
 
virtual sal_uInt16 ResetAllFormatAttr ()
 Takes all hints from Delta-Array,. More...
 
SwFormat * DerivedFrom () const
 
bool IsDefault () const
 
const OUString & GetName () const
 
bool HasName (std::u16string_view rName) const
 
virtual void SetFormatName (const OUString &rNewName, bool bBroadcast=false)
 
const SwAttrSet & GetAttrSet () const
 For querying the attribute array. More...
 
const SwDoc * GetDoc () const
 The document is set in SwAttrPool now, therefore you always can access it. More...
 
SwDoc * GetDoc ()
 
const IDocumentSettingAccess & getIDocumentSettingAccess () const
 Provides access to the document settings interface. More...
 
const IDocumentDrawModelAccess & getIDocumentDrawModelAccess () const
 Provides access to the document draw model interface. More...
 
IDocumentDrawModelAccess & getIDocumentDrawModelAccess ()
 
const IDocumentLayoutAccess & getIDocumentLayoutAccess () const
 Provides access to the document layout interface. More...
 
IDocumentLayoutAccess & getIDocumentLayoutAccess ()
 
IDocumentTimerAccess & getIDocumentTimerAccess ()
 Provides access to the document idle timer interface. More...
 
IDocumentFieldsAccess & getIDocumentFieldsAccess ()
 Provides access to the document idle timer interface. More...
 
IDocumentChartDataProviderAccess & getIDocumentChartDataProviderAccess ()
 Gives access to the chart data-provider. More...
 
sal_uInt16 GetPoolFormatId () const
 Get and set Pool style IDs. More...
 
void SetPoolFormatId (sal_uInt16 nId)
 
sal_uInt16 GetPoolHelpId () const
 Get and set Help-IDs for document templates. More...
 
void SetPoolHelpId (sal_uInt16 nId)
 
sal_uInt8 GetPoolHlpFileId () const
 
void SetPoolHlpFileId (sal_uInt8 nId)
 
void GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText) const
 Get attribute-description. Returns passed string. More...
 
bool IsAuto () const
 Query / set AutoFormat-flag. More...
 
void SetAuto (bool bNew)
 
bool IsHidden () const
 
void SetHidden (bool bValue)
 
void GetGrabBagItem (css::uno::Any &rVal) const
 
void SetGrabBagItem (const css::uno::Any &rVal)
 
bool IsAutoUpdateOnDirectFormat () const
 Query / set m_bAutoUpdateOnDirectFormat-flag. More...
 
void SetAutoUpdateOnDirectFormat (bool bNew=true)
 
bool IsFormatInDTOR () const
 
const SvxUnderlineItem & GetUnderline (bool=true) const
 GetMethods: Bool indicates whether to search only in Set (FALSE) or also in Parents. More...
 
const SvxFontHeightItem & GetSize (bool=true) const
 
const SvxFontItem & GetFont (bool=true) const
 
const SvxColorItem & GetColor (bool=true) const
 
const SvxFontItem & GetCJKFont (bool=true) const
 
const SvxFontItem & GetCTLFont (bool=true) const
 
const SwFormatFillOrder & GetFillOrder (bool=true) const
 Frame-attributes - implemented in frmatr.hxx. More...
 
const SwFormatFrameSize & GetFrameSize (bool=true) const
 
const SwFormatHeader & GetHeader (bool=true) const
 
const SwFormatFooter & GetFooter (bool=true) const
 
const SwFormatSurround & GetSurround (bool=true) const
 
const SwFormatHoriOrient & GetHoriOrient (bool=true) const
 
const SwFormatAnchor & GetAnchor (bool=true) const
 
const SwFormatCol & GetCol (bool=true) const
 
const SvxPaperBinItem & GetPaperBin (bool=true) const
 
const SvxLeftMarginItem & GetLeftMargin (bool=true) const
 
const SvxTextLeftMarginItem & GetTextLeftMargin (bool=true) const
 
const SvxFirstLineIndentItem & GetFirstLineIndent (bool=true) const
 
const SvxRightMarginItem & GetRightMargin (bool=true) const
 
const SvxGutterLeftMarginItem & GetGutterLeftMargin (bool=true) const
 
const SvxGutterRightMarginItem & GetGutterRightMargin (bool=true) const
 
const SvxLRSpaceItem & GetLRSpace (bool=true) const
 
const SvxULSpaceItem & GetULSpace (bool=true) const
 
const SwFormatContent & GetContent (bool=true) const
 
const SvxPrintItem & GetPrint (bool=true) const
 
const SvxOpaqueItem & GetOpaque (bool=true) const
 
const SvxProtectItem & GetProtect (bool=true) const
 
const SwFormatVertOrient & GetVertOrient (bool=true) const
 
const SvxBoxItem & GetBox (bool=true) const
 
const SvxFormatKeepItem & GetKeep (bool=true) const
 
std::unique_ptr< SvxBrushItem > makeBackgroundBrushItem (bool=true) const
 
const SvxShadowItem & GetShadow (bool=true) const
 
const SwFormatPageDesc & GetPageDesc (bool=true) const
 
const SvxFormatBreakItem & GetBreak (bool=true) const
 
const SvxMacroItem & GetMacro (bool=true) const
 
const SwFormatURL & GetURL (bool=true) const
 
const SwFormatEditInReadonly & GetEditInReadonly (bool=true) const
 
const SwFormatLayoutSplit & GetLayoutSplit (bool=true) const
 
const SwFormatRowSplit & GetRowSplit (bool=true) const
 
const SwFormatFlySplit & GetFlySplit (bool=true) const
 
const SwFormatChain & GetChain (bool=true) const
 
const SwFormatFootnoteAtTextEnd & GetFootnoteAtTextEnd (bool=true) const
 
const SwFormatEndAtTextEnd & GetEndAtTextEnd (bool=true) const
 
const SwFormatNoBalancedColumns & GetBalancedColumns (bool=true) const
 
const SvxFrameDirectionItem & GetFrameDir (bool=true) const
 
const SwTextGridItem & GetTextGrid (bool=true) const
 
const SwHeaderAndFooterEatSpacingItem & GetHeaderAndFooterEatSpacing (bool=true) const
 
const SwFormatFollowTextFlow & GetFollowTextFlow (bool=true) const
 
const SwFormatWrapInfluenceOnObjPos & GetWrapInfluenceOnObjPos (bool=true) const
 
const SdrTextVertAdjustItem & GetTextVertAdjust (bool=true) const
 
const SvxLineSpacingItem & GetLineSpacing (bool=true) const
 Paragraph-attributes - implemented in paratr.hxx. More...
 
const SwNumRuleItem & GetNumRule (bool=true) const
 
const SvxTabStopItem & GetTabStops (bool=true) const
 
const SwFormatDrop & GetDrop (bool=true) const
 
const SwTableBoxNumFormat & GetTableBoxNumFormat (bool=true) const
 TableBox attributes - implemented in cellatr.hxx. More...
 
const SwTableBoxFormula & GetTableBoxFormula (bool=true) const
 
const SwTableBoxValue & GetTableBoxValue (bool=true) const
 
void SetPageFormatToDefault ()
 
virtual bool IsBackgroundTransparent () const
 SwFormat::IsBackgroundTransparent. More...
 
virtual drawinglayer::attribute::SdrAllFillAttributesHelperPtr getSdrAllFillAttributesHelper () const
 
virtual bool supportsFullDrawingLayerFillAttributeSet () const
 
void RemoveAllUnos ()
 
- Public Member Functions inherited from sw::BorderCacheOwner
 BorderCacheOwner ()
 
 BorderCacheOwner (BorderCacheOwner &)
 
BorderCacheOwner & operator= (const BorderCacheOwner &)
 
 ~BorderCacheOwner ()
 
bool IsInCache () const
 
void InvalidateInSwCache (const sal_uInt16)
 

Private Member Functions

 SwFlyFrameFormat (const SwFlyFrameFormat &rCpy)=delete
 
SwFlyFrameFormat & operator= (const SwFlyFrameFormat &rCpy)=delete
 
 SwFlyFrameFormat (SwAttrPool &rPool, const OUString &rFormatNm, SwFrameFormat *pDrvdFrame)
 

Private Attributes

OUString msTitle
 
OUString msDesc
 
OUString msTooltip
 A tooltip has priority over an SwFormatURL and is not persisted to files. More...
 
Point m_aLastFlyFramePrtRectPos
 Both not existent. More...
 
std::unique_ptr< SwFlyDrawContact > m_pContact
 

Friends

class SwDoc
 

Additional Inherited Members

- Public Types inherited from SwFrameFormat
enum  tLayoutDir {
  HORI_L2R ,
  HORI_R2L ,
  VERT_R2L
}
 
- Protected Member Functions inherited from SwFrameFormat
 SwFrameFormat (SwAttrPool &rPool, const char *pFormatNm, SwFrameFormat *pDrvdFrame, sal_uInt16 nFormatWhich=RES_FRMFMT, const WhichRangesContainer &pWhichRange=aFrameFormatSetRange)
 
 SwFrameFormat (SwAttrPool &rPool, const OUString &rFormatNm, SwFrameFormat *pDrvdFrame, sal_uInt16 nFormatWhich=RES_FRMFMT, const WhichRangesContainer &pWhichRange=aFrameFormatSetRange)
 
virtual void SwClientNotify (const SwModify &, const SfxHint &) override
 
- Protected Member Functions inherited from SwFormat
 SwFormat (SwAttrPool &rPool, const char *pFormatNm, const WhichRangesContainer &pWhichRanges, SwFormat *pDrvdFrame, sal_uInt16 nFormatWhich)
 
 SwFormat (SwAttrPool &rPool, OUString aFormatNm, const WhichRangesContainer &pWhichRanges, SwFormat *pDrvdFrame, sal_uInt16 nFormatWhich)
 
 SwFormat (const SwFormat &rFormat)
 
virtual void SwClientNotify (const SwModify &, const SfxHint &) override
 

Detailed Description

Definition at line 219 of file frmfmt.hxx.

Constructor & Destructor Documentation

◆ SwFlyFrameFormat() [1/2]

SwFlyFrameFormat::SwFlyFrameFormat ( const SwFlyFrameFormat &  rCpy)
privatedelete

◆ SwFlyFrameFormat() [2/2]

SwFlyFrameFormat::SwFlyFrameFormat ( SwAttrPool &  rPool,
const OUString &  rFormatNm,
SwFrameFormat *  pDrvdFrame 
)
private

Definition at line 2925 of file atrfrm.cxx.

◆ ~SwFlyFrameFormat()

SwFlyFrameFormat::~SwFlyFrameFormat ( )
overridevirtual

Member Function Documentation

◆ GetAnchoredObj()

SwAnchoredObject * SwFlyFrameFormat::GetAnchoredObj ( ) const

Definition at line 3152 of file atrfrm.cxx.

References GetFrame().

Referenced by SwInsertChart::SwInsertChart().

◆ GetFrame()

SwFlyFrame * SwFlyFrameFormat::GetFrame ( const Point *  pDocPos = nullptr) const

◆ GetLastFlyFramePrtRectPos()

const Point & SwFlyFrameFormat::GetLastFlyFramePrtRectPos ( ) const
inline

Definition at line 283 of file frmfmt.hxx.

Referenced by SwFEShell::AlignFormulaToBaseline(), and SwWrtShell::CalcAndSetScale().

◆ GetObjDescription()

OUString SwFlyFrameFormat::GetObjDescription ( ) const

◆ GetObjTitle()

OUString SwFlyFrameFormat::GetObjTitle ( ) const

◆ GetObjTooltip()

const OUString & SwFlyFrameFormat::GetObjTooltip ( ) const

Definition at line 3203 of file atrfrm.cxx.

References msTooltip.

Referenced by SwDPage::RequestHelp().

◆ GetOrCreateContact()

SwFlyDrawContact * SwFlyFrameFormat::GetOrCreateContact ( )

◆ IsBackgroundBrushInherited()

bool SwFlyFrameFormat::IsBackgroundBrushInherited ( ) const

SwFlyFrameFormat::IsBackgroundBrushInherited.

SwFlyFrameFormat::IsBackgroundBrushInherited - for #103898#.

Method to determine, if the brush for drawing the background is "inherited" from its parent/grandparent. This is the case, if no background graphic is set and the background color is "no fill"/"auto fill"

Returns
true, if background brush is "inherited" from parent/grandparent

OD 08.10.2002 - method to determine, if the brush for drawing the background is "inherited" from its parent/grandparent. This is the case, if no background graphic is set and the background color is "no fill"/"auto fill" NOTE: condition is "copied" from method <SwFrame::GetBackgroundBrush(..).

Returns
true, if background brush is "inherited" from parent/grandparent

Definition at line 3305 of file atrfrm.cxx.

References COL_TRANSPARENT(), SwFrameFormat::getSdrAllFillAttributesHelper(), SwFormat::makeBackgroundBrushItem(), and SwFrameFormat::supportsFullDrawingLayerFillAttributeSet().

Referenced by lcl_SubtractFlys().

◆ IsBackgroundTransparent()

bool SwFlyFrameFormat::IsBackgroundTransparent ( ) const
overridevirtual

SwFlyFrameFormat::IsBackgroundTransparent.

SwFlyFrameFormat::IsBackgroundTransparent - for #99657#.

Override virtual method and its default implementation, because format of fly frame provides transparent backgrounds. Method determines, if background of fly frame is transparent.

Returns
true, if background color is transparent, but not "no fill" or an existing background graphic is transparent.

OD 22.08.2002 - overriding virtual method and its default implementation, because format of fly frame provides transparent backgrounds. Method determines, if background of fly frame is transparent.

Returns
true, if background color is transparent, but not "no fill" or the transparency of an existing background graphic is set.

Reimplemented from SwFormat.

Definition at line 3264 of file atrfrm.cxx.

References COL_TRANSPARENT(), GraphicObject::GetAttr(), SwFrameFormat::getSdrAllFillAttributesHelper(), GraphicAttr::IsTransparent(), SwFormat::makeBackgroundBrushItem(), and SwFrameFormat::supportsFullDrawingLayerFillAttributeSet().

Referenced by SwFlyFrame::IsBackgroundTransparent().

◆ MakeFrames()

void SwFlyFrameFormat::MakeFrames ( )
overridevirtual

◆ MakeGraphic()

Graphic SwFlyFrameFormat::MakeGraphic ( ImageMap *  pMap = nullptr,
const sal_uInt32  nMaximumQuadraticPixels = 500000,
const std::optional< Size > &  rTargetDPI = std::nullopt 
)
overridevirtual

◆ operator=()

SwFlyFrameFormat & SwFlyFrameFormat::operator= ( const SwFlyFrameFormat &  rCpy)
privatedelete

◆ SetLastFlyFramePrtRectPos()

void SwFlyFrameFormat::SetLastFlyFramePrtRectPos ( const Point &  rPoint)
inline

Definition at line 284 of file frmfmt.hxx.

Referenced by SwFEShell::RequestObjectResize().

◆ SetObjDecorative()

void SwFlyFrameFormat::SetObjDecorative ( bool  isDecorative)

◆ SetObjDescription()

void SwFlyFrameFormat::SetObjDescription ( const OUString &  rDescription,
bool  bBroadcast = false 
)

◆ SetObjTitle()

void SwFlyFrameFormat::SetObjTitle ( const OUString &  rTitle,
bool  bBroadcast = false 
)

◆ SetObjTooltip()

void SwFlyFrameFormat::SetObjTooltip ( const OUString &  rTooltip)

Definition at line 3198 of file atrfrm.cxx.

References msTooltip.

Friends And Related Function Documentation

◆ SwDoc

friend class SwDoc
friend

Definition at line 221 of file frmfmt.hxx.

Member Data Documentation

◆ m_aLastFlyFramePrtRectPos

Point SwFlyFrameFormat::m_aLastFlyFramePrtRectPos
private

Both not existent.

it stores the previous position of Prt rectangle from RequestObjectResize so it can be used to move frames of non-resizable objects to align them correctly when they get borders (this is done in SwWrtShell::CalcAndGetScale)

Definition at line 231 of file frmfmt.hxx.

◆ m_pContact

std::unique_ptr<SwFlyDrawContact> SwFlyFrameFormat::m_pContact
private

Definition at line 232 of file frmfmt.hxx.

Referenced by GetOrCreateContact().

◆ msDesc

OUString SwFlyFrameFormat::msDesc
private

Definition at line 223 of file frmfmt.hxx.

Referenced by GetObjDescription(), and SetObjDescription().

◆ msTitle

OUString SwFlyFrameFormat::msTitle
private

Definition at line 222 of file frmfmt.hxx.

Referenced by GetObjTitle(), and SetObjTitle().

◆ msTooltip

OUString SwFlyFrameFormat::msTooltip
private

A tooltip has priority over an SwFormatURL and is not persisted to files.

Definition at line 225 of file frmfmt.hxx.

Referenced by GetObjTooltip(), and SetObjTooltip().


The documentation for this class was generated from the following files: