20 #ifndef INCLUDED_SC_SOURCE_UI_INC_TABVWSH_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_TABVWSH_HXX
34 #include <com/sun/star/ui/dialogs/DialogClosedEvent.hpp>
65 namespace editeng {
class SvxBorderLine; }
116 std::unique_ptr<ScInputHandler, o3tl::default_delete<ScInputHandler>>
mpInputHandler;
120 css::uno::Reference< css::frame::XDispatchProviderInterceptor >
166 void Construct(
TriState nForceDesignMode );
170 void DoReadUserData(
const OUString& rData );
171 void DoReadUserDataSequence(
const css::uno::Sequence< css::beans::PropertyValue >& rSettings );
172 bool IsSignatureLineSelected();
173 bool IsSignatureLineSigned();
174 bool IsQRCodeSelected();
176 DECL_LINK( SimpleRefClose,
const OUString*,
void );
177 DECL_LINK( SimpleRefDone,
const OUString&,
void );
178 DECL_LINK( SimpleRefAborted,
const OUString&,
void );
179 DECL_LINK( SimpleRefChange,
const OUString&,
void );
181 DECL_LINK( DialogClosedHdl, css::ui::dialogs::DialogClosedEvent*,
void );
184 virtual void Activate(
bool bMDI)
override;
190 virtual void Move()
override;
192 virtual void InnerResizePixel(
const Point &rOfs,
const Size &rSize,
bool inplaceEditModeChange )
override;
199 virtual bool HasSelection(
bool bText =
true )
const override;
201 virtual void WriteUserData(OUString &,
bool bBrowse =
false)
override;
202 virtual void ReadUserData(
const OUString &,
bool bBrowse =
false)
override;
204 virtual void ReadUserDataSequence (
const css::uno::Sequence < css::beans::PropertyValue >& )
override;
217 static
void InitInterface_Impl();
225 virtual ~ScTabViewShell() override;
227 weld::Window* GetDialogParent();
229 bool IsRefInputMode() const;
230 void ExecuteInputDirect();
234 void UpdateInputHandler(
bool bForce =
false,
bool bStopEditing =
true );
236 bool TabKeyInput(
const KeyEvent& rKEvt);
237 bool SfxKeyInput(
const KeyEvent& rKEvt);
242 void SetDefaultFrameLine(const ::editeng::SvxBorderLine* pLine );
250 void WindowChanged();
275 void UpdateDrawShell();
276 void SetDrawShell(
bool bActive );
277 void SetDrawTextShell(
bool bActive );
279 void SetPivotShell(
bool bActive );
280 void SetDialogDPObject( std::unique_ptr<ScDPObject> pObj );
285 void SetAuditShell(
bool bActive );
286 void SetDrawFormShell(
bool bActive );
287 void SetEditShell(
EditView* pView,
bool bActive );
288 void SetOleObjectShell(
bool bActive );
289 void SetChartShell(
bool bActive );
290 void SetGraphicShell(
bool bActive );
291 void SetMediaShell(
bool bActive );
293 void SetDrawShellOrSub();
296 void SetFormShellAtTop(
bool bSet );
302 void StopEditShell();
303 bool IsDrawTextShell()
const;
304 bool IsAuditShell()
const;
325 void DeactivateOle();
333 void UpdateOleZoom();
338 void InsertURL(
const OUString& rName,
const OUString& rURL,
const OUString& rTarget,
340 void InsertURLButton(
const OUString& rName,
const OUString& rURL,
const OUString& rTarget,
341 const Point* pInsPos );
342 void InsertURLField(
const OUString& rName,
const OUString& rURL,
const OUString& rTarget );
344 bool SelectObject( std::u16string_view rName );
350 static std::unique_ptr<SvxNumberInfoItem> MakeNumberInfoItem(
ScDocument& rDoc,
const ScViewData& rViewData );
354 void ExecuteCellFormatDlg(
SfxRequest& rReq,
const OString &rTabPage);
356 bool GetFunction( OUString& rFuncStr,
FormulaError nErrCode );
358 void StartSimpleRefDialog(
const OUString& rTitle,
const OUString& rInitVal,
359 bool bCloseOnButtonUp,
bool bSingleCell,
bool bMultiSelection );
360 void StopSimpleRefDialog();
362 void SetCurRefDlgId( sal_uInt16 nNew );
364 void AddAccessibilityObject(
SfxListener& rObject );
365 void RemoveAccessibilityObject(
SfxListener& rObject );
366 void BroadcastAccessibility(
const SfxHint &rHint );
367 bool HasAccessibilityObjects()
const;
374 OUString GetFormula(
const ScAddress& rAddress);
376 OUString DoAutoSum(
bool& rRangeFinder,
bool& rSubTotal,
const OpCode eCode);
394 static void notifyAllViewsSheetGeomInvalidation(
const SfxViewShell* pForViewShell,
bool bColumns,
bool bRows,
bool bSizes,
395 bool bHidden,
bool bFiltered,
bool bGroups,
SCTAB nCurrentTabIndex);
396 css::uno::Reference<css::drawing::XShapes> getSelectedXShapes();
397 static css::uno::Reference<css::datatransfer::XTransferable2> GetClipData(
vcl::Window* pWin);
399 void InitFormEditData();
400 void ClearFormEditData();
DECL_LINK(ScrollHdl, ScrollBar *, void)
std::unique_ptr< ScInputHandler, o3tl::default_delete< ScInputHandler > > mpInputHandler
const ScDPObject * GetDialogDPObject() const
virtual const FmFormShell * GetFormShell() const override
std::unique_ptr< ScGraphicShell > pGraphicShell
virtual std::unique_ptr< SfxTabPage > CreatePrintOptionsPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rOptions)
virtual FmFormShell * GetFormShell() override
#define SCID_TABVIEW_SHELL
std::unique_ptr< ScDPObject > pDialogDPObject
std::map< OUString, std::unique_ptr< ScRangeName > > m_RangeMap
std::unique_ptr< ScMediaShell > pMediaShell
std::unique_ptr< ScOleObjectShell > pOleObjectShell
bool GetForceFocusOnCurCell() const
Contains settings of the navigator listbox.
virtual void InnerResizePixel(const Point &rOfs, const Size &rSize, bool inplaceEditModeChange)
std::unique_ptr< ScCellShell > pCellShell
virtual OUString GetSelectionText(bool bCompleteWords=false)
void SetDontSwitch(bool bFlag)
std::unique_ptr< FmFormShell > pFormShell
virtual bool HasPrintOptionsPage() const
virtual void WriteUserData(OUString &, bool bBrowse=false)
virtual sal_uInt16 SetPrinter(SfxPrinter *pNewPrinter, SfxPrinterChangeFlags nDiffFlags=SFX_PRINTER_ALL)
virtual int getPart() const
std::unique_ptr< ScEditShell > pEditShell
sal_Int32 SCCOLROW
a type capable of holding either SCCOL or SCROW
css::uno::Reference< css::frame::XDispatchProviderInterceptor > xDisProvInterceptor
void SetForceFocusOnCurCell(bool bFlag)
std::unique_ptr< ScDrawFormShell > pDrawFormShell
bool bForceFocusOnCurCell
std::unique_ptr< ScNavigatorSettings > pNavSettings
std::unique_ptr< ScDrawTextObjectBar > pDrawTextShell
::editeng::SvxBorderLine * GetDefaultFrameLine() const
ScFormEditData * GetFormEditData()
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< svx::FontworkBar > pFontworkBarShell
std::unique_ptr< ScPivotShell > pPivotShell
virtual void ReadUserData(const OUString &, bool bBrowse=false)
virtual void OuterResizePixel(const Point &rOfs, const Size &rSize)
virtual void Activate(bool IsMDIActivate) override
virtual void QueryObjAreaPixel(tools::Rectangle &rRect) const
virtual void UIDeactivated(SfxInPlaceClient *pClient)
virtual void Deactivate(bool IsMDIActivate) override
std::unique_ptr< ScDrawShell > pDrawShell
virtual void NotifyCursor(SfxViewShell *) const
virtual void afterCallbackRegistered()
std::unique_ptr< ScChartShell > pChartShell
std::unique_ptr< ScFormEditData > mpFormEditData
virtual void WriteUserDataSequence(css::uno::Sequence< css::beans::PropertyValue > &)
virtual ErrCode DoVerb(tools::Long nVerb)
ObjectSelectionType eCurOST
std::unique_ptr< SfxBroadcaster > pAccessibilityBroadcaster
virtual SfxPrinter * GetPrinter(bool bCreate=false)
virtual SdrView * GetDrawView() const
ScInputHandler * GetInputHandler()
std::unique_ptr< svx::ExtrusionBar > pExtrusionBarShell
ObjectSelectionType GetCurObjectSelectionType() const
virtual bool KeyInput(const KeyEvent &rKeyEvent)
std::unique_ptr<::editeng::SvxBorderLine > pCurFrameLine
virtual bool HasSelection(bool bText=true) const
virtual void ReadUserDataSequence(const css::uno::Sequence< css::beans::PropertyValue > &)
std::unique_ptr< ScAuditingShell > pAuditingShell
std::unique_ptr< ScPageBreakShell > pPageBreakShell
virtual bool PrepareClose(bool bUI=true)
virtual void SetZoomFactor(const Fraction &rZoomX, const Fraction &rZoomY)
#define SFX_DECL_INTERFACE(nId)
void SetInFormatDialog(bool bFlag)