20#ifndef INCLUDED_SW_INC_SECTION_HXX
21#define INCLUDED_SW_INC_SECTION_HXX
23#include <com/sun/star/uno/Sequence.h>
24#include <com/sun/star/text/XTextSection.hpp>
99 void SetHidden(
bool const bFlag) { m_bHidden = bFlag; }
109 { m_bEditInReadonlyFlag = bFlag; }
120 m_sLinkFileName = rNew;
127 {
return m_Password; }
129 { m_Password = rNew; }
154 SAL_DLLPRIVATE
void ImplSetHiddenFlag(
155 bool const bHidden,
bool const bCondition);
182 void SetHidden (
bool const bFlag =
true);
183 bool IsProtect()
const;
184 void SetProtect(
bool const bFlag =
true);
185 bool IsEditInReadonly()
const;
186 void SetEditInReadonly(
bool const bFlag =
true);
194 void SetCondHidden(
bool const bFlag);
197 bool CalcHiddenFlag()
const;
204 OUString
const & GetLinkFileName()
const;
205 void SetLinkFileName(OUString
const& rNew);
225 { m_RefLink->SetUpdateMode(
nType); }
231 const ::sfx2::SvBaseLink&
GetBaseLink()
const {
return *m_RefLink; }
236 static void MakeChildLinksVisible(
const SwSectionNode& rSectNd );
275 ,
public ::sfx2::Metadatable
285 SAL_DLLPRIVATE
void UpdateParent();
294 virtual void DelFrames()
override;
302 virtual bool IsVisible()
const override;
306 inline SwSection* GetParentSection()
const;
313 bool bAllSections =
true )
const;
316 bool IsInNodesArr()
const;
321 ->GetSectionNode(); }
324 const SwSection* GetGlobalDocSection()
const;
327 {
return m_wXTextSection; }
331 virtual ::sfx2::IXmlIdRegistry& GetRegistry()
override;
332 virtual bool IsInClipboard()
const override;
333 virtual bool IsInUndo()
const override;
334 virtual bool IsInContent()
const override;
335 virtual css::uno::Reference< css::rdf::XMetadatable > MakeUnoObject()
override;
336 virtual bool supportsFullDrawingLayerFillAttributeSet()
const override;
363 if( GetRegisteredIn() )
const SwModify * GetRegisteredIn() const
void dumpAsXml(xmlTextWriterPtr=nullptr) const
Dumps the entire nodes structure to the given destination (file nodes.xml in the current directory by...
virtual const SwFrameFormat * GetFormat() const
bool IsEditInReadonlyFlag() const
bool m_bProtectFlag
Flags that correspond to attributes in the format: may have different value than format attribute: fo...
void SetHidden(bool const bFlag)
SAL_DLLPRIVATE void SetProtectFlag(bool const bFlag)
bool m_bHiddenFlag
It seems this flag caches the current final "hidden" state.
void SetEditInReadonlyFlag(bool const bFlag)
void SetConnectFlag(bool const bFlag)
const OUString & GetLinkFilePassword() const
void SetCondHidden(bool const bFlag)
bool IsConnectFlag() const
void SetSectionName(OUString const &rName)
bool IsProtectFlag() const
OUString m_sLinkFilePassword
void SetType(SectionType const eNew)
SectionType GetType() const
void SetLinkFilePassword(OUString const &rS)
css::uno::Sequence< sal_Int8 > m_Password
bool m_bCondHiddenFlag
Hide condition evaluated ‘true’.
void SetCondition(OUString const &rNew)
void SetLinkFileName(OUString const &rNew)
SAL_DLLPRIVATE void SetHiddenFlag(bool const bFlag)
const OUString & GetCondition() const
const OUString & GetLinkFileName() const
OUString m_sCondition
Hide condition.
css::uno::Sequence< sal_Int8 > const & GetPassword() const
void SetPassword(css::uno::Sequence< sal_Int8 > const &rNew)
bool IsCondHidden() const
bool IsHiddenFlag() const
bool m_bEditInReadonlyFlag
const OUString & GetSectionName() const
bool m_bHidden
Section is hidden, unless condition evaluates ‘false’.
SwSectionFrameMoveAndDeleteHint(const bool bSaveContent)
bool IsSaveContent() const
virtual void dumpAsXml(xmlTextWriterPtr writer=nullptr) const override
virtual void SwClientNotify(const SwModify &, const SfxHint &) override
A section node represents the start of a section on the UI, i.e.
tools::SvRef< SwServerObject > m_RefObj
OUString const & GetCondition() const
void SetUpdateType(SfxLinkUpdateMode nType)
bool IsProtectFlag() const
css::uno::Sequence< sal_Int8 > const & GetPassword() const
SwServerObject * GetObject()
bool IsHiddenFlag() const
SwSection * GetParent() const
const OUString & GetSectionName() const
SwSectionFormat * GetFormat()
tools::SvRef< sfx2::SvBaseLink > m_RefLink
void SetType(SectionType const eType)
void SetLinkFilePassword(OUString const &rS)
const SwServerObject * GetObject() const
const ::sfx2::SvBaseLink & GetBaseLink() const
OUString const & GetLinkFilePassword() const
SectionType GetType() const
::sfx2::SvBaseLink & GetBaseLink()
SfxLinkUpdateMode GetUpdateType() const
bool IsConnectFlag() const
bool IsCondHidden() const
void SetCondition(OUString const &rNew)
bool IsEditInReadonlyFlag() const
void SetConnectFlag(bool const bFlag=true)
void SetSectionName(OUString const &rName)
struct _xmlTextWriter * xmlTextWriterPtr
const EnumerationType m_eType
@ SwSectionFrameMoveAndDelete
std::vector< SwSection * > SwSections
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)