38#include <document.hxx>
41#include <inputwin.hxx>
65#include <ThemeColorChanger.hxx>
69 void collectUIInformation(
const OUString& aZoom)
72 aDescription.
aID =
"grid_window";
75 aDescription.
aKeyWord =
"ScGridWinUIObject";
76 aDescription.
aParent =
"MainWindow";
80 enum class DetectFlags
87 struct ScRefFlagsAndType
90 DetectFlags eDetected;
93 ScRefFlagsAndType lcl_ParseRangeOrAddress(
ScRange& rScRange,
ScAddress& rScAddress,
94 const OUString& aAddress,
const ScDocument& rDoc,
97 ScRefFlagsAndType aRet;
104 aRet.nResult = rScRange.
Parse(aAddress, rDoc, aDetails);
107 aRet.eDetected = DetectFlags::RANGE;
111 aRet.nResult = rScAddress.
Parse(aAddress, rDoc, aDetails);
114 aRet.eDetected = DetectFlags::ADDRESS;
119 aRet.nResult = rScRange.
Parse(aAddress, rDoc);
122 aRet.eDetected = DetectFlags::RANGE;
126 aRet.nResult = rScAddress.
Parse(aAddress, rDoc);
129 aRet.eDetected = DetectFlags::ADDRESS;
137 aRet.eDetected = DetectFlags::RANGE;
145 aRet.eDetected = DetectFlags::ADDRESS;
151 aRet.nResult = rScRange.
Parse(aAddress, rDoc, aDetails);
154 aRet.eDetected = DetectFlags::RANGE;
158 aRet.nResult = rScAddress.
Parse(aAddress, rDoc, aDetails);
161 aRet.eDetected = DetectFlags::ADDRESS;
178 sal_uInt16 nSlot = rReq.
GetSlot();
180 if (nSlot != SID_CURRENTCELL)
185 case FID_INSERT_FILE:
189 pReqArgs->
GetItemState(FID_INSERT_FILE,
true,&pItem) == SfxItemState::SET )
196 if ( pReqArgs->
GetItemState(FN_PARAM_1,
true,&pItem) == SfxItemState::SET )
203 bool bAsLink =
false;
204 if ( pReqArgs->
GetItemState(FN_PARAM_2,
true,&pItem) == SfxItemState::SET )
209 PasteFile( aInsertPos, aFileName, bAsLink );
214 case SID_OPENDLG_EDIT_PRINTAREA:
216 sal_uInt16
nId = ScPrintAreasDlgWrapper::GetChildWindowId();
223 case SID_CHANGE_PRINTAREA:
230 bool bEntire =
false;
232 if ( pReqArgs->
GetItemState( SID_CHANGE_PRINTAREA,
true, &pItem ) == SfxItemState::SET )
234 if ( pReqArgs->
GetItemState( FN_PARAM_2,
true, &pItem ) == SfxItemState::SET )
236 if ( pReqArgs->
GetItemState( FN_PARAM_3,
true, &pItem ) == SfxItemState::SET )
238 if ( pReqArgs->
GetItemState( FN_PARAM_4,
true, &pItem ) == SfxItemState::SET )
248 case SID_ADD_PRINTAREA:
249 case SID_DEFINE_PRINTAREA:
251 bool bAdd = ( nSlot == SID_ADD_PRINTAREA );
256 if ( pReqArgs->
GetItemState( SID_DEFINE_PRINTAREA,
true, &pItem ) == SfxItemState::SET )
268 case SID_DELETE_PRINTAREA:
278 case FID_DEL_MANUALBREAKS:
283 case FID_ADJUST_PRINTZOOM:
288 case FID_RESET_PRINTZOOM:
294 case SID_STATUS_PAGESTYLE:
297 ExecutePageStyle( *
this, rReq,
GetViewData().GetTabNo() );
301 case SID_CURRENTCELL:
306 if ( pReqArgs->
GetItemState( nSlot,
true, &pItem ) == SfxItemState::SET )
308 else if ( nSlot == SID_JUMPTOMARK && pReqArgs->
GetItemState(
309 SID_JUMPTOMARK,
true, &pItem ) == SfxItemState::SET )
316 bool bUnmark = ( nSlot == SID_CURRENTCELL );
317 if ( pReqArgs->
GetItemState( FN_PARAM_1,
true, &pItem ) == SfxItemState::SET )
320 bool bAlignToCursor =
true;
321 if (pReqArgs->
GetItemState(FN_PARAM_2,
true, &pItem) == SfxItemState::SET)
324 bool bForceGlobalName =
false;
325 if (pReqArgs->
GetItemState(FN_PARAM_3,
true, &pItem) == SfxItemState::SET)
328 if ( nSlot == SID_JUMPTOMARK )
341 ScRefFlagsAndType aResult = lcl_ParseRangeOrAddress(aScRange, aScAddress, aAddress, rDoc,
348 if (aResult.eDetected == DetectFlags::RANGE)
365 else if (aResult.eDetected == DetectFlags::ADDRESS)
369 if( aScAddress.
Tab() != nTab )
371 nTab = aScAddress.
Tab();
376 aScAddress.
SetTab( nTab );
378 aScRange =
ScRange( aScAddress, aScAddress );
401 sal_Int32 nNumeric = aAddress.toInt32();
402 if ( nNumeric > 0 && nNumeric <= rDoc.
MaxRow()+1 )
406 aScAddress.
SetRow(
static_cast<SCROW>(nNumeric - 1) );
408 aScAddress.
SetTab( nTab );
409 aScRange =
ScRange( aScAddress, aScAddress );
424 bool bNothing = ( rViewData.
GetCurX()==nCol && rViewData.
GetCurY()==nRow );
435 bNothing = ( aCurrent == aOldMark );
472 rBindings.
Update( nSlot );
495 if ( rDoc.
GetTable( aAddress, nNameTab ) )
498 if ( nNameTab != nTab )
503 if ( !bFound && nSlot == SID_JUMPTOMARK )
510 if (!bFound && !rReq.
IsAPI())
515 case SID_CURRENTOBJECT:
539 pDlg->SetDescription(
540 ScResId( STR_DLG_SELECTTABLE_TITLE ),
541 ScResId( STR_DLG_SELECTTABLE_MASK ),
542 ScResId( STR_DLG_SELECTTABLE_LBNAME ),
547 for( nTab = 0; nTab < nTabCount; ++nTab )
551 rDoc.
GetName( nTab, aTabName );
552 pDlg->Insert( aTabName, rViewData.
GetTabNo() == nTab );
556 if( pDlg->Execute() ==
RET_OK )
558 if( !rDoc.
GetTable( pDlg->GetSelectedEntry(), nTab ) )
567 if ( nTab < nTabCount )
570 rBindings.
Update( nSlot );
582 OUString aStrDocName(
static_cast<const SfxStringItem&
>(pReqArgs->
591 while ( pDocSh && !bFound )
593 if ( pDocSh->
GetTitle() == aStrDocName )
596 bFound = (
nullptr != pViewFrame );
609 case SID_PRINTPREVIEW:
626 case SID_DETECTIVE_DEL_ALL:
634 case SID_TABLE_ACTIVATE:
635 OSL_FAIL(
"old slot SID_TABLE_ACTIVATE");
646 case FID_NORMALVIEWMODE:
647 case FID_PAGEBREAKMODE:
649 bool bWantPageBreak = nSlot == FID_PAGEBREAKMODE;
653 if ( pReqArgs && pReqArgs->
GetItemState(nSlot,
true, &pItem) == SfxItemState::SET )
656 bWantPageBreak = (nSlot == FID_PAGEBREAKMODE) == bItemValue;
674 case FID_FUNCTION_BOX:
685 case FID_TOGGLESYNTAX:
689 if ( pReqArgs && pReqArgs->
GetItemState(nSlot,
true, &pItem) == SfxItemState::SET )
698 case FID_TOGGLEHEADERS:
702 if ( pReqArgs && pReqArgs->
GetItemState(nSlot,
true, &pItem) == SfxItemState::SET )
712 case FID_TOGGLEFORMULA:
718 if( pReqArgs && pReqArgs->
GetItemState(nSlot,
true, &pItem) == SfxItemState::SET )
733 case FID_TOGGLEINPUTLINE:
735 sal_uInt16
nId = ScInputWindowWrapper::GetChildWindowId();
737 bool bSet = ( pWnd == nullptr );
739 if ( pReqArgs && pReqArgs->
GetItemState(nSlot,
true, &pItem) == SfxItemState::SET )
764 if (SID_ZOOM_OUT == nSlot)
770 bool bSyncZoom =
SC_MOD()->GetAppOptions().GetSynchronizeZoom();
773 SetZoom(aFract, aFract, bSyncZoom);
790 bool bSyncZoom =
SC_MOD()->GetAppOptions().GetSynchronizeZoom();
794 sal_uInt16 nOldZoom =
static_cast<sal_uInt16
>(
tools::Long( rOldY * 100 ));
795 sal_uInt16 nZoom = nOldZoom;
796 bool bCancel =
false;
802 eNewZoomType = rZoomItem.
GetType();
803 nZoom = rZoomItem.GetValue();
808 SvxZoomItem aZoomItem( eOldZoomType, nOldZoom, SID_ATTR_ZOOM );
812 | SvxZoomEnableFlags::N75
813 | SvxZoomEnableFlags::N100
814 | SvxZoomEnableFlags::N150
815 | SvxZoomEnableFlags::N200
816 | SvxZoomEnableFlags::WHOLEPAGE
817 | SvxZoomEnableFlags::PAGEWIDTH;
820 nBtnFlags = nBtnFlags | SvxZoomEnableFlags::OPTIMAL;
823 aSet.
Put( aZoomItem );
834 const SvxZoomItem& rZoomItem = pDlg->GetOutputItemSet()->
835 Get( SID_ATTR_ZOOM );
837 eNewZoomType = rZoomItem.
GetType();
838 nZoom = rZoomItem.GetValue();
844 if ( eNewZoomType == SvxZoomType::PERCENT )
851 nZoom =
CalcZoom( eNewZoomType, nOldZoom );
852 bCancel = nZoom == 0;
855 switch ( eNewZoomType )
857 case SvxZoomType::WHOLEPAGE:
858 case SvxZoomType::PAGEWIDTH:
867 if ( nZoom != nOldZoom && !bCancel )
877 SetZoom( aFract, aFract, bSyncZoom );
888 case SID_ATTR_ZOOMSLIDER:
891 bool bSyncZoom =
SC_MOD()->GetAppOptions().GetSynchronizeZoom();
892 if ( pReqArgs && pReqArgs->
GetItemState(SID_ATTR_ZOOMSLIDER,
true, &pItem) == SfxItemState::SET )
901 aNewOpt.
SetZoom( nCurrentZoom );
902 collectUIInformation(OUString::number(nCurrentZoom));
906 Fraction aFract( nCurrentZoom,100 );
907 SetZoom( aFract, aFract, bSyncZoom );
920 case FID_TAB_SELECTALL:
925 case FID_TAB_DESELECTALL:
930 case SID_SELECT_TABLES:
938 ::std::vector < sal_Int32 > aIndexList;
947 pDlg->SetDescription(
948 ScResId( STR_DLG_SELECTTABLES_TITLE ),
949 ScResId( STR_DLG_SELECTTABLES_LBNAME ),
954 for( nTab = 0; nTab < nTabCount; ++nTab )
956 rDoc.
GetName( nTab, aTabName );
960 if( pDlg->Execute() ==
RET_OK )
962 aIndexList = pDlg->GetSelectedRows();
970 if ( !aIndexList.empty() )
972 sal_uInt16 nSelCount = aIndexList.size();
974 SCTAB nFirstVisTab = 0;
977 bool bVisSelected =
false;
978 for( nSelIx = 0; !bVisSelected && (nSelIx < nSelCount); ++nSelIx )
980 nFirstVisTab =
static_cast<SCTAB>(aIndexList[nSelIx]);
981 bVisSelected = rDoc.
IsVisible( nFirstVisTab );
989 for( nTab = 0; nTab < nTabCount; ++nTab )
992 for( nSelIx = 0; nSelIx < nSelCount; ++nSelIx )
1013 case SID_OUTLINE_DELETEALL:
1018 case SID_AUTO_OUTLINE:
1023 case SID_WINDOW_SPLIT:
1039 case SID_WINDOW_FIX:
1056 bool bChangedX =
false, bChangedY =
false;
1069 if (bChangedX || bChangedY)
1077 if (rOtherViewData.
GetTabNo() != nThisTab)
1082 rOtherBind.Invalidate( SID_WINDOW_FIX_COL );
1083 rOtherBind.Invalidate( SID_WINDOW_FIX_ROW );
1092 case SID_WINDOW_FIX_COL:
1093 case SID_WINDOW_FIX_ROW:
1095 bool bIsCol = (nSlot == SID_WINDOW_FIX_COL);
1096 sal_Int32 nFreezeIndex = 1;
1099 nFreezeIndex = pItem->GetValue();
1100 if (nFreezeIndex < 0)
1117 if (rOtherViewData.
GetTabNo() != nThisTab)
1122 rOtherBind.Invalidate(nSlot);
1139 sal_uInt16
nId = ScHighlightChgDlgWrapper::GetChildWindowId();
1146 case FID_CHG_ACCEPT:
1161 case FID_CHG_COMMENT:
1172 pReqArgs->
GetItemState( nSlot,
true, &pItem ) == SfxItemState::SET &&
1188 case SID_CREATE_SW_DRAWVIEW:
1198 case FID_PROTECT_DOC:
1205 if( pReqArgs->
HasItem( FID_PROTECT_DOC, &pItem ) &&
1216 bool bCancel =
false;
1221 OUString aText(
ScResId(SCSTR_PASSWORD));
1224 aDlg.set_title(
ScResId(SCSTR_UNPROTECTDOC));
1243 OUString aText(
ScResId(SCSTR_PASSWORDOPT));
1246 aDlg.set_title(
ScResId(SCSTR_PROTECTDOC));
1265 case FID_PROTECT_TABLE:
1274 bool bNewProtection = !bOldProtection;
1275 if( pReqArgs->
HasItem( FID_PROTECT_TABLE, &pItem ) )
1277 if( bNewProtection == bOldProtection )
1291 OUString aText(
ScResId(SCSTR_PASSWORDOPT) );
1293 aDlg.set_title(
ScResId(SCSTR_UNPROTECTTAB));
1343 case SID_THEME_DIALOG:
1354 auto pDialog = std::make_shared<svx::ThemeDialog>(pWin ? pWin->
GetFrameWeld() :
nullptr, pTheme.get());
1359 auto pColorSet = pDialog->getCurrentColorSet();
1363 aChanger.
apply(pColorSet);
1370 case SID_OPT_LOCALE_CHANGED :
1378 OSL_FAIL(
"Unknown Slot at ScTabViewShell::Execute");
const OUString & GetValue() const
static OUString decode(std::u16string_view rText, DecodeMechanism eMechanism, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8)
virtual VclPtr< AbstractScShowTabDlg > CreateScShowTabDlg(weld::Window *pParent)=0
virtual VclPtr< AbstractScGoToTabDlg > CreateScGoToTabDlg(weld::Window *pParent)=0
static SC_DLLPUBLIC ScAbstractDialogFactory * Create()
SC_DLLPUBLIC ScRefFlags Parse(const OUString &, const ScDocument &, const Details &rDetails=detailsOOOa1, ExternalInfo *pExtInfo=nullptr, const css::uno::Sequence< css::sheet::ExternalLinkInfo > *pExternalLinks=nullptr, sal_Int32 *pSheetEndPos=nullptr, const OUString *pErrRef=nullptr)
void SetZoom(sal_uInt16 nNew)
void SetZoomType(SvxZoomType eNew)
void RemoveAllOutlines(bool bRecord=true)
virtual bool isProtected() const override
virtual bool isProtectedWithPass() const override
ScChangeAction * GetChangeAction(const ScAddress &rPos)
void SetDocumentModified()
void ExecuteChangeCommentDialog(ScChangeAction *pAction, weld::Window *pParent, bool bPrevNext=true)
void SetChangeComment(ScChangeAction *pAction, const OUString &rComment)
ScDrawLayer * MakeDrawLayer()
bool ValidRow(SCROW nRow) const
SC_DLLPUBLIC const ScTableProtection * GetTabProtection(SCTAB nTab) const
SC_DLLPUBLIC bool IsDocProtected() const
SC_DLLPUBLIC bool GetTable(const OUString &rName, SCTAB &rTab) const
SC_DLLPUBLIC bool IsTabProtected(SCTAB nTab) const
SC_DLLPUBLIC formula::FormulaGrammar::AddressConvention GetAddressConvention() const
SC_DLLPUBLIC SCROW MaxRow() const
SC_DLLPUBLIC ScDocProtection * GetDocProtection() const
void SkipOverlapped(SCCOL &rCol, SCROW &rRow, SCTAB nTab) const
SC_DLLPUBLIC bool IsVisible(SCTAB nTab) const
SC_DLLPUBLIC bool GetName(SCTAB nTab, OUString &rName) const
SC_DLLPUBLIC SCTAB GetTableCount() const
void notifyKitCellFollowJump() const
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
void SelectTable(SCTAB nTab, bool bNew)
const ScRange & GetMarkArea() const
bool IsMultiMarked() const
bool GetTableSelect(SCTAB nTab) const
SC_DLLPUBLIC void SetRefDialog(sal_uInt16 nId, bool bVis, SfxViewFrame *pViewFrm=nullptr)
Reference dialogs.
SC_DLLPUBLIC const ScAppOptions & GetAppOptions()
SC_DLLPUBLIC void SetAppOptions(const ScAppOptions &rOpt)
SC_DLLPUBLIC void InputEnterHandler(ScEnterMode nBlockMode=ScEnterMode::NORMAL, bool bBeforeSavingInLOK=false)
static bool MakeRangeFromName(const OUString &rName, const ScDocument &rDoc, SCTAB nCurTab, ScRange &rRange, RutlNameScope eScope=RUTL_NAMES, ScAddress::Details const &rDetails=ScAddress::detailsOOOa1, bool bUseDetailsPos=false)
ScRefFlags Parse(const OUString &, const ScDocument &, const ScAddress::Details &rDetails=ScAddress::detailsOOOa1, ScAddress::ExternalInfo *pExtInfo=nullptr, const css::uno::Sequence< css::sheet::ExternalLinkInfo > *pExternalLinks=nullptr, const OUString *pErrRef=nullptr)
void UpdateInputHandler(bool bForce=false, bool bStopEditing=true)
void SetCurSubShell(ObjectSelectionType eOST, bool bForce=false)
void Execute(SfxRequest &rReq)
bool SelectObject(std::u16string_view rName)
ObjectSelectionType GetCurObjectSelectionType() const
void UpdatePageBreakData(bool bForcePaint=false)
void TabChanged(bool bSameTabButMoved=false)
Called after moving, copying, inserting or deleting a sheet.
void AlignToCursor(SCCOL nCurX, SCROW nCurY, ScFollowMode eMode, const ScSplitPos *pWhich=nullptr)
void ErrorMessage(TranslateId pGlobStrId)
sal_uInt16 CalcZoom(SvxZoomType eType, sal_uInt16 nOldZoom)
void SelectionChanged(bool bFromPaste=false)
void MarkRange(const ScRange &rRange, bool bSetCursor=true, bool bContinue=false)
void FreezeSplitters(bool bFreeze, SplitMethod eSplitMethod=SC_SPLIT_METHOD_CURSOR, SCCOLROW nFreezeIndex=-1)
Point GetInsertPos() const
SC_DLLPUBLIC void MoveCursorAbs(SCCOL nCurX, SCROW nCurY, ScFollowMode eMode, bool bShift, bool bControl, bool bKeepOld=false, bool bKeepSel=false)
ScViewData & GetViewData()
void SetZoom(const Fraction &rNewX, const Fraction &rNewY, bool bAll)
SvxZoomType GetZoomType() const
SC_DLLPUBLIC void SetCursor(SCCOL nPosX, SCROW nPosY, bool bNew=false)
void SetPagebreakMode(bool bSet)
ScDrawView * GetScDrawView()
SC_DLLPUBLIC void SetTabNo(SCTAB nTab, bool bNew=false, bool bExtendSelection=false, bool bSameTabButMoved=false)
void RepeatResize(bool bUpdateFix=true)
void SetZoomType(SvxZoomType eNew, bool bAll)
void SetDialogData(const ScTableProtection &rData)
void WriteData(ScTableProtection &rData) const
sheet protection state container
virtual bool isProtectedWithPass() const override
bool IsHeaderMode() const
bool SetLOKSheetFreezeIndex(const SCCOLROW nFreezeIndex, bool bIsCol, SCTAB nForTab=-1)
void SetOptions(const ScViewOptions &rOpt)
void SetHeaderMode(bool bNewMode)
const ScViewOptions & GetOptions() const
bool IsSyntaxMode() const
ScMarkData & GetMarkData()
const Fraction & GetZoomY() const
ScDocument & GetDocument() const
SCCOLROW GetLOKSheetFreezeIndex(bool bIsCol) const
ScSplitMode GetHSplitMode() const
ScDocShell * GetDocShell() const
ScGridWindow * GetActiveWin()
ScDBFunc * GetView() const
ScSplitMode GetVSplitMode() const
bool IsPagebreakMode() const
SfxBindings & GetBindings()
void SetSyntaxMode(bool bNewMode)
void RemoveManualBreaks()
void SetPrintRanges(bool bEntireSheet, const OUString *pPrint, const OUString *pRepCol, const OUString *pRepRow, bool bAddPrint)
void SetPrintZoom(sal_uInt16 nScale)
void ProtectSheet(SCTAB nTab, const ScTableProtection &rProtect)
bool Unprotect(SCTAB nTab, const OUString &rPassword)
void ProtectDoc(const OUString &rPassword)
bool PasteFile(const Point &, const OUString &, bool bLink)
void SetOption(ScViewOption eOpt, bool bNew)
bool GetOption(ScViewOption eOpt) const
void disposeAndReset(reference_type *pBody)
std::shared_ptr< model::Theme > const & GetTheme() const
SdrPage * GetPage() const
SdrPageProperties & getSdrPageProperties()
SdrPageView * GetSdrPageView() const
void Update(sal_uInt16 nId)
void Invalidate(sal_uInt16 nId)
void InvalidateAll(bool bWithMsg)
const SfxPoolItem * Execute(sal_uInt16 nSlot, SfxCallMode nCall=SfxCallMode::SLOT, const SfxPoolItem **pArgs=nullptr, sal_uInt16 nModi=0, const SfxPoolItem **pInternalArgs=nullptr)
const css::uno::Reference< css::frame::XFrame > & GetFrameInterface() const
const std::vector< sal_Int32 > & GetList() const
bool HasItem(sal_uInt16 nWhich, const SfxPoolItem **ppItem=nullptr) const
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
static void forEachOtherView(ViewShellType *pThisViewShell, FunctionType f)
static SAL_WARN_UNUSED_RESULT SfxObjectShell * GetNext(const SfxObjectShell &rPrev, const std::function< bool(const SfxObjectShell *)> &isObjectShell=nullptr, bool bOnlyVisible=true)
OUString GetTitle(sal_uInt16 nMaxLen=0) const
static SAL_WARN_UNUSED_RESULT SfxObjectShell * GetFirst(const std::function< bool(const SfxObjectShell *)> &isObjectShell=nullptr, bool bOnlyVisible=true)
void SetEditHelpId(const OUString &rId)
OUString GetPassword() const
virtual short run() override
void SetConfirmHelpId(const OUString &rId)
void SetMinLen(sal_uInt16 Len)
void ShowExtras(SfxShowExtras nExtras)
const Point & GetValue() const
sal_uInt16 GetSlot() const
const SfxItemSet * GetArgs() const
const T * GetArg(sal_uInt16 nSlotId) const
void AppendItem(const SfxPoolItem &)
void SetReturnValue(const SfxPoolItem &)
void Done(bool bRemove=false)
SfxItemPool & GetPool() const
SfxViewFrame * GetFrame() const
static SfxInterface * GetStaticInterface()
SfxViewShell * GetViewShell() const
void ToggleChildWindow(sal_uInt16)
SfxBindings & GetBindings()
void SetChildWindow(sal_uInt16 nId, bool bVisible, bool bSetFocus=true)
SfxDispatcher * GetDispatcher()
SfxChildWindow * GetChildWindow(sal_uInt16)
static SAL_WARN_UNUSED_RESULT SfxViewFrame * GetFirst(const SfxObjectShell *pDoc=nullptr, bool bOnlyVisible=true)
SfxFrame & GetFrame() const
void ShowChildWindow(sal_uInt16, bool bVisible=true)
weld::Window * GetFrameWeld() const
SfxViewFrame & GetViewFrame() const
static SAL_WARN_UNUSED_RESULT SfxViewShell * Get(const css::uno::Reference< css::frame::XController > &i_rController)
virtual VclPtr< AbstractSvxZoomDialog > CreateSvxZoomDialog(weld::Window *pParent, const SfxItemSet &rCoreSet)=0
static SvxAbstractDialogFactory * Create()
void SetValueSet(SvxZoomEnableFlags nValues)
SvxZoomType GetType() const
static UITestLogger & getInstance()
void logEvent(const EventDescription &rDescription)
void apply(std::shared_ptr< model::ColorSet > const &pColorSet) override
weld::Window * GetFrameWeld() const
static bool runAsync(const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
constexpr OUStringLiteral IsReadOnly(u"IsReadOnly")
constexpr OUStringLiteral HID_SELECTTABLES
constexpr OUStringLiteral HID_GOTOTABLE
constexpr OUStringLiteral HID_GOTOTABLEMASK
constexpr OUStringLiteral HID_PASSWD_DOC_CONFIRM
constexpr OUStringLiteral HID_PASSWD_DOC
constexpr OUStringLiteral HID_PASSWD_TABLE
bool isdigitAsciiString(std::string_view rString)
OUString ScResId(TranslateId aId)
std::map< OUString, OUString > aParameters