Lines 51-57
using namespace com::sun::star::util;
Link Here
|
51 |
|
51 |
|
52 |
#define CFG_ROOT_NODE "Office.Common/SearchOptions" |
52 |
#define CFG_ROOT_NODE "Office.Common/SearchOptions" |
53 |
|
53 |
|
54 |
#define SRCH_PARAMS 11 |
54 |
#define SRCH_PARAMS 12 |
55 |
#define SRCH_PARA_OPTIONS "Options" |
55 |
#define SRCH_PARA_OPTIONS "Options" |
56 |
#define SRCH_PARA_FAMILY "Family" |
56 |
#define SRCH_PARA_FAMILY "Family" |
57 |
#define SRCH_PARA_COMMAND "Command" |
57 |
#define SRCH_PARA_COMMAND "Command" |
Lines 59-64
using namespace com::sun::star::util;
Link Here
|
59 |
#define SRCH_PARA_APPFLAG "AppFlag" |
59 |
#define SRCH_PARA_APPFLAG "AppFlag" |
60 |
#define SRCH_PARA_ROWDIR "RowDirection" |
60 |
#define SRCH_PARA_ROWDIR "RowDirection" |
61 |
#define SRCH_PARA_ALLTABLES "AllTables" |
61 |
#define SRCH_PARA_ALLTABLES "AllTables" |
|
|
62 |
#define SRCH_PARA_SEARCHFILTERED "SearchFiltered" |
62 |
#define SRCH_PARA_BACKWARD "Backward" |
63 |
#define SRCH_PARA_BACKWARD "Backward" |
63 |
#define SRCH_PARA_PATTERN "Pattern" |
64 |
#define SRCH_PARA_PATTERN "Pattern" |
64 |
#define SRCH_PARA_CONTENT "Content" |
65 |
#define SRCH_PARA_CONTENT "Content" |
Lines 124-129
SvxSearchItem::SvxSearchItem( const sal_uInt16 nId ) :
Link Here
|
124 |
nAppFlag ( SVX_SEARCHAPP_WRITER ), |
125 |
nAppFlag ( SVX_SEARCHAPP_WRITER ), |
125 |
bRowDirection ( sal_True ), |
126 |
bRowDirection ( sal_True ), |
126 |
bAllTables ( sal_False ), |
127 |
bAllTables ( sal_False ), |
|
|
128 |
bSearchFiltered ( sal_False ), |
127 |
bNotes ( sal_False), |
129 |
bNotes ( sal_False), |
128 |
bBackward ( sal_False ), |
130 |
bBackward ( sal_False ), |
129 |
bPattern ( sal_False ), |
131 |
bPattern ( sal_False ), |
Lines 201-206
SvxSearchItem::SvxSearchItem( const SvxSearchItem& rItem ) :
Link Here
|
201 |
nAppFlag ( rItem.nAppFlag ), |
203 |
nAppFlag ( rItem.nAppFlag ), |
202 |
bRowDirection ( rItem.bRowDirection ), |
204 |
bRowDirection ( rItem.bRowDirection ), |
203 |
bAllTables ( rItem.bAllTables ), |
205 |
bAllTables ( rItem.bAllTables ), |
|
|
206 |
bSearchFiltered ( rItem.bSearchFiltered ), |
204 |
bNotes ( rItem.bNotes), |
207 |
bNotes ( rItem.bNotes), |
205 |
bBackward ( rItem.bBackward ), |
208 |
bBackward ( rItem.bBackward ), |
206 |
bPattern ( rItem.bPattern ), |
209 |
bPattern ( rItem.bPattern ), |
Lines 250-255
int SvxSearchItem::operator==( const SfxPoolItem& rItem ) const
Link Here
|
250 |
( eFamily == rSItem.eFamily ) && |
253 |
( eFamily == rSItem.eFamily ) && |
251 |
( bRowDirection == rSItem.bRowDirection ) && |
254 |
( bRowDirection == rSItem.bRowDirection ) && |
252 |
( bAllTables == rSItem.bAllTables ) && |
255 |
( bAllTables == rSItem.bAllTables ) && |
|
|
256 |
( bSearchFiltered == rSItem.bSearchFiltered ) && |
253 |
( nCellType == rSItem.nCellType ) && |
257 |
( nCellType == rSItem.nCellType ) && |
254 |
( nAppFlag == rSItem.nAppFlag ) && |
258 |
( nAppFlag == rSItem.nAppFlag ) && |
255 |
( bAsianOptions == rSItem.bAsianOptions ) && |
259 |
( bAsianOptions == rSItem.bAsianOptions ) && |
Lines 443-448
sal_Bool SvxSearchItem::QueryValue( com::sun::star::uno::Any& rVal, BYTE nMember
Link Here
|
443 |
aSeq[5].Value <<= bRowDirection; |
447 |
aSeq[5].Value <<= bRowDirection; |
444 |
aSeq[6].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SRCH_PARA_ALLTABLES )); |
448 |
aSeq[6].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SRCH_PARA_ALLTABLES )); |
445 |
aSeq[6].Value <<= bAllTables; |
449 |
aSeq[6].Value <<= bAllTables; |
|
|
450 |
aSeq[6].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SRCH_PARA_SEARCHFILTERED )); |
451 |
aSeq[6].Value <<= bSearchFiltered; |
446 |
aSeq[7].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SRCH_PARA_BACKWARD )); |
452 |
aSeq[7].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SRCH_PARA_BACKWARD )); |
447 |
aSeq[7].Value <<= bBackward; |
453 |
aSeq[7].Value <<= bBackward; |
448 |
aSeq[8].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SRCH_PARA_PATTERN )); |
454 |
aSeq[8].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SRCH_PARA_PATTERN )); |
Lines 464-469
sal_Bool SvxSearchItem::QueryValue( com::sun::star::uno::Any& rVal, BYTE nMember
Link Here
|
464 |
rVal <<= (sal_Bool) bRowDirection; break; |
470 |
rVal <<= (sal_Bool) bRowDirection; break; |
465 |
case MID_SEARCH_ALLTABLES: |
471 |
case MID_SEARCH_ALLTABLES: |
466 |
rVal <<= (sal_Bool) bAllTables; break; |
472 |
rVal <<= (sal_Bool) bAllTables; break; |
|
|
473 |
case MID_SEARCH_SEARCHFILTERED: |
474 |
rVal <<= (sal_Bool) bSearchFiltered; break; |
467 |
case MID_SEARCH_BACKWARD: |
475 |
case MID_SEARCH_BACKWARD: |
468 |
rVal <<= (sal_Bool) bBackward; break; |
476 |
rVal <<= (sal_Bool) bBackward; break; |
469 |
case MID_SEARCH_PATTERN: |
477 |
case MID_SEARCH_PATTERN: |
Lines 563-568
sal_Bool SvxSearchItem::PutValue( const com::sun::star::uno::Any& rVal, BYTE nMe
Link Here
|
563 |
if ( ( aSeq[i].Value >>= bAllTables ) == sal_True ) |
571 |
if ( ( aSeq[i].Value >>= bAllTables ) == sal_True ) |
564 |
++nConvertedCount; |
572 |
++nConvertedCount; |
565 |
} |
573 |
} |
|
|
574 |
else if ( aSeq[i].Name.equalsAscii( SRCH_PARA_SEARCHFILTERED ) ) |
575 |
{ |
576 |
if ( ( aSeq[i].Value >>= bSearchFiltered ) == sal_True ) |
577 |
++nConvertedCount; |
578 |
} |
566 |
else if ( aSeq[i].Name.equalsAscii( SRCH_PARA_BACKWARD ) ) |
579 |
else if ( aSeq[i].Name.equalsAscii( SRCH_PARA_BACKWARD ) ) |
567 |
{ |
580 |
{ |
568 |
if ( ( aSeq[i].Value >>= bBackward ) == sal_True ) |
581 |
if ( ( aSeq[i].Value >>= bBackward ) == sal_True ) |
Lines 599-604
sal_Bool SvxSearchItem::PutValue( const com::sun::star::uno::Any& rVal, BYTE nMe
Link Here
|
599 |
bRet = (rVal >>= bRowDirection); break; |
612 |
bRet = (rVal >>= bRowDirection); break; |
600 |
case MID_SEARCH_ALLTABLES: |
613 |
case MID_SEARCH_ALLTABLES: |
601 |
bRet = (rVal >>= bAllTables); break; |
614 |
bRet = (rVal >>= bAllTables); break; |
|
|
615 |
case MID_SEARCH_SEARCHFILTERED: |
616 |
bRet = (rVal >>= bSearchFiltered); break; |
602 |
case MID_SEARCH_BACKWARD: |
617 |
case MID_SEARCH_BACKWARD: |
603 |
bRet = (rVal >>= bBackward); break; |
618 |
bRet = (rVal >>= bBackward); break; |
604 |
case MID_SEARCH_PATTERN: |
619 |
case MID_SEARCH_PATTERN: |