From 1219650c9676e9914c610d96908e6813c4a07ee5 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 11 Dec 2019 11:57:14 +0000 Subject: Related: tdf#129300 add ScIndentItem to provide a description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ieb1a12f35cf8974c557c6e52eac0cd9fb7f80914 Reviewed-on: https://gerrit.libreoffice.org/84945 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sc/inc/attrib.hxx | 12 ++++++++++++ sc/inc/globstr.hrc | 1 + sc/inc/scitems.hxx | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) (limited to 'sc/inc') diff --git a/sc/inc/attrib.hxx b/sc/inc/attrib.hxx index 59be64fb243d..5227a361834d 100644 --- a/sc/inc/attrib.hxx +++ b/sc/inc/attrib.hxx @@ -345,6 +345,18 @@ public: const IntlWrapper& rIntl) const override; }; +class SC_DLLPUBLIC ScIndentItem final : public SfxUInt16Item +{ +public: + ScIndentItem(sal_uInt16 nIndent = 0); + virtual ScIndentItem* Clone(SfxItemPool* pPool=nullptr) const override; + + virtual bool GetPresentation( SfxItemPresentation ePresentation, + MapUnit, MapUnit, + OUString& rText, + const IntlWrapper& rIntl) const override; +}; + #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/inc/globstr.hrc b/sc/inc/globstr.hrc index 4f13865ca778..acb159d4605f 100644 --- a/sc/inc/globstr.hrc +++ b/sc/inc/globstr.hrc @@ -523,6 +523,7 @@ #define STR_LINEBREAKCELL_OFF NC_("STR_LINEBREAKCELL_OFF", "Wrap text automatically: Off") #define STR_HYPHENATECELL_ON NC_("STR_HYPHENATECELL_ON", "Hyphenate: On") #define STR_HYPHENATECELL_OFF NC_("STR_HYPHENATECELL_OFF", "Hyphenate: Off") +#define STR_INDENTCELL NC_("STR_INDENTCELL", "Indent: ") #endif diff --git a/sc/inc/scitems.hxx b/sc/inc/scitems.hxx index 674bf07fa3e9..6e5054d7757d 100644 --- a/sc/inc/scitems.hxx +++ b/sc/inc/scitems.hxx @@ -117,7 +117,7 @@ class SvxSizeItem; #define ATTR_FORBIDDEN_RULES TypedWhichId(128) #define ATTR_HOR_JUSTIFY TypedWhichId(129) #define ATTR_HOR_JUSTIFY_METHOD TypedWhichId(130) -#define ATTR_INDENT TypedWhichId(131) +#define ATTR_INDENT TypedWhichId(131) #define ATTR_VER_JUSTIFY TypedWhichId(132) #define ATTR_VER_JUSTIFY_METHOD TypedWhichId(133) #define ATTR_STACKED TypedWhichId(134) -- cgit v1.2.3