20#include <osl/diagnose.h>
25#include <document.hxx>
48 const OUString& refStrUndefined )
50 : pViewData ( ptrViewData ),
51 pDoc ( ptrViewData ? &ptrViewData->GetDocument() : nullptr ),
52 pBtnCase ( refBtnCase ),
53 pBtnRegExp ( refBtnRegExp ),
54 pBtnHeader ( refBtnHeader ),
55 pBtnUnique ( refBtnUnique ),
56 pBtnCopyResult ( refBtnCopyResult ),
57 pBtnDestPers ( refBtnDestPers ),
58 pLbCopyArea ( refLbCopyArea ),
59 pEdCopyArea ( refEdCopyArea ),
60 pRbCopyArea ( refRbCopyArea ),
61 pFtDbAreaLabel ( refFtDbAreaLabel ),
62 pFtDbArea ( refFtDbArea ),
63 rStrUndefined ( refStrUndefined ),
64 rQueryData ( refQueryData )
121 theDbArea = theAreaStr;
133 theDbName = pDBData->
GetName();
141 theDbArea +=
" (" + theDbName +
")";
185 OUString aPosStr( rPosStr );
186 sal_Int32 nColonPos = aPosStr.indexOf(
':' );
188 if ( -1 != nColonPos )
189 aPosStr = aPosStr.copy( 0, nColonPos );
200 if ( &rLb == pLbCopyArea )
203 const sal_Int32 nSelPos = pLbCopyArea->get_active();
206 aString = pLbCopyArea->get_id(nSelPos);
208 pEdCopyArea->SetText( aString );
214 if ( &rEd != pEdCopyArea )
217 OUString theCurPosStr = rEd.GetText();
222 const sal_Int32
nCount = pLbCopyArea->get_count();
226 OUString
aStr = pLbCopyArea->get_id(
i);
227 if (theCurPosStr ==
aStr)
229 pLbCopyArea->set_active(
i );
235 pLbCopyArea->set_active( 0 );
240 if ( &rBox != pBtnCopyResult )
243 if ( rBox.get_active() )
245 pBtnDestPers->set_sensitive(
true);
246 pLbCopyArea->set_sensitive(
true);
247 pEdCopyArea->GetWidget()->set_sensitive(
true);
248 pRbCopyArea->GetWidget()->set_sensitive(
true);
249 pEdCopyArea->GrabFocus();
253 pBtnDestPers->set_sensitive(
false);
254 pLbCopyArea->set_sensitive(
false);
255 pEdCopyArea->GetWidget()->set_sensitive(
false);
256 pRbCopyArea->GetWidget()->set_sensitive(
false);
SC_DLLPUBLIC void Format(OStringBuffer &r, ScRefFlags nFlags, const ScDocument *pDocument=nullptr, const Details &rDetails=detailsOOOa1) const
SC_DLLPUBLIC ScRefFlags Parse(const OUString &, const ScDocument &, const Details &rDetails=detailsOOOa1, ExternalInfo *pExtInfo=nullptr, const css::uno::Sequence< css::sheet::ExternalLinkInfo > *pExternalLinks=nullptr, sal_Int32 *pSheetEndPos=nullptr, const OUString *pErrRef=nullptr)
bool Next(OUString &rName, ScRange &rRange)
const ScDBData * GetDBAtArea(SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2) const
const OUString & GetName() const
SC_DLLPUBLIC formula::FormulaGrammar::AddressConvention GetAddressConvention() const
SC_DLLPUBLIC ScDBCollection * GetDBCollection() const
weld::CheckButton * pBtnHeader
bool VerifyPosStr(const OUString &rPosStr) const
weld::ComboBox * pLbCopyArea
ScFilterOptionsMgr(ScViewData *ptrViewData, const ScQueryParam &refQueryData, weld::CheckButton *refBtnCase, weld::CheckButton *refBtnRegExp, weld::CheckButton *refBtnHeader, weld::CheckButton *refBtnUnique, weld::CheckButton *refBtnCopyResult, weld::CheckButton *refBtnDestPers, weld::ComboBox *refLbCopyArea, formula::RefEdit *refEdCopyArea, formula::RefButton *refRbCopyArea, weld::Label *refFtDbAreaLabel, weld::Label *refFtDbArea, const OUString &refStrUndefined)
const ScQueryParam & rQueryData
formula::RefButton * pRbCopyArea
formula::RefEdit * pEdCopyArea
weld::CheckButton * pBtnCopyResult
weld::CheckButton * pBtnRegExp
weld::CheckButton * pBtnCase
weld::CheckButton * pBtnUnique
weld::Label * pFtDbAreaLabel
weld::CheckButton * pBtnDestPers
const OUString & rStrUndefined
OUString Format(const ScDocument &rDocument, ScRefFlags nFlags=ScRefFlags::ZERO, const ScAddress::Details &rDetails=ScAddress::detailsOOOa1, bool bFullAddressNotation=false) const
Returns string with formatted cell range from aStart to aEnd, according to provided address conventio...
void append(const weld::ComboBoxEntry &rItem)
virtual void set_active(int pos)=0
void append_text(const OUString &rStr)
void connect_changed(const Link< ComboBox &, void > &rLink)
virtual void set_label(const OUString &rText)=0
virtual void connect_toggled(const Link< Toggleable &, void > &rLink)
virtual void set_active(bool active)=0
IMPL_LINK(ScFilterOptionsMgr, LbAreaSelHdl, weld::ComboBox &, rLb, void)
constexpr OUStringLiteral STR_DB_LOCAL_NONAME
#define LINK(Instance, Class, Member)
utl::SearchParam::SearchType eSearchType