diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-08 11:48:30 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-08 14:23:05 -0400 |
commit | 1af56c22b4b17922f43b67aaf1ceb9562b98f941 (patch) | |
tree | 4d066f129b19a7e83ccf5f2161aaf4e6ed1a5d03 /sc/inc/fielduno.hxx | |
parent | 63114e6d863de32e2d93f0da54caca928916d9c2 (diff) |
Adjust ScEditFieldObj for the change done in SvxUnoTextRangeBase.
Treat date and time field types together, and handle appropriate
properties to have it not throw UnknownPropertyValue exception.
Change-Id: I6a4c512fb3030bfc48ab7372cb1a217069dedfc4
Diffstat (limited to 'sc/inc/fielduno.hxx')
-rw-r--r-- | sc/inc/fielduno.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sc/inc/fielduno.hxx b/sc/inc/fielduno.hxx index c20949c3451e..62ab90f716c3 100644 --- a/sc/inc/fielduno.hxx +++ b/sc/inc/fielduno.hxx @@ -43,6 +43,7 @@ #include <com/sun/star/container/XIndexAccess.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/util/XRefreshable.hpp> +#include <com/sun/star/util/DateTime.hpp> #include <cppuhelper/component.hxx> #include <cppuhelper/implbase5.hxx> #include <cppuhelper/implbase4.hxx> @@ -221,7 +222,10 @@ class ScEditFieldObj : public cppu::WeakImplHelper4< boost::scoped_ptr<SvxFieldData> mpData; com::sun::star::uno::Reference<com::sun::star::text::XTextRange> mpContent; + com::sun::star::util::DateTime maDateTime; + sal_Int32 mnNumFormat; bool mbIsDate:1; + bool mbIsFixed:1; private: ScEditFieldObj(); // disabled @@ -234,7 +238,9 @@ private: void setPropertyValueFile(const rtl::OUString& rName, const com::sun::star::uno::Any& rVal); com::sun::star::uno::Any getPropertyValueFile(const rtl::OUString& rName); - void setPropertyValueExtTime(const rtl::OUString& rName, const com::sun::star::uno::Any& rVal); + void setPropertyValueDateTime(const rtl::OUString& rName, const com::sun::star::uno::Any& rVal); + com::sun::star::uno::Any getPropertyValueDateTime(const rtl::OUString& rName); + void setPropertyValueSheet(const rtl::OUString& rName, const com::sun::star::uno::Any& rVal); public: |