20#include <com/sun/star/table/BorderLineStyle.hpp>
58#include <compiler.hxx>
60#include <document.hxx>
64#include <inputwin.hxx>
74#include <tokenarray.hxx>
87 sal_uInt32 nFuncs =
SC_MOD()->GetAppOptions().GetStatusFunc();
92 for ( sal_uInt16 nFunc = 0; nFunc < 32; nFunc++ )
94 if ( !(nFuncs & (1U << nFunc)) )
99 nErrCode = FormulaError::NONE;
101 if (nErrCode != FormulaError::NONE)
142 sal_uInt32 nNumFmt = 0;
152 if (nVal < 0.0 || nVal >= 1.0)
155 if (pFormat && (pFormat->
GetType() == SvNumFormatType::TIME))
172 rFuncStr +=
"; " +
aStr;
176 return !rFuncStr.isEmpty();
208 case FID_CHG_COMMENT:
217 case SID_OPENDLG_EDIT_PRINTAREA:
218 case SID_ADD_PRINTAREA:
219 case SID_DEFINE_PRINTAREA:
228 case SID_DELETE_PRINTAREA:
237 case SID_STATUS_PAGESTYLE:
242 case SID_SEARCH_ITEM:
251 case SID_SEARCH_OPTIONS:
258 nOptions &=
~SearchOptionFlags( SearchOptionFlags::REPLACE | SearchOptionFlags::REPLACE_ALL );
263 case SID_CURRENTCELL:
282 case FID_TOGGLEINPUTLINE:
284 sal_uInt16
nId = ScInputWindowWrapper::GetChildWindowId();
296 case FID_DEL_MANUALBREAKS:
301 case FID_RESET_PRINTZOOM:
308 SfxStyleFamily::Page );
309 OSL_ENSURE( pStyleSheet,
"PageStyle not found" );
315 if ( nScale == 100 && nPages == 0 )
345 sal_uInt16 nZoom =
static_cast<sal_uInt16
>(
tools::Long( rOldY * 100 ));
350 case SID_ATTR_ZOOMSLIDER:
357 sal_uInt16 nCurrentZoom =
static_cast<sal_uInt16
>(
tools::Long( rOldY * 100 ));
369 case FID_FUNCTION_BOX:
377 case FID_TOGGLESYNTAX:
381 case FID_TOGGLEHEADERS:
385 case FID_TOGGLEFORMULA:
393 case FID_NORMALVIEWMODE:
394 case FID_PAGEBREAKMODE:
408 case FID_PROTECT_DOC:
421 case FID_PROTECT_TABLE:
434 case SID_AUTO_OUTLINE:
443 case SID_OUTLINE_DELETEALL:
447 if (pOlTable ==
nullptr)
452 case SID_WINDOW_SPLIT:
473 case SID_WINDOW_FIX_COL:
474 case SID_WINDOW_FIX_ROW:
477 bool bIsCol = (nWhich == SID_WINDOW_FIX_COL);
514 case SID_PRINTPREVIEW:
519 case SID_READONLY_MODE:
523 case FID_TAB_DESELECTALL:
524 if ( nTabSelCount == 1 )
528 case FID_TOGGLEHIDDENCOLROW:
542 std::shared_ptr<SvxBoxItem> aLineOuter(std::make_shared<SvxBoxItem>(
ATTR_BORDER));
543 std::shared_ptr<SvxBoxInfoItem> aLineInner(std::make_shared<SvxBoxInfoItem>(
ATTR_BORDER_INNER));
547 auto pOldSet = std::make_shared<SfxItemSet>(pOldAttrs->
GetItemSet());
551 pOldSet->MergeRange(SID_ATTR_BORDER_STYLES, SID_ATTR_BORDER_DEFAULT_WIDTH);
554 std::vector<sal_Int32> aBorderStyles{
555 table::BorderLineStyle::SOLID,
556 table::BorderLineStyle::DOTTED,
557 table::BorderLineStyle::DASHED,
558 table::BorderLineStyle::FINE_DASHED,
559 table::BorderLineStyle::DASH_DOT,
560 table::BorderLineStyle::DASH_DOT_DOT,
561 table::BorderLineStyle::DOUBLE_THIN };
566 SfxInt64Item aBorderWidthItem(SID_ATTR_BORDER_DEFAULT_WIDTH, 75);
567 pOldSet->Put(aBorderWidthItem);
575 std::unique_ptr<SvxBoxItem> aNewFrame(aLineOuter->Clone());
576 std::unique_ptr<SvxBoxInfoItem> aTempInfo(aLineInner->Clone());
578 if ( aLineInner->IsValid(SvxBoxInfoItemValidFlags::LEFT) )
579 aNewFrame->SetLine( aLineOuter->GetLeft(), SvxBoxItemLine::RIGHT );
580 if ( aLineInner->IsValid(SvxBoxInfoItemValidFlags::RIGHT) )
581 aNewFrame->SetLine( aLineOuter->GetRight(), SvxBoxItemLine::LEFT );
583 aLineInner->SetValid( SvxBoxInfoItemValidFlags::LEFT, aTempInfo->IsValid(SvxBoxInfoItemValidFlags::RIGHT));
584 aLineInner->SetValid( SvxBoxInfoItemValidFlags::RIGHT, aTempInfo->IsValid(SvxBoxInfoItemValidFlags::LEFT));
586 pOldSet->Put( std::move(aNewFrame) );
590 pOldSet->Put( *aLineOuter );
593 pOldSet->Put( *aLineInner );
600 pOldSet->MergeRange( SID_ATTR_NUMBERFORMAT_INFO, SID_ATTR_NUMBERFORMAT_INFO );
601 pOldSet->Put( std::move(pNumberInfoItem) );
608 if (!rName.isEmpty())
609 pDlg->SetCurPageId(rName);
611 auto pRequest = std::make_shared<SfxRequest>(rReq);
614 pDlg->StartExecuteAsync([pDlg, pOldSet, pRequest,
this](sal_Int32 nResult){
619 const SfxItemSet* pOutSet = pDlg->GetOutputItemSet();
622 UpdateNumberFormatter(*pItem);
627 pRequest->Done(*pOutSet);
651 if (
nType == SvNumFormatType::TEXT)
656 if ( !pHdl->
GetSelIsRef() && aString.getLength() > 1 &&
657 ( aString[0] ==
'+' || aString[0] ==
'-' ) )
661 std::unique_ptr<ScTokenArray> pArr(aComp.
CompileString(aString));
662 if ( pArr && pArr->MayReferenceFollow() )
712 nEndCol, nEndRow, nEndTab );
718 bool bHideFormula =
false;
719 bool bHideAll =
false;
760 if (!pFormatter->
IsTextFormat(nNumFmt) && (aString.startsWith(
"'")
761 || aString.startsWith(
"=") || aString.startsWith(
"+") || aString.startsWith(
"-")
763 aString =
"'" + aString;
778 pHdl->
NotifyChange( &aState, bForce, pSourceSh, bStopEditing );
790 pHdl->UpdateCellAdjust( eJust );
796 bool bCommitChanges =
true;
800 if (pReqArgs && pReqArgs->
HasItem(FN_PARAM_1, &pItem))
851 if ( nWhich != SID_SAVEDOC || !
GetViewData().GetDocShell()->IsDocShared() )
868 sal_uInt16 nSlotId = rReq.
GetSlot();
871 case SID_GRID_VISIBLE:
872 if ( pArgs && pArgs->
GetItemState(nSlotId,
true,&pItem) == SfxItemState::SET )
881 if ( pArgs && pArgs->
GetItemState(nSlotId,
true,&pItem) == SfxItemState::SET )
889 case SID_HELPLINES_MOVE:
890 if ( pArgs && pArgs->
GetItemState(nSlotId,
true,&pItem) == SfxItemState::SET )
917 aBool.
SetWhich( SID_HELPLINES_MOVE );
924 const sal_uInt16 nSlotId = rReq.
GetSlot();
925 if ( !pArgs && nSlotId != SID_STYLE_NEW_BY_EXAMPLE && nSlotId != SID_STYLE_UPDATE_BY_EXAMPLE )
947 bool bStyleToMarked =
false;
948 bool bListAction =
false;
949 bool bAddUndo =
false;
956 if ( pArgs && (pFamItem = pArgs->
GetItemIfSet( SID_STYLE_FAMILY )) )
958 else if ( pArgs && (pFamilyNameItem = pArgs->
GetItemIfSet( SID_STYLE_FAMILYNAME )) )
960 OUString sFamily = pFamilyNameItem->
GetValue();
961 if (sFamily ==
"CellStyles")
962 eFamily = SfxStyleFamily::Para;
963 else if (sFamily ==
"PageStyles")
964 eFamily = SfxStyleFamily::Page;
965 else if (sFamily ==
"GraphicStyles")
966 eFamily = SfxStyleFamily::Frame;
970 sal_uInt16 nRetMask = 0xffff;
977 if (pArgs && SfxItemState::SET == pArgs->
GetItemState( nSlotId,
true, &pNameItem ))
981 if (pArgs && (pRefItem = pArgs->
GetItemIfSet( SID_STYLE_REFERENCE )))
986 pStyleSheet = &(pStylePool->
Make( aStyleName, eFamily,
987 SfxStyleSearchBits::UserDefined ) );
994 case SID_STYLE_APPLY:
998 if ( pFamilyItem && pNameItem )
1002 css::uno::Reference< css::container::XNameAccess > xStyles;
1004 xCont->getByName(pFamilyItem->GetValue()) >>= xStyles;
1005 css::uno::Reference< css::beans::XPropertySet > xInfo;
1006 xStyles->getByName( pNameItem->
GetValue() ) >>= xInfo;
1008 xInfo->getPropertyValue(
"DisplayName") >>=
aUIName;
1012 catch( css::uno::Exception& )
1018 case SID_STYLE_EDIT:
1019 case SID_STYLE_DELETE:
1020 case SID_STYLE_HIDE:
1021 case SID_STYLE_SHOW:
1022 case SID_STYLE_NEW_BY_EXAMPLE:
1025 if (pArgs && SfxItemState::SET == pArgs->
GetItemState( nSlotId,
true, &pNameItem ))
1027 else if ( nSlotId == SID_STYLE_NEW_BY_EXAMPLE )
1033 if (aDlg.run() !=
RET_OK)
1038 pStyleSheet = pStylePool->
Find( aStyleName, eFamily );
1044 case SID_STYLE_WATERCAN:
1052 if ( SfxItemState::SET ==
1059 pStyleSheet = pStylePool->
Find( aStyleName, eFamily );
1064 SetActualStyleSheet( pStyleSheet );
1071 if ( !bWaterCan && pStyleSheet )
1091 if ( nSlotId == SID_STYLE_APPLY && pScMod->
GetIsWaterCan() && pStyleSheet )
1092 static_cast<ScStyleSheetPool*
>(pStylePool)->SetActualStyleSheet( pStyleSheet );
1096 case SfxStyleFamily::Para:
1100 case SID_STYLE_DELETE:
1105 pStylePool->
Remove( pStyleSheet );
1107 nRetMask = sal_uInt16(
true);
1112 nRetMask = sal_uInt16(
false);
1116 case SID_STYLE_HIDE:
1117 case SID_STYLE_SHOW:
1121 pStyleSheet->
SetHidden( nSlotId == SID_STYLE_HIDE );
1126 nRetMask = sal_uInt16(
false);
1130 case SID_STYLE_APPLY:
1142 case SID_STYLE_NEW_BY_EXAMPLE:
1143 case SID_STYLE_UPDATE_BY_EXAMPLE:
1157 pAttrItem = rDoc.
GetPattern( nCol, nRow, nCurTab );
1168 if ( SID_STYLE_NEW_BY_EXAMPLE == nSlotId )
1172 OUString aUndo =
ScResId( STR_UNDO_EDITCELLSTYLE );
1177 bool bConvertBack =
false;
1182 if ( pStyleSheet && pSheetInUse && pStyleSheet == pSheetInUse )
1183 pSheetInUse =
nullptr;
1192 bConvertBack =
true;
1193 pStylePool->
Remove(pStyleSheet);
1197 pStyleSheet = &pStylePool->
Make( aStyleName, eFamily,
1198 SfxStyleSearchBits::UserDefined );
1217 bStyleToMarked =
true;
1229 OUString aUndo =
ScResId( STR_UNDO_EDITCELLSTYLE );
1239 bStyleToMarked =
true;
1255 case SfxStyleFamily::Page:
1259 case SID_STYLE_DELETE:
1261 nRetMask = sal_uInt16(
nullptr != pStyleSheet );
1267 rBindings.
Invalidate( SID_STATUS_PAGESTYLE );
1270 pStylePool->
Remove( pStyleSheet );
1279 case SID_STYLE_HIDE:
1280 case SID_STYLE_SHOW:
1282 nRetMask = sal_uInt16(
nullptr != pStyleSheet );
1285 pStyleSheet->
SetHidden( nSlotId == SID_STYLE_HIDE );
1293 case SID_STYLE_APPLY:
1295 nRetMask = sal_uInt16(
nullptr != pStyleSheet );
1298 std::unique_ptr<ScUndoApplyPageStyle> pUndoAction;
1300 for (
const auto& rTab : rMark)
1302 if (rTab >= nTabCount)
1305 if ( aOldName != aStyleName )
1311 pUndoAction->AddSheetAction( rTab, aOldName );
1319 rBindings.
Invalidate( SID_STATUS_PAGESTYLE );
1327 case SID_STYLE_NEW_BY_EXAMPLE:
1329 const OUString& rStrCurStyle = rDoc.
GetPageStyle( nCurTab );
1331 if ( rStrCurStyle != aStyleName )
1340 pStylePool->
Remove( pStyleSheet );
1343 pStyleSheet = &pStylePool->
Make( aStyleName, eFamily,
1344 SfxStyleSearchBits::UserDefined );
1357 nRetMask = sal_uInt16(
true);
1368 case SfxStyleFamily::Frame:
1372 case SID_STYLE_DELETE:
1376 pStylePool->
Remove( pStyleSheet );
1379 nRetMask = sal_uInt16(
true);
1384 nRetMask = sal_uInt16(
false);
1388 case SID_STYLE_HIDE:
1389 case SID_STYLE_SHOW:
1393 pStyleSheet->
SetHidden( nSlotId == SID_STYLE_HIDE );
1398 nRetMask = sal_uInt16(
false);
1402 case SID_STYLE_APPLY:
1416 case SID_STYLE_NEW_BY_EXAMPLE:
1417 case SID_STYLE_UPDATE_BY_EXAMPLE:
1419 if (nSlotId == SID_STYLE_NEW_BY_EXAMPLE)
1421 pStyleSheet = &pStylePool->
Make( aStyleName, eFamily, SfxStyleSearchBits::UserDefined );
1426 pStyleSheet->
SetParent(pOldStyle->GetName());
1436 OUString aUndo =
ScResId( STR_UNDO_EDITGRAPHICSTYLE );
1445 pStyleSet->
Put(aCoreSet);
1453 bStyleToMarked =
true;
1467 if ( nSlotId == SID_STYLE_NEW || nSlotId == SID_STYLE_EDIT )
1477 OUString aOldName = pStyleSheet->
GetName();
1481 case SfxStyleFamily::Page:
1485 case SfxStyleFamily::Para:
1497 GetFormatForLanguageIfBuiltIn( nFormat, eLang );
1498 if ( nLangFormat != nFormat )
1502 aOldSet.
Put( aNewItem );
1508 std::unique_ptr<SvxNumberInfoItem> pNumberInfoItem(
1511 pDocSh->
PutItem( *pNumberInfoItem );
1528 case SfxStyleFamily::Frame:
1544 if (eFam == SfxStyleFamily::Frame)
1549 short nResult = pDlg->Execute();
1554 const SfxItemSet* pOutSet = pDlg->GetOutputItemSet();
1558 nRetMask = sal_uInt16(pStyleSheet->
GetMask());
1562 if ( SfxStyleFamily::Para == eFam )
1565 bool bNumFormatChanged;
1567 bNumFormatChanged, rNewSet, aOldSet ) )
1571 for (
SCTAB nTab=0; nTab<nTabCount; nTab++)
1576 if ( nNewFormat != nOldFormat )
1588 else if ( SfxStyleFamily::Page == eFam )
1592 OUString aNewName = pStyleSheet->
GetName();
1593 if ( aNewName != aOldName &&
1596 rBindings.
Invalidate( SID_STATUS_PAGESTYLE );
1609 auto checkForUniqueItem = [&] (
auto nWhichId)
1611 if (
auto pOldItem = rAttr.
GetItemIfSet(nWhichId,
false))
1613 if (
auto pNewItem = pOldItem->checkForUniqueItem(&
GetDrawView()->GetModel()))
1614 rAttr.
Put(std::move(pNewItem));
1632 if ( SfxStyleFamily::Para == eFam )
1635 *( pDocSh->
GetItem(SID_ATTR_NUMBERFORMAT_INFO) ));
1647 if ( nSlotId == SID_STYLE_NEW )
1648 pStylePool->
Remove( pStyleSheet );
1661 if ( bAddUndo && bUndo)
1663 std::make_unique<ScUndoModifyStyle>( pDocSh, eFamily, aOldData, aNewData ) );
1665 if ( bStyleToMarked )
1669 if (eFamily == SfxStyleFamily::Para)
1673 else if (eFamily == SfxStyleFamily::Frame)
1703 bool bProtected =
false;
1705 for (
SCTAB i=0;
i<nTabCount && !bProtected;
i++)
1711 sal_uInt16 nSlotId = 0;
1721 case SID_STYLE_APPLY:
1726 case SID_STYLE_FAMILY2:
1737 case SID_STYLE_FAMILY3:
1748 case SID_STYLE_FAMILY4:
1753 Find( aPageStyle, SfxStyleFamily::Page )) :
nullptr;
1762 case SID_STYLE_WATERCAN:
1768 case SID_STYLE_UPDATE_BY_EXAMPLE:
1770 std::unique_ptr<SfxUInt16Item> pFamilyItem;
1773 bool bPage = pFamilyItem && SfxStyleFamily::Page ==
static_cast<SfxStyleFamily>(pFamilyItem->GetValue());
1775 if ( bProtected || bPage )
1780 case SID_STYLE_EDIT:
1781 case SID_STYLE_DELETE:
1782 case SID_STYLE_HIDE:
1783 case SID_STYLE_SHOW:
1785 std::unique_ptr<SfxUInt16Item> pFamilyItem;
1787 bool bPage = pFamilyItem && SfxStyleFamily::Page ==
static_cast<SfxStyleFamily>(pFamilyItem->GetValue());
1789 if ( bProtected && !bPage )
void PutInOrder(T &nStart, T &nEnd)
sal_uInt16 GetValue() const
const OUString & GetValue() const
Base class for Text functions.
void SetInEditMode(SdrObject *pObj=nullptr, const Point *pMousePixel=nullptr, bool bCursorToEnd=false, const KeyEvent *pInitialKey=nullptr)
void SetSelection(const ESelection &)
ESelection GetSelection() const
void setX(tools::Long nX)
void setY(tools::Long nY)
virtual VclPtr< SfxAbstractTabDialog > CreateScStyleDlg(weld::Window *pParent, SfxStyleSheetBase &rStyleBase, bool bPage)=0
virtual VclPtr< SfxAbstractTabDialog > CreateScDrawStyleDlg(weld::Window *pParent, SfxStyleSheetBase &rStyleBase, SdrView *pView)=0
virtual VclPtr< SfxAbstractTabDialog > CreateScAttrDlg(weld::Window *pParent, const SfxItemSet *pCellAttrs)=0
static SC_DLLPUBLIC ScAbstractDialogFactory * Create()
SC_DLLPUBLIC void Format(OStringBuffer &r, ScRefFlags nFlags, const ScDocument *pDocument=nullptr, const Details &rDetails=detailsOOOa1) const
void SetCloseBrackets(bool bVal)
std::unique_ptr< ScTokenArray > CompileString(const OUString &rFormula)
Tokenize formula expression string into an array of tokens.
ScChangeAction * GetChangeAction(const ScAddress &rPos)
void SetDocumentModified()
SfxBindings * GetViewBindings()
const ScDocument & GetDocument() const
ScModelObj * GetModel() const
void GetStatePageStyle(SfxItemSet &rSet, SCTAB nCurTab)
virtual SfxUndoManager * GetUndoManager() override
void CellStyleCreated(std::u16string_view rName, const ScDocument &rDoc)
void ModifyStyleSheet(SfxStyleSheetBase &rPageStyle, const SfxItemSet &rChanges)
SC_DLLPUBLIC sal_uInt32 GetNumberFormat(SCCOL nCol, SCROW nRow, SCTAB nTab) const
void InvalidateTextWidth(std::u16string_view rStyleName)
bool RemovePageStyleInUse(std::u16string_view rStrPageStyle)
SC_DLLPUBLIC bool IsDocProtected() const
SC_DLLPUBLIC bool IsTabProtected(SCTAB nTab) const
bool HasManualBreaks(SCTAB nTab) const
SC_DLLPUBLIC ScDocumentPool * GetPool()
SC_DLLPUBLIC formula::FormulaGrammar::AddressConvention GetAddressConvention() const
bool IsPageStyleInUse(std::u16string_view rStrPageStyle, SCTAB *pInTab)
void SetStreamValid(SCTAB nTab, bool bSet, bool bIgnoreLock=false)
void UpdStlShtPtrsFrmNms()
SC_DLLPUBLIC OUString GetPageStyle(SCTAB nTab) const
SC_DLLPUBLIC formula::FormulaGrammar::Grammar GetGrammar() const
SC_DLLPUBLIC ScStyleSheetPool * GetStyleSheetPool() const
SC_DLLPUBLIC ScOutlineTable * GetOutlineTable(SCTAB nTab, bool bCreate=false)
SC_DLLPUBLIC void SetPageStyle(SCTAB nTab, const OUString &rName)
SC_DLLPUBLIC SvNumberFormatter * GetFormatTable() const
ScChangeTrack * GetChangeTrack() const
SC_DLLPUBLIC bool IsLayoutRTL(SCTAB nTab) const
bool IsUndoEnabled() const
bool GetSelectionFunction(ScSubTotalFunc eFunc, const ScAddress &rCursor, const ScMarkData &rMark, double &rResult)
bool IsPrintEntireSheet(SCTAB nTab) const
Returns true, if the specified sheet is always printed.
SC_DLLPUBLIC const SfxPoolItem * GetAttr(SCCOL nCol, SCROW nRow, SCTAB nTab, sal_uInt16 nWhich) const
SC_DLLPUBLIC const ScPatternAttr * GetPattern(SCCOL nCol, SCROW nRow, SCTAB nTab) const
bool RenamePageStyleInUse(std::u16string_view rOld, const OUString &rNew)
SC_DLLPUBLIC SCTAB GetTableCount() const
SdrEndTextEditKind ScEndTextEdit()
static OUString GetLongErrorString(FormulaError nErrNumber)
static SC_DLLPUBLIC const SvxSearchItem & GetSearchItem()
static bool CheckWidthInvalidate(bool &bNumFormatChanged, const SfxItemSet &rNewAttrs, const SfxItemSet &rOldAttrs)
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
bool IsMultiMarked() const
SCTAB GetSelectCount() const
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getStyleFamilies() override
XStyleFamiliesSupplier.
ScInputHandler * GetInputHdl(ScTabViewShell *pViewSh=nullptr, bool bUseRef=true)
Input-Handler.
void SetWaterCan(bool bNew)
bool GetIsWaterCan() const
SC_DLLPUBLIC void InputEnterHandler(ScEnterMode nBlockMode=ScEnterMode::NORMAL, bool bBeforeSavingInLOK=false)
sal_uInt32 GetNumberFormat(SvNumberFormatter *) const
SfxItemSet & GetItemSet()
bool GetHideFormula() const
void InitFromStyle(const SfxStyleSheetBase *pSource)
virtual SfxPrinter * GetPrinter(bool bCreate=false) override
static void UpdateNumberFormatter(const SvxNumberInfoItem &rInfoItem)
void ExecStyle(SfxRequest &rReq)
void ExecuteSave(SfxRequest &rReq)
std::unique_ptr< ScInputHandler, o3tl::default_delete< ScInputHandler > > mpInputHandler
virtual SdrView * GetDrawView() const override
void ExecDrawOpt(const SfxRequest &rReq)
void UpdateInputHandler(bool bForce=false, bool bStopEditing=true)
void GetDrawOptState(SfxItemSet &rSet)
static std::unique_ptr< SvxNumberInfoItem > MakeNumberInfoItem(ScDocument &rDoc, const ScViewData &rViewData)
void GetStyleState(SfxItemSet &rSet)
void ExecuteCellFormatDlg(SfxRequest &rReq, const OUString &rTabPage)
void UpdateInputHandlerCellAdjust(SvxCellHorJustify eJust)
void SetInFormatDialog(bool bFlag)
void GetState(SfxItemSet &rSet)
void ExecuteInputDirect()
bool GetFunction(OUString &rFuncStr, FormulaError nErrCode)
void GetSaveState(SfxItemSet &rSet)
bool IsRefInputMode() const
FuPoor * GetDrawFuncPtr()
ScViewData & GetViewData()
ScDrawView * GetScDrawView()
void SetActivePointer(PointerStyle nPointer)
void SetOptions(const ScViewOptions &rOpt)
const ScViewOptions & GetOptions() const
ScMarkData & GetMarkData()
const Fraction & GetZoomY() const
ScDocument & GetDocument() const
SCCOLROW GetLOKSheetFreezeIndex(bool bIsCol) const
ScSplitMode GetHSplitMode() const
ScDocShell * GetDocShell() const
ScMarkType GetSimpleArea(SCCOL &rStartCol, SCROW &rStartRow, SCTAB &rStartTab, SCCOL &rEndCol, SCROW &rEndRow, SCTAB &rEndTab) const
ScSplitMode GetVSplitMode() const
ScAddress GetCurPos() const
SfxBindings & GetBindings()
void SetStyleSheetToMarked(const SfxStyleSheet *pStyleSheet)
const SfxStyleSheet * GetStyleSheetFromMarked()
void RemoveStyleSheetInUse(const SfxStyleSheetBase *pStyleSheet)
SC_DLLPUBLIC const ScPatternAttr * GetSelectionPattern()
void UpdateStyleSheetInUse(const SfxStyleSheetBase *pStyleSheet)
void GetSelectionFrame(std::shared_ptr< SvxBoxItem > &rLineOuter, std::shared_ptr< SvxBoxInfoItem > &rLineInner)
void ApplyAttributes(const SfxItemSet *pDialogSet, const SfxItemSet *pOldSet, bool bAdjustBlockHeight=true)
void SetOption(ScViewOption eOpt, bool bNew)
const ScGridOptions & GetGridOptions() const
bool GetOption(ScViewOption eOpt) const
void SetGridOptions(const ScGridOptions &rNew)
void disposeAndReset(reference_type *pBody)
void SetStyleSheet(SfxStyleSheet *pStyleSheet, bool bDontRemoveHardAttr)
SfxStyleSheet * GetStyleSheet() const
SdrTextObj * GetTextEditObject() const
const OutlinerView * GetTextEditOutlinerView() const
void GetAttributes(SfxItemSet &rTargetSet, bool bOnlyHardAttr=false) const
SfxItemState QueryState(sal_uInt16 nSID, std::unique_ptr< SfxPoolItem > &rpState)
void Update(sal_uInt16 nId)
void Invalidate(sal_uInt16 nId)
void SetValue(bool const bTheValue)
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
sal_uInt16 GetSlotId(sal_uInt16 nWhich) const
static bool IsWhich(sal_uInt16 nId)
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
sal_uInt16 ClearItem(sal_uInt16 nWhich=0)
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
void DisableItem(sal_uInt16 nWhich)
void MergeRange(sal_uInt16 nFrom, sal_uInt16 nTo)
void SetWhich(sal_uInt16 nId)
sal_uInt16 GetSlot() const
const SfxItemSet * GetArgs() const
const T * GetArg(sal_uInt16 nSlotId) const
void AppendItem(const SfxPoolItem &)
void SetReturnValue(const SfxPoolItem &)
weld::Window * GetFrameWeld() const
void Done(bool bRemove=false)
void PutItem(const SfxPoolItem &rItem)
const SfxPoolItem * GetSlotState(sal_uInt16 nSlotId, const SfxInterface *pIF=nullptr, SfxItemSet *pStateSet=nullptr)
SfxItemPool & GetPool() const
const SfxPoolItem * GetItem(sal_uInt16 nSlotId) const
const SfxPoolItem * ExecuteSlot(SfxRequest &rReq, const SfxInterface *pIF=nullptr)
SfxDispatcher * GetDispatcher() const
virtual void Remove(SfxStyleSheetBase *)
virtual SfxStyleSheetBase & Make(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits nMask=SfxStyleSearchBits::All)
virtual SfxStyleSheetBase * Find(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
SfxStyleSearchBits GetMask() const
const OUString & GetName() const
SfxStyleFamily GetFamily() const
virtual void SetHidden(bool bValue)
virtual bool HasParentSupport() const
virtual bool SetParent(const OUString &)
virtual SfxItemSet & GetItemSet()
virtual void EnterListAction(const OUString &rComment, const OUString &rRepeatComment, sal_uInt16 nId, ViewShellId nViewShellId)
virtual void AddUndoAction(std::unique_ptr< SfxUndoAction > pAction, bool bTryMerg=false)
SfxBindings & GetBindings()
bool HasChildWindow(sal_uInt16)
SfxChildWindow * GetChildWindow(sal_uInt16)
SfxFrame & GetFrame() const
bool KnowsChildWindow(sal_uInt16)
weld::Window * GetFrameWeld() const
ViewShellId GetViewShellId() const override
SfxViewFrame & GetViewFrame() const
void SetMinDist(bool bNew)
bool GetGridVisible() const
bool GetUseGridSnap() const
void SetUseGridSnap(bool bSet)
void SetGridVisible(bool bSet)
void SetSelection(bool bNewSelection)
void AddSnappingPoint(sal_Int32 nNew)
EmbeddedObjectRef * pObject
constexpr OUStringLiteral IsReadOnly(u"IsReadOnly")
@ SUBTOTAL_FUNC_SELECTION_COUNT
constexpr T & temporary(T &&x)
void CleanupFillProperties(SfxItemSet &rItemSet)
UNOTOOLS_DLLPUBLIC bool GetTitle(OUString const &url, OUString *title)
OUString ScResId(TranslateId aId)
constexpr TypedWhichId< SfxUInt16Item > ATTR_PAGE_SCALE(175)
constexpr TypedWhichId< ScMergeFlagAttr > ATTR_MERGE_FLAG(145)
constexpr TypedWhichId< ScMergeAttr > ATTR_MERGE(144)
constexpr TypedWhichId< SvxLanguageItem > ATTR_LANGUAGE_FORMAT(147)
constexpr TypedWhichId< SvxBoxInfoItem > ATTR_BORDER_INNER(151)
constexpr TypedWhichId< SvxBoxItem > ATTR_BORDER(150)
constexpr TypedWhichId< SfxUInt32Item > ATTR_VALUE_FORMAT(146)
constexpr TypedWhichId< ScProtectionAttr > ATTR_PROTECTION(149)
constexpr TypedWhichId< SfxUInt16Item > ATTR_PAGE_SCALETOPAGES(176)
constexpr TypedWhichId< SfxUInt32Item > ATTR_VALIDDATA(153)
constexpr TypedWhichId< ScCondFormatItem > ATTR_CONDITIONAL(154)
This is very similar to ScCellValue, except that it references the original value instead of copying ...
ScFormulaCell * getFormula() const
const EditTextObject * getEditText() const
constexpr TypedWhichId< XFillColorItem > XATTR_FILLCOLOR(XATTR_FILL_FIRST+1)
constexpr TypedWhichId< XLineDashItem > XATTR_LINEDASH(XATTR_LINE_FIRST+1)
constexpr TypedWhichId< XLineEndItem > XATTR_LINEEND(XATTR_LINE_FIRST+5)
constexpr TypedWhichId< XLineStartItem > XATTR_LINESTART(XATTR_LINE_FIRST+4)
constexpr sal_uInt16 XATTR_FILL_FIRST(XATTRSET_LINE+1)
constexpr TypedWhichId< XFillHatchItem > XATTR_FILLHATCH(XATTR_FILL_FIRST+3)
constexpr sal_uInt16 XATTR_FILL_LAST(XATTR_FILLUSESLIDEBACKGROUND)
constexpr TypedWhichId< XFillBitmapItem > XATTR_FILLBITMAP(XATTR_FILL_FIRST+4)
constexpr TypedWhichId< XFillFloatTransparenceItem > XATTR_FILLFLOATTRANSPARENCE(XATTR_FILL_FIRST+11)
constexpr TypedWhichId< XFillStyleItem > XATTR_FILLSTYLE(XATTR_FILL_FIRST)
constexpr TypedWhichId< XFillGradientItem > XATTR_FILLGRADIENT(XATTR_FILL_FIRST+2)