summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-05-24 08:16:57 +0200
committerMiklos Vajna <vmiklos@collabora.com>2022-05-24 15:00:25 +0200
commitaf353743dfe161e5289a7786a46bf3e8b1de43e3 (patch)
tree30fce5be4d3283e1a3ec99463038b18ff715bbda /sw/source/uibase
parent912b8fa62f897fb6fdfd760108d87c4dd468b8ee (diff)
sw content controls, date: add doc model & UNO API
This is meant to be a content control (providing rich text), which also has a dropdown-like date picker button. Add a new Date property to track this type, together with date format and date language. This should be enough for the UI to generate a correct date string when the file picker is used. Change-Id: If5d46a804d771e903a688fd73cfaf2d2809b7ab9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134847 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx
index ea022fc85b31..3bc0b76872a2 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -1031,6 +1031,7 @@ void SwWrtShell::InsertContentControl(SwContentControlType eType)
switch (eType)
{
case SwContentControlType::RICH_TEXT:
+ case SwContentControlType::DATE:
{
pContentControl->SetShowingPlaceHolder(true);
if (!HasSelection())