diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-06-05 10:29:25 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-06-05 12:00:08 +0200 |
commit | 3d6a7cf3eb7aa966601cbc019d1ad5fafdddd21f (patch) | |
tree | e6b0dcfcd9edb66b3d48fa7945cf7c57d0259ed6 /writerfilter/source/dmapper/SdtHelper.hxx | |
parent | 6d51f9f948c5bf877ec8a53e3716f00fe5e81a23 (diff) |
bnc#820509 DOCX import: try harder to disable form design mode
Previously this only worked if we had indexes in the document as well,
but actually these are independent.
Change-Id: I28afa60d2606230c901948d4c1da8f5a7c50a9f7
Diffstat (limited to 'writerfilter/source/dmapper/SdtHelper.hxx')
-rw-r--r-- | writerfilter/source/dmapper/SdtHelper.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/SdtHelper.hxx b/writerfilter/source/dmapper/SdtHelper.hxx index d2ce37220fc4..814dac0745cd 100644 --- a/writerfilter/source/dmapper/SdtHelper.hxx +++ b/writerfilter/source/dmapper/SdtHelper.hxx @@ -44,6 +44,8 @@ namespace writerfilter { /// Date format, see com/sun/star/awt/UnoControlDateFieldModel.idl boost::optional<sal_Int16> m_oDateFormat; + bool m_bHasElements; + /// Create and append the drawing::XControlShape, containing the various models. void createControlShape(com::sun::star::awt::Size aSize, com::sun::star::uno::Reference<com::sun::star::awt::XControlModel>); public: @@ -53,6 +55,8 @@ namespace writerfilter { std::vector<OUString>& getDropDownItems(); OUStringBuffer& getSdtTexts(); boost::optional<sal_Int16>& getDateFormat(); + /// If createControlShape() was ever called. + bool hasElements(); /// Create drop-down control from w:sdt's w:dropDownList. void createDropDownControl(); |