[Libreoffice-commits] .: writerfilter/source
Miklos Vajna
vmiklos at kemper.freedesktop.org
Tue Jun 12 07:53:38 PDT 2012
writerfilter/source/dmapper/FFDataHandler.cxx | 17 ++++++++++++++---
writerfilter/source/dmapper/FFDataHandler.hxx | 5 +++--
2 files changed, 17 insertions(+), 5 deletions(-)
New commits:
commit 9b0be41e96abb0a6547afad7de3a24f336bfdb5a
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Tue Jun 12 16:50:56 2012 +0200
n#766477 dmapper: import NS_ooxml::LN_CT_FFCheckBox_default
Change-Id: If7edb301fa90a49d79fc5322a7c19ee2591f5494
diff --git a/writerfilter/source/dmapper/FFDataHandler.cxx b/writerfilter/source/dmapper/FFDataHandler.cxx
index 4dac6f4..2a9d97b 100644
--- a/writerfilter/source/dmapper/FFDataHandler.cxx
+++ b/writerfilter/source/dmapper/FFDataHandler.cxx
@@ -41,7 +41,8 @@ FFDataHandler::FFDataHandler() :
LoggedProperties(dmapper_logger, "FFDataHandler"),
m_nCheckboxHeight(0),
m_bCheckboxAutoHeight(false),
-m_bCheckboxChecked(false)
+m_nCheckboxChecked(-1),
+m_nCheckboxDefault(-1)
{
}
@@ -77,7 +78,12 @@ bool FFDataHandler::getCheckboxAutoHeight() const
bool FFDataHandler::getCheckboxChecked() const
{
- return m_bCheckboxChecked;
+ if (m_nCheckboxChecked != -1)
+ return m_nCheckboxChecked;
+ else if (m_nCheckboxDefault != -1)
+ return m_nCheckboxDefault;
+ else
+ return false;
}
const rtl::OUString & FFDataHandler::getDropDownResult() const
@@ -126,7 +132,12 @@ void FFDataHandler::lcl_sprm(Sprm & r_Sprm)
break;
case NS_ooxml::LN_CT_FFCheckBox_checked:
{
- m_bCheckboxChecked = r_Sprm.getValue()->getInt();
+ m_nCheckboxChecked = r_Sprm.getValue()->getInt();
+ }
+ break;
+ case NS_ooxml::LN_CT_FFCheckBox_default:
+ {
+ m_nCheckboxDefault = r_Sprm.getValue()->getInt();
}
break;
case NS_ooxml::LN_CT_FFData_checkBox:
diff --git a/writerfilter/source/dmapper/FFDataHandler.hxx b/writerfilter/source/dmapper/FFDataHandler.hxx
index 5a192ab..b9d538c 100644
--- a/writerfilter/source/dmapper/FFDataHandler.hxx
+++ b/writerfilter/source/dmapper/FFDataHandler.hxx
@@ -58,7 +58,7 @@ public:
// member: checkboxAutoHeight
bool getCheckboxAutoHeight() const;
- // member: checkboxChecked
+ // member: checkboxChecked or checkboxDefault (if the previous is not set)
bool getCheckboxChecked() const;
// member: dropDownResult
@@ -79,7 +79,8 @@ private:
rtl::OUString m_sStatusText;
sal_uInt32 m_nCheckboxHeight;
bool m_bCheckboxAutoHeight;
- bool m_bCheckboxChecked;
+ int m_nCheckboxChecked;
+ int m_nCheckboxDefault;
rtl::OUString m_sDropDownResult;
DropDownEntries_t m_DropDownEntries;
rtl::OUString m_sTextDefault;
More information about the Libreoffice-commits
mailing list