|
LibreOffice Module sc (master) 1
|
#include <condformatdlg.hxx>
Public Member Functions | |
| ScCondFormatDlg (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pWindow, ScViewData *pViewData, const ScCondFormatDlgItem *pDlgItem) | |
| virtual | ~ScCondFormatDlg () override |
| std::unique_ptr< ScConditionalFormat > | GetConditionalFormat () const |
| virtual void | SetReference (const ScRange &, ScDocument &) override |
| virtual bool | IsRefInputMode () const override |
| virtual void | SetActive () override |
| virtual bool | IsTableLocked () const override |
| virtual void | Close () override |
| void | InvalidateRefData () |
| void | OnSelectionChange (size_t nIndex, size_t nSize, bool bSelected=true) |
| DECL_LINK (BtnPressedHdl, weld::Button &, void) | |
| DECL_LINK (RangeGetFocusHdl, formula::RefEdit &, void) | |
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) |
Protected Member Functions | |
| virtual void | RefInputDone (bool bForced=false) override |
| void | OkPressed () |
| void | CancelPressed () |
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) |
Private Member Functions | |
| void | updateTitle () |
| DECL_LINK (EdRangeModifyHdl, formula::RefEdit &, void) | |
Private Attributes | |
| sal_Int32 | mnKey |
| ScAddress | maPos |
| ScViewData * | mpViewData |
| std::shared_ptr< ScCondFormatDlgItem > | mpDlgItem |
| OUString | msBaseTitle |
| formula::RefEdit * | mpLastEdit |
| std::unique_ptr< weld::Button > | mxBtnOk |
| std::unique_ptr< weld::Button > | mxBtnAdd |
| std::unique_ptr< weld::Button > | mxBtnRemove |
| std::unique_ptr< weld::Button > | mxBtnUp |
| std::unique_ptr< weld::Button > | mxBtnDown |
| std::unique_ptr< weld::Button > | mxBtnCancel |
| std::unique_ptr< weld::Label > | mxFtRange |
| std::unique_ptr< formula::RefEdit > | mxEdRange |
| std::unique_ptr< formula::RefButton > | mxRbRange |
| std::unique_ptr< ScCondFormatList > | mxCondFormList |
Additional Inherited Members | |
Public Types inherited from ScRefHdlrControllerImpl< SfxModelessDialogController > | |
| enum | |
Static Public Member Functions inherited from ScRefHandler | |
| static bool | CanInputStart (const formula::RefEdit *pEdit) |
Definition at line 77 of file condformatdlg.hxx.
| ScCondFormatDlg::ScCondFormatDlg | ( | SfxBindings * | pB, |
| SfxChildWindow * | pCW, | ||
| weld::Window * | pWindow, | ||
| ScViewData * | pViewData, | ||
| const ScCondFormatDlgItem * | pDlgItem | ||
| ) |
Definition at line 417 of file condformatdlg.cxx.
References Clone(), ScRangeList::empty(), ScMarkData::FillRangeListWithMarks(), ScRangeList::Format(), ScDocument::GetAddressConvention(), ScDocument::GetCondFormList(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetDocument(), ScConditionalFormatList::GetFormat(), ScViewData::GetMarkData(), ScConditionalFormat::GetRange(), ScViewData::GetTabNo(), ScRangeList::GetTopLeftCorner(), LINK, m_xDialog, maPos, mnKey, mpDlgItem, mpViewData, msBaseTitle, mxBtnAdd, mxBtnCancel, mxBtnDown, mxBtnOk, mxBtnRemove, mxBtnUp, mxCondFormList, mxEdRange, mxFtRange, mxRbRange, ScRangeList::push_back(), updateTitle(), and VALID.
|
overridevirtual |
Definition at line 498 of file condformatdlg.cxx.
|
protected |
Definition at line 649 of file condformatdlg.cxx.
References SfxDispatcher::Execute(), SfxModelessDialogController::GetBindings(), SfxBindings::GetDispatcher(), SfxShell::GetPool(), ScViewData::GetViewShell(), m_xDialog, mpDlgItem, mpViewData, SfxItemPool::Put(), RET_CANCEL, and ScRefHandler::SetDispatcherLock().
|
overridevirtual |
Reimplemented from SfxModelessDialogController.
Definition at line 599 of file condformatdlg.cxx.
References ScRefHandler::DoClose().
| ScCondFormatDlg::DECL_LINK | ( | BtnPressedHdl | , |
| weld::Button & | , | ||
| void | |||
| ) |
|
private |
| ScCondFormatDlg::DECL_LINK | ( | RangeGetFocusHdl | , |
| formula::RefEdit & | , | ||
| void | |||
| ) |
| std::unique_ptr< ScConditionalFormat > ScCondFormatDlg::GetConditionalFormat | ( | ) | const |
Definition at line 572 of file condformatdlg.cxx.
References ScRangeList::empty(), ScDocument::GetAddressConvention(), ScViewData::GetDocument(), maPos, mpViewData, mxCondFormList, mxEdRange, ScRangeList::Parse(), ScAddress::Tab(), and VALID.
Referenced by OkPressed().
| void ScCondFormatDlg::InvalidateRefData | ( | ) |
Definition at line 592 of file condformatdlg.cxx.
References mpLastEdit.
|
overridevirtual |
Reimplemented from ScRefHandler.
Definition at line 533 of file condformatdlg.cxx.
References mxEdRange.
|
overridevirtual |
Reimplemented from ScRefHandler.
Definition at line 528 of file condformatdlg.cxx.
References mpLastEdit, and mxEdRange.
|
protected |
Definition at line 606 of file condformatdlg.cxx.
References ScConditionalFormatList::erase(), SfxDispatcher::Execute(), SfxModelessDialogController::GetBindings(), GetConditionalFormat(), SfxBindings::GetDispatcher(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScConditionalFormatList::getMaxKey(), SfxShell::GetPool(), ScViewData::GetViewShell(), ScConditionalFormatList::InsertNew(), m_xDialog, maPos, mnKey, mpDlgItem, mpViewData, SfxItemPool::Put(), ScDocFunc::ReplaceConditionalFormat(), RET_OK, ScRefHandler::SetDispatcherLock(), and ScAddress::Tab().
| void ScCondFormatDlg::OnSelectionChange | ( | size_t | nIndex, |
| size_t | nSize, | ||
| bool | bSelected = true |
||
| ) |
Definition at line 662 of file condformatdlg.cxx.
References mxBtnDown, mxBtnUp, and nIndex.
Referenced by ScCondFormatList::init().
|
overrideprotectedvirtual |
Reimplemented from ScRefHandler.
Definition at line 512 of file condformatdlg.cxx.
References ScRefHandler::RefInputDone(), and updateTitle().
Referenced by SetActive().
|
overridevirtual |
Implements ScRefHandler.
Definition at line 502 of file condformatdlg.cxx.
References formula::RefEdit::GrabFocus(), mpLastEdit, mxEdRange, and RefInputDone().
|
overridevirtual |
Implements ScRefHandler.
Definition at line 538 of file condformatdlg.cxx.
References ScRange::aEnd, ScRange::aStart, ScRange::Format(), weld::Widget::get_sensitive(), ScDocument::GetAddressConvention(), ScViewData::GetDocument(), formula::RefEdit::GetSelection(), formula::RefEdit::GetWidget(), Selection::Max(), Selection::Min(), mpLastEdit, mpViewData, mxEdRange, Selection::Normalize(), RANGE_ABS, RANGE_ABS_3D, ScRefHandler::RefInputStart(), weld::Entry::replace_selection(), formula::RefEdit::SetRefString(), formula::RefEdit::SetSelection(), and updateTitle().
|
private |
Definition at line 491 of file condformatdlg.cxx.
References m_xDialog, msBaseTitle, and mxEdRange.
Referenced by RefInputDone(), ScCondFormatDlg(), and SetReference().
|
private |
Definition at line 82 of file condformatdlg.hxx.
Referenced by GetConditionalFormat(), OkPressed(), and ScCondFormatDlg().
|
private |
Definition at line 80 of file condformatdlg.hxx.
Referenced by OkPressed(), and ScCondFormatDlg().
|
private |
Definition at line 85 of file condformatdlg.hxx.
Referenced by CancelPressed(), OkPressed(), and ScCondFormatDlg().
|
private |
Definition at line 89 of file condformatdlg.hxx.
Referenced by InvalidateRefData(), IsTableLocked(), SetActive(), and SetReference().
|
private |
Definition at line 83 of file condformatdlg.hxx.
Referenced by CancelPressed(), GetConditionalFormat(), OkPressed(), ScCondFormatDlg(), and SetReference().
|
private |
Definition at line 87 of file condformatdlg.hxx.
Referenced by ScCondFormatDlg(), and updateTitle().
|
private |
Definition at line 91 of file condformatdlg.hxx.
Referenced by ScCondFormatDlg().
|
private |
Definition at line 95 of file condformatdlg.hxx.
Referenced by ScCondFormatDlg().
|
private |
Definition at line 94 of file condformatdlg.hxx.
Referenced by OnSelectionChange(), and ScCondFormatDlg().
|
private |
Definition at line 90 of file condformatdlg.hxx.
Referenced by ScCondFormatDlg().
|
private |
Definition at line 92 of file condformatdlg.hxx.
Referenced by ScCondFormatDlg().
|
private |
Definition at line 93 of file condformatdlg.hxx.
Referenced by OnSelectionChange(), and ScCondFormatDlg().
|
private |
Definition at line 99 of file condformatdlg.hxx.
Referenced by GetConditionalFormat(), and ScCondFormatDlg().
|
private |
Definition at line 97 of file condformatdlg.hxx.
Referenced by GetConditionalFormat(), IsRefInputMode(), IsTableLocked(), ScCondFormatDlg(), SetActive(), SetReference(), and updateTitle().
|
private |
Definition at line 96 of file condformatdlg.hxx.
Referenced by ScCondFormatDlg().
|
private |
Definition at line 98 of file condformatdlg.hxx.
Referenced by ScCondFormatDlg().