diff options
Diffstat (limited to 'sw/source/core/unocore/unosrch.cxx')
-rw-r--r-- | sw/source/core/unocore/unosrch.cxx | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/sw/source/core/unocore/unosrch.cxx b/sw/source/core/unocore/unosrch.cxx index 277eef1693f5..303886500704 100644 --- a/sw/source/core/unocore/unosrch.cxx +++ b/sw/source/core/unocore/unosrch.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -55,19 +55,19 @@ using ::rtl::OUString; --------------------------------------------------*/ class SwSearchProperties_Impl { - beans::PropertyValue** pValueArr; // + beans::PropertyValue** pValueArr; // sal_uInt32 nArrLen; const PropertyEntryVector_t aPropertyEntries; public: SwSearchProperties_Impl(); ~SwSearchProperties_Impl(); - void SetProperties(const uno::Sequence< beans::PropertyValue >& aSearchAttribs) + void SetProperties(const uno::Sequence< beans::PropertyValue >& aSearchAttribs) throw( beans::UnknownPropertyException, lang::IllegalArgumentException, uno::RuntimeException ); const uno::Sequence< beans::PropertyValue > GetProperties() const; - void FillItemSet(SfxItemSet& rSet, sal_Bool bIsValueSearch) const; - sal_Bool HasAttributes() const; + void FillItemSet(SfxItemSet& rSet, sal_Bool bIsValueSearch) const; + sal_Bool HasAttributes() const; }; /* -----------------23.06.99 13:08------------------- @@ -93,7 +93,7 @@ SwSearchProperties_Impl::~SwSearchProperties_Impl() /* -----------------23.06.99 13:09------------------- --------------------------------------------------*/ -void SwSearchProperties_Impl::SetProperties(const uno::Sequence< beans::PropertyValue >& aSearchAttribs) +void SwSearchProperties_Impl::SetProperties(const uno::Sequence< beans::PropertyValue >& aSearchAttribs) throw( beans::UnknownPropertyException, lang::IllegalArgumentException, uno::RuntimeException ) { const beans::PropertyValue* pProps = aSearchAttribs.getConstArray(); @@ -154,7 +154,7 @@ void SwSearchProperties_Impl::FillItemSet(SfxItemSet& rSet, sal_Bool bIsValueSea SfxPoolItem* pBoxItem = 0, *pBreakItem = 0, *pAutoKernItem = 0, - *pWLineItem = 0, + *pWLineItem = 0, *pTabItem = 0, *pSplitItem = 0, *pRegItem = 0, @@ -423,7 +423,7 @@ void SwSearchProperties_Impl::FillItemSet(SfxItemSet& rSet, sal_Bool bIsValueSea /* -----------------23.06.99 14:18------------------- --------------------------------------------------*/ -sal_Bool SwSearchProperties_Impl::HasAttributes() const +sal_Bool SwSearchProperties_Impl::HasAttributes() const { for(sal_uInt32 i = 0; i < nArrLen; i++) if(pValueArr[i]) @@ -541,18 +541,18 @@ void SwXTextSearch::setPropertyValue(const OUString& rPropertyName, const uno::A bVal = *(sal_Bool*)aValue.getValue(); switch(pEntry->nWID) { - case WID_SEARCH_ALL : bAll = bVal; break; - case WID_WORDS: bWord = bVal; break; - case WID_BACKWARDS : bBack = bVal; break; - case WID_REGULAR_EXPRESSION : bExpr = bVal; break; - case WID_CASE_SENSITIVE : bCase = bVal; break; - //case WID_IN_SELECTION : bInSel = bVal; break; - case WID_STYLES : bStyles = bVal; break; + case WID_SEARCH_ALL : bAll = bVal; break; + case WID_WORDS: bWord = bVal; break; + case WID_BACKWARDS : bBack = bVal; break; + case WID_REGULAR_EXPRESSION : bExpr = bVal; break; + case WID_CASE_SENSITIVE : bCase = bVal; break; + //case WID_IN_SELECTION : bInSel = bVal; break; + case WID_STYLES : bStyles = bVal; break; case WID_SIMILARITY : bSimilarity = bVal; break; - case WID_SIMILARITY_RELAX: bLevRelax = bVal; break; - case WID_SIMILARITY_EXCHANGE: aValue >>= nLevExchange; break; - case WID_SIMILARITY_ADD: aValue >>= nLevAdd; break; - case WID_SIMILARITY_REMOVE : aValue >>= nLevRemove;break; + case WID_SIMILARITY_RELAX: bLevRelax = bVal; break; + case WID_SIMILARITY_EXCHANGE: aValue >>= nLevExchange; break; + case WID_SIMILARITY_ADD: aValue >>= nLevAdd; break; + case WID_SIMILARITY_REMOVE : aValue >>= nLevRemove;break; }; } else @@ -573,8 +573,8 @@ uno::Any SwXTextSearch::getPropertyValue(const OUString& rPropertyName) throw( b { switch(pEntry->nWID) { - case WID_SEARCH_ALL : bSet = bAll; goto SET_BOOL; - case WID_WORDS: bSet = bWord; goto SET_BOOL; + case WID_SEARCH_ALL : bSet = bAll; goto SET_BOOL; + case WID_WORDS: bSet = bWord; goto SET_BOOL; case WID_BACKWARDS : bSet = bBack; goto SET_BOOL; case WID_REGULAR_EXPRESSION : bSet = bExpr; goto SET_BOOL; case WID_CASE_SENSITIVE : bSet = bCase; goto SET_BOOL; @@ -585,9 +585,9 @@ uno::Any SwXTextSearch::getPropertyValue(const OUString& rPropertyName) throw( b SET_BOOL: aRet.setValue(&bSet, ::getBooleanCppuType()); break; - case WID_SIMILARITY_EXCHANGE: nSet = nLevExchange; goto SET_UINT16; - case WID_SIMILARITY_ADD: nSet = nLevAdd; goto SET_UINT16; - case WID_SIMILARITY_REMOVE : nSet = nLevRemove; + case WID_SIMILARITY_EXCHANGE: nSet = nLevExchange; goto SET_UINT16; + case WID_SIMILARITY_ADD: nSet = nLevAdd; goto SET_UINT16; + case WID_SIMILARITY_REMOVE : nSet = nLevRemove; SET_UINT16: aRet <<= nSet; break; @@ -646,7 +646,7 @@ void SwXTextSearch::setValueSearch(sal_Bool ValueSearch_) throw( uno::RuntimeExc -----------------------------------------------------------------------*/ uno::Sequence< beans::PropertyValue > SwXTextSearch::getSearchAttributes(void) throw( uno::RuntimeException ) { - return pSearchProperties->GetProperties(); + return pSearchProperties->GetProperties(); } /*-- 14.12.98 13:07:16--------------------------------------------------- @@ -675,28 +675,28 @@ void SwXTextSearch::setReplaceAttributes(const uno::Sequence< beans::PropertyVal /* -----------------23.06.99 14:13------------------- --------------------------------------------------*/ -void SwXTextSearch::FillSearchItemSet(SfxItemSet& rSet) const +void SwXTextSearch::FillSearchItemSet(SfxItemSet& rSet) const { pSearchProperties->FillItemSet(rSet, bIsValueSearch); } /* -----------------23.06.99 14:14------------------- --------------------------------------------------*/ -void SwXTextSearch::FillReplaceItemSet(SfxItemSet& rSet) const +void SwXTextSearch::FillReplaceItemSet(SfxItemSet& rSet) const { pReplaceProperties->FillItemSet(rSet, bIsValueSearch); } /* -----------------23.06.99 14:17------------------- --------------------------------------------------*/ -sal_Bool SwXTextSearch::HasSearchAttributes() const +sal_Bool SwXTextSearch::HasSearchAttributes() const { return pSearchProperties->HasAttributes(); } /* -----------------23.06.99 14:17------------------- --------------------------------------------------*/ -sal_Bool SwXTextSearch::HasReplaceAttributes() const +sal_Bool SwXTextSearch::HasReplaceAttributes() const { return pReplaceProperties->HasAttributes(); } @@ -752,10 +752,10 @@ void SwXTextSearch::FillSearchOptions( util::SearchOptions& rSearchOpt ) const if( bWord ) rSearchOpt.searchFlag |= util::SearchFlags::NORM_WORD_ONLY; -// bInSel: 1; // wie geht das? -// TODO: pSearch->bStyles! -// inSelection?? -// aSrchParam.SetSrchInSelection(TypeConversion::toBOOL(aVal)); +// bInSel: 1; // wie geht das? +// TODO: pSearch->bStyles! +// inSelection?? +// aSrchParam.SetSrchInSelection(TypeConversion::toBOOL(aVal)); } |