20 #ifndef INCLUDED_SC_INC_SCMOD_HXX
21 #define INCLUDED_SC_INC_SCMOD_HXX
32 #include <com/sun/star/uno/Reference.h>
46 namespace ooo::vba {
class XSinkCaller; }
88 std::unique_ptr<ScViewCfg, o3tl::default_delete<ScViewCfg>>
m_pViewCfg;
89 std::unique_ptr<ScDocCfg, o3tl::default_delete<ScDocCfg>>
m_pDocCfg;
90 std::unique_ptr<ScAppCfg, o3tl::default_delete<ScAppCfg>>
m_pAppCfg;
103 bool m_bIsWaterCan:1;
104 bool m_bIsInEditCommand:1;
105 bool m_bIsInExecuteDrop:1;
106 bool m_bIsInSharedDocLoading:1;
107 bool m_bIsInSharedDocSaving:1;
119 static
void InitInterface_Impl();
131 DECL_LINK( IdleHandler,
Timer*,
void );
136 static
void HideDisabledSlots(
SfxItemSet& rSet );
138 void AnythingChanged();
141 const
ScDragData& GetDragData()
const {
return *m_pDragData;}
143 void ResetDragObject();
145 const OUString& rDoc,
const OUString& rTab,
const OUString& rArea );
147 ScDocument* pLocalDoc,
const OUString& rTarget,
const OUString& rText );
178 void InsertEntryToLRUList(sal_uInt16 nFIndex);
182 static void SetAutoSpellProperty(
bool bSet );
194 void ModifyOptions(
const SfxItemSet& rOptSet );
199 void SetInputMode(
ScInputMode eMode,
const OUString* pInitText =
nullptr );
200 bool InputKeyEvent(
const KeyEvent& rKEvt,
bool bStartEdit =
false );
202 void InputCancelHandler();
203 void InputSelection(
const EditView* pView );
204 void InputChanged(
const EditView* pView );
210 void ViewShellChanged(
bool bStopEditing);
212 void InputGetSelection( sal_Int32& rStart, sal_Int32& rEnd );
213 void InputSetSelection( sal_Int32 nStart, sal_Int32 nEnd );
214 void InputReplaceSelection(
const OUString& rStr );
215 void InputTurnOffWinEngine();
216 void ActivateInputWindow(
const OUString* pStr =
nullptr,
217 bool bMatrix =
false );
222 bool IsFormulaMode();
223 bool IsRefDialogOpen();
224 bool IsTableLocked();
232 virtual std::unique_ptr<SfxItemSet>
CreateItemSet( sal_uInt16 nId )
override;
242 SC_DLLPUBLIC void RegisterRefController(sal_uInt16 nSlotId, std::shared_ptr<SfxDialogController>& rWnd,
weld::Window* pWndAncestor);
243 SC_DLLPUBLIC void UnregisterRefController(sal_uInt16 nSlotId,
const std::shared_ptr<SfxDialogController>& rWnd);
244 SC_DLLPUBLIC std::shared_ptr<SfxDialogController> Find1RefWindow(sal_uInt16 nSlotId,
const weld::Window *pWndAncestor);
246 SC_DLLPUBLIC void RegisterAutomationApplicationEventsCaller(css::uno::Reference< ooo::vba::XSinkCaller >
const& xCaller);
247 SC_DLLPUBLIC void CallAutomationApplicationEventSinks(
const OUString& Method, css::uno::Sequence< css::uno::Any >& Arguments);
250 #define SC_MOD() ( static_cast<ScModule*>(SfxApplication::GetModule(SfxToolsModule::Calc)) )
bool GetIsWaterCan() const
std::unique_ptr< SvtUserOptions > m_pUserOptions
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
std::unique_ptr< ScFormulaCfg > m_pFormulaCfg
std::map< sal_uInt16, std::vector< std::pair< std::shared_ptr< SfxDialogController >, weld::Window * > > > m_mapRefController
std::unique_ptr< ScNavipiCfg > m_pNavipiCfg
void SetInSharedDocSaving(bool bNew)
std::unique_ptr< SvtCTLOptions > m_pCTLOptions
std::unique_ptr< ScDefaultsCfg > m_pDefaultsCfg
virtual std::unique_ptr< SfxStyleFamilies > CreateStyleFamilies()
std::unique_ptr< ScInputCfg > m_pInputCfg
std::unique_ptr< ScAppCfg, o3tl::default_delete< ScAppCfg > > m_pAppCfg
ScMessagePool * m_pMessagePool
css::uno::Reference< ooo::vba::XSinkCaller > mxAutomationApplicationEventsCaller
sal_uInt16 m_nCurRefDlgId
void SetInEditCommand(bool bNew)
std::unique_ptr< ScDocCfg, o3tl::default_delete< ScDocCfg > > m_pDocCfg
void SetInExecuteDrop(bool bNew)
ScSelectionTransferObj * m_pSelTransfer
sal_uInt16 GetCurRefDlgId() const
void SetInSharedDocLoading(bool bNew)
void Notify(ScModelObj &rModelObj, const ScRangeList &rChangeRanges, const OUString &rType=OUString("cell-change"), const css::uno::Sequence< css::beans::PropertyValue > &rProperties=css::uno::Sequence< css::beans::PropertyValue >())
std::unique_ptr< SvtAccessibilityOptions > m_pAccessOptions
std::unique_ptr< ScDragData > m_pDragData
std::unique_ptr< svtools::ColorConfig > m_pColorConfig
ScSelectionTransferObj * GetSelectionTransfer() const
std::unique_ptr< ScViewCfg, o3tl::default_delete< ScViewCfg > > m_pViewCfg
bool IsInSharedDocSaving() const
ScInputHandler * m_pRefInputHandler
bool IsInExecuteDrop() const
void SetWaterCan(bool bNew)
std::unique_ptr< ScAddInCfg > m_pAddInCfg
virtual std::unique_ptr< SfxItemSet > CreateItemSet(sal_uInt16 nId)
virtual void ApplyItemSet(sal_uInt16 nId, const SfxItemSet &rSet)
ScInputHandler * GetRefInputHdl()
std::unique_ptr< ScPrintCfg > m_pPrintCfg
virtual std::unique_ptr< SfxTabPage > CreateTabPage(sal_uInt16 nId, weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
void global_InitAppOptions()
std::unique_ptr< SfxErrorHandler > m_pErrorHdl
bool IsInSharedDocLoading() const
#define SFX_DECL_INTERFACE(nId)