lok: fix the window type of the formatted field control

Change-Id: Iab87c94ca19314eacec18e71d7d09ba42f1756e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93586
Tested-by: Jenkins
Reviewed-by: Henry Castro <hcastro@collabora.com>
diff --git a/include/tools/wintypes.hxx b/include/tools/wintypes.hxx
index b345724..865d62c 100644
--- a/include/tools/wintypes.hxx
+++ b/include/tools/wintypes.hxx
@@ -69,6 +69,7 @@ enum class WindowType : sal_uInt16
    PATTERNFIELD         ,
    NUMERICFIELD         , // 40 (344)
    METRICFIELD          ,
    FORMATTEDFIELD       ,
    CURRENCYFIELD        ,
    DATEFIELD            ,
    TIMEFIELD            ,
diff --git a/vcl/source/control/fmtfield.cxx b/vcl/source/control/fmtfield.cxx
index ba50e98..6ed2424 100644
--- a/vcl/source/control/fmtfield.cxx
+++ b/vcl/source/control/fmtfield.cxx
@@ -296,7 +296,7 @@ FormattedField::StaticFormatter::~StaticFormatter()
}

FormattedField::FormattedField(vcl::Window* pParent, WinBits nStyle)
    :SpinField(pParent, nStyle)
    :SpinField(pParent, nStyle, WindowType::FORMATTEDFIELD)
    ,m_aLastSelection(0,0)
    ,m_dMinValue(0)
    ,m_dMaxValue(0)
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 95466d4..5e70e26 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -3364,6 +3364,7 @@ const char* windowTypeName(WindowType nWindowType)
        case WindowType::PATTERNFIELD:              return "patternfield";
        case WindowType::NUMERICFIELD:              return "numericfield";
        case WindowType::METRICFIELD:               return "metricfield";
        case WindowType::FORMATTEDFIELD:            return "formattedfield";
        case WindowType::CURRENCYFIELD:             return "currencyfield";
        case WindowType::DATEFIELD:                 return "datefield";
        case WindowType::TIMEFIELD:                 return "timefield";