Kaydet (Commit) 256480b8 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: prefix members of SwContentType

Change-Id: Ia6d98985f2abf6733d54f49f448a2ce6d4e3572d
Reviewed-on: https://gerrit.libreoffice.org/70758Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
üst 5218009f
......@@ -138,18 +138,18 @@ public:
*/
class SwContentType : public SwTypeNumber
{
SwWrtShell* pWrtShell;
SwWrtShell* m_pWrtShell;
std::unique_ptr<SwContentArr>
pMember; // array for content
OUString const sContentTypeName; // name of content type
OUString const sSingleContentTypeName; // name of content type, singular
OUString sTypeToken; // attachment for URL
size_t nMemberCount; // content count
ContentTypeId const nContentType; // content type's Id
sal_uInt8 nOutlineLevel;
bool bDataValid : 1;
bool bEdit: 1; // can this type be edited?
bool bDelete: 1; // can this type be deleted?
m_pMember; // array for content
OUString const m_sContentTypeName; // name of content type
OUString const m_sSingleContentTypeName; // name of content type, singular
OUString m_sTypeToken; // attachment for URL
size_t m_nMemberCount; // content count
ContentTypeId const m_nContentType; // content type's Id
sal_uInt8 m_nOutlineLevel;
bool m_bDataValid : 1;
bool m_bEdit: 1; // can this type be edited?
bool m_bDelete: 1; // can this type be deleted?
protected:
static OUString RemoveNewline(const OUString&);
public:
......@@ -161,25 +161,25 @@ public:
/** Fill the List of contents */
void FillMemberList(bool* pbLevelChanged = nullptr);
size_t GetMemberCount() const
{return nMemberCount;};
ContentTypeId GetType() const {return nContentType;}
{return m_nMemberCount;};
ContentTypeId GetType() const {return m_nContentType;}
/** Deliver content, for that if necessary fill the list */
const SwContent* GetMember(size_t nIndex);
const OUString& GetName() {return sContentTypeName;}
const OUString& GetSingleName() const {return sSingleContentTypeName;}
const OUString& GetTypeToken() const{return sTypeToken;}
const OUString& GetName() {return m_sContentTypeName;}
const OUString& GetSingleName() const {return m_sSingleContentTypeName;}
const OUString& GetTypeToken() const{return m_sTypeToken;}
void SetOutlineLevel(sal_uInt8 nNew)
{
nOutlineLevel = nNew;
m_nOutlineLevel = nNew;
Invalidate();
}
void Invalidate(); // only nMemberCount is read again
bool IsEditable() const {return bEdit;}
bool IsDeletable() const {return bDelete;}
bool IsEditable() const {return m_bEdit;}
bool IsDeletable() const {return m_bDelete;}
};
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment