summaryrefslogtreecommitdiff
path: root/sc/inc/fielduno.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-05-04 22:15:10 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-05-05 11:10:18 -0400
commite7dc75ace3ba42d8f7f4736bac66a218cec5f39e (patch)
tree8b4067f6641633b6725954cf37c948c1e252a6d0 /sc/inc/fielduno.hxx
parent204c898d7b69731a6a013bb02842400d4a828783 (diff)
Have ScEditFieldObj use the UNO field type values.
Change-Id: I300817bd0263f427c9f4c424ae86b608015ce3e8
Diffstat (limited to 'sc/inc/fielduno.hxx')
-rw-r--r--sc/inc/fielduno.hxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/sc/inc/fielduno.hxx b/sc/inc/fielduno.hxx
index 6874c0bb0cf7..c20949c3451e 100644
--- a/sc/inc/fielduno.hxx
+++ b/sc/inc/fielduno.hxx
@@ -213,15 +213,11 @@ class ScEditFieldObj : public cppu::WeakImplHelper4<
public ::cppu::OComponentHelper,
private boost::noncopyable
{
-public:
- enum FieldType { URL = 0, Page, Pages, Date, Time, ExtTime, Title, File, Sheet };
-
-private:
const SfxItemPropertySet* pPropSet;
ScEditSource* mpEditSource;
ESelection aSelection;
- FieldType meType;
+ sal_Int32 meType;
boost::scoped_ptr<SvxFieldData> mpData;
com::sun::star::uno::Reference<com::sun::star::text::XTextRange> mpContent;
@@ -247,10 +243,10 @@ public:
ScEditFieldObj(
const com::sun::star::uno::Reference<com::sun::star::text::XTextRange>& rContent,
- ScEditSource* pEditSrc, FieldType eType, const ESelection& rSel);
+ ScEditSource* pEditSrc, sal_Int32 eType, const ESelection& rSel);
virtual ~ScEditFieldObj();
- FieldType GetFieldType() const;
+ sal_Int32 GetFieldType() const;
void DeleteField();
bool IsInserted() const;
SvxFieldItem CreateFieldItem();