LibreOffice Module sc (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ScInputHandler Class Referencefinal

#include <inputhdl.hxx>

Collaboration diagram for ScInputHandler:
[legend]

Public Member Functions

 ScInputHandler (const ScInputHandler &)=delete
 
const ScInputHandleroperator= (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 ScAddressGetCursorPos () const
 
bool GetTextAndFields (ScEditEngineDefaulter &rDestEngine)
 
void MergeLanguageAttributes (ScEditEngineDefaulter &rDestEngine) const
 
bool KeyInput (const KeyEvent &rKEvt, bool bStartEdit)
 
void EnterHandler (ScEnterMode nBlockMode=ScEnterMode::NORMAL)
 
void CancelHandler ()
 
void SetReference (const ScRange &rRef, const ScDocument &rDoc)
 
void AddRefEntry ()
 
void InputCommand (const CommandEvent &rCEvt)
 
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 ()
 
EditViewGetActiveView ()
 
EditViewGetTableView ()
 
EditViewGetTopView ()
 
bool DataChanging (sal_Unicode cTyped=0, bool bFromCommand=false)
 
void DataChanged (bool bFromTopNotify=false, bool bSetModified=true)
 
bool TakesReturn () const
 
bool GetModified () const
 
void SetModified ()
 
bool GetSelIsRef () const
 
void SetSelIsRef (bool bSet)
 
void ShowRefFrame ()
 
ScRangeFindListGetRangeFindList ()
 
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
 
ScInputWindowGetInputWindow ()
 
void SetInputWindow (ScInputWindow *pNew)
 
void StopInputWinEngine (bool bAll)
 
bool IsInEnterHandler () const
 
bool IsInOwnChange () const
 
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 void SetAutoComplete (bool bSet)
 
static ReferenceMark GetReferenceMark (ScViewData &rViewData, ScDocShell *pDocSh, long nX1, long nX2, long nY1, long nY2, long nTab, const Color &rColor)
 

Private Member Functions

void UpdateActiveView ()
 
void SyncViews (const EditView *pSourceView=nullptr)
 
bool StartTable (sal_Unicode cTyped, bool bFromCommand, bool bInputActivated, ScEditEngineDefaulter *pTopEngine)
 
void RemoveSelection ()
 
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 ()
 
EditViewGetFuncEditView ()
 
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 ()
 

Private Attributes

VclPtr< ScInputWindowpInputWin
 
std::unique_ptr< ScEditEngineDefaultermpEditEngine
 Edited data in the sheet (when the user clicks into the sheet, and starts writing there). More...
 
EditViewpTableView
 
EditViewpTopView
 
std::unique_ptr< ScTypedCaseStrSetpColumnData
 
std::unique_ptr< ScTypedCaseStrSetpFormulaData
 
std::unique_ptr< ScTypedCaseStrSetpFormulaDataPara
 
ScTypedCaseStrSet::const_iterator miAutoPosColumn
 
ScTypedCaseStrSet::const_iterator miAutoPosFormula
 
VclPtr< vcl::WindowpTipVisibleParent
 
voidnTipVisible
 
VclPtr< vcl::WindowpTipVisibleSecParent
 
voidnTipVisibleSec
 
OUString aManualTip
 
OUString aAutoSearch
 
OUString aCurrentText
 
OUString aFormText
 
sal_Int32 nFormSelStart
 
sal_Int32 nFormSelEnd
 
sal_Unicode nCellPercentFormatDecSep
 
sal_uInt16 nAutoPar
 
ScAddress aCursorPos
 
ScInputMode eMode
 
bool bUseTab:1
 
bool bTextValid:1
 
bool bModified:1
 
bool bSelIsRef:1
 
bool bFormulaMode:1
 
bool bInRangeUpdate:1
 
bool bParenthesisShown:1
 
bool bCreatingFuncView:1
 
bool bInEnterHandler:1
 
bool bCommandErrorShown:1
 
bool bInOwnChange:1
 
bool bProtected:1
 
bool bLastIsSymbol:1
 
bool mbDocumentDisposing:1
 
sal_uLong nValidation
 
SvxCellHorJustify eAttrAdjust
 
Fraction aScaleX
 
Fraction aScaleY
 
ScTabViewShellpRefViewSh
 
ScTabViewShellpActiveViewSh
 
const ScPatternAttrpLastPattern
 
std::unique_ptr< SfxItemSetpEditDefaults
 
std::unique_ptr< ScInputHdlStatepLastState
 
std::unique_ptr< TimerpDelayTimer
 
std::unique_ptr< ScRangeFindListpRangeFindList
 
::std::set< sal_UnicodemaFormulaChar
 

Static Private Attributes

static bool bAutoComplete = false
 
static bool bOptLoaded = false
 

Detailed Description

Definition at line 58 of file inputhdl.hxx.

Constructor & Destructor Documentation

ScInputHandler::ScInputHandler ( const ScInputHandler )
delete
ScInputHandler::ScInputHandler ( )
ScInputHandler::~ScInputHandler ( )

Member Function Documentation

void ScInputHandler::AddRefEntry ( )
void ScInputHandler::AutoParAdded ( )
private

Definition at line 1853 of file inputhdl.cxx.

References nAutoPar.

Referenced by InsertFunction(), and PasteFunctionData().

void ScInputHandler::CancelHandler ( )
void ScInputHandler::ClearText ( )
bool ScInputHandler::CursorAtClosingPar ( )
private
void ScInputHandler::DataChanged ( bool  bFromTopNotify = false,
bool  bSetModified = true 
)
bool ScInputHandler::DataChanging ( sal_Unicode  cTyped = 0,
bool  bFromCommand = false 
)
ScInputHandler::DECL_LINK ( DelayTimer  ,
Timer ,
void   
)
private
ScInputHandler::DECL_LINK ( ModifyHdl  ,
LinkParamNone ,
void   
)
private
ScInputHandler::DECL_LINK ( ShowHideTipVisibleParentListener  ,
VclWindowEvent ,
void   
)
private
ScInputHandler::DECL_LINK ( ShowHideTipVisibleSecParentListener  ,
VclWindowEvent ,
void   
)
private
void ScInputHandler::DeleteRangeFinder ( )
private
void ScInputHandler::EnterHandler ( ScEnterMode  nBlockMode = ScEnterMode::NORMAL)

Definition at line 2901 of file inputhdl.cxx.

References aAutoSearch, ScTabView::ActiveGrabFocus(), aCursorPos, ScViewFunc::AdjustBlockHeight(), aFormText, ScViewFunc::ApplySelectionPattern(), bAutoComplete, bFormulaMode, bInEnterHandler, bInOwnChange, BLOCK, bModified, bProtected, bSelIsRef, ScAddress::Col(), EditView::CompleteAutoCorrect(), SfxViewShell::Current(), ScDBFunc::DataPilotInput(), DeleteRangeFinder(), ScValidationData::DoError(), 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(), ScValidationData::GetDataMode(), Application::GetDefDialogParent(), ScViewData::GetDocument(), LocaleDataWrapper::getDoubleQuotationMarkEnd(), LocaleDataWrapper::getDoubleQuotationMarkStart(), ScDocument::GetDPAtCursor(), GetEditText(), SvxAutoCorrect::GetEndDoubleQuote(), SvxAutoCorrect::GetEndSingleQuote(), ScDocument::GetFormatTable(), vcl::Window::GetFrameWeld(), ScTabView::GetFrameWin(), ScGlobal::getLocaleDataPtr(), ScPatternAttr::GetNumberFormat(), ScDocument::GetPattern(), ScDocument::GetPool(), LocaleDataWrapper::getQuotationMarkEnd(), LocaleDataWrapper::getQuotationMarkStart(), SvxAutoCorrect::GetStartDoubleQuote(), SvxAutoCorrect::GetStartSingleQuote(), ScDocument::GetValidationEntry(), ScViewData::GetView(), ScTabView::GetViewData(), SfxViewShell::GetViewFrame(), SfxViewFrame::GetWindow(), ScValidationData::HasErrMsg(), HideTip(), HideTipBelow(), ImplCreateEditEngine(), comphelper::LibreOfficeKit::isActive(), ScValidationData::IsDataValid(), ScValidationData::IsDataValidCustom(), SvNumberFormatter::IsNumberFormat(), lcl_IsNumber(), lcl_RemoveTabs(), lcl_SelectionToEnd(), MATRIX, mbDocumentDisposing, 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, ScInputWindow::SetFormulaMode(), ScInputStatusItem::SetMisspellRanges(), ScTabView::SetTabNo(), SfxGetpApp(), ShowRefFrame(), StopInputWinEngine(), ScTabView::StopMarking(), ScAddress::Tab(), and UpdateAutoCorrFlag().

Referenced by ScModule::ActivateInputWindow(), ScTabView::ActivateView(), ScModule::InputEnterHandler(), KeyInput(), NotifyChange(), ScTabViewShell::PrepareClose(), ViewShellGone(), and ~ScInputHandler().

void ScInputHandler::ForgetLastPattern ( )
void ScInputHandler::FormulaPreview ( )
EditView * ScInputHandler::GetActiveView ( )
void ScInputHandler::GetColData ( )
private
const ScAddress& ScInputHandler::GetCursorPos ( ) const
inline

Definition at line 193 of file inputhdl.hxx.

References aCursorPos.

Referenced by ScDocShell::DoRecalc(), and ScDocFunc::NotifyInputHandler().

const OUString & ScInputHandler::GetEditString ( )
const OUString& ScInputHandler::GetFormString ( ) const
inline
void ScInputHandler::GetFormulaData ( )
private
EditView * ScInputHandler::GetFuncEditView ( )
private
bool ScInputHandler::GetFuncName ( OUString &  aStart,
OUString &  aResult 
)
private

Definition at line 1289 of file inputhdl.cxx.

References ScGlobal::getCharClassPtr(), i, maFormulaChar, nPos, p, and CharClass::uppercase().

Referenced by UseFormulaData().

ScInputWindow* ScInputHandler::GetInputWindow ( )
inline
bool ScInputHandler::GetModified ( ) const
inline

Definition at line 241 of file inputhdl.hxx.

References bModified.

ScRangeFindList* ScInputHandler::GetRangeFindList ( )
inline
ReferenceMark ScInputHandler::GetReferenceMark ( ScViewData rViewData,
ScDocShell pDocSh,
long  nX1,
long  nX2,
long  nY1,
long  nY2,
long  nTab,
const Color rColor 
)
static
bool ScInputHandler::GetSelIsRef ( ) const
inline

Definition at line 244 of file inputhdl.hxx.

References bSelIsRef.

Referenced by ScTabViewShell::IsRefInputMode().

EditView* ScInputHandler::GetTableView ( )
inline
bool ScInputHandler::GetTextAndFields ( ScEditEngineDefaulter rDestEngine)
Size ScInputHandler::GetTextSize ( )

Definition at line 4225 of file inputhdl.cxx.

References mpEditEngine.

Referenced by ScViewFunc::ModifyCellSize().

EditView* ScInputHandler::GetTopView ( )
inline
void ScInputHandler::HideTip ( )
void ScInputHandler::HideTipBelow ( )
void ScInputHandler::ImplCreateEditEngine ( )
private
void ScInputHandler::InitRangeFinder ( const OUString &  rFormula)
void ScInputHandler::InputChanged ( const EditView pView,
bool  bFromNotify 
)
void ScInputHandler::InputCommand ( const CommandEvent rCEvt)
void ScInputHandler::InputGetSelection ( sal_Int32 &  rStart,
sal_Int32 &  rEnd 
)

Methods for FunctionAutoPilot: InputGetSelection, InputSetSelection, InputReplaceSelection, InputGetFormulaStr.

Definition at line 4273 of file inputhdl.cxx.

References nFormSelEnd, and nFormSelStart.

Referenced by ScModule::InputGetSelection(), and ScFormulaDlg::ScFormulaDlg().

void ScInputHandler::InputReplaceSelection ( const OUString &  rStr)
void ScInputHandler::InputSelection ( const EditView pView)

Definition at line 4178 of file inputhdl.cxx.

References ResetAutoPar(), ShowTipCursor(), SyncViews(), and UpdateParenthesis().

Referenced by ScModule::InputSelection().

void ScInputHandler::InputSetSelection ( sal_Int32  nStart,
sal_Int32  nEnd 
)
void ScInputHandler::InputTurnOffWinEngine ( )

Definition at line 4356 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 
)
void ScInputHandler::InvalidateAttribs ( )
staticprivate
bool ScInputHandler::IsEditMode ( ) const
inline
bool ScInputHandler::IsFormulaMode ( ) const
inline
bool ScInputHandler::IsInEnterHandler ( ) const
inline

Definition at line 264 of file inputhdl.hxx.

References bInEnterHandler.

Referenced by ScCellShell::Execute().

bool ScInputHandler::IsInOwnChange ( ) const
inline

Definition at line 265 of file inputhdl.hxx.

References bInOwnChange.

Referenced by IMPL_LINK_NOARG().

bool ScInputHandler::IsInputMode ( ) const
inline
bool ScInputHandler::IsModalMode ( const SfxObjectShell pDocSh)
bool ScInputHandler::IsTopMode ( ) const
inline
bool ScInputHandler::KeyInput ( const KeyEvent rKEvt,
bool  bStartEdit 
)

in DataChanged?

Definition at line 3554 of file inputhdl.cxx.

References aCursorPos, aManualTip, bAutoComplete, bFormulaMode, BLOCK, bOptLoaded, 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_TAB, MATRIX, 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)
void ScInputHandler::MergeLanguageAttributes ( ScEditEngineDefaulter rDestEngine) const
void ScInputHandler::NextAutoEntry ( bool  bBack)
private
void ScInputHandler::NextFormulaEntry ( bool  bBack)
private
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 3936 of file inputhdl.cxx.

References aCurrentText, aCursorPos, applyStartToEndFlags(), bCommandErrorShown, bFormulaMode, bInEnterHandler, bInOwnChange, bModified, bProtected, bSelIsRef, bTextValid, COL_ABS, formula::FormulaGrammar::CONV_XL_R1C1, SfxViewShell::Current(), ScAddress::Details::eConv, vcl::Window::Enable(), EnterHandler(), ScAddress::Format(), ScRange::Format(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScViewData::GetDocument(), ScInputHdlState::GetEditData(), GetEditText(), ScInputHdlState::GetEndPos(), ScTabViewShell::GetFormEditData(), ScEditUtil::GetMultilineString(), ScInputHdlState::GetPos(), ScInputHdlState::GetStartPos(), ScInputHdlState::GetString(), ScTabView::GetViewData(), SfxShell::GetViewShell(), HideTip(), HideTipBelow(), ImplCreateEditEngine(), vcl::Window::IsAccessibilityEventsSuppressed(), comphelper::LibreOfficeKit::isActive(), vcl::Window::IsEnabled(), ScModule::IsFormulaMode(), ScModule::IsRefDialogOpen(), lcl_RemoveTabs(), SfxViewShell::libreOfficeKitViewCallback(), mpEditEngine, pActiveViewSh, pData, pDelayTimer, pInputWin, pLastState, ROW_ABS, SC_MOD, vcl::Window::SetAccessibilityEventsSuppressed(), ScInputWindow::SetPosString(), ScInputWindow::SetSumAssignMode(), ScInputWindow::SetTextString(), SfxGetpApp(), VALID, and ZERO.

Referenced by ScPreviewShell::Activate(), CancelHandler(), ScTabViewShell::Deactivate(), ScRefHandler::EnterRefMode(), ForgetLastPattern(), ScFormulaDlg::notifyChange(), ScFormulaDlg::ScFormulaDlg(), and ScTabViewShell::UpdateInputHandler().

const ScInputHandler& ScInputHandler::operator= ( const ScInputHandler )
delete
void ScInputHandler::PasteFunctionData ( )
private
void ScInputHandler::PasteManualTip ( )
private
void ScInputHandler::RemoveAdjust ( )
private

Definition at line 2278 of file inputhdl.cxx.

References mpEditEngine.

Referenced by EnterHandler().

void ScInputHandler::RemoveRangeFinder ( )
private
void ScInputHandler::RemoveSelection ( )
private
void ScInputHandler::ResetAutoPar ( )
private

Definition at line 1848 of file inputhdl.cxx.

References nAutoPar.

Referenced by CancelHandler(), EnterHandler(), InputSelection(), and KeyInput().

void ScInputHandler::ResetDelayTimer ( )
void ScInputHandler::SendReferenceMarks ( const SfxViewShell pViewShell,
const std::vector< ReferenceMark > &  rReferenceMarks 
)
static
static void ScInputHandler::SetAutoComplete ( bool  bSet)
inlinestatic

Definition at line 286 of file inputhdl.hxx.

Referenced by ScModule::Execute().

void ScInputHandler::SetDocumentDisposing ( bool  b)

Definition at line 560 of file inputhdl.cxx.

void ScInputHandler::SetInputWindow ( ScInputWindow pNew)
void ScInputHandler::SetMode ( ScInputMode  eNewMode,
const OUString *  pInitText = nullptr,
ScEditEngineDefaulter pTopEngine = nullptr 
)
void ScInputHandler::SetModified ( )
inline
void ScInputHandler::SetReference ( const ScRange rRef,
const ScDocument rDoc 
)
void ScInputHandler::SetRefScale ( const Fraction rX,
const Fraction rY 
)

Definition at line 825 of file inputhdl.cxx.

References aScaleX, aScaleY, mpEditEngine, and Point.

Referenced by ScTabViewShell::Activate(), and ScTabView::ZoomChanged().

void ScInputHandler::SetRefViewShell ( ScTabViewShell pRefVsh)
inline

Definition at line 213 of file inputhdl.hxx.

Referenced by ScFormulaDlg::fill().

void ScInputHandler::SetSelIsRef ( bool  bSet)
inline

Definition at line 245 of file inputhdl.hxx.

References bSelIsRef.

Referenced by ScEditShell::Execute().

void ScInputHandler::ShowArgumentsTip ( OUString &  rSelText)
private
void ScInputHandler::ShowFuncList ( const ::std::vector< OUString > &  rFuncStrVec)
void ScInputHandler::ShowRefFrame ( )
void ScInputHandler::ShowTip ( const OUString &  rText)
void ScInputHandler::ShowTipBelow ( const OUString &  rText)
void ScInputHandler::ShowTipCursor ( )
void ScInputHandler::SkipClosingPar ( )
private
bool ScInputHandler::StartTable ( sal_Unicode  cTyped,
bool  bFromCommand,
bool  bInputActivated,
ScEditEngineDefaulter pTopEngine 
)
private
Parameters
cTypedtyped character. If 0, look at existing document content for text or number.
bInputActivatedtrue if the cell input mode is activated (via F2), false otherwise.
pTopEnginetop window input line EditEngine. If not nullptr then some default attributes are merged to it from the table EditEngine.
Returns
true if the new edit mode has been started.

The SetDefaults is now (since MUST/src602 EditEngine changes) implemented as a SetParaAttribs. Any problems?

Definition at line 2309 of file inputhdl.cxx.

References aCurrentText, aCursorPos, ATTR_BACKGROUND(), ATTR_HOR_JUSTIFY(), ATTR_LINEBREAK(), ATTR_VALIDDATA(), ATTR_VALUE_FORMAT(), bAutoComplete, 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(), SfxSetItem::GetItemSet(), SfxItemSet::GetItemState(), ScViewData::GetMarkData(), ScEditableTester::GetMessageId(), ScDocument::GetPattern(), Application::GetSettings(), AllSettings::GetStyleSettings(), Color::GetTransparency(), SvNumberFormatter::GetType(), GetValue, ScTabView::GetViewData(), vcl::Window::GrabFocus(), ImplCreateEditEngine(), InitRangeFinder(), ScEditableTester::IsEditable(), ScMarkData::IsMarked(), ScMarkData::IsMultiMarked(), SfxObjectShell::IsReadOnly(), ScPatternAttr::IsSymbolFont(), MergeLanguageAttributes(), mpEditEngine, nCellPercentFormatDecSep, svtools::ColorConfigValue::nColor, nValidation, pActiveViewSh, pEditDefaults, pInputWin, pLastPattern, ScAddress::Row(), SC_INPUT_NONE, SC_MOD, ScInputWindow::SetOkCancelMode(), ScInputWindow::SetTextString(), 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)
void ScInputHandler::SyncViews ( const EditView pSourceView = nullptr)
private
bool ScInputHandler::TakesReturn ( ) const
inline

Definition at line 239 of file inputhdl.hxx.

Referenced by ScTabViewShell::TabKeyInput().

void ScInputHandler::UpdateActiveView ( )
private
void ScInputHandler::UpdateAdjust ( sal_Unicode  cTyped)
private
void ScInputHandler::UpdateAutoCorrFlag ( )
private

Definition at line 891 of file inputhdl.cxx.

References bFormulaMode, bLastIsSymbol, and mpEditEngine.

Referenced by CancelHandler(), EnterHandler(), UpdateFormulaMode(), and ViewShellGone().

void ScInputHandler::UpdateCellAdjust ( SvxCellHorJustify  eJust)

Definition at line 4130 of file inputhdl.cxx.

References eAttrAdjust, and UpdateAdjust().

void ScInputHandler::UpdateFormulaMode ( )
private
void ScInputHandler::UpdateLokReferenceMarks ( )
void ScInputHandler::UpdateParenthesis ( )
private
void ScInputHandler::UpdateRange ( sal_uInt16  nIndex,
const ScRange rNew 
)
void ScInputHandler::UpdateRefDevice ( )
void ScInputHandler::UpdateSpellSettings ( bool  bFromStartTab = false)
void ScInputHandler::UseColData ( )
private
void ScInputHandler::UseFormulaData ( )
private
void ScInputHandler::ViewShellGone ( const ScTabViewShell pViewSh)

Member Data Documentation

OUString ScInputHandler::aAutoSearch
private
OUString ScInputHandler::aCurrentText
private

Definition at line 80 of file inputhdl.hxx.

Referenced by GetEditString(), InputChanged(), NotifyChange(), and StartTable().

ScAddress ScInputHandler::aCursorPos
private
OUString ScInputHandler::aFormText
private

Definition at line 82 of file inputhdl.hxx.

Referenced by CancelHandler(), EnterHandler(), GetFormString(), and InputReplaceSelection().

OUString ScInputHandler::aManualTip
private

Definition at line 77 of file inputhdl.hxx.

Referenced by FormulaPreview(), HideTip(), HideTipBelow(), KeyInput(), and PasteManualTip().

Fraction ScInputHandler::aScaleX
private

Definition at line 110 of file inputhdl.hxx.

Referenced by SetRefScale(), and UpdateRefDevice().

Fraction ScInputHandler::aScaleY
private

Definition at line 111 of file inputhdl.hxx.

Referenced by SetRefScale(), and UpdateRefDevice().

bool ScInputHandler::bAutoComplete = false
staticprivate
bool ScInputHandler::bCommandErrorShown
private

Definition at line 101 of file inputhdl.hxx.

Referenced by NotifyChange(), and StartTable().

bool ScInputHandler::bCreatingFuncView
private

Definition at line 99 of file inputhdl.hxx.

Referenced by GetFuncEditView(), and StartTable().

bool ScInputHandler::bFormulaMode
private
bool ScInputHandler::bInEnterHandler
private

Definition at line 100 of file inputhdl.hxx.

Referenced by EnterHandler(), IsInEnterHandler(), and NotifyChange().

bool ScInputHandler::bInOwnChange
private
bool ScInputHandler::bInRangeUpdate
private

Definition at line 97 of file inputhdl.hxx.

Referenced by DataChanged().

bool ScInputHandler::bLastIsSymbol
private

Definition at line 105 of file inputhdl.hxx.

Referenced by StartTable(), and UpdateAutoCorrFlag().

bool ScInputHandler::bModified
private
bool ScInputHandler::bOptLoaded = false
staticprivate

Definition at line 128 of file inputhdl.hxx.

Referenced by InputCommand(), KeyInput(), and ScInputHandler().

bool ScInputHandler::bParenthesisShown
private

Definition at line 98 of file inputhdl.hxx.

Referenced by UpdateParenthesis().

bool ScInputHandler::bProtected
private
bool ScInputHandler::bSelIsRef
private
bool ScInputHandler::bTextValid
private

Definition at line 93 of file inputhdl.hxx.

Referenced by DataChanged(), GetEditString(), InputChanged(), NotifyChange(), and StartTable().

bool ScInputHandler::bUseTab
private

Definition at line 92 of file inputhdl.hxx.

Referenced by KeyInput(), and UseColData().

SvxCellHorJustify ScInputHandler::eAttrAdjust
private

Definition at line 108 of file inputhdl.hxx.

Referenced by StartTable(), UpdateAdjust(), and UpdateCellAdjust().

ScInputMode ScInputHandler::eMode
private
::std::set< sal_Unicode > ScInputHandler::maFormulaChar
private

Definition at line 129 of file inputhdl.hxx.

Referenced by GetFormulaData(), and GetFuncName().

bool ScInputHandler::mbDocumentDisposing
private

Definition at line 106 of file inputhdl.hxx.

Referenced by EnterHandler(), and ~ScInputHandler().

ScTypedCaseStrSet::const_iterator ScInputHandler::miAutoPosColumn
private
ScTypedCaseStrSet::const_iterator ScInputHandler::miAutoPosFormula
private
std::unique_ptr<ScEditEngineDefaulter> ScInputHandler::mpEditEngine
private
sal_uInt16 ScInputHandler::nAutoPar
private

Definition at line 88 of file inputhdl.hxx.

Referenced by AutoParAdded(), KeyInput(), ResetAutoPar(), and SkipClosingPar().

sal_Unicode ScInputHandler::nCellPercentFormatDecSep
private

Definition at line 86 of file inputhdl.hxx.

Referenced by KeyInput(), and StartTable().

sal_Int32 ScInputHandler::nFormSelEnd
private
sal_Int32 ScInputHandler::nFormSelStart
private
void* ScInputHandler::nTipVisible
private

Definition at line 74 of file inputhdl.hxx.

Referenced by HideTip(), KeyInput(), and ShowTip().

void* ScInputHandler::nTipVisibleSec
private

Definition at line 76 of file inputhdl.hxx.

Referenced by HideTipBelow(), KeyInput(), and ShowTipBelow().

sal_uLong ScInputHandler::nValidation
private

Definition at line 107 of file inputhdl.hxx.

Referenced by EnterHandler(), and StartTable().

ScTabViewShell* ScInputHandler::pActiveViewSh
private
std::unique_ptr<ScTypedCaseStrSet> ScInputHandler::pColumnData
private
std::unique_ptr<Timer> ScInputHandler::pDelayTimer
private

Definition at line 122 of file inputhdl.hxx.

Referenced by NotifyChange(), ResetDelayTimer(), and ScInputHandler().

std::unique_ptr<SfxItemSet> ScInputHandler::pEditDefaults
private

Definition at line 118 of file inputhdl.hxx.

Referenced by EnterHandler(), ImplCreateEditEngine(), StartTable(), and UpdateAdjust().

std::unique_ptr<ScTypedCaseStrSet> ScInputHandler::pFormulaData
private
std::unique_ptr<ScTypedCaseStrSet> ScInputHandler::pFormulaDataPara
private

Definition at line 69 of file inputhdl.hxx.

Referenced by GetFormulaData(), ShowArgumentsTip(), and ShowTipCursor().

VclPtr<ScInputWindow> ScInputHandler::pInputWin
private
const ScPatternAttr* ScInputHandler::pLastPattern
private
std::unique_ptr<ScInputHdlState> ScInputHandler::pLastState
private
std::unique_ptr<ScRangeFindList> ScInputHandler::pRangeFindList
private

Definition at line 125 of file inputhdl.hxx.

Referenced by DataChanged(), and GetRangeFindList().

ScTabViewShell* ScInputHandler::pRefViewSh
private
EditView* ScInputHandler::pTableView
private
VclPtr<vcl::Window> ScInputHandler::pTipVisibleParent
private

Definition at line 73 of file inputhdl.hxx.

Referenced by HideTip(), and ShowTip().

VclPtr<vcl::Window> ScInputHandler::pTipVisibleSecParent
private

Definition at line 75 of file inputhdl.hxx.

Referenced by HideTipBelow(), and ShowTipBelow().

EditView* ScInputHandler::pTopView
private

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