diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-23 17:01:32 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-26 09:57:59 -0400 |
commit | e04892dbb121b3e04e4f432af0bdc0cd7757973c (patch) | |
tree | 09cfa9eb10bb92e8619e22309eca3033ed138615 /sc/inc/fielduno.hxx | |
parent | 53943e8b5ece1c4b2efa74e554569225fb868f0f (diff) |
Have the caller of ScEditFieldObj define the content the field belongs to.
Diffstat (limited to 'sc/inc/fielduno.hxx')
-rw-r--r-- | sc/inc/fielduno.hxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sc/inc/fielduno.hxx b/sc/inc/fielduno.hxx index 23fcba5a5b83..d0ce1abf4838 100644 --- a/sc/inc/fielduno.hxx +++ b/sc/inc/fielduno.hxx @@ -481,6 +481,7 @@ private: FieldType meType; boost::scoped_ptr<SvxFieldData> mpData; + com::sun::star::uno::Reference<com::sun::star::text::XTextRange> mpContent; private: ScEditFieldObj(); // disabled @@ -488,11 +489,12 @@ private: SvxFieldData* getData(); public: - static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId(); static ScEditFieldObj* getImplementation(const com::sun::star::uno::Reference<com::sun::star::text::XTextContent>& xObj); - ScEditFieldObj(FieldType eType, ScDocShell* pDocSh, const ScAddress& rPos, const ESelection& rSel); + ScEditFieldObj( + const com::sun::star::uno::Reference<com::sun::star::text::XTextRange>& rContent, + FieldType eType, ScDocShell* pDocSh, const ScAddress& rPos, const ESelection& rSel); virtual ~ScEditFieldObj(); virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint); @@ -500,7 +502,9 @@ public: void DeleteField(); bool IsInserted() const; SvxFieldItem CreateFieldItem(); - void InitDoc(FieldType eType, ScDocShell* pDocSh, const ScAddress& rPos, const ESelection& rSel); + void InitDoc( + const com::sun::star::uno::Reference<com::sun::star::text::XTextRange>& rContent, + FieldType eType, ScDocShell* pDocSh, const ScAddress& rPos, const ESelection& rSel); // XTextField virtual ::rtl::OUString SAL_CALL getPresentation( sal_Bool bShowCommand ) |