LibreOffice Module sc (master)  1
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ScFilterDlg Class Reference

#include <filtdlg.hxx>

Inheritance diagram for ScFilterDlg:
[legend]
Collaboration diagram for ScFilterDlg:
[legend]

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 OString &rt5)
 
- Public Member Functions inherited from ScRefHdlrControllerImpl< SfxModelessDialogController >
 ScRefHdlrControllerImpl (weld::Window *pParent, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *pArg, SfxBindings *pB)
 
 ScRefHdlrControllerImpl (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, const OUString &rUIXMLDescription, const OString &rID)
 
- Public Member Functions inherited from SfxModelessDialogController
virtual ~SfxModelessDialogController () override
 
void Initialize (SfxChildWinInfo const *pInfo)
 
bool IsClosing () const
 
virtual void EndDialog () override
 
virtual void Activate () override
 
virtual void Deactivate () override
 
virtual void ChildWinDispose () override
 
virtual void FillInfo (SfxChildWinInfo &) const
 
SfxBindingsGetBindings () const
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId)
 
- Public Member Functions inherited from ScRefHandler
 ScRefHandler (SfxDialogController &rController, SfxBindings *pB, bool bBindRef)
 
virtual ~ScRefHandler () COVERITY_NOEXCEPT_FALSE override
 
virtual void AddRefEntry () 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 ()
 
bool EnterRefMode ()
 
bool LeaveRefMode ()
 
bool CanInputDone (bool bForced)
 
- Public Member Functions inherited from IAnyRefDialog
virtual ~IAnyRefDialog () COVERITY_NOEXCEPT_FALSE
 

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)
 
size_t GetFieldSelPos (SCCOL nField)
 
ScQueryItemGetOutputItem ()
 
 DECL_LINK (LbSelectHdl, weld::ComboBox &, void)
 
 DECL_LINK (ValModifyHdl, weld::ComboBox &, void)
 
 DECL_LINK (CheckBoxHdl, weld::Button &, void)
 
 DECL_LINK (BtnClearHdl, 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)
 

Private Attributes

const OUString aStrUndefined
 
const OUString aStrNone
 
const OUString aStrEmpty
 
const OUString aStrNotEmpty
 
const OUString aStrColumn
 
std::unique_ptr< ScFilterOptionsMgrpOptionsMgr
 
const sal_uInt16 nWhichQuery
 
ScQueryParam theQueryData
 
std::unique_ptr< ScQueryItempOutItem
 
ScViewDatapViewData
 
ScDocumentpDoc
 
SCTAB nSrcTab
 
std::vector< weld::ComboBox * > maValueEdArr
 
std::vector< weld::ComboBox * > maFieldLbArr
 
std::vector< weld::ComboBox * > maCondLbArr
 
std::vector< weld::ComboBox * > maConnLbArr
 
std::deque< bool > maHasDates
 
std::deque< bool > maRefreshExceptQuery
 
bool bRefInputMode
 
EntryListsMap m_EntryLists
 
std::unique_ptr< TimerpTimer
 
std::unique_ptr< weld::ComboBoxm_xLbConnect1
 
std::unique_ptr< weld::ComboBoxm_xLbField1
 
std::unique_ptr< weld::ComboBoxm_xLbCond1
 
std::unique_ptr< weld::ComboBoxm_xEdVal1
 
std::unique_ptr< weld::ComboBoxm_xLbConnect2
 
std::unique_ptr< weld::ComboBoxm_xLbField2
 
std::unique_ptr< weld::ComboBoxm_xLbCond2
 
std::unique_ptr< weld::ComboBoxm_xEdVal2
 
std::unique_ptr< weld::ComboBoxm_xLbConnect3
 
std::unique_ptr< weld::ComboBoxm_xLbField3
 
std::unique_ptr< weld::ComboBoxm_xLbCond3
 
std::unique_ptr< weld::ComboBoxm_xEdVal3
 
std::unique_ptr< weld::ComboBoxm_xLbConnect4
 
std::unique_ptr< weld::ComboBoxm_xLbField4
 
std::unique_ptr< weld::ComboBoxm_xLbCond4
 
std::unique_ptr< weld::ComboBoxm_xEdVal4
 
std::unique_ptr< weld::Widgetm_xContents
 
std::unique_ptr< weld::ScrolledWindowm_xScrollBar
 
std::unique_ptr< weld::Expanderm_xExpander
 
std::unique_ptr< weld::Buttonm_xBtnClear
 
std::unique_ptr< weld::Buttonm_xBtnOk
 
std::unique_ptr< weld::Buttonm_xBtnCancel
 
std::unique_ptr< weld::CheckButtonm_xBtnCase
 
std::unique_ptr< weld::CheckButtonm_xBtnRegExp
 
std::unique_ptr< weld::CheckButtonm_xBtnHeader
 
std::unique_ptr< weld::CheckButtonm_xBtnUnique
 
std::unique_ptr< weld::CheckButtonm_xBtnCopyResult
 
std::unique_ptr< weld::ComboBoxm_xLbCopyArea
 
std::unique_ptr< formula::RefEditm_xEdCopyArea
 
std::unique_ptr< formula::RefButtonm_xRbCopyArea
 
std::unique_ptr< weld::CheckButtonm_xBtnDestPers
 
std::unique_ptr< weld::Labelm_xFtDbAreaLabel
 
std::unique_ptr< weld::Labelm_xFtDbArea
 

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 OString &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, const OUString &rStr, const ScDocument &pDoc)
 
- Protected Member Functions inherited from formula::IControlReferenceHandler
 ~IControlReferenceHandler ()
 

Detailed Description

Definition at line 38 of file filtdlg.hxx.

Member Typedef Documentation

typedef std::map<SCCOL, std::unique_ptr<EntryList> > ScFilterDlg::EntryListsMap
private

Definition at line 50 of file filtdlg.hxx.

Constructor & Destructor Documentation

ScFilterDlg::ScFilterDlg ( SfxBindings pB,
SfxChildWindow pCW,
weld::Window pParent,
const SfxItemSet rArgSet 
)

Definition at line 49 of file filtdlg.cxx.

References Get(), GetWhich, Init(), LINK, m_xEdCopyArea, m_xExpander, m_xFtDbAreaLabel, m_xRbCopyArea, and pTimer.

ScFilterDlg::~ScFilterDlg ( )
overridevirtual

Definition at line 110 of file filtdlg.cxx.

References pOptionsMgr, pOutItem, and pTimer.

Member Function Documentation

void ScFilterDlg::ClearValueList ( size_t  nList)
private
void ScFilterDlg::Close ( )
overridevirtual
ScFilterDlg::DECL_LINK ( LbSelectHdl  ,
weld::ComboBox ,
void   
)
private
ScFilterDlg::DECL_LINK ( ValModifyHdl  ,
weld::ComboBox ,
void   
)
private
ScFilterDlg::DECL_LINK ( CheckBoxHdl  ,
weld::Button ,
void   
)
private
ScFilterDlg::DECL_LINK ( BtnClearHdl  ,
weld::Button ,
void   
)
private
ScFilterDlg::DECL_LINK ( EndDlgHdl  ,
weld::Button ,
void   
)
private
ScFilterDlg::DECL_LINK ( ScrollHdl  ,
weld::ScrolledWindow ,
void   
)
private
ScFilterDlg::DECL_LINK ( MoreExpandedHdl  ,
weld::Expander ,
void   
)
private
ScFilterDlg::DECL_LINK ( TimeOutHdl  ,
Timer ,
void   
)
private
void ScFilterDlg::FillFieldLists ( )
private
size_t ScFilterDlg::GetFieldSelPos ( SCCOL  nField)
private

Definition at line 575 of file filtdlg.cxx.

References ScQueryParamTable::nCol1, ScQueryParamTable::nCol2, and theQueryData.

Referenced by Init(), and RefreshEditRow().

ScQueryItem * ScFilterDlg::GetOutputItem ( )
private
size_t ScFilterDlg::GetSliderPos ( ) const

Definition at line 1129 of file filtdlg.cxx.

References m_xScrollBar.

Referenced by SliderMoved(), and UpdateValueList().

void ScFilterDlg::Init ( const SfxItemSet rArgSet)
private
bool ScFilterDlg::IsRefInputMode ( ) const
overridevirtual

Reimplemented from ScRefHandler.

Definition at line 625 of file filtdlg.cxx.

References bRefInputMode.

void ScFilterDlg::RefreshEditRow ( size_t  nOffset)
void ScFilterDlg::SetActive ( )
overridevirtual

Implements ScRefHandler.

Definition at line 373 of file filtdlg.cxx.

References bRefInputMode, m_xDialog, m_xEdCopyArea, and ScRefHandler::RefInputDone().

void ScFilterDlg::SetReference ( const ScRange rRef,
ScDocument rDoc 
)
overridevirtual
void ScFilterDlg::SliderMoved ( )

Definition at line 1123 of file filtdlg.cxx.

References GetSliderPos(), and RefreshEditRow().

void ScFilterDlg::UpdateHdrInValueList ( size_t  nList)
private
void ScFilterDlg::UpdateValueList ( size_t  nList)
private

Member Data Documentation

const OUString ScFilterDlg::aStrColumn
private

Definition at line 72 of file filtdlg.hxx.

Referenced by FillFieldLists().

const OUString ScFilterDlg::aStrEmpty
private

Definition at line 70 of file filtdlg.hxx.

Referenced by ClearValueList(), Init(), RefreshEditRow(), and UpdateValueList().

const OUString ScFilterDlg::aStrNone
private

Definition at line 68 of file filtdlg.hxx.

Referenced by FillFieldLists().

const OUString ScFilterDlg::aStrNotEmpty
private

Definition at line 71 of file filtdlg.hxx.

Referenced by ClearValueList(), Init(), RefreshEditRow(), and UpdateValueList().

const OUString ScFilterDlg::aStrUndefined
private

Definition at line 67 of file filtdlg.hxx.

Referenced by Init().

bool ScFilterDlg::bRefInputMode
private

Definition at line 90 of file filtdlg.hxx.

Referenced by IsRefInputMode(), SetActive(), and SetReference().

EntryListsMap ScFilterDlg::m_EntryLists
private

Definition at line 92 of file filtdlg.hxx.

Referenced by UpdateHdrInValueList(), and UpdateValueList().

std::unique_ptr<weld::Button> ScFilterDlg::m_xBtnCancel
private

Definition at line 123 of file filtdlg.hxx.

Referenced by Init().

std::unique_ptr<weld::CheckButton> ScFilterDlg::m_xBtnCase
private

Definition at line 125 of file filtdlg.hxx.

Referenced by GetOutputItem(), Init(), and UpdateValueList().

std::unique_ptr<weld::Button> ScFilterDlg::m_xBtnClear
private

Definition at line 121 of file filtdlg.hxx.

Referenced by Init().

std::unique_ptr<weld::CheckButton> ScFilterDlg::m_xBtnCopyResult
private

Definition at line 129 of file filtdlg.hxx.

Referenced by GetOutputItem(), and Init().

std::unique_ptr<weld::CheckButton> ScFilterDlg::m_xBtnDestPers
private

Definition at line 133 of file filtdlg.hxx.

Referenced by GetOutputItem(), and Init().

std::unique_ptr<weld::CheckButton> ScFilterDlg::m_xBtnHeader
private

Definition at line 127 of file filtdlg.hxx.

Referenced by FillFieldLists(), GetOutputItem(), Init(), and UpdateHdrInValueList().

std::unique_ptr<weld::Button> ScFilterDlg::m_xBtnOk
private

Definition at line 122 of file filtdlg.hxx.

Referenced by Init().

std::unique_ptr<weld::CheckButton> ScFilterDlg::m_xBtnRegExp
private

Definition at line 126 of file filtdlg.hxx.

Referenced by GetOutputItem(), and Init().

std::unique_ptr<weld::CheckButton> ScFilterDlg::m_xBtnUnique
private

Definition at line 128 of file filtdlg.hxx.

Referenced by GetOutputItem(), and Init().

std::unique_ptr<weld::Widget> ScFilterDlg::m_xContents
private

Definition at line 117 of file filtdlg.hxx.

Referenced by Init().

std::unique_ptr<formula::RefEdit> ScFilterDlg::m_xEdCopyArea
private

Definition at line 131 of file filtdlg.hxx.

Referenced by GetOutputItem(), Init(), ScFilterDlg(), SetActive(), and SetReference().

std::unique_ptr<weld::ComboBox> ScFilterDlg::m_xEdVal1
private

Definition at line 100 of file filtdlg.hxx.

Referenced by Init().

std::unique_ptr<weld::ComboBox> ScFilterDlg::m_xEdVal2
private

Definition at line 105 of file filtdlg.hxx.

Referenced by Init().

std::unique_ptr<weld::ComboBox> ScFilterDlg::m_xEdVal3
private

Definition at line 110 of file filtdlg.hxx.

Referenced by Init().

std::unique_ptr<weld::ComboBox> ScFilterDlg::m_xEdVal4
private

Definition at line 115 of file filtdlg.hxx.

Referenced by Init().

std::unique_ptr<weld::Expander> ScFilterDlg::m_xExpander
private

Definition at line 119 of file filtdlg.hxx.

Referenced by ScFilterDlg().

std::unique_ptr<weld::Label> ScFilterDlg::m_xFtDbArea
private

Definition at line 135 of file filtdlg.hxx.

Referenced by Init().

std::unique_ptr<weld::Label> ScFilterDlg::m_xFtDbAreaLabel
private

Definition at line 134 of file filtdlg.hxx.

Referenced by Init(), and ScFilterDlg().

std::unique_ptr<weld::ComboBox> ScFilterDlg::m_xLbCond1
private

Definition at line 99 of file filtdlg.hxx.

Referenced by Init().

std::unique_ptr<weld::ComboBox> ScFilterDlg::m_xLbCond2
private

Definition at line 104 of file filtdlg.hxx.

Referenced by Init().

std::unique_ptr<weld::ComboBox> ScFilterDlg::m_xLbCond3
private

Definition at line 109 of file filtdlg.hxx.

Referenced by Init().

std::unique_ptr<weld::ComboBox> ScFilterDlg::m_xLbCond4
private

Definition at line 114 of file filtdlg.hxx.

Referenced by Init().

std::unique_ptr<weld::ComboBox> ScFilterDlg::m_xLbConnect1
private

Definition at line 97 of file filtdlg.hxx.

Referenced by Init().

std::unique_ptr<weld::ComboBox> ScFilterDlg::m_xLbConnect2
private

Definition at line 102 of file filtdlg.hxx.

Referenced by Init().

std::unique_ptr<weld::ComboBox> ScFilterDlg::m_xLbConnect3
private

Definition at line 107 of file filtdlg.hxx.

Referenced by Init().

std::unique_ptr<weld::ComboBox> ScFilterDlg::m_xLbConnect4
private

Definition at line 112 of file filtdlg.hxx.

Referenced by Init().

std::unique_ptr<weld::ComboBox> ScFilterDlg::m_xLbCopyArea
private

Definition at line 130 of file filtdlg.hxx.

Referenced by Init().

std::unique_ptr<weld::ComboBox> ScFilterDlg::m_xLbField1
private

Definition at line 98 of file filtdlg.hxx.

Referenced by FillFieldLists(), and Init().

std::unique_ptr<weld::ComboBox> ScFilterDlg::m_xLbField2
private

Definition at line 103 of file filtdlg.hxx.

Referenced by FillFieldLists(), and Init().

std::unique_ptr<weld::ComboBox> ScFilterDlg::m_xLbField3
private

Definition at line 108 of file filtdlg.hxx.

Referenced by FillFieldLists(), and Init().

std::unique_ptr<weld::ComboBox> ScFilterDlg::m_xLbField4
private

Definition at line 113 of file filtdlg.hxx.

Referenced by FillFieldLists(), and Init().

std::unique_ptr<formula::RefButton> ScFilterDlg::m_xRbCopyArea
private

Definition at line 132 of file filtdlg.hxx.

Referenced by Init(), and ScFilterDlg().

std::unique_ptr<weld::ScrolledWindow> ScFilterDlg::m_xScrollBar
private

Definition at line 118 of file filtdlg.hxx.

Referenced by GetSliderPos(), and Init().

std::vector<weld::ComboBox*> ScFilterDlg::maCondLbArr
private

Definition at line 85 of file filtdlg.hxx.

Referenced by Init(), and RefreshEditRow().

std::vector<weld::ComboBox*> ScFilterDlg::maConnLbArr
private

Definition at line 86 of file filtdlg.hxx.

Referenced by Init(), and RefreshEditRow().

std::vector<weld::ComboBox*> ScFilterDlg::maFieldLbArr
private

Definition at line 84 of file filtdlg.hxx.

Referenced by Init(), RefreshEditRow(), UpdateHdrInValueList(), and UpdateValueList().

std::deque<bool> ScFilterDlg::maHasDates
private

Definition at line 88 of file filtdlg.hxx.

Referenced by UpdateValueList().

std::deque<bool> ScFilterDlg::maRefreshExceptQuery
private

Definition at line 89 of file filtdlg.hxx.

Referenced by Init(), and RefreshEditRow().

std::vector<weld::ComboBox*> ScFilterDlg::maValueEdArr
private
SCTAB ScFilterDlg::nSrcTab
private

Definition at line 81 of file filtdlg.hxx.

Referenced by FillFieldLists(), Init(), and UpdateValueList().

const sal_uInt16 ScFilterDlg::nWhichQuery
private

Definition at line 76 of file filtdlg.hxx.

Referenced by GetOutputItem(), and Init().

ScDocument* ScFilterDlg::pDoc
private
std::unique_ptr<ScFilterOptionsMgr> ScFilterDlg::pOptionsMgr
private

Definition at line 74 of file filtdlg.hxx.

Referenced by Init(), and ~ScFilterDlg().

std::unique_ptr<ScQueryItem> ScFilterDlg::pOutItem
private

Definition at line 78 of file filtdlg.hxx.

Referenced by GetOutputItem(), and ~ScFilterDlg().

std::unique_ptr<Timer> ScFilterDlg::pTimer
private

Definition at line 95 of file filtdlg.hxx.

Referenced by ScFilterDlg(), and ~ScFilterDlg().

ScViewData* ScFilterDlg::pViewData
private

Definition at line 79 of file filtdlg.hxx.

Referenced by Close(), and Init().

ScQueryParam ScFilterDlg::theQueryData
private

The documentation for this class was generated from the following files: