LibreOffice Module sc (master) 1
|
#include <filtdlg.hxx>
Classes | |
struct | EntryList |
Public Member Functions | |
ScFilterDlg (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, const SfxItemSet &rArgSet) | |
virtual | ~ScFilterDlg () override |
virtual void | SetReference (const ScRange &rRef, ScDocument &rDoc) override |
virtual bool | IsRefInputMode () const override |
virtual void | SetActive () override |
virtual void | Close () override |
void | SliderMoved () |
size_t | GetSliderPos () const |
void | RefreshEditRow (size_t nOffset) |
Public Member Functions inherited from ScAnyRefDlgController | |
ScAnyRefDlgController (SfxBindings *rt1, SfxChildWindow *rt2, weld::Window *rt3, const OUString &rt4, const OUString &rt5) | |
Public Member Functions inherited from ScRefHdlrControllerImpl< SfxModelessDialogController > | |
ScRefHdlrControllerImpl (weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *pArg, SfxBindings *pB) | |
ScRefHdlrControllerImpl (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID) | |
Public Member Functions inherited from SfxModelessDialogController | |
virtual | ~SfxModelessDialogController () override |
void | Initialize (SfxChildWinInfo const *pInfo) |
bool | IsClosing () const |
virtual void | Close () override |
virtual void | EndDialog (int nResponse) override |
virtual void | Activate () override |
virtual void | Deactivate () override |
virtual void | ChildWinDispose () override |
virtual void | FillInfo (SfxChildWinInfo &) const |
SfxBindings & | GetBindings () const |
Public Member Functions inherited from SfxDialogController | |
SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId) | |
virtual void | Activate () |
virtual void | Deactivate () |
virtual void | ChildWinDispose () |
virtual void | Close () |
virtual void | EndDialog (int nResponse) |
virtual bool | CloseOnHide () const |
Public Member Functions inherited from ScRefHandler | |
ScRefHandler (SfxDialogController &rController, SfxBindings *pB, bool bBindRef) | |
virtual | ~ScRefHandler () COVERITY_NOEXCEPT_FALSE override |
virtual void | SetReference (const ScRange &rRef, ScDocument &rDoc) override=0 |
virtual void | AddRefEntry () override |
virtual bool | IsRefInputMode () const override |
virtual bool | IsTableLocked () const override |
virtual bool | IsDocAllowed (SfxObjectShell *pDocSh) const override |
virtual void | ShowReference (const OUString &rStr) override |
virtual void | HideReference (bool bDoneRefMode=true) override |
virtual void | ToggleCollapsed (formula::RefEdit *pEdit, formula::RefButton *pButton) override |
virtual void | ReleaseFocus (formula::RefEdit *pEdit) override |
virtual void | ViewShellChanged () override |
void | SwitchToDocument () |
virtual void | SetActive () override=0 |
bool | EnterRefMode () |
bool | LeaveRefMode () |
bool | CanInputDone (bool bForced) |
Private Types | |
typedef std::map< SCCOL, std::unique_ptr< EntryList > > | EntryListsMap |
Private Member Functions | |
void | Init (const SfxItemSet &rArgSet) |
void | FillFieldLists () |
void | UpdateValueList (size_t nList) |
void | UpdateHdrInValueList (size_t nList) |
void | ClearValueList (size_t nList) |
void | UpdateColorList (size_t nList) |
size_t | GetFieldSelPos (SCCOL nField) |
ScQueryItem * | GetOutputItem () |
void | SetValString (const OUString &rQueryStr, const ScQueryEntry::Item &rItem, OUString &rValStr) |
DECL_LINK (LbSelectHdl, weld::ComboBox &, void) | |
DECL_LINK (ValModifyHdl, weld::ComboBox &, void) | |
DECL_LINK (CheckBoxHdl, weld::Toggleable &, void) | |
DECL_LINK (BtnClearHdl, weld::Button &, void) | |
DECL_LINK (BtnRemoveHdl, weld::Button &, void) | |
DECL_LINK (EndDlgHdl, weld::Button &, void) | |
DECL_LINK (ScrollHdl, weld::ScrolledWindow &, void) | |
DECL_LINK (MoreExpandedHdl, weld::Expander &, void) | |
DECL_LINK (TimeOutHdl, Timer *, void) | |
Additional Inherited Members | |
Public Types inherited from ScRefHdlrControllerImpl< SfxModelessDialogController > | |
enum | |
Static Public Member Functions inherited from ScRefHandler | |
static bool | CanInputStart (const formula::RefEdit *pEdit) |
Protected Member Functions inherited from SfxModelessDialogController | |
SfxModelessDialogController (SfxBindings *, SfxChildWindow *pChildWin, weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID) | |
Protected Member Functions inherited from ScRefHandler | |
void | disposeRefHandler () |
bool | DoClose (sal_uInt16 nId) |
void | SetDispatcherLock (bool bLock) |
virtual void | RefInputStart (formula::RefEdit *pEdit, formula::RefButton *pButton=nullptr) override |
virtual void | RefInputDone (bool bForced=false) override |
bool | ParseWithNames (ScRangeList &rRanges, std::u16string_view rStr, const ScDocument &pDoc) |
Definition at line 38 of file filtdlg.hxx.
|
private |
Definition at line 50 of file filtdlg.hxx.
ScFilterDlg::ScFilterDlg | ( | SfxBindings * | pB, |
SfxChildWindow * | pCW, | ||
weld::Window * | pParent, | ||
const SfxItemSet & | rArgSet | ||
) |
Definition at line 53 of file filtdlg.cxx.
References aStrBackgroundColor, aStrFontColor, Get(), GetWhich, Init(), LINK, m_xEdCopyArea, m_xExpander, m_xFtDbAreaLabel, m_xLbCond1, m_xRbCopyArea, and pTimer.
|
overridevirtual |
Definition at line 127 of file filtdlg.cxx.
References pOptionsMgr, pOutItem, and pTimer.
|
private |
Definition at line 619 of file filtdlg.cxx.
References weld::ComboBox::append_text(), aStrEmpty, aStrNotEmpty, weld::ComboBox::clear(), maValueEdArr, QUERY_ENTRY_COUNT, and weld::ComboBox::set_entry_text().
|
overridevirtual |
Reimplemented from SfxModelessDialogController.
Definition at line 407 of file filtdlg.cxx.
References ScDocShell::CancelAutoDBRange(), ScRefHandler::DoClose(), ScViewData::GetDocShell(), and pViewData.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 442 of file filtdlg.cxx.
References aStrColumn, aStrNone, col, ScDocument::GetString(), m_xBtnHeader, m_xLbField1, m_xLbField2, m_xLbField3, m_xLbField4, ScQueryParamTable::nCol1, ScQueryParamTable::nCol2, ScQueryParamTable::nRow1, nSrcTab, pDoc, ScGlobal::ReplaceOrAppend(), ScColToAlpha(), theQueryData, and u.
Referenced by Init().
|
private |
Definition at line 684 of file filtdlg.cxx.
References ScQueryParamTable::nCol1, ScQueryParamTable::nCol2, and theQueryData.
Referenced by Init(), and RefreshEditRow().
|
private |
Definition at line 692 of file filtdlg.cxx.
References ScQueryParamBase::bByRow, ScQueryParamBase::bCaseSens, ScQueryParam::bDestPers, ScQueryParamBase::bDuplicate, ScQueryParamBase::bHasHeader, ScQueryParamBase::bInplace, ScAddress::Col(), ScQueryParamBase::eSearchType, ScDocument::GetAddressConvention(), m_xBtnCase, m_xBtnCopyResult, m_xBtnDestPers, m_xBtnHeader, m_xBtnRegExp, m_xBtnUnique, m_xEdCopyArea, ScQueryParam::nDestCol, ScQueryParam::nDestRow, ScQueryParam::nDestTab, utl::SearchParam::Normal, nWhichQuery, ScAddress::Parse(), pDoc, pOutItem, utl::SearchParam::Regexp, ScAddress::Row(), ScAddress::Tab(), theQueryData, and VALID.
size_t ScFilterDlg::GetSliderPos | ( | ) | const |
Definition at line 1409 of file filtdlg.cxx.
References m_xScrollBar.
Referenced by SliderMoved(), and UpdateValueList().
|
private |
Definition at line 164 of file filtdlg.cxx.
References aStrBackgroundColor, aStrEmpty, aStrFontColor, aStrNotEmpty, aStrUndefined, ScQueryEntry::bDoQuery, ScQueryEntry::eConnect, ScQueryEntry::eOp, FillFieldLists(), SfxItemSet::Get(), ScDocument::GetChangeTrack(), ScViewData::GetCurX(), ScViewData::GetDocument(), ScQueryParamBase::GetEntry(), GetFieldSelPos(), ScQueryEntry::GetQueryItem(), svl::SharedString::getString(), ScViewData::GetTabNo(), ScQueryItem::GetViewData(), Size::Height(), i, ScQueryEntry::IsQueryByBackgroundColor(), ScQueryEntry::IsQueryByEmpty(), ScQueryEntry::IsQueryByNonEmpty(), ScQueryEntry::IsQueryByTextColor(), LINK, m_xBtnCancel, m_xBtnCase, m_xBtnClear, m_xBtnCopyResult, m_xBtnDestPers, m_xBtnHeader, m_xBtnOk, m_xBtnRegExp, m_xBtnRemove1, m_xBtnRemove2, m_xBtnRemove3, m_xBtnRemove4, m_xBtnUnique, m_xContents, m_xEdCopyArea, m_xEdVal1, m_xEdVal2, m_xEdVal3, m_xEdVal4, m_xFtDbArea, m_xFtDbAreaLabel, m_xLbColor1, m_xLbColor2, m_xLbColor3, m_xLbColor4, m_xLbCond1, m_xLbCond2, m_xLbCond3, m_xLbCond4, m_xLbConnect1, m_xLbConnect2, m_xLbConnect3, m_xLbConnect4, m_xLbCopyArea, m_xLbField1, m_xLbField2, m_xLbField3, m_xLbField4, m_xRbCopyArea, m_xScrollBar, maColorLbArr, maCondLbArr, maConnLbArr, maFieldLbArr, maRefreshExceptQuery, maRemoveBtnArr, ScQueryEntry::Item::maString, maValueEdArr, ScQueryParamTable::nCol1, ScQueryEntry::nField, nSrcTab, nWhichQuery, pDoc, pOptionsMgr, pViewData, QUERY_ENTRY_COUNT, SetValString(), theQueryData, UpdateColorList(), UpdateValueList(), and Size::Width().
Referenced by ScFilterDlg().
|
overridevirtual |
Reimplemented from ScRefHandler.
Definition at line 734 of file filtdlg.cxx.
References bRefInputMode.
void ScFilterDlg::RefreshEditRow | ( | size_t | nOffset | ) |
Definition at line 1414 of file filtdlg.cxx.
References aStrBackgroundColor, aStrEmpty, aStrFontColor, aStrNotEmpty, ScQueryEntry::bDoQuery, ScQueryEntry::eConnect, ScQueryEntry::eOp, ScQueryParamBase::GetEntry(), GetFieldSelPos(), ScQueryEntry::GetQueryItem(), svl::SharedString::getString(), i, ScQueryEntry::IsQueryByBackgroundColor(), ScQueryEntry::IsQueryByEmpty(), ScQueryEntry::IsQueryByNonEmpty(), ScQueryEntry::IsQueryByTextColor(), maColorLbArr, maCondLbArr, maConnLbArr, maFieldLbArr, maRefreshExceptQuery, maRemoveBtnArr, ScQueryEntry::Item::maString, maValueEdArr, ScQueryEntry::nField, QUERY_ENTRY_COUNT, SetValString(), theQueryData, UpdateColorList(), and UpdateValueList().
Referenced by SliderMoved().
|
overridevirtual |
Implements ScRefHandler.
Definition at line 429 of file filtdlg.cxx.
References bRefInputMode, m_xDialog, m_xEdCopyArea, and ScRefHandler::RefInputDone().
|
overridevirtual |
Implements ScRefHandler.
Definition at line 418 of file filtdlg.cxx.
References ADDR_ABS_3D, ScRange::aEnd, ScRange::aStart, bRefInputMode, ScAddress::Format(), ScDocument::GetAddressConvention(), m_xEdCopyArea, and ScRefHandler::RefInputStart().
|
private |
Definition at line 1534 of file filtdlg.cxx.
References ScQueryEntry::ByDate, ScQueryEntry::ByValue, ScViewData::GetDocument(), ScDocument::GetFormatTable(), SvNumberFormatter::GetInputLineString(), SvNumberFormatter::GetStandardFormat(), ScQueryEntry::Item::meType, ScQueryEntry::Item::mfVal, pDoc, pViewData, and SAL_WARN.
Referenced by Init(), and RefreshEditRow().
void ScFilterDlg::SliderMoved | ( | ) |
Definition at line 1403 of file filtdlg.cxx.
References GetSliderPos(), and RefreshEditRow().
|
private |
Definition at line 631 of file filtdlg.cxx.
References Color::AsRGBHexString(), aStrBackgroundColor, aStrFontColor, ScQueryEntry::ByBackgroundColor, ScQueryEntry::ByTextColor, COL_AUTO(), ScFilterEntries::getBackgroundColors(), ScQueryParamBase::GetEntry(), ScQueryEntry::GetQueryItem(), ScFilterEntries::getTextColors(), m_EntryLists, maColorLbArr, maCondLbArr, maFieldLbArr, ScFilterDlg::EntryList::maFilterEntries, ScQueryParamTable::nCol1, nPos, pDoc, QUERY_ENTRY_COUNT, ScResId(), sId, and theQueryData.
Referenced by Init(), and RefreshEditRow().
|
private |
GetText / SetText ??
Definition at line 573 of file filtdlg.cxx.
References weld::ComboBox::get_count(), weld::ComboBox::get_text(), ScTypedStrData::GetString(), weld::ComboBox::insert_text(), INVALID_HEADER_POS, m_EntryLists, m_xBtnHeader, maFieldLbArr, maValueEdArr, ScQueryParamTable::nCol1, nPos, pDoc, QUERY_ENTRY_COUNT, weld::ComboBox::remove(), and theQueryData.
Referenced by UpdateValueList().
|
private |
Entry (pHdrEntry) doesn't generate collection?
Definition at line 487 of file filtdlg.cxx.
References aEntries, aStrEmpty, aStrNotEmpty, ScFilterEntries::begin(), ScFilterEntries::empty(), ScFilterEntries::end(), ScFilterEntries::front(), weld::ComboBox::get_active_text(), ScDocument::GetFilterEntriesArea(), GetSliderPos(), weld::ComboBox::insert_vector(), INVALID_HEADER_POS, m_EntryLists, m_xBtnCase, m_xDialog, maFieldLbArr, ScFilterDlg::EntryList::maFilterEntries, maHasDates, maValueEdArr, ScFilterEntries::mbHasDates, ScFilterDlg::EntryList::mnHeaderPos, ScQueryParamTable::nCol1, ScQueryParamTable::nRow1, ScQueryParamTable::nRow2, nSrcTab, pDoc, ScFilterEntries::push_back(), QUERY_ENTRY_COUNT, weld::ComboBox::set_entry_text(), theQueryData, and UpdateHdrInValueList().
Referenced by Init(), and RefreshEditRow().
|
private |
Definition at line 74 of file filtdlg.hxx.
Referenced by Init(), RefreshEditRow(), ScFilterDlg(), and UpdateColorList().
|
private |
Definition at line 72 of file filtdlg.hxx.
Referenced by FillFieldLists().
|
private |
Definition at line 70 of file filtdlg.hxx.
Referenced by ClearValueList(), Init(), RefreshEditRow(), and UpdateValueList().
|
private |
Definition at line 73 of file filtdlg.hxx.
Referenced by Init(), RefreshEditRow(), ScFilterDlg(), and UpdateColorList().
|
private |
Definition at line 68 of file filtdlg.hxx.
Referenced by FillFieldLists().
|
private |
Definition at line 71 of file filtdlg.hxx.
Referenced by ClearValueList(), Init(), RefreshEditRow(), and UpdateValueList().
|
private |
Definition at line 67 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 94 of file filtdlg.hxx.
Referenced by IsRefInputMode(), SetActive(), and SetReference().
|
private |
Definition at line 96 of file filtdlg.hxx.
Referenced by UpdateColorList(), UpdateHdrInValueList(), and UpdateValueList().
|
private |
Definition at line 135 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 137 of file filtdlg.hxx.
Referenced by GetOutputItem(), Init(), and UpdateValueList().
|
private |
Definition at line 133 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 141 of file filtdlg.hxx.
Referenced by GetOutputItem(), and Init().
|
private |
Definition at line 145 of file filtdlg.hxx.
Referenced by GetOutputItem(), and Init().
|
private |
Definition at line 139 of file filtdlg.hxx.
Referenced by FillFieldLists(), GetOutputItem(), Init(), and UpdateHdrInValueList().
|
private |
Definition at line 134 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 138 of file filtdlg.hxx.
Referenced by GetOutputItem(), and Init().
|
private |
Definition at line 106 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 113 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 120 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 127 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 140 of file filtdlg.hxx.
Referenced by GetOutputItem(), and Init().
|
private |
Definition at line 129 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 143 of file filtdlg.hxx.
Referenced by GetOutputItem(), Init(), ScFilterDlg(), SetActive(), and SetReference().
|
private |
Definition at line 104 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 111 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 118 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 125 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 131 of file filtdlg.hxx.
Referenced by ScFilterDlg().
|
private |
Definition at line 147 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 146 of file filtdlg.hxx.
Referenced by Init(), and ScFilterDlg().
|
private |
Definition at line 105 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 112 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 119 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 126 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 103 of file filtdlg.hxx.
Referenced by Init(), and ScFilterDlg().
|
private |
Definition at line 110 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 117 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 124 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 101 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 108 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 115 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 122 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 142 of file filtdlg.hxx.
Referenced by Init().
|
private |
Definition at line 102 of file filtdlg.hxx.
Referenced by FillFieldLists(), and Init().
|
private |
Definition at line 109 of file filtdlg.hxx.
Referenced by FillFieldLists(), and Init().
|
private |
Definition at line 116 of file filtdlg.hxx.
Referenced by FillFieldLists(), and Init().
|
private |
Definition at line 123 of file filtdlg.hxx.
Referenced by FillFieldLists(), and Init().
|
private |
Definition at line 144 of file filtdlg.hxx.
Referenced by Init(), and ScFilterDlg().
|
private |
Definition at line 130 of file filtdlg.hxx.
Referenced by GetSliderPos(), and Init().
|
private |
Definition at line 89 of file filtdlg.hxx.
Referenced by Init(), RefreshEditRow(), and UpdateColorList().
|
private |
Definition at line 87 of file filtdlg.hxx.
Referenced by Init(), RefreshEditRow(), and UpdateColorList().
|
private |
Definition at line 88 of file filtdlg.hxx.
Referenced by Init(), and RefreshEditRow().
|
private |
Definition at line 86 of file filtdlg.hxx.
Referenced by Init(), RefreshEditRow(), UpdateColorList(), UpdateHdrInValueList(), and UpdateValueList().
|
private |
Definition at line 92 of file filtdlg.hxx.
Referenced by UpdateValueList().
|
private |
Definition at line 93 of file filtdlg.hxx.
Referenced by Init(), and RefreshEditRow().
|
private |
Definition at line 90 of file filtdlg.hxx.
Referenced by Init(), and RefreshEditRow().
|
private |
Definition at line 85 of file filtdlg.hxx.
Referenced by ClearValueList(), Init(), RefreshEditRow(), UpdateHdrInValueList(), and UpdateValueList().
|
private |
Definition at line 83 of file filtdlg.hxx.
Referenced by FillFieldLists(), Init(), and UpdateValueList().
|
private |
Definition at line 78 of file filtdlg.hxx.
Referenced by GetOutputItem(), and Init().
|
private |
Definition at line 82 of file filtdlg.hxx.
Referenced by FillFieldLists(), GetOutputItem(), Init(), SetValString(), UpdateColorList(), UpdateHdrInValueList(), and UpdateValueList().
|
private |
Definition at line 76 of file filtdlg.hxx.
Referenced by Init(), and ~ScFilterDlg().
|
private |
Definition at line 80 of file filtdlg.hxx.
Referenced by GetOutputItem(), and ~ScFilterDlg().
|
private |
Definition at line 99 of file filtdlg.hxx.
Referenced by ScFilterDlg(), and ~ScFilterDlg().
|
private |
Definition at line 81 of file filtdlg.hxx.
Referenced by Close(), Init(), and SetValString().
|
private |
Definition at line 79 of file filtdlg.hxx.
Referenced by FillFieldLists(), GetFieldSelPos(), GetOutputItem(), Init(), RefreshEditRow(), UpdateColorList(), UpdateHdrInValueList(), and UpdateValueList().