LibreOffice Module sc (master) 1
|
#include <inputhdl.hxx>
Public Member Functions | |
ScInputHandler (const ScInputHandler &)=delete | |
const ScInputHandler & | operator= (const ScInputHandler &)=delete |
ScInputHandler () | |
~ScInputHandler () | |
void | SetMode (ScInputMode eNewMode, const OUString *pInitText=nullptr, ScEditEngineDefaulter *pTopEngine=nullptr) |
bool | IsInputMode () const |
bool | IsEditMode () const |
bool | IsTopMode () const |
const OUString & | GetEditString () |
const OUString & | GetFormString () const |
const ScAddress & | GetCursorPos () const |
bool | GetTextAndFields (ScEditEngineDefaulter &rDestEngine) |
void | MergeLanguageAttributes (ScEditEngineDefaulter &rDestEngine) const |
bool | KeyInput (const KeyEvent &rKEvt, bool bStartEdit) |
void | EnterHandler (ScEnterMode nBlockMode=ScEnterMode::NORMAL, bool bBeforeSavingInLOK=false) |
void | CancelHandler () |
void | SetReference (const ScRange &rRef, const ScDocument &rDoc) |
void | AddRefEntry () |
void | InputCommand (const CommandEvent &rCEvt) |
OUString | GetSurroundingText () |
Selection | GetSurroundingTextSelection () |
bool | DeleteSurroundingText (const Selection &rSelection) |
void | InsertFunction (const OUString &rFuncName, bool bAddPar=true) |
void | ClearText () |
void | InputSelection (const EditView *pView) |
void | InputChanged (const EditView *pView, bool bFromNotify) |
void | ViewShellGone (const ScTabViewShell *pViewSh) |
void | SetRefViewShell (ScTabViewShell *pRefVsh) |
void | NotifyChange (const ScInputHdlState *pState, bool bForce=false, ScTabViewShell *pSourceSh=nullptr, bool bStopEditing=true) |
void | UpdateCellAdjust (SvxCellHorJustify eJust) |
void | ResetDelayTimer () |
void | HideTip () |
void | HideTipBelow () |
void | ShowTipCursor () |
void | ShowTip (const OUString &rText) |
void | ShowTipBelow (const OUString &rText) |
void | ShowFuncList (const ::std::vector< OUString > &rFuncStrVec) |
void | SetRefScale (const Fraction &rX, const Fraction &rY) |
void | UpdateRefDevice () |
EditView * | GetActiveView () |
EditView * | GetTableView () |
EditView * | GetTopView () |
bool | DataChanging (sal_Unicode cTyped=0, bool bFromCommand=false) |
void | DataChanged (bool bFromTopNotify=false, bool bSetModified=true) |
bool | TakesReturn () const |
void | SetModified () |
bool | GetSelIsRef () const |
void | SetSelIsRef (bool bSet) |
void | ShowRefFrame () |
ScRangeFindList * | GetRangeFindList () |
void | UpdateRange (sal_uInt16 nIndex, const ScRange &rNew) |
void | InputGetSelection (sal_Int32 &rStart, sal_Int32 &rEnd) |
Methods for FunctionAutoPilot: InputGetSelection, InputSetSelection, InputReplaceSelection, InputGetFormulaStr. More... | |
void | InputSetSelection (sal_Int32 nStart, sal_Int32 nEnd) |
void | InputReplaceSelection (const OUString &rStr) |
void | InputTurnOffWinEngine () |
bool | IsFormulaMode () const |
ScInputWindow * | GetInputWindow () |
void | SetInputWindow (ScInputWindow *pNew) |
void | StopInputWinEngine (bool bAll) |
bool | IsInEnterHandler () const |
bool | IsInOwnChange () const |
bool | HasPartialComplete () const |
Returns true if there is a partial autocomplete suggestion. More... | |
bool | IsModalMode (const SfxObjectShell *pDocSh) |
void | ForgetLastPattern () |
void | UpdateSpellSettings (bool bFromStartTab=false) |
void | FormulaPreview () |
Size | GetTextSize () |
void | InitRangeFinder (const OUString &rFormula) |
void | UpdateLokReferenceMarks () |
void | SetDocumentDisposing (bool b) |
void | LOKPasteFunctionData (const OUString &rFunctionName) |
Static Public Member Functions | |
static void | SendReferenceMarks (const SfxViewShell *pViewShell, const std::vector< ReferenceMark > &rReferenceMarks) |
static ReferenceMark | GetReferenceMark (const ScViewData &rViewData, ScDocShell *pDocSh, tools::Long nX1, tools::Long nX2, tools::Long nY1, tools::Long nY2, tools::Long nTab, const Color &rColor) |
static void | LOKSendFormulabarUpdate (const SfxViewShell *pActiveViewSh, const OUString &rText, const ESelection &rSelection) |
Private Member Functions | |
void | UpdateActiveView () |
void | SyncViews (const EditView *pSourceView=nullptr) |
bool | StartTable (sal_Unicode cTyped, bool bFromCommand, bool bInputActivated, ScEditEngineDefaulter *pTopEngine) |
void | RemoveSelection () |
bool | StartsLikeFormula (std::u16string_view rStr) const |
void | UpdateFormulaMode () |
void | ImplCreateEditEngine () |
DECL_LINK (DelayTimer, Timer *, void) | |
void | GetColData () |
void | UseColData () |
void | NextAutoEntry (bool bBack) |
void | UpdateAdjust (sal_Unicode cTyped) |
void | GetFormulaData () |
void | UseFormulaData () |
void | NextFormulaEntry (bool bBack) |
void | PasteFunctionData () |
void | PasteManualTip () |
EditView * | GetFuncEditView () |
void | RemoveAdjust () |
void | RemoveRangeFinder () |
void | DeleteRangeFinder () |
void | UpdateParenthesis () |
void | UpdateAutoCorrFlag () |
void | ResetAutoPar () |
void | AutoParAdded () |
bool | CursorAtClosingPar () |
void | SkipClosingPar () |
bool | GetFuncName (OUString &aStart, OUString &aResult) |
void | ShowArgumentsTip (OUString &rSelText) |
DECL_LINK (ModifyHdl, LinkParamNone *, void) | |
DECL_LINK (ShowHideTipVisibleParentListener, VclWindowEvent &, void) | |
DECL_LINK (ShowHideTipVisibleSecParentListener, VclWindowEvent &, void) | |
Static Private Member Functions | |
static void | InvalidateAttribs () |
Definition at line 57 of file inputhdl.hxx.
|
delete |
ScInputHandler::ScInputHandler | ( | ) |
Definition at line 803 of file inputhdl.cxx.
References eMode, LINK, pActiveViewSh, pDelayTimer, and Standard.
ScInputHandler::~ScInputHandler | ( | ) |
Definition at line 850 of file inputhdl.cxx.
References EnterHandler(), mbDocumentDisposing, pInputWin, and SC_MOD.
void ScInputHandler::AddRefEntry | ( | ) |
Definition at line 3487 of file inputhdl.cxx.
References DataChanged(), DataChanging(), GetEditText(), formula::FormulaCompiler::GetNativeSymbolChar(), EditView::InsertText(), mpEditEngine, nPos, ocSep, pTableView, pTopView, RemoveSelection(), and UpdateActiveView().
Referenced by ScModule::AddRefEntry().
|
private |
Definition at line 1960 of file inputhdl.cxx.
References nAutoPar.
Referenced by InsertFunction(), and PasteFunctionData().
void ScInputHandler::CancelHandler | ( | ) |
Definition at line 3419 of file inputhdl.cxx.
References ScTabView::ActiveGrabFocus(), aCursorPos, aFormText, bFormulaMode, bInOwnChange, bModified, DeleteRangeFinder(), eMode, ScViewData::GetDocument(), ScTabView::GetViewData(), ImplCreateEditEngine(), comphelper::LibreOfficeKit::isActive(), ScDocument::MaxCol(), mbEditingExistingContent, mbPartialPrefix, mpEditEngine, nFormSelEnd, nFormSelStart, NotifyChange(), pActiveViewSh, pInputWin, pLastState, pRefViewSh, ResetAutoPar(), SC_INPUT_NONE, SC_MOD, SendReferenceMarks(), ScAddress::Set(), ScTabView::SetTabNo(), SfxGetpApp(), ShowRefFrame(), ScTabViewShell::StopEditShell(), StopInputWinEngine(), ScAddress::Tab(), UpdateAutoCorrFlag(), and ScTabViewShell::UpdateInputHandler().
Referenced by ScModule::ActivateInputWindow(), ScTextWnd::Command(), ScGridWindow::ExecDataSelect(), ScModule::InputCancelHandler(), KeyInput(), and ScGridWindow::StartDrag().
void ScInputHandler::ClearText | ( | ) |
Definition at line 3672 of file inputhdl.cxx.
References DataChanged(), DataChanging(), eMode, EditView::GetEditEngine(), pTableView, pTopView, SC_INPUT_NONE, EditView::SetSelection(), EditEngine::SetText(), and UpdateActiveView().
Referenced by ScFunctionWin::DoEnter().
|
private |
Definition at line 1965 of file inputhdl.cxx.
References bFormulaMode, EditView::GetSelection(), EditView::HasSelection(), mpEditEngine, nPos, ESelection::nStartPos, pTableView, and pTopView.
Referenced by KeyInput().
void ScInputHandler::DataChanged | ( | bool | bFromTopNotify = false , |
bool | bSetModified = true |
||
) |
Definition at line 2692 of file inputhdl.cxx.
References ESelection::Adjust(), bInOwnChange, bInRangeUpdate, bModified, bSelIsRef, bTextValid, ScViewData::EditGrowX(), ScViewData::EditGrowY(), eMode, ScViewData::GetDocument(), ScViewData::GetEditAdjust(), EditView::GetEditEngine(), GetEditText(), ScEditUtil::GetMultilineString(), EditView::GetSelection(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ImplCreateEditEngine(), comphelper::LibreOfficeKit::isActive(), ScDocument::IsLayoutRTL(), lcl_RemoveTabs(), SfxViewShell::libreOfficeKitViewCallback(), LOKSendFormulabarUpdate(), mpEditEngine, ESelection::nEndPara, ESelection::nEndPos, pActiveViewSh, pInputWin, pRangeFindList, pTableView, pTopView, EditEngine::QuickFormatDoc(), RemoveRangeFinder(), SC_INPUT_NONE, SC_INPUT_TABLE, SC_INPUT_TOP, SC_INPUT_TYPE, EditView::ShowCursor(), UpdateFormulaMode(), and UpdateParenthesis().
Referenced by AddRefEntry(), ClearText(), ScFunctionWin::DoEnter(), ScCellShell::Execute(), ScEditShell::Execute(), ScCellShell::ExecuteEdit(), ScEditShell::ExecuteTrans(), ScEditShell::ExecuteUndo(), InputChanged(), InputCommand(), ScViewFunc::InsertCurrentTime(), InsertFunction(), ScTabViewShell::InsertURLField(), KeyInput(), PasteFunctionData(), PasteManualTip(), SetReference(), ScGridWindow::StartDrag(), and UpdateRange().
bool ScInputHandler::DataChanging | ( | sal_Unicode | cTyped = 0 , |
bool | bFromCommand = false |
||
) |
Definition at line 2680 of file inputhdl.cxx.
References bInOwnChange, eMode, ScTabView::GetViewData(), NONE, pActiveViewSh, SC_INPUT_NONE, ScViewData::SetPasteMode(), and StartTable().
Referenced by AddRefEntry(), ClearText(), ScCellShell::Execute(), ScEditShell::Execute(), ScCellShell::ExecuteEdit(), ScEditShell::ExecuteTrans(), ScEditShell::ExecuteUndo(), InputChanged(), InputCommand(), ScViewFunc::InsertCurrentTime(), InsertFunction(), ScTabViewShell::InsertURLField(), KeyInput(), PasteFunctionData(), PasteManualTip(), SetReference(), and UpdateRange().
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 683 of file inputhdl.cxx.
References ScViewData::GetDocShell(), ScTabView::GetViewData(), pActiveViewSh, pRangeFindList, and pRefViewSh.
Referenced by CancelHandler(), EnterHandler(), InitRangeFinder(), and RemoveRangeFinder().
bool ScInputHandler::DeleteSurroundingText | ( | const Selection & | rSelection | ) |
Definition at line 4016 of file inputhdl.cxx.
References EditView::DeleteSurroundingText(), eMode, pTableView, pTopView, SC_INPUT_NONE, and UpdateActiveView().
Referenced by ScGridWindow::DeleteSurroundingText().
void ScInputHandler::EnterHandler | ( | ScEnterMode | nBlockMode = ScEnterMode::NORMAL , |
bool | bBeforeSavingInLOK = false |
||
) |
Definition at line 3035 of file inputhdl.cxx.
References aAutoSearch, ScTabView::ActiveGrabFocus(), aCursorPos, ScViewFunc::AdjustBlockHeight(), aFormText, ScViewFunc::ApplySelectionPattern(), bFormulaMode, bInEnterHandler, bInOwnChange, BLOCK, bModified, bProtected, bSelIsRef, ScAddress::Col(), EditView::CompleteAutoCorrect(), SfxViewShell::Current(), ScDBFunc::DataPilotInput(), DeleteRangeFinder(), EE_CHAR_END(), EE_CHAR_ESCAPEMENT(), EE_CHAR_KERNING(), EE_CHAR_PAIRKERNING(), EE_CHAR_START(), EE_CHAR_XMLATTRIBS(), EE_FEATURE_FIELD(), EE_FEATURE_NOTCONV(), eMode, SfxBindings::Execute(), SvxAutoCorrCfg::Get(), SvxAutoCorrCfg::GetAutoCorrect(), SfxViewFrame::GetBindings(), ScViewData::GetDocument(), LocaleDataWrapper::getDoubleQuotationMarkEnd(), LocaleDataWrapper::getDoubleQuotationMarkStart(), ScDocument::GetDPAtCursor(), GetEditText(), SvxAutoCorrect::GetEndDoubleQuote(), SvxAutoCorrect::GetEndSingleQuote(), ScDocument::GetFormatTable(), SfxViewShell::GetFrameWeld(), ScTabView::GetFrameWin(), SfxItemSet::GetItemState(), ScGlobal::getLocaleData(), ScPatternAttr::GetNumberFormat(), ScDocument::GetPattern(), ScDocument::GetPool(), LocaleDataWrapper::getQuotationMarkEnd(), LocaleDataWrapper::getQuotationMarkStart(), SvxAutoCorrect::GetStartDoubleQuote(), SvxAutoCorrect::GetStartSingleQuote(), ScDocument::GetValidationEntry(), ScViewData::GetView(), ScTabView::GetViewData(), SfxViewShell::GetViewFrame(), HideTip(), HideTipBelow(), ImplCreateEditEngine(), comphelper::LibreOfficeKit::isActive(), SvNumberFormatter::IsNumberFormat(), lcl_IsNumber(), lcl_RemoveTabs(), lcl_SelectionToEnd(), MATRIX, mbDocumentDisposing, mbEditingExistingContent, mbPartialPrefix, miAutoPosColumn, mpEditEngine, nFormSelEnd, nFormSelStart, nId, nValidation, pActiveViewSh, pColumnData, pData, pEditDefaults, pInputWin, pLastPattern, pLastState, pObject, pRefViewSh, pTableView, pTopView, RemoveAdjust(), ResetAutoPar(), ScAddress::Row(), SC_INPUT_NONE, SC_MOD, SC_VALID_CUSTOM, ScInputStatusItem::SetMisspellRanges(), ScTabView::SetTabNo(), SfxGetpApp(), ShowRefFrame(), StopInputWinEngine(), ScTabView::StopMarking(), ScAddress::Tab(), and UpdateAutoCorrFlag().
Referenced by ScModule::ActivateInputWindow(), ScTabView::ActivateView(), ScGridWindow::Command(), IMPL_LINK(), ScModule::InputEnterHandler(), KeyInput(), NotifyChange(), ScTabViewShell::PrepareClose(), ViewShellGone(), and ~ScInputHandler().
void ScInputHandler::ForgetLastPattern | ( | ) |
Definition at line 2333 of file inputhdl.cxx.
References NotifyChange(), pActiveViewSh, pLastPattern, pLastState, and ScTabViewShell::UpdateInputHandler().
Referenced by ScModule::ConfigurationChanged(), ScGridWindow::DataChanged(), lcl_DocStyleChanged(), ScViewFunc::RemoveStyleSheetInUse(), and ScViewFunc::UpdateStyleSheetInUse().
void ScInputHandler::FormulaPreview | ( | ) |
Definition at line 1872 of file inputhdl.cxx.
References aCursorPos, aManualTip, ScViewData::GetDocShell(), ScDocShell::GetDocument(), EditView::GetSelected(), ScTabView::GetViewData(), lcl_Calculate(), miAutoPosColumn, miAutoPosFormula, mpEditEngine, pActiveViewSh, pColumnData, pFormulaData, pTableView, pTopView, and ShowTip().
Referenced by ScDocShell::DoRecalc().
EditView * ScInputHandler::GetActiveView | ( | ) |
Definition at line 2327 of file inputhdl.cxx.
References pTableView, pTopView, and UpdateActiveView().
Referenced by ScFunctionWin::DoEnter(), ScCellShell::Execute(), ScEditShell::Execute(), ScCellShell::ExecuteEdit(), ScEditShell::GetState(), ScEditShell::GetURLField(), and ScTabViewShell::isAnyEditViewInRange().
|
private |
Definition at line 2008 of file inputhdl.cxx.
References aCursorPos, aEntries, ScAddress::Col(), ScDocument::GetDataEntries(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScTabView::GetViewData(), miAutoPosColumn, pActiveViewSh, pColumnData, ScAddress::Row(), and ScAddress::Tab().
Referenced by StartTable().
|
inline |
Definition at line 195 of file inputhdl.hxx.
References aCursorPos.
Referenced by ScDocShell::DoRecalc(), and ScDocFunc::NotifyInputHandler().
const OUString & ScInputHandler::GetEditString | ( | ) |
Definition at line 4433 of file inputhdl.cxx.
References aCurrentText, bTextValid, and mpEditEngine.
Referenced by ScGridWindow::Command(), ScFunctionWin::DoEnter(), InputSelection(), ScTabViewShell::IsRefInputMode(), and ScInputWindow::ScInputWindow().
|
inline |
Definition at line 193 of file inputhdl.hxx.
References aFormText.
Referenced by ScFormulaDlg::ScFormulaDlg(), and ScInputWindow::ScInputWindow().
|
private |
Definition at line 1002 of file inputhdl.cxx.
References aData, ScFunctionList::GetCount(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScDocument::GetFormulaEntries(), ScFunctionList::GetFunction(), ScAppOptions::GetLRUFuncList(), ScAppOptions::GetLRUFuncListCount(), ScFuncDesc::getSignature(), ScGlobal::GetStarCalcFunctionList(), ScTabView::GetViewData(), i, ScFuncDesc::initArgumentInfo(), maFormulaChar, miAutoPosFormula, ScTypedStrData::MRU, ScFuncDesc::mxFuncName, ScFuncDesc::nFIndex, nId, pActiveViewSh, pFormulaData, pFormulaDataPara, pName, SC_MOD, and ScTypedStrData::Standard.
Referenced by UpdateFormulaMode().
|
private |
Definition at line 4498 of file inputhdl.cxx.
References bCreatingFuncView, eMode, EditView::GetEditEngine(), pInputWin, pTableView, SC_INPUT_TABLE, SetMode(), EditEngine::SetText(), and UpdateActiveView().
Referenced by InputReplaceSelection(), and InputSetSelection().
|
private |
Definition at line 1365 of file inputhdl.cxx.
References ScGlobal::getCharClass(), i, maFormulaChar, nPos, p, and CharClass::uppercase().
Referenced by UseFormulaData().
|
inline |
Definition at line 265 of file inputhdl.hxx.
References pInputWin.
Referenced by ScModule::ActivateInputWindow(), ScTabViewShell::afterCallbackRegistered(), ScInputWindow::dispose(), ScCellShell::Execute(), ScModule::Execute(), ScCellShell::ExecuteMove(), ScTabView::KillEditView(), ScViewData::ReadUserDataSequence(), ScPosWnd::ReleaseFocus_Impl(), ScTabViewObj::setPropertyValue(), and ScTabViewShell::TabKeyInput().
|
inline |
Definition at line 254 of file inputhdl.hxx.
References pRangeFindList.
Referenced by ScGridWindow::DrawContent(), ScGridWindow::HitRangeFinder(), ScTabView::PaintRangeFinder(), ScGridWindow::RFMouseMove(), and UpdateLokReferenceMarks().
|
static |
Definition at line 472 of file inputhdl.cxx.
References ScDocument::ExtendMerge(), ScDocument::FillInfo(), ScOutputData::FillReferenceMark(), ScViewData::GetActivePart(), ScDocShell::GetDocument(), ScViewData::GetPPTX(), ScViewData::GetPPTY(), ScViewData::GetPrintTwipsPos(), ScViewData::GetScrPos(), ScViewData::GetZoomX(), ScViewData::GetZoomY(), comphelper::LibreOfficeKit::isCompatFlagSet(), nPPTX, nPPTY, OUTTYPE_WINDOW, Point, and PutInOrder().
Referenced by ScTabView::DoChartSelection(), and UpdateLokReferenceMarks().
|
inline |
Definition at line 249 of file inputhdl.hxx.
References bSelIsRef.
Referenced by ScTabViewShell::IsRefInputMode().
OUString ScInputHandler::GetSurroundingText | ( | ) |
Definition at line 3984 of file inputhdl.cxx.
References eMode, EditView::GetSurroundingText(), pTableView, pTopView, SC_INPUT_NONE, and UpdateActiveView().
Referenced by ScGridWindow::GetSurroundingText().
Selection ScInputHandler::GetSurroundingTextSelection | ( | ) |
Definition at line 4000 of file inputhdl.cxx.
References eMode, EditView::GetSurroundingTextSelection(), pTableView, pTopView, SC_INPUT_NONE, and UpdateActiveView().
Referenced by ScGridWindow::GetSurroundingTextSelection().
|
inline |
Definition at line 239 of file inputhdl.hxx.
References pTableView.
Referenced by ScInputWindow::AutoSum(), ScEditShell::Execute(), ScEditShell::ExecuteTrans(), ScEditShell::ExecuteUndo(), ScGridWindow::GetEditUrl(), ScViewFunc::InsertCurrentTime(), ScTabViewShell::InsertURLField(), and ScModelObj::setTextSelection().
bool ScInputHandler::GetTextAndFields | ( | ScEditEngineDefaulter & | rDestEngine | ) |
Definition at line 4453 of file inputhdl.cxx.
References EE_FEATURE_FIELD(), SfxItemSet::GetItemState(), EditEngine::GetTextLen(), i, mpEditEngine, EditEngine::QuickInsertText(), EditEngine::RemoveCharAttribs(), and ScEditEngineDefaulter::SetTextCurrentDefaults().
Referenced by ScTextWnd::InitEditEngine().
Size ScInputHandler::GetTextSize | ( | ) |
Definition at line 4444 of file inputhdl.cxx.
References mpEditEngine.
Referenced by ScViewFunc::ModifyCellSize().
|
inline |
Definition at line 240 of file inputhdl.hxx.
References pTopView.
Referenced by ScInputWindow::AutoSum(), ScEditShell::Execute(), ScEditShell::ExecuteTrans(), ScEditShell::ExecuteUndo(), ScEditShell::GetUndoState(), ScViewFunc::InsertCurrentTime(), and ScTabViewShell::InsertURLField().
|
inline |
Returns true if there is a partial autocomplete suggestion.
Definition at line 273 of file inputhdl.hxx.
References mbPartialPrefix.
Referenced by ScTabViewShell::TabKeyInput().
void ScInputHandler::HideTip | ( | ) |
Definition at line 1086 of file inputhdl.cxx.
References aManualTip, Help::HidePopover(), LINK, nTipVisible, and pTipVisibleParent.
Referenced by ScTabViewShell::Deactivate(), EnterHandler(), InputCommand(), KeyInput(), NotifyChange(), PasteFunctionData(), PasteManualTip(), SetReference(), ShowTip(), and ShowTipCursor().
void ScInputHandler::HideTipBelow | ( | ) |
Definition at line 1097 of file inputhdl.cxx.
References aManualTip, Help::HidePopover(), LINK, nTipVisibleSec, and pTipVisibleSecParent.
Referenced by EnterHandler(), InputCommand(), KeyInput(), NotifyChange(), ShowTip(), ShowTipBelow(), and ShowTipCursor().
|
private |
Definition at line 907 of file inputhdl.cxx.
References EditEngine::CreatePool(), get(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScDocument::GetEditPool(), ScDocument::GetEnginePool(), ScTabView::GetViewData(), LINK, ScEditUtil::ModifyDelimiters(), mpEditEngine, pActiveViewSh, pEditDefaults, and UpdateRefDevice().
Referenced by CancelHandler(), DataChanged(), EnterHandler(), NotifyChange(), SetMode(), StartTable(), and UpdateActiveView().
void ScInputHandler::InitRangeFinder | ( | const OUString & | rFormula | ) |
Definition at line 347 of file inputhdl.cxx.
References aCursorPos, ScRange::aEnd, applyStartToEndFlags(), ScRange::aStart, COL2_VALID, COL_ABS, formula::FormulaGrammar::CONV_XL_R1C1, DeleteRangeFinder(), EE_CHAR_COLOR(), ScDocument::GetAddressConvention(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScDocument::GetSheetSeparator(), ScViewData::GetTabNo(), SfxObjectShell::GetTitle(), ScTabView::GetViewData(), ScEditUtil::ModifyDelimiters(), mpEditEngine, nCount, nPos, pActiveViewSh, ScRange::ParseAny(), pChar, pRangeFindList, SfxItemSet::Put(), RANGEFIND_MAX, ROW2_VALID, ROW_ABS, SC_MOD, ScAddress::SetTab(), ScAddress::Tab(), TAB2_3D, TAB2_VALID, TAB_3D, TAB_ABS, u, ScGlobal::UnicodeStrChr(), UpdateLokReferenceMarks(), VALID, and ZERO.
Referenced by ScInputWindow::AutoSum(), ScCellShell::ExecuteEdit(), and StartTable().
void ScInputHandler::InputChanged | ( | const EditView * | pView, |
bool | bFromNotify | ||
) |
Definition at line 4407 of file inputhdl.cxx.
References aCurrentText, aCursorPos, bTextValid, DataChanged(), DataChanging(), ScViewData::EditGrowX(), ScViewData::EditGrowY(), ScViewData::GetDocShell(), EditView::GetEditEngine(), EditEngine::GetText(), ScTabView::GetViewData(), mpEditEngine, pActiveViewSh, ScDocShell::PostEditView(), pTopView, SyncViews(), and UpdateActiveView().
Referenced by IMPL_LINK_NOARG(), and ScModule::InputChanged().
void ScInputHandler::InputCommand | ( | const CommandEvent & | rCEvt | ) |
in DataChanged ?
Definition at line 4032 of file inputhdl.cxx.
References aCursorPos, bFormulaMode, bProtected, bSelIsRef, EditView::Command(), DataChanged(), DataChanging(), eMode, CommandEvent::GetCommand(), ScViewData::GetDocShell(), EditView::GetEditEngine(), ScTabView::GetViewData(), HideTip(), HideTipBelow(), InvalidateAttribs(), comphelper::LibreOfficeKit::isActive(), miAutoPosColumn, miAutoPosFormula, mpEditEngine, pActiveViewSh, pColumnData, pFormulaData, ScDocShell::PostEditView(), pTableView, pTopView, RemoveSelection(), SC_INPUT_NONE, EditView::SetSelection(), EditEngine::SetText(), SyncViews(), UpdateActiveView(), UseColData(), and UseFormulaData().
Referenced by ScGridWindow::Command(), and ScTextWnd::Command().
void ScInputHandler::InputGetSelection | ( | sal_Int32 & | rStart, |
sal_Int32 & | rEnd | ||
) |
Methods for FunctionAutoPilot: InputGetSelection, InputSetSelection, InputReplaceSelection, InputGetFormulaStr.
Definition at line 4492 of file inputhdl.cxx.
References nFormSelEnd, and nFormSelStart.
Referenced by ScModule::InputGetSelection(), and ScFormulaDlg::ScFormulaDlg().
void ScInputHandler::InputReplaceSelection | ( | const OUString & | rStr | ) |
Definition at line 4544 of file inputhdl.cxx.
References aBuf, aFormText, bModified, EditView::GetEditEngine(), GetFuncEditView(), nFormSelEnd, nFormSelStart, pActiveViewSh, pRefViewSh, EditView::SetEditEngineUpdateLayout(), EditView::SetSelection(), and EditEngine::SetText().
Referenced by ScModule::InputReplaceSelection(), LOKPasteFunctionData(), and ScFormulaDlg::ScFormulaDlg().
void ScInputHandler::InputSelection | ( | const EditView * | pView | ) |
Definition at line 4390 of file inputhdl.cxx.
References GetEditString(), EditView::GetSelection(), comphelper::LibreOfficeKit::isActive(), LOKSendFormulabarUpdate(), pActiveViewSh, pTableView, pTopView, ResetAutoPar(), ShowTipCursor(), SyncViews(), and UpdateParenthesis().
Referenced by ScModule::InputSelection().
void ScInputHandler::InputSetSelection | ( | sal_Int32 | nStart, |
sal_Int32 | nEnd | ||
) |
Definition at line 4524 of file inputhdl.cxx.
References bModified, GetFuncEditView(), nFormSelEnd, nFormSelStart, and EditView::SetSelection().
Referenced by ScModule::InputSetSelection(), and ScFormulaDlg::ScFormulaDlg().
void ScInputHandler::InputTurnOffWinEngine | ( | ) |
Definition at line 4575 of file inputhdl.cxx.
References bInOwnChange, eMode, SC_INPUT_NONE, and StopInputWinEngine().
Referenced by ScModule::InputTurnOffWinEngine().
void ScInputHandler::InsertFunction | ( | const OUString & | rFuncName, |
bool | bAddPar = true |
||
) |
Definition at line 3625 of file inputhdl.cxx.
References AutoParAdded(), DataChanged(), DataChanging(), eMode, EditView::GetSelection(), EditView::InsertText(), ESelection::nEndPos, ESelection::nStartPos, pTableView, pTopView, SC_INPUT_NONE, EditView::SetSelection(), and UpdateActiveView().
Referenced by ScFunctionWin::DoEnter(), ScPosWnd::DoEnter(), and ScCellShell::ExecuteEdit().
|
staticprivate |
Definition at line 2891 of file inputhdl.cxx.
References SfxViewFrame::Current(), SfxViewFrame::GetBindings(), and SfxBindings::Invalidate().
Referenced by InputCommand(), and KeyInput().
|
inline |
Definition at line 188 of file inputhdl.hxx.
References eMode, SC_INPUT_NONE, and SC_INPUT_TYPE.
Referenced by ScAccessibleEditObject::CreateTextHelper(), ScModule::IsEditMode(), ScDocFunc::NotifyInputHandler(), ScTextWnd::StopEditEngine(), and ScGridWindow::UpdateSelectionOverlay().
|
inline |
Definition at line 264 of file inputhdl.hxx.
References bFormulaMode.
Referenced by ScDocShell::DoRecalc(), ScEditShell::GetAttrState(), ScModule::IsFormulaMode(), and ScTabViewShell::ScTabViewShell().
|
inline |
Definition at line 269 of file inputhdl.hxx.
References bInEnterHandler.
Referenced by ScCellShell::Execute().
|
inline |
Definition at line 270 of file inputhdl.hxx.
References bInOwnChange.
Referenced by IMPL_LINK_NOARG().
|
inline |
Definition at line 187 of file inputhdl.hxx.
References eMode, and SC_INPUT_NONE.
Referenced by ScDocShell::DoRecalc(), ScCellShell::ExecuteCursorSel(), ScGridWindow::GetEditUrl(), ScViewFunc::InsertCurrentTime(), ScModule::IsInputMode(), ScViewFunc::OnLOKInsertDeleteColumn(), ScViewFunc::OnLOKInsertDeleteRow(), ScTabViewShell::PrepareClose(), ScInputWindow::ScInputWindow(), ScGridWindow::SetCellSelectionPixel(), and ScModelObj::setTextSelection().
bool ScInputHandler::IsModalMode | ( | const SfxObjectShell * | pDocSh | ) |
Definition at line 3479 of file inputhdl.cxx.
References bFormulaMode, ScViewData::GetDocument(), ScDocument::GetDocumentShell(), ScTabView::GetViewData(), SfxObjectShell::HasName(), and pRefViewSh.
Referenced by ScModule::IsModalMode().
|
inline |
Definition at line 190 of file inputhdl.hxx.
References eMode, and SC_INPUT_TOP.
Referenced by ScAccessibleEditObject::CreateTextHelper(), ScInputBarGroup::NumLinesChanged(), ScPosWnd::ReleaseFocus_Impl(), and ScInputWindow::ScInputWindow().
bool ScInputHandler::KeyInput | ( | const KeyEvent & | rKEvt, |
bool | bStartEdit | ||
) |
in DataChanged?
Definition at line 3700 of file inputhdl.cxx.
References aCursorPos, aManualTip, bFormulaMode, BLOCK, bProtected, bSelIsRef, bUseTab, CancelHandler(), SfxViewFrame::Current(), CursorAtClosingPar(), DataChanged(), DataChanging(), EditView::DeleteSelected(), EditEngine::DoesKeyChangeText(), EditEngine::DoesKeyMoveCursor(), eMode, EnterHandler(), ScTabView::FindNextUnprot(), SfxViewFrame::GetBindings(), KeyEvent::GetCharCode(), vcl::KeyCode::GetCode(), EditView::GetControlWord(), ScViewData::GetDocShell(), EditView::GetEditEngine(), ScTabView::GetFrameWin(), vcl::KeyCode::GetFunction(), KeyEvent::GetKeyCode(), vcl::KeyCode::GetModifier(), ScTabView::GetViewData(), HideTip(), HideTipBelow(), SfxBindings::Invalidate(), InvalidateAttribs(), comphelper::LibreOfficeKit::isActive(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), SfxObjectShell::IsModified(), vcl::KeyCode::IsShift(), KEY_BACKSPACE, KEY_DELETE, KEY_ESCAPE, KEY_F2, KEY_INSERT, KEY_RETURN, KEY_RIGHT, KEY_TAB, MATRIX, mbPartialPrefix, miAutoPosColumn, miAutoPosFormula, ScTabView::MoveCursorEnter(), mpEditEngine, nAutoPar, nCellPercentFormatDecSep, nCode, NextAutoEntry(), NextFormulaEntry(), NORMAL, nTipVisible, nTipVisibleSec, pActiveViewSh, PasteFunctionData(), PasteManualTip(), pColumnData, pFormulaData, pInputWin, ScDocShell::PostEditView(), EditView::PostKeyEvent(), pTableView, pTopView, RemoveSelection(), ResetAutoPar(), SC_INPUT_NONE, SC_INPUT_TABLE, SC_INPUT_TOP, SC_INPUT_TYPE, SC_MOD, EditView::SetControlWord(), ScDocShell::SetModified(), EditView::SetSelection(), EditEngine::SetText(), ShowTipCursor(), SkipClosingPar(), SyncViews(), UpdateActiveView(), UseColData(), and UseFormulaData().
Referenced by ScModule::InputKeyEvent().
void ScInputHandler::LOKPasteFunctionData | ( | const OUString & | rFunctionName | ) |
Definition at line 1742 of file inputhdl.cxx.
References eMode, EditView::GetEditEngine(), EditEngine::GetText(), InputReplaceSelection(), miAutoPosFormula, pActiveViewSh, PasteFunctionData(), pFormulaData, pInputWin, pTableView, pTopView, SC_INPUT_TOP, and SetMode().
Referenced by ScModelObj::completeFunction().
|
static |
Definition at line 1792 of file inputhdl.cxx.
References ESelection::nEndPos, ESelection::nStartPos, pActiveViewSh, pData, and jsdialog::SendAction().
Referenced by DataChanged(), InputSelection(), NotifyChange(), ScTextWndGroup::ScTextWndGroup(), and ScTextWnd::SetTextString().
void ScInputHandler::MergeLanguageAttributes | ( | ScEditEngineDefaulter & | rDestEngine | ) | const |
Definition at line 2599 of file inputhdl.cxx.
References EE_CHAR_LANGUAGE(), EE_CHAR_LANGUAGE_CJK(), EE_CHAR_LANGUAGE_CTL(), SfxItemSet::Get(), mpEditEngine, and ScEditEngineDefaulter::SetDefaultItem().
Referenced by StartTable().
|
private |
Definition at line 2106 of file inputhdl.cxx.
References aAutoSearch, ESelection::Adjust(), bInOwnChange, EditView::DeleteSelected(), GetEditText(), EditView::GetSelection(), EditView::InsertText(), lcl_RemoveLineEnd(), mbPartialPrefix, miAutoPosColumn, mpEditEngine, ESelection::nEndPara, ESelection::nEndPos, ESelection::nStartPara, ESelection::nStartPos, pColumnData, pTableView, pTopView, EditView::SetSelection(), and EditView::ShowCursor().
Referenced by KeyInput().
|
private |
Definition at line 1596 of file inputhdl.cxx.
References aAutoSearch, miAutoPosFormula, pFormulaData, pTableView, pTopView, EditView::ShowCursor(), and ShowFuncList().
Referenced by KeyInput().
void ScInputHandler::NotifyChange | ( | const ScInputHdlState * | pState, |
bool | bForce = false , |
||
ScTabViewShell * | pSourceSh = nullptr , |
||
bool | bStopEditing = true |
||
) |
Before EditEngine gets eventually created (so it gets the right pools)
To begin with remember as a string
Find by Timer?
Definition at line 4134 of file inputhdl.cxx.
References aCurrentText, aCursorPos, aName, applyStartToEndFlags(), bCommandErrorShown, bFormulaMode, bInEnterHandler, bInOwnChange, bModified, bProtected, bSelIsRef, bTextValid, COL_ABS, formula::FormulaGrammar::CONV_XL_R1C1, ScPosWnd::createLocalRangeName(), SfxViewShell::Current(), ScAddress::Details::eConv, EnterHandler(), ScRange::Format(), ScAddress::Format(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScViewData::GetDocument(), ScInputHdlState::GetEditData(), GetEditText(), ScInputHdlState::GetEndPos(), ScTabViewShell::GetFormEditData(), ScEditUtil::GetMultilineString(), ScDocument::GetName(), ScInputHdlState::GetPos(), EditView::GetSelection(), ScInputHdlState::GetStartPos(), ScInputHdlState::GetString(), ScTabView::GetViewData(), SfxShell::GetViewShell(), HideTip(), HideTipBelow(), ImplCreateEditEngine(), comphelper::LibreOfficeKit::isActive(), ScModule::IsFormulaMode(), ScModule::IsRefDialogOpen(), lcl_RemoveTabs(), SfxViewShell::libreOfficeKitViewCallback(), LOKSendFormulabarUpdate(), mpEditEngine, pActiveViewSh, pData, pDelayTimer, pInputWin, pLastState, pTableView, pTopView, ROW_ABS, SC_MOD, SfxGetpApp(), ScAddress::Tab(), VALID, and ZERO.
Referenced by ScPreviewShell::Activate(), CancelHandler(), ScTabViewShell::Deactivate(), ScRefHandler::EnterRefMode(), ForgetLastPattern(), ScFormulaDlg::notifyChange(), ScFormulaDlg::ScFormulaDlg(), and ScTabViewShell::UpdateInputHandler().
|
delete |
|
private |
Definition at line 1713 of file inputhdl.cxx.
References AutoParAdded(), DataChanged(), DataChanging(), HideTip(), comphelper::LibreOfficeKit::isActive(), miAutoPosFormula, pFormulaData, pInputWin, pTableView, pTopView, rData, EditView::ShowCursor(), and ShowTipCursor().
Referenced by KeyInput(), and LOKPasteFunctionData().
|
private |
Definition at line 1896 of file inputhdl.cxx.
References ESelection::Adjust(), aManualTip, DataChanged(), DataChanging(), EditView::GetSelection(), EditView::HasSelection(), HideTip(), EditView::InsertText(), mpEditEngine, ESelection::nEndPara, ESelection::nEndPos, ESelection::nStartPara, ESelection::nStartPos, pTableView, pTopView, EditView::SetSelection(), and u.
Referenced by KeyInput().
|
private |
Definition at line 2393 of file inputhdl.cxx.
References mpEditEngine.
Referenced by EnterHandler().
|
private |
Definition at line 2409 of file inputhdl.cxx.
References DeleteRangeFinder(), EE_CHAR_COLOR(), i, mpEditEngine, nCount, pTableView, pTopView, and EditView::ShowCursor().
Referenced by DataChanged().
|
private |
Definition at line 2876 of file inputhdl.cxx.
References EditView::GetSelection(), ESelection::nEndPara, ESelection::nEndPos, ESelection::nStartPara, ESelection::nStartPos, pTableView, pTopView, and EditView::SetSelection().
Referenced by AddRefEntry(), InputCommand(), and KeyInput().
|
private |
Definition at line 1955 of file inputhdl.cxx.
References nAutoPar.
Referenced by CancelHandler(), EnterHandler(), InputSelection(), and KeyInput().
void ScInputHandler::ResetDelayTimer | ( | ) |
Definition at line 4348 of file inputhdl.cxx.
References pDelayTimer, and pInputWin.
Referenced by ScTabViewShell::Activate(), and ScFormulaReferenceHelper::dispose().
|
static |
Definition at line 309 of file inputhdl.cxx.
References i, and SfxViewShell::libreOfficeKitViewCallback().
Referenced by CancelHandler(), ScTabView::DoChartSelection(), ScFormulaReferenceHelper::HideReference(), ScTextWnd::StopEditEngine(), UpdateLokReferenceMarks(), and ScGridWindow::UpdateSelectionOverlay().
void ScInputHandler::SetDocumentDisposing | ( | bool | b | ) |
Definition at line 604 of file inputhdl.cxx.
References mbDocumentDisposing.
void ScInputHandler::SetInputWindow | ( | ScInputWindow * | pNew | ) |
Definition at line 2314 of file inputhdl.cxx.
References pInputWin.
Referenced by ScInputWindow::dispose(), ScInputWindow::ScInputWindow(), and ScInputWindow::SetInputHandler().
void ScInputHandler::SetMode | ( | ScInputMode | eNewMode, |
const OUString * | pInitText = nullptr , |
||
ScEditEngineDefaulter * | pTopEngine = nullptr |
||
) |
Definition at line 2926 of file inputhdl.cxx.
References aCursorPos, bInOwnChange, bModified, bProtected, eMode, ScTabView::GetActiveWin(), ScViewData::GetDocShell(), ScTabView::GetViewData(), vcl::Window::GrabFocus(), i, ImplCreateEditEngine(), mpEditEngine, nCount, NONE, pActiveViewSh, ScDocShell::PostEditView(), pTableView, pTopView, SC_INPUT_NONE, SC_INPUT_TABLE, SC_INPUT_TOP, SC_INPUT_TYPE, EditView::SetEditEngineUpdateLayout(), ScViewData::SetPasteMode(), StartTable(), StopInputWinEngine(), UpdateActiveView(), and UpdateFormulaMode().
Referenced by GetFuncEditView(), LOKPasteFunctionData(), ScInputWindow::ScInputWindow(), ScTabViewShell::ScTabViewShell(), ScModule::SetInputMode(), ScTextWnd::StartEditEngine(), and ScTextWnd::StopEditEngine().
|
inline |
Definition at line 247 of file inputhdl.hxx.
References bModified.
Referenced by ScGridWindow::Command(), ScEditShell::ExecuteAttr(), ScViewFunc::ModifyCellSize(), ScDocFunc::NotifyInputHandler(), ScViewFunc::OnLOKInsertDeleteColumn(), and ScViewFunc::OnLOKInsertDeleteRow().
void ScInputHandler::SetReference | ( | const ScRange & | rRef, |
const ScDocument & | rDoc | ||
) |
Definition at line 3520 of file inputhdl.cxx.
References aCursorPos, ESelection::Adjust(), ScRange::aEnd, ScRange::aStart, bSelIsRef, formula::FormulaGrammar::CONV_OOO, formula::FormulaGrammar::CONV_XL_A1, formula::FormulaGrammar::CONV_XL_OOX, formula::FormulaGrammar::CONV_XL_R1C1, DataChanged(), DataChanging(), ScAddress::Details::eConv, ScRange::Format(), ScViewData::GetDocument(), ScDocument::GetDocumentShell(), INetURLObject::GetMainURL(), SfxObjectShell::GetMedium(), ScViewData::GetRefTabNo(), EditView::GetSelection(), ScViewData::GetTabNo(), SfxMedium::GetURLObject(), ScTabView::GetViewData(), SfxObjectShell::HasName(), HideTip(), EditView::InsertText(), comphelper::LibreOfficeKit::isActive(), ESelection::nEndPara, ESelection::nEndPos, ESelection::nStartPara, ESelection::nStartPos, pRefViewSh, pTableView, pTopView, EditView::SetSelection(), ScAddress::Tab(), TAB_ABS_3D, INetURLObject::Unambiguous, UpdateActiveView(), and VALID.
Referenced by ScModule::SetReference().
Definition at line 864 of file inputhdl.cxx.
References aScaleX, aScaleY, mpEditEngine, and Point.
Referenced by ScTabViewShell::Activate(), and ScTabView::ZoomChanged().
|
inline |
Definition at line 219 of file inputhdl.hxx.
References pRefViewSh.
Referenced by ScFormulaDlg::fill().
|
inline |
Definition at line 250 of file inputhdl.hxx.
References bSelIsRef.
Referenced by ScEditShell::Execute().
|
private |
Definition at line 1119 of file inputhdl.cxx.
References aHelper, eMode, ScViewData::GetDocShell(), ScDocShell::GetDocument(), formula::IFunctionDescription::getFunctionName(), formula::FormulaCompiler::GetNativeSymbolChar(), formula::IFunctionDescription::getParameterCount(), formula::IFunctionDescription::getParameterDescription(), ScDocument::GetSheetSeparator(), ScGlobal::GetStarCalcFunctionMgr(), ScTabView::GetViewData(), i, comphelper::LibreOfficeKit::isActive(), lcl_MatchParenthesis(), nCount, nLength, ocSep, pActiveViewSh, PAIRED_VAR_ARGS, pFormulaDataPara, SC_INPUT_TOP, ShowTip(), ShowTipBelow(), u, and VAR_ARGS.
Referenced by ShowTipCursor(), and UseFormulaData().
void ScInputHandler::ShowFuncList | ( | const ::std::vector< OUString > & | rFuncStrVec | ) |
Definition at line 1409 of file inputhdl.cxx.
References aHelper, SfxViewShell::Current(), formula::IFunctionDescription::getDescription(), formula::IFunctionDescription::getFunctionName(), formula::IFunctionDescription::getSignature(), ScGlobal::GetStarCalcFunctionMgr(), comphelper::LibreOfficeKit::isActive(), SfxViewShell::isLOKMobilePhone(), SfxViewShell::libreOfficeKitViewCallback(), miAutoPosFormula, pFormulaData, ScResId(), and ShowTip().
Referenced by NextFormulaEntry(), and UseFormulaData().
void ScInputHandler::ShowRefFrame | ( | ) |
Definition at line 2843 of file inputhdl.cxx.
References SfxViewShell::Current(), SfxViewFrame::GetFirst(), SfxViewFrame::GetNext(), SfxViewShell::GetViewFrame(), pRefViewSh, and ScTabViewShell::SetActive().
Referenced by CancelHandler(), EnterHandler(), ScFormulaDlg::switchBack(), and UpdateFormulaMode().
void ScInputHandler::ShowTip | ( | const OUString & | rText | ) |
Definition at line 1302 of file inputhdl.cxx.
References EditView::GetCursor(), EditView::GetWindow(), HideTip(), HideTipBelow(), LINK, nTipVisible, pInputWin, Point, pTableView, pTipVisibleParent, pTopView, and Help::ShowPopover().
Referenced by FormulaPreview(), ShowArgumentsTip(), and ShowFuncList().
void ScInputHandler::ShowTipBelow | ( | const OUString & | rText | ) |
Definition at line 1333 of file inputhdl.cxx.
References EditView::GetCursor(), EditView::GetWindow(), HideTipBelow(), LINK, nTipVisibleSec, pInputWin, Point, pTableView, pTipVisibleSecParent, pTopView, and Help::ShowPopover().
Referenced by ShowArgumentsTip().
void ScInputHandler::ShowTipCursor | ( | ) |
Definition at line 1277 of file inputhdl.cxx.
References ESelection::Adjust(), bFormulaMode, EditView::GetSelection(), HideTip(), HideTipBelow(), mpEditEngine, ESelection::nEndPos, pFormulaDataPara, pTableView, pTopView, and ShowArgumentsTip().
Referenced by InputSelection(), KeyInput(), and PasteFunctionData().
|
private |
Definition at line 1981 of file inputhdl.cxx.
References EditView::GetSelection(), nAutoPar, ESelection::nEndPos, ESelection::nStartPos, pTableView, pTopView, and EditView::SetSelection().
Referenced by KeyInput().
|
private |
Definition at line 2788 of file inputhdl.cxx.
References mbEditingExistingContent.
Referenced by StartTable(), and UpdateFormulaMode().
|
private |
cTyped | typed character. If 0, look at existing document content for text or number. |
bInputActivated | true if the cell input mode is activated (via F2), false otherwise. |
pTopEngine | top window input line EditEngine. If not nullptr then some default attributes are merged to it from the table EditEngine. |
The SetDefaults is now (since MUST/src602 EditEngine changes) implemented as a SetParaAttribs. Any problems?
Definition at line 2424 of file inputhdl.cxx.
References aCurrentText, aCursorPos, aStr, ATTR_BACKGROUND(), ATTR_HOR_JUSTIFY(), ATTR_LINEBREAK(), ATTR_VALIDDATA(), ATTR_VALUE_FORMAT(), bCommandErrorShown, bCreatingFuncView, bLastIsSymbol, bModified, bProtected, bTextValid, ScAddress::Col(), svtools::DOCCOLOR, eAttrAdjust, eMode, ScTabView::ErrorMessage(), ScPatternAttr::FillEditItemSet(), ScTabView::GetActiveWin(), GetColData(), ScModule::GetColorConfig(), svtools::ColorConfig::GetColorValue(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), GetEditText(), SvNumberFormatter::GetFormatDecimalSep(), ScDocument::GetFormatTable(), StyleSettings::GetHighContrastMode(), ScPatternAttr::GetItem(), SfxItemSet::GetItemIfSet(), ScPatternAttr::GetItemSet(), ScViewData::GetMarkData(), ScEditableTester::GetMessageId(), ScDocument::GetPattern(), Application::GetSettings(), AllSettings::GetStyleSettings(), SvNumberFormatter::GetType(), ScTabView::GetViewData(), vcl::Window::GrabFocus(), ImplCreateEditEngine(), InitRangeFinder(), ScEditableTester::IsEditable(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), SfxObjectShell::IsReadOnly(), ScPatternAttr::IsSymbolFont(), Color::IsTransparent(), mbEditingExistingContent, MergeLanguageAttributes(), mpEditEngine, nCellPercentFormatDecSep, svtools::ColorConfigValue::nColor, nValidation, pActiveViewSh, pEditDefaults, pInputWin, pLastPattern, ScAddress::Row(), SC_INPUT_NONE, SC_MOD, StartsLikeFormula(), StopInputWinEngine(), SyncViews(), ScAddress::Tab(), ScEditableTester::TestSelectedBlock(), ScEditableTester::TestSelection(), UpdateActiveView(), UpdateAdjust(), UpdateFormulaMode(), UpdateSpellSettings(), and ScDocument::ValidCol().
Referenced by DataChanging(), and SetMode().
void ScInputHandler::StopInputWinEngine | ( | bool | bAll | ) |
Definition at line 2319 of file inputhdl.cxx.
References pInputWin, and pTopView.
Referenced by CancelHandler(), ScInputWindow::dispose(), EnterHandler(), InputTurnOffWinEngine(), SetMode(), and StartTable().
|
private |
Definition at line 2637 of file inputhdl.cxx.
References EditView::GetSelection(), lcl_SetTopSelection(), pTableView, pTopView, and EditView::SetSelection().
Referenced by InputChanged(), InputCommand(), InputSelection(), KeyInput(), and StartTable().
|
inline |
Definition at line 245 of file inputhdl.hxx.
References nTipVisible.
Referenced by ScTabViewShell::TabKeyInput().
|
private |
Definition at line 2265 of file inputhdl.cxx.
References eMode, ScViewData::GetEditActivePart(), ScTabView::GetViewData(), EditView::GetWindow(), ScTabView::GetWindowByPos(), i, ImplCreateEditEngine(), comphelper::LibreOfficeKit::isActive(), mpEditEngine, nCount, pActiveViewSh, pInputWin, pTableView, pTopView, EditView::RegisterViewShell(), SC_INPUT_TABLE, and SC_INPUT_TOP.
Referenced by AddRefEntry(), ClearText(), DeleteSurroundingText(), GetActiveView(), GetFuncEditView(), GetSurroundingText(), GetSurroundingTextSelection(), InputChanged(), InputCommand(), InsertFunction(), KeyInput(), SetMode(), SetReference(), and StartTable().
|
private |
Definition at line 2342 of file inputhdl.cxx.
References aCursorPos, ATTR_STACKED(), ATTR_VERTICAL_ASIAN(), CELLTYPE_VALUE, eAttrAdjust, EE_PARA_JUST(), ScDocument::GetCellType(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScPatternAttr::GetItem(), ScTabView::GetViewData(), mpEditEngine, pActiveViewSh, pEditDefaults, pLastPattern, and ScViewData::SetEditAdjust().
Referenced by StartTable(), and UpdateCellAdjust().
|
private |
Definition at line 930 of file inputhdl.cxx.
References bFormulaMode, bLastIsSymbol, and mpEditEngine.
Referenced by CancelHandler(), EnterHandler(), UpdateFormulaMode(), and ViewShellGone().
void ScInputHandler::UpdateCellAdjust | ( | SvxCellHorJustify | eJust | ) |
Definition at line 4342 of file inputhdl.cxx.
References eAttrAdjust, and UpdateAdjust().
|
private |
Definition at line 2795 of file inputhdl.cxx.
References bFormulaMode, bProtected, ScModule::GetAppOptions(), ScAppOptions::GetAutoComplete(), GetFormulaData(), comphelper::LibreOfficeKit::isActive(), mpEditEngine, pActiveViewSh, pInputWin, pRefViewSh, SC_MOD, ScModule::SetRefInputHdl(), SfxGetpApp(), ShowRefFrame(), StartsLikeFormula(), UpdateAutoCorrFlag(), and UpdateParenthesis().
Referenced by DataChanged(), SetMode(), and StartTable().
void ScInputHandler::UpdateLokReferenceMarks | ( | ) |
Definition at line 522 of file inputhdl.cxx.
References ScRange::aEnd, ScRange::aStart, svtools::CALCREFERENCE, ScAddress::Col(), ScRangeFindList::Count(), SfxViewShell::Current(), svtools::ColorConfig::GetColorValue(), ScRangeFindList::GetDocName(), ScViewData::GetDocShell(), ScRangeFindList::GetObject(), GetRangeFindList(), ScViewData::GetRefEndX(), ScViewData::GetRefEndY(), ScViewData::GetRefEndZ(), GetReferenceMark(), ScViewData::GetRefStartX(), ScViewData::GetRefStartY(), ScViewData::GetRefStartZ(), ScViewData::GetTabNo(), SfxObjectShell::GetTitle(), ScTabView::GetViewData(), i, comphelper::LibreOfficeKit::isActive(), ScRangeFindList::IsHidden(), ScViewData::IsRefMode(), svtools::ColorConfigValue::nColor, nCount, pActiveViewSh, ScRange::PutInOrder(), PutInOrder(), rData, ScAddress::Row(), SC_MOD, SendReferenceMarks(), and ScAddress::Tab().
Referenced by ScCellShell::ExecuteEdit(), InitRangeFinder(), ScTabView::InitRefMode(), ScTabView::OnLibreOfficeKitTabChanged(), ScGridWindow::RFMouseMove(), and ScTabView::UpdateRef().
|
private |
Distinguish if cell is already highlighted!!!!
Definition at line 2169 of file inputhdl.cxx.
References bFormulaMode, bParenthesisShown, EE_CHAR_WEIGHT(), eMode, EditView::GetSelection(), EditView::HasSelection(), i, EditView::InsertText(), lcl_MatchParenthesis(), mpEditEngine, nCount, nPos, ESelection::nStartPos, pTableView, SfxItemSet::Put(), EditView::RemoveCharAttribs(), SC_INPUT_TOP, and WEIGHT_BOLD.
Referenced by DataChanged(), InputSelection(), and UpdateFormulaMode().
void ScInputHandler::UpdateRange | ( | sal_uInt16 | nIndex, |
const ScRange & | rNew | ||
) |
Definition at line 631 of file inputhdl.cxx.
References aCursorPos, bInRangeUpdate, Count, DataChanged(), DataChanging(), EE_CHAR_COLOR(), ScRange::Format(), ScViewData::GetDocument(), ScTabView::GetViewData(), i, lcl_Replace(), mpEditEngine, nCount, nIndex, ScRangeFindData::nSelEnd, ScRangeFindData::nSelStart, pActiveViewSh, pRangeFindList, pRefViewSh, pTableView, pTopView, SfxItemSet::Put(), ScRange::PutInOrder(), rData, and EditView::ShowCursor().
Referenced by ScGridWindow::RFMouseMove().
void ScInputHandler::UpdateRefDevice | ( | ) |
Definition at line 878 of file inputhdl.cxx.
References aScaleX, aScaleY, ScViewData::GetDocument(), SfxViewFrame::GetFrame(), ScDocument::GetPrinter(), ScTabView::GetViewData(), SfxViewShell::GetViewFrame(), SfxFrame::IsInPlace(), mpEditEngine, pActiveViewSh, Point, and SC_MOD.
Referenced by ScModule::ConfigurationChanged(), ImplCreateEditEngine(), ScModule::ModifyOptions(), ScDocShell::SetPrinter(), and ViewShellGone().
void ScInputHandler::UpdateSpellSettings | ( | bool | bFromStartTab = false | ) |
Definition at line 946 of file inputhdl.cxx.
References ScDocument::ApplyAsianEditSettings(), ATTR_HYPHENATE(), eMode, ScDocument::GetDocOptions(), ScViewData::GetDocument(), ScGlobal::GetEditDefaultLanguage(), ScDocument::GetEditTextDirection(), LinguMgr::GetHyphenator(), ScPatternAttr::GetItem(), LinguMgr::GetSpellChecker(), ScViewData::GetTabNo(), ScTabView::GetViewData(), ScDocOptions::IsAutoSpell(), ScPatternAttr::IsSymbolFont(), mpEditEngine, pActiveViewSh, pLastPattern, and SC_INPUT_NONE.
Referenced by ScModule::Execute(), ScDocShell::Execute(), ScModule::ModifyOptions(), and StartTable().
|
private |
Then GetExactMatch doesn't work either
Exact replacement in EnterHandler !!!
Definition at line 2029 of file inputhdl.cxx.
References aAutoSearch, ESelection::Adjust(), bUseTab, GetEditText(), EditView::GetSelection(), EditView::InsertText(), lcl_RemoveLineEnd(), mbPartialPrefix, miAutoPosColumn, mpEditEngine, ESelection::nEndPara, ESelection::nEndPos, pColumnData, pTableView, pTopView, and EditView::SetSelection().
Referenced by InputCommand(), and KeyInput().
|
private |
Definition at line 1527 of file inputhdl.cxx.
References aAutoSearch, ESelection::Adjust(), ScGlobal::getCharClass(), GetFuncName(), EditView::GetSelection(), CharClass::isLetterNumeric(), miAutoPosFormula, mpEditEngine, n, ESelection::nEndPos, pFormulaData, pTableView, pTopView, ShowArgumentsTip(), and ShowFuncList().
Referenced by InputCommand(), and KeyInput().
void ScInputHandler::ViewShellGone | ( | const ScTabViewShell * | pViewSh | ) |
The input from the EnterHandler does not arrive anymore
Definition at line 2231 of file inputhdl.cxx.
References bFormulaMode, SfxViewShell::Current(), EnterHandler(), pActiveViewSh, pInputWin, pLastPattern, pLastState, pRefViewSh, SC_MOD, SfxGetpApp(), UpdateAutoCorrFlag(), and UpdateRefDevice().
Referenced by ScFormulaDlg::switchBack(), and ScModule::ViewShellGone().
|
private |
Definition at line 77 of file inputhdl.hxx.
Referenced by EnterHandler(), NextAutoEntry(), NextFormulaEntry(), UseColData(), and UseFormulaData().
|
private |
Definition at line 79 of file inputhdl.hxx.
Referenced by GetEditString(), InputChanged(), NotifyChange(), and StartTable().
|
private |
Definition at line 89 of file inputhdl.hxx.
Referenced by CancelHandler(), EnterHandler(), FormulaPreview(), GetColData(), GetCursorPos(), InitRangeFinder(), InputChanged(), InputCommand(), KeyInput(), NotifyChange(), SetMode(), SetReference(), StartTable(), UpdateAdjust(), and UpdateRange().
|
private |
Definition at line 81 of file inputhdl.hxx.
Referenced by CancelHandler(), EnterHandler(), GetFormString(), and InputReplaceSelection().
|
private |
Definition at line 76 of file inputhdl.hxx.
Referenced by FormulaPreview(), HideTip(), HideTipBelow(), KeyInput(), and PasteManualTip().
|
private |
Definition at line 113 of file inputhdl.hxx.
Referenced by SetRefScale(), and UpdateRefDevice().
|
private |
Definition at line 114 of file inputhdl.hxx.
Referenced by SetRefScale(), and UpdateRefDevice().
|
private |
Definition at line 100 of file inputhdl.hxx.
Referenced by NotifyChange(), and StartTable().
|
private |
Definition at line 98 of file inputhdl.hxx.
Referenced by GetFuncEditView(), and StartTable().
|
private |
Definition at line 95 of file inputhdl.hxx.
Referenced by CancelHandler(), CursorAtClosingPar(), EnterHandler(), InputCommand(), IsFormulaMode(), IsModalMode(), KeyInput(), NotifyChange(), ShowTipCursor(), UpdateAutoCorrFlag(), UpdateFormulaMode(), UpdateParenthesis(), and ViewShellGone().
|
private |
Definition at line 99 of file inputhdl.hxx.
Referenced by EnterHandler(), IsInEnterHandler(), and NotifyChange().
|
private |
Definition at line 101 of file inputhdl.hxx.
Referenced by CancelHandler(), DataChanged(), DataChanging(), EnterHandler(), InputTurnOffWinEngine(), IsInOwnChange(), NextAutoEntry(), NotifyChange(), and SetMode().
|
private |
Definition at line 96 of file inputhdl.hxx.
Referenced by DataChanged(), and UpdateRange().
|
private |
Definition at line 104 of file inputhdl.hxx.
Referenced by StartTable(), and UpdateAutoCorrFlag().
|
private |
Definition at line 93 of file inputhdl.hxx.
Referenced by CancelHandler(), DataChanged(), EnterHandler(), InputReplaceSelection(), InputSetSelection(), NotifyChange(), SetMode(), SetModified(), and StartTable().
|
private |
Definition at line 97 of file inputhdl.hxx.
Referenced by UpdateParenthesis().
|
private |
Definition at line 103 of file inputhdl.hxx.
Referenced by EnterHandler(), InputCommand(), KeyInput(), NotifyChange(), SetMode(), StartTable(), and UpdateFormulaMode().
|
private |
Definition at line 94 of file inputhdl.hxx.
Referenced by DataChanged(), EnterHandler(), GetSelIsRef(), InputCommand(), KeyInput(), NotifyChange(), SetReference(), and SetSelIsRef().
|
private |
Definition at line 92 of file inputhdl.hxx.
Referenced by DataChanged(), GetEditString(), InputChanged(), NotifyChange(), and StartTable().
|
private |
Definition at line 91 of file inputhdl.hxx.
Referenced by KeyInput(), and UseColData().
|
private |
Definition at line 111 of file inputhdl.hxx.
Referenced by StartTable(), UpdateAdjust(), and UpdateCellAdjust().
|
private |
Definition at line 90 of file inputhdl.hxx.
Referenced by CancelHandler(), ClearText(), DataChanged(), DataChanging(), DeleteSurroundingText(), EnterHandler(), GetFuncEditView(), GetSurroundingText(), GetSurroundingTextSelection(), InputCommand(), InputTurnOffWinEngine(), InsertFunction(), IsEditMode(), IsInputMode(), IsTopMode(), KeyInput(), LOKPasteFunctionData(), SetMode(), ShowArgumentsTip(), StartTable(), UpdateActiveView(), UpdateParenthesis(), and UpdateSpellSettings().
|
private |
Definition at line 130 of file inputhdl.hxx.
Referenced by GetFormulaData(), and GetFuncName().
|
private |
Definition at line 105 of file inputhdl.hxx.
Referenced by EnterHandler(), SetDocumentDisposing(), and ~ScInputHandler().
|
private |
Definition at line 108 of file inputhdl.hxx.
Referenced by CancelHandler(), EnterHandler(), StartsLikeFormula(), and StartTable().
|
private |
To indicate if there is a partial prefix completion.
Definition at line 107 of file inputhdl.hxx.
Referenced by CancelHandler(), EnterHandler(), HasPartialComplete(), KeyInput(), NextAutoEntry(), and UseColData().
|
private |
Definition at line 69 of file inputhdl.hxx.
Referenced by EnterHandler(), FormulaPreview(), GetColData(), InputCommand(), KeyInput(), NextAutoEntry(), and UseColData().
|
private |
Definition at line 70 of file inputhdl.hxx.
Referenced by FormulaPreview(), GetFormulaData(), InputCommand(), KeyInput(), LOKPasteFunctionData(), NextFormulaEntry(), PasteFunctionData(), ShowFuncList(), and UseFormulaData().
|
private |
Edited data in the sheet (when the user clicks into the sheet, and starts writing there).
Definition at line 62 of file inputhdl.hxx.
Referenced by AddRefEntry(), CancelHandler(), CursorAtClosingPar(), DataChanged(), EnterHandler(), FormulaPreview(), GetEditString(), GetTextAndFields(), GetTextSize(), ImplCreateEditEngine(), InitRangeFinder(), InputChanged(), InputCommand(), KeyInput(), MergeLanguageAttributes(), NextAutoEntry(), NotifyChange(), PasteManualTip(), RemoveAdjust(), RemoveRangeFinder(), SetMode(), SetRefScale(), ShowTipCursor(), StartTable(), UpdateActiveView(), UpdateAdjust(), UpdateAutoCorrFlag(), UpdateFormulaMode(), UpdateParenthesis(), UpdateRange(), UpdateRefDevice(), UpdateSpellSettings(), UseColData(), and UseFormulaData().
|
private |
Definition at line 87 of file inputhdl.hxx.
Referenced by AutoParAdded(), KeyInput(), ResetAutoPar(), and SkipClosingPar().
|
private |
Definition at line 85 of file inputhdl.hxx.
Referenced by KeyInput(), and StartTable().
|
private |
Definition at line 83 of file inputhdl.hxx.
Referenced by CancelHandler(), EnterHandler(), InputGetSelection(), InputReplaceSelection(), and InputSetSelection().
|
private |
Definition at line 82 of file inputhdl.hxx.
Referenced by CancelHandler(), EnterHandler(), InputGetSelection(), InputReplaceSelection(), and InputSetSelection().
|
private |
Definition at line 73 of file inputhdl.hxx.
Referenced by HideTip(), KeyInput(), ShowTip(), and TakesReturn().
|
private |
Definition at line 75 of file inputhdl.hxx.
Referenced by HideTipBelow(), KeyInput(), and ShowTipBelow().
|
private |
Definition at line 110 of file inputhdl.hxx.
Referenced by EnterHandler(), and StartTable().
|
private |
Definition at line 117 of file inputhdl.hxx.
Referenced by CancelHandler(), DataChanged(), DataChanging(), DeleteRangeFinder(), EnterHandler(), ForgetLastPattern(), FormulaPreview(), GetColData(), GetFormulaData(), ImplCreateEditEngine(), InitRangeFinder(), InputChanged(), InputCommand(), InputReplaceSelection(), InputSelection(), KeyInput(), LOKPasteFunctionData(), LOKSendFormulabarUpdate(), NotifyChange(), ScInputHandler(), SetMode(), ShowArgumentsTip(), StartTable(), UpdateActiveView(), UpdateAdjust(), UpdateFormulaMode(), UpdateLokReferenceMarks(), UpdateRange(), UpdateRefDevice(), UpdateSpellSettings(), and ViewShellGone().
|
private |
Definition at line 66 of file inputhdl.hxx.
Referenced by EnterHandler(), FormulaPreview(), GetColData(), InputCommand(), KeyInput(), NextAutoEntry(), and UseColData().
|
private |
Definition at line 125 of file inputhdl.hxx.
Referenced by NotifyChange(), ResetDelayTimer(), and ScInputHandler().
|
private |
Definition at line 121 of file inputhdl.hxx.
Referenced by EnterHandler(), ImplCreateEditEngine(), StartTable(), and UpdateAdjust().
|
private |
Definition at line 67 of file inputhdl.hxx.
Referenced by FormulaPreview(), GetFormulaData(), InputCommand(), KeyInput(), LOKPasteFunctionData(), NextFormulaEntry(), PasteFunctionData(), ShowFuncList(), and UseFormulaData().
|
private |
Definition at line 68 of file inputhdl.hxx.
Referenced by GetFormulaData(), ShowArgumentsTip(), and ShowTipCursor().
|
private |
Definition at line 60 of file inputhdl.hxx.
Referenced by CancelHandler(), DataChanged(), EnterHandler(), GetFuncEditView(), GetInputWindow(), KeyInput(), LOKPasteFunctionData(), NotifyChange(), PasteFunctionData(), ResetDelayTimer(), SetInputWindow(), ShowTip(), ShowTipBelow(), StartTable(), StopInputWinEngine(), UpdateActiveView(), UpdateFormulaMode(), ViewShellGone(), and ~ScInputHandler().
|
private |
Definition at line 119 of file inputhdl.hxx.
Referenced by EnterHandler(), ForgetLastPattern(), StartTable(), UpdateAdjust(), UpdateSpellSettings(), and ViewShellGone().
|
private |
Definition at line 124 of file inputhdl.hxx.
Referenced by CancelHandler(), EnterHandler(), ForgetLastPattern(), NotifyChange(), and ViewShellGone().
|
private |
Definition at line 128 of file inputhdl.hxx.
Referenced by DataChanged(), DeleteRangeFinder(), GetRangeFindList(), InitRangeFinder(), and UpdateRange().
|
private |
Definition at line 116 of file inputhdl.hxx.
Referenced by CancelHandler(), DeleteRangeFinder(), EnterHandler(), InputReplaceSelection(), IsModalMode(), SetReference(), SetRefViewShell(), ShowRefFrame(), UpdateFormulaMode(), UpdateRange(), and ViewShellGone().
|
private |
Definition at line 63 of file inputhdl.hxx.
Referenced by AddRefEntry(), ClearText(), CursorAtClosingPar(), DataChanged(), DeleteSurroundingText(), EnterHandler(), FormulaPreview(), GetActiveView(), GetFuncEditView(), GetSurroundingText(), GetSurroundingTextSelection(), GetTableView(), InputCommand(), InputSelection(), InsertFunction(), KeyInput(), LOKPasteFunctionData(), NextAutoEntry(), NextFormulaEntry(), NotifyChange(), PasteFunctionData(), PasteManualTip(), RemoveRangeFinder(), RemoveSelection(), SetMode(), SetReference(), ShowTip(), ShowTipBelow(), ShowTipCursor(), SkipClosingPar(), SyncViews(), UpdateActiveView(), UpdateParenthesis(), UpdateRange(), UseColData(), and UseFormulaData().
|
private |
Definition at line 72 of file inputhdl.hxx.
|
private |
Definition at line 74 of file inputhdl.hxx.
Referenced by HideTipBelow(), and ShowTipBelow().
|
private |
Definition at line 64 of file inputhdl.hxx.
Referenced by AddRefEntry(), ClearText(), CursorAtClosingPar(), DataChanged(), DeleteSurroundingText(), EnterHandler(), FormulaPreview(), GetActiveView(), GetSurroundingText(), GetSurroundingTextSelection(), GetTopView(), InputChanged(), InputCommand(), InputSelection(), InsertFunction(), KeyInput(), LOKPasteFunctionData(), NextAutoEntry(), NextFormulaEntry(), NotifyChange(), PasteFunctionData(), PasteManualTip(), RemoveRangeFinder(), RemoveSelection(), SetMode(), SetReference(), ShowTip(), ShowTipBelow(), ShowTipCursor(), SkipClosingPar(), StopInputWinEngine(), SyncViews(), UpdateActiveView(), UpdateRange(), UseColData(), and UseFormulaData().