summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-08-12 10:26:57 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-08-13 07:16:38 +0200
commitbfca3583e0df069b9e18ec1d7ca988276cc91f3f (patch)
tree7a9eab75b6107699a45a19dec2438cc75872b8a6 /include/vcl
parenteb7c82c423ee40f78ff48d7e3182b2766ed0f115 (diff)
tdf#130857 VclBuilder: Move m_bLegacy to base class
... and introduce a protected getter instead of accessing the member directly. Change-Id: I105cb10b015887ee14bba0c519f03e9ba8b4c3c1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171750 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Jenkins
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/builder.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/vcl/builder.hxx b/include/vcl/builder.hxx
index 300e806e04ab..78b4bb6a3f18 100644
--- a/include/vcl/builder.hxx
+++ b/include/vcl/builder.hxx
@@ -71,6 +71,8 @@ public:
typedef std::map<OUString, std::pair<OUString, OUString>> accelmap;
protected:
+ BuilderBase(bool bLegacy);
+
static void collectPangoAttribute(xmlreader::XmlReader& reader, stringmap& rMap);
static void collectAtkRelationAttribute(xmlreader::XmlReader& reader, stringmap& rMap);
static void collectAtkRoleAttribute(xmlreader::XmlReader& reader, stringmap& rMap);
@@ -78,6 +80,11 @@ protected:
static bool isToolbarItemClass(std::u16string_view sClass);
static std::vector<vcl::EnumContext::Context> handleStyle(xmlreader::XmlReader &reader, int &nPriority);
static OUString getStyleClass(xmlreader::XmlReader &reader);
+
+ bool isLegacy() { return m_bLegacy; }
+
+private:
+ bool m_bLegacy;
};
/// Creates a hierarchy of vcl::Windows (widgets) from a .ui file for dialogs, sidebar, etc.
@@ -296,7 +303,6 @@ private:
bool m_bToplevelHasDeferredInit;
bool m_bToplevelHasDeferredProperties;
bool m_bToplevelParentFound;
- bool m_bLegacy;
std::unique_ptr<ParserState> m_pParserState;
vcl::Window *get_by_name(std::u16string_view sID);