19#ifndef INCLUDED_SW_SOURCE_UI_VBA_VBAFIND_HXX
20#define INCLUDED_SW_SOURCE_UI_VBA_VBAFIND_HXX
22#include <ooo/vba/word/XFind.hpp>
24#include <com/sun/star/text/XTextRange.hpp>
25#include <com/sun/star/util/XReplaceable.hpp>
26#include <com/sun/star/util/XPropertyReplace.hpp>
27#include <com/sun/star/text/XTextViewCursor.hpp>
28#include <com/sun/star/view/XSelectionSupplier.hpp>
35 css::uno::Reference< css::frame::XModel >
mxModel;
39 css::uno::Reference< css::text::XTextViewCursor>
mxTVC;
40 css::uno::Reference< css::view::XSelectionSupplier>
mxSelSupp;
47 bool InRange(
const css::uno::Reference< css::text::XTextRange >& xCurrentRange );
49 bool InEqualRange(
const css::uno::Reference< css::text::XTextRange >& xCurrentRange );
61 SwVbaFind(
const css::uno::Reference< ooo::vba::XHelperInterface >& rParent,
const css::uno::Reference< css::uno::XComponentContext >& rContext, css::uno::Reference< css::frame::XModel > xModel );
63 static css::uno::Reference< ooo::vba::word::XFind >
GetOrCreateFind(
const css::uno::Reference< ooo::vba::XHelperInterface >& rParent,
const css::uno::Reference< com::sun::star::uno::XComponentContext >& rContext,
const css::uno::Reference< com::sun::star::frame::XModel >& xModel,
const css::uno::Reference< css::text::XTextRange >& xTextRange);
67 virtual OUString SAL_CALL
getText()
override;
68 virtual void SAL_CALL
setText(
const OUString& _text )
override;
70 virtual void SAL_CALL
setReplacement(
const css::uno::Any& _replacement )
override;
73 virtual ::sal_Int32 SAL_CALL
getWrap()
override;
74 virtual void SAL_CALL
setWrap( ::sal_Int32 _wrap )
override;
87 virtual css::uno::Any SAL_CALL
getStyle()
override;
88 virtual void SAL_CALL
setStyle(
const css::uno::Any& _style )
override;
91 virtual sal_Bool SAL_CALL
Execute(
const css::uno::Any& FindText,
const css::uno::Any& MatchCase,
const css::uno::Any& MatchWholeWord,
const css::uno::Any& MatchWildcards,
const css::uno::Any& MatchSoundsLike,
const css::uno::Any& MatchAllWordForms,
const css::uno::Any& Forward,
const css::uno::Any& Wrap,
const css::uno::Any& Format,
const css::uno::Any& ReplaceWith,
const css::uno::Any& Replace,
const css::uno::Any& MatchKashida,
const css::uno::Any& MatchDiacritics,
const css::uno::Any& MatchAlefHamza,
const css::uno::Any& MatchControl,
const css::uno::Any& MatchPrefix,
const css::uno::Any& MatchSuffix,
const css::uno::Any& MatchPhrase,
const css::uno::Any& IgnoreSpace,
const css::uno::Any& IgnorePunct )
override;
virtual sal_Bool SAL_CALL getFormat() override
virtual void SAL_CALL setMatchCase(sal_Bool _matchcase) override
virtual void SAL_CALL setMatchWholeWord(sal_Bool _matchwholeword) override
virtual void SAL_CALL setMatchAllWordForms(sal_Bool _matchallwordforms) override
virtual OUString getServiceImplName() override
virtual sal_Bool SAL_CALL getMatchSoundsLike() override
static css::uno::Reference< ooo::vba::word::XFind > GetOrCreateFind(const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< com::sun::star::uno::XComponentContext > &rContext, const css::uno::Reference< com::sun::star::frame::XModel > &xModel, const css::uno::Reference< css::text::XTextRange > &xTextRange)
void SetReplaceWith(const OUString &rText)
virtual css::uno::Any SAL_CALL getStyle() override
css::uno::Reference< css::text::XTextViewCursor > mxTVC
virtual void SAL_CALL setFormat(sal_Bool _format) override
css::uno::Reference< css::text::XTextRange > mxTextRange
virtual sal_Bool SAL_CALL getMatchAllWordForms() override
virtual void SAL_CALL setText(const OUString &_text) override
SwVbaFind(const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, css::uno::Reference< css::frame::XModel > xModel)
virtual OUString SAL_CALL getText() override
virtual ::sal_Int32 SAL_CALL getWrap() override
virtual sal_Bool SAL_CALL Execute(const css::uno::Any &FindText, const css::uno::Any &MatchCase, const css::uno::Any &MatchWholeWord, const css::uno::Any &MatchWildcards, const css::uno::Any &MatchSoundsLike, const css::uno::Any &MatchAllWordForms, const css::uno::Any &Forward, const css::uno::Any &Wrap, const css::uno::Any &Format, const css::uno::Any &ReplaceWith, const css::uno::Any &Replace, const css::uno::Any &MatchKashida, const css::uno::Any &MatchDiacritics, const css::uno::Any &MatchAlefHamza, const css::uno::Any &MatchControl, const css::uno::Any &MatchPrefix, const css::uno::Any &MatchSuffix, const css::uno::Any &MatchPhrase, const css::uno::Any &IgnoreSpace, const css::uno::Any &IgnorePunct) override
css::uno::Reference< css::frame::XModel > mxModel
virtual css::uno::Sequence< OUString > getServiceNames() override
virtual sal_Bool SAL_CALL getMatchWholeWord() override
css::uno::Reference< css::util::XReplaceable > mxReplaceable
virtual void SAL_CALL setWrap(::sal_Int32 _wrap) override
bool InRange(const css::uno::Reference< css::text::XTextRange > &xCurrentRange)
void SetReplace(sal_Int32 type)
virtual void SAL_CALL setForward(sal_Bool _forward) override
virtual void SAL_CALL setReplacement(const css::uno::Any &_replacement) override
virtual css::uno::Any SAL_CALL getReplacement() override
virtual sal_Bool SAL_CALL getMatchWildcards() override
css::uno::Reference< css::text::XTextRange > FindOneElement()
virtual ~SwVbaFind() override
virtual void SAL_CALL setStyle(const css::uno::Any &_style) override
virtual sal_Bool SAL_CALL getForward() override
virtual void SAL_CALL setMatchWildcards(sal_Bool _matchwildcards) override
virtual void SAL_CALL ClearFormatting() override
virtual void SAL_CALL setMatchSoundsLike(sal_Bool _matchsoundslike) override
css::uno::Reference< css::util::XPropertyReplace > mxPropertyReplace
bool InEqualRange(const css::uno::Reference< css::text::XTextRange > &xCurrentRange)
virtual sal_Bool SAL_CALL getMatchCase() override
css::uno::Reference< css::view::XSelectionSupplier > mxSelSupp
OUString GetReplaceWith()
InheritedHelperInterfaceWeakImpl< ooo::vba::word::XFind > SwVbaFind_BASE