summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHubert Figuière <hub@collabora.com>2024-03-22 09:59:54 -0400
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-03-25 15:39:27 +0100
commit7586da84124f4aa73fd21081610de78d5d416fe6 (patch)
treeeb2fbe1db75f449d37e671a54aa9c83ff2c29f31 /include
parentf791b56325c8eac4ad321a3b927c9eb3f02baab0 (diff)
vcl: Implement JSLevelBar
This fixes the JSDialog layout of the sheet protection dialog. This was introduced for 24.02 to provide password strength indication of the sheet password. Defined a new WindowType of PROGRESSBAR. The type property in JSDialog JSON will be "progressbar". Change-Id: I202528a81706943e1838f3c37fb555f4a1bf889e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165168 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/toolkit/prgsbar.hxx3
-rw-r--r--include/vcl/wintypes.hxx3
2 files changed, 5 insertions, 1 deletions
diff --git a/include/vcl/toolkit/prgsbar.hxx b/include/vcl/toolkit/prgsbar.hxx
index 1fcba74fdaba..bced6fc9e259 100644
--- a/include/vcl/toolkit/prgsbar.hxx
+++ b/include/vcl/toolkit/prgsbar.hxx
@@ -73,6 +73,9 @@ private:
SAL_DLLPRIVATE void ImplInitSettings( bool bFont, bool bForeground, bool bBackground );
SAL_DLLPRIVATE void ImplDrawProgress(vcl::RenderContext& rRenderContext, sal_uInt16 nNewPerc);
+protected:
+ virtual void DumpAsPropertyTree(tools::JsonWriter&) override;
+
public:
ProgressBar( vcl::Window* pParent, WinBits nWinBits, BarStyle eBarStyle );
diff --git a/include/vcl/wintypes.hxx b/include/vcl/wintypes.hxx
index 644b2405cc2a..c025e83b0afe 100644
--- a/include/vcl/wintypes.hxx
+++ b/include/vcl/wintypes.hxx
@@ -98,7 +98,8 @@ enum class WindowType : sal_uInt16
RULER ,
HEADERBAR ,
VERTICALTABCONTROL ,
- LAST = VERTICALTABCONTROL,
+ PROGRESSBAR ,
+ LAST = PROGRESSBAR,
// only used in vclxtoolkit.cxx
TOOLKIT_FRAMEWINDOW = 0x1000,
TOOLKIT_SYSTEMCHILDWINDOW = 0x1001,