LibreOffice Module sw (master) 1
|
#include <vbafind.hxx>
Public Member Functions | |
virtual | ~SwVbaFind () override |
virtual OUString SAL_CALL | getText () override |
virtual void SAL_CALL | setText (const OUString &_text) override |
virtual css::uno::Any SAL_CALL | getReplacement () override |
virtual void SAL_CALL | setReplacement (const css::uno::Any &_replacement) override |
virtual sal_Bool SAL_CALL | getForward () override |
virtual void SAL_CALL | setForward (sal_Bool _forward) override |
virtual ::sal_Int32 SAL_CALL | getWrap () override |
virtual void SAL_CALL | setWrap (::sal_Int32 _wrap) override |
virtual sal_Bool SAL_CALL | getFormat () override |
virtual void SAL_CALL | setFormat (sal_Bool _format) override |
virtual sal_Bool SAL_CALL | getMatchCase () override |
virtual void SAL_CALL | setMatchCase (sal_Bool _matchcase) override |
virtual sal_Bool SAL_CALL | getMatchWholeWord () override |
virtual void SAL_CALL | setMatchWholeWord (sal_Bool _matchwholeword) override |
virtual sal_Bool SAL_CALL | getMatchWildcards () override |
virtual void SAL_CALL | setMatchWildcards (sal_Bool _matchwildcards) override |
virtual sal_Bool SAL_CALL | getMatchSoundsLike () override |
virtual void SAL_CALL | setMatchSoundsLike (sal_Bool _matchsoundslike) override |
virtual sal_Bool SAL_CALL | getMatchAllWordForms () override |
virtual void SAL_CALL | setMatchAllWordForms (sal_Bool _matchallwordforms) override |
virtual css::uno::Any SAL_CALL | getStyle () override |
virtual void SAL_CALL | setStyle (const css::uno::Any &_style) 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 |
virtual void SAL_CALL | ClearFormatting () override |
virtual OUString | getServiceImplName () override |
virtual css::uno::Sequence< OUString > | getServiceNames () override |
Public Member Functions inherited from InheritedHelperInterfaceWeakImpl< typename... Ifc > | |
InheritedHelperInterfaceWeakImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext) | |
Public Member Functions inherited from InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > > | |
InheritedHelperInterfaceImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, css::uno::Reference< css::uno::XComponentContext > xContext) | |
virtual OUString | getServiceImplName ()=0 |
virtual css::uno::Sequence< OUString > | getServiceNames ()=0 |
virtual ::sal_Int32 SAL_CALL | getCreator () override |
virtual css::uno::Reference< ov::XHelperInterface > SAL_CALL | getParent () override |
virtual css::uno::Any SAL_CALL | Application () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Static Public Member Functions | |
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) |
Private Member Functions | |
bool | InRange (const css::uno::Reference< css::text::XTextRange > &xCurrentRange) |
bool | InEqualRange (const css::uno::Reference< css::text::XTextRange > &xCurrentRange) |
void | SetReplace (sal_Int32 type) |
void | SetReplaceWith (const OUString &rText) |
OUString | GetReplaceWith () |
css::uno::Reference< css::text::XTextRange > | FindOneElement () |
bool | SearchReplace () |
SwVbaFind (const css::uno::Reference< ooo::vba::XHelperInterface > &rParent, const css::uno::Reference< css::uno::XComponentContext > &rContext, css::uno::Reference< css::frame::XModel > xModel) | |
Private Attributes | |
css::uno::Reference< css::frame::XModel > | mxModel |
css::uno::Reference< css::text::XTextRange > | mxTextRange |
css::uno::Reference< css::util::XReplaceable > | mxReplaceable |
css::uno::Reference< css::util::XPropertyReplace > | mxPropertyReplace |
css::uno::Reference< css::text::XTextViewCursor > | mxTVC |
css::uno::Reference< css::view::XSelectionSupplier > | mxSelSupp |
bool | mbReplace |
sal_Int32 | mnReplaceType |
sal_Int32 | mnWrap |
Additional Inherited Members | |
Protected Attributes inherited from InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > > | |
css::uno::WeakReference< ov::XHelperInterface > | mxParent |
css::uno::Reference< css::uno::XComponentContext > | mxContext |
Definition at line 32 of file vbafind.hxx.
|
private |
css::uno::RuntimeException |
Definition at line 34 of file vbafind.cxx.
References ooo::vba::word::getXTextViewCursor(), mxModel, mxModel, mxPropertyReplace, mxReplaceable, mxSelSupp, mxTVC, and xModel.
Referenced by GetOrCreateFind().
|
overridevirtual |
Definition at line 43 of file vbafind.cxx.
|
overridevirtual |
Definition at line 409 of file vbafind.cxx.
References mxPropertyReplace.
|
overridevirtual |
Definition at line 329 of file vbafind.cxx.
References Format, Forward, uno::Any::hasValue(), MatchCase, MatchWholeWord, nValue, Replace, result, SearchReplace(), setFormat(), setForward(), setMatchAllWordForms(), setMatchCase(), setMatchSoundsLike(), setMatchWholeWord(), setMatchWildcards(), SetReplace(), SetReplaceWith(), setText(), and setWrap().
|
private |
css::uno::RuntimeException |
Definition at line 95 of file vbafind.cxx.
References getForward(), getWrap(), InEqualRange(), InRange(), mxPropertyReplace, mxReplaceable, mxTextRange, and mxTVC.
Referenced by SearchReplace().
|
overridevirtual |
Definition at line 243 of file vbafind.cxx.
References mxPropertyReplace.
|
overridevirtual |
Definition at line 218 of file vbafind.cxx.
References mxPropertyReplace.
Referenced by FindOneElement().
|
overridevirtual |
Definition at line 302 of file vbafind.cxx.
References mxPropertyReplace, and value.
|
overridevirtual |
Definition at line 253 of file vbafind.cxx.
References mxPropertyReplace, and value.
|
overridevirtual |
Definition at line 289 of file vbafind.cxx.
References mxPropertyReplace, and value.
|
overridevirtual |
Definition at line 265 of file vbafind.cxx.
References mxPropertyReplace, and value.
|
overridevirtual |
Definition at line 277 of file vbafind.cxx.
References mxPropertyReplace, and value.
|
static |
Definition at line 47 of file vbafind.cxx.
References SwDocShell::GetDoc(), ooo::vba::word::getDocShell(), SwDoc::getVbaFind(), SwDoc::setVbaFind(), SwVbaFind(), and xModel.
Referenced by SwVbaRange::getFind(), and SwVbaSelection::getFind().
|
overridevirtual |
Definition at line 208 of file vbafind.cxx.
References InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >::mxContext, and mxPropertyReplace.
|
private |
css::uno::RuntimeException |
Definition at line 86 of file vbafind.cxx.
References mxPropertyReplace.
Referenced by SearchReplace().
|
overridevirtual |
Implements InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 416 of file vbafind.cxx.
|
overridevirtual |
Implements InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >.
Definition at line 422 of file vbafind.cxx.
References aServiceNames.
|
overridevirtual |
Definition at line 318 of file vbafind.cxx.
|
overridevirtual |
Definition at line 198 of file vbafind.cxx.
References mxPropertyReplace.
|
override |
|
private |
css::uno::RuntimeException |
Definition at line 74 of file vbafind.cxx.
References mxTextRange.
Referenced by FindOneElement().
|
private |
css::uno::RuntimeException |
Definition at line 68 of file vbafind.cxx.
References mxTextRange.
Referenced by FindOneElement(), and SearchReplace().
|
private |
css::uno::RuntimeException |
Definition at line 140 of file vbafind.cxx.
References FindOneElement(), GetReplaceWith(), i, InRange(), mbReplace, mnReplaceType, mnWrap, mxPropertyReplace, mxReplaceable, mxSelSupp, and result.
Referenced by Execute().
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
private |
Definition at line 90 of file vbafind.cxx.
References mbReplace, mnReplaceType, and type.
Referenced by Execute().
|
overridevirtual |
Definition at line 213 of file vbafind.cxx.
|
private |
css::uno::RuntimeException |
Definition at line 80 of file vbafind.cxx.
References mbReplace, and mxPropertyReplace.
Referenced by Execute().
|
overridevirtual |
Definition at line 323 of file vbafind.cxx.
|
overridevirtual |
|
overridevirtual |
|
private |
Definition at line 41 of file vbafind.hxx.
Referenced by SearchReplace(), SetReplace(), and SetReplaceWith().
|
private |
Definition at line 42 of file vbafind.hxx.
Referenced by SearchReplace(), and SetReplace().
|
private |
Definition at line 43 of file vbafind.hxx.
Referenced by getWrap(), SearchReplace(), and setWrap().
|
private |
Definition at line 35 of file vbafind.hxx.
Referenced by SwVbaFind().
|
private |
Definition at line 38 of file vbafind.hxx.
Referenced by ClearFormatting(), FindOneElement(), getFormat(), getForward(), getMatchAllWordForms(), getMatchCase(), getMatchSoundsLike(), getMatchWholeWord(), getMatchWildcards(), getReplacement(), GetReplaceWith(), getText(), SearchReplace(), setFormat(), setForward(), setMatchAllWordForms(), setMatchCase(), setMatchSoundsLike(), setMatchWholeWord(), setMatchWildcards(), SetReplaceWith(), setText(), and SwVbaFind().
|
private |
Definition at line 37 of file vbafind.hxx.
Referenced by FindOneElement(), SearchReplace(), and SwVbaFind().
|
private |
Definition at line 40 of file vbafind.hxx.
Referenced by SearchReplace(), and SwVbaFind().
|
private |
Definition at line 36 of file vbafind.hxx.
Referenced by FindOneElement(), InEqualRange(), and InRange().
|
private |
Definition at line 39 of file vbafind.hxx.
Referenced by FindOneElement(), and SwVbaFind().