35#include <compiler.hxx>
82 if ( ( bNegativePage ? (aArea.
Right() > 0) : (aArea.
Left() < 0) ) || aArea.
Top() < 0 )
172 bool bNegativePage =
m_pDocument->IsNegativePage( nTab );
188 if (aNewArea != aOldArea)
212 const SfxItemSet& rSrcSet = pItem->GetItemSet();
214 aDestSet.
Put(rSrcSet);
219 const SfxItemSet& rSrcSet = pItem->GetItemSet();
221 aDestSet.
Put(rSrcSet);
225 pStyle = pStylePool->
Next();
249 if ( !bCellStyles && !bPageStyles )
256 ( bPageStyles ? SfxStyleFamily::All : SfxStyleFamily::Para ) :
257 SfxStyleFamily::Page;
259 sal_uInt16 nSourceCount = aIter.Count();
260 if ( nSourceCount == 0 )
263 std::unique_ptr<ScStylePair[]> pStyles(
new ScStylePair[ nSourceCount ]);
264 sal_uInt16 nFound = 0;
278 pStyles[nFound].pSource = pSourceStyle;
279 pStyles[nFound].pDest = pDestStyle;
285 pStyles[nFound].pSource = pSourceStyle;
290 pSourceStyle = aIter.Next();
295 for ( sal_uInt16
i = 0;
i < nFound; ++
i )
298 pStyles[
i].pSource->GetItemSet(), SfxItemState::DONTCARE, SfxItemState::DEFAULT);
299 if(pStyles[
i].pSource->HasParentSupport())
300 pStyles[
i].pDest->SetParent(pStyles[
i].pSource->GetParent());
320 typedef std::unordered_set<OUString> StrSetType;
328 for (
size_t k=
nCount; k>0; )
334 if (pTabLink->IsUsed())
335 aNames.insert(pTabLink->GetFileName());
338 pTabLink->SetAddUndo(
true);
347 for (
SCTAB i = 0;
i < nTabCount; ++
i)
357 for (
SCTAB j = 0; j <
i && !bThere; ++j)
371 if (!aNames.insert(aDocName).second)
378 pLink->SetInCreate(
true);
381 pLink->SetInCreate(
false);
435 static bool bInitOnce =
true;
437 if (!bForLoading || bInitOnce)
439 bool bForceInit = bInitOnce;
488 if (aDecSep == aSepArg || aDecSep == aSepArrRow || aDecSep == aSepArrCol ||
489 aDecSepAlt == aSepArg || aDecSepAlt == aSepArrRow || aDecSepAlt == aSepArrCol)
503 VclMessageType::Info, VclButtonsType::Ok,
504 ScResId(STR_OPTIONS_WARN_SEPARATORS)));
static weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage, const ILibreOfficeKitNotifier *pNotifier=nullptr)
const OUString & getNumDecimalSepAlt() const
const OUString & getNumDecimalSep() const
constexpr tools::Long Y() const
void setX(tools::Long nX)
constexpr tools::Long X() const
OpCodeMapPtr GetOpCodeMap(const sal_Int32 nLanguage) const
Overwrite FormulaCompiler::GetOpCodeMap() forwarding to GetFinalOpCodeMap().
void SetDocumentModified()
virtual SfxStyleSheetBasePool * GetStyleSheetPool() override
const ScDocument & GetDocument() const
virtual void ReconnectDdeLink(SfxObjectShell &rServer) override
void LoadStylesArgs(ScDocShell &rSource, bool bReplace, bool bCellStyles, bool bPageStyles)
std::shared_ptr< ScDocument > m_pDocument
void UpdateAllRowHeights(const ScMarkData *pTabMark=nullptr)
ScTabViewShell * GetBestViewShell(bool bOnlyVisible=true)
void UpdateOle(const ScViewData &rViewData, bool bSnapSize=false)
void PostPaint(SCCOL nStartCol, SCROW nStartRow, SCTAB nStartTab, SCCOL nEndCol, SCROW nEndRow, SCTAB nEndTab, PaintPartFlags nPart, sal_uInt16 nExtFlags=0)
virtual void LoadStyles(SfxObjectShell &rSource) override
void SetVisAreaOrSize(const tools::Rectangle &rVisArea)
void SnapVisArea(tools::Rectangle &rRect) const
virtual void SetVisArea(const tools::Rectangle &rVisArea) override
void SetFormulaOptions(const ScFormulaOptions &rOpt, bool bForLoading=false)
void CheckConfigOptions()
Called when the Options dialog is dismissed with the OK button, to handle potentially conflicting opt...
void UpdateLinks() override
SC_DLLPUBLIC ScStyleSheetPool * GetStyleSheetPool() const
static void ResetFunctionList()
static SC_DLLPUBLIC const LocaleDataWrapper & getLocaleData()
static void SetGlobalConfig(const ScCalcConfig &rConfig)
SC_DLLPUBLIC const ScFormulaOptions & GetFormulaOptions()
SC_DLLPUBLIC void SetFormulaOptions(const ScFormulaOptions &rOpt)
virtual SfxStyleSheetBase & Make(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits nMask=SfxStyleSearchBits::All) override
static ScTabViewShell * GetActiveViewShell()
ScViewData & GetViewData()
SCROW GetPosY(ScVSplitPos eWhich, SCTAB nForTab=-1) const
ScDocShell * GetDocShell() const
SCCOL GetPosX(ScHSplitPos eWhich, SCTAB nForTab=-1) const
const WhichRangesContainer & GetRanges() const
SfxItemPool * GetPool() const
void PutExtended(const SfxItemSet &, SfxItemState eDontCareAs, SfxItemState eDefaultAs)
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
void SetConfigOptionsChecked(bool bChecked)
bool IsConfigOptionsChecked() const
virtual void SetVisArea(const tools::Rectangle &rVisArea)
virtual void LoadStyles(SfxObjectShell &rSource)
const tools::Rectangle & GetVisArea() const
SfxObjectCreateMode GetCreateMode() const
SfxStyleSheetBase * First(SfxStyleFamily eFamily, SfxStyleSearchBits eMask=SfxStyleSearchBits::All)
SfxStyleSheetBase * Next()
virtual SfxStyleSheetBase * Find(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
SfxStyleSearchBits GetMask() const
const OUString & GetName() const
SfxStyleFamily GetFamily() const
virtual SfxItemSet & GetItemSet()
weld::Window * GetFrameWeld() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
void InsertFileLink(sfx2::SvBaseLink &, SvBaseLinkObjectType nFileType, std::u16string_view rFileNm, const OUString *pFilterNm=nullptr, const OUString *pRange=nullptr)
void ReconnectDdeLink(SfxObjectShell &rServer)
void Remove(SvBaseLink const *pLink)
const SvBaseLinks & GetLinks() const
static void lcl_SetTopRight(tools::Rectangle &rRect, const Point &rPos)
static void lcl_AdjustPool(SfxStyleSheetBasePool *pStylePool)
OUString ScResId(TranslateId aId)
constexpr TypedWhichId< SvxSetItem > ATTR_PAGE_HEADERSET(184)
constexpr TypedWhichId< SvxSetItem > ATTR_PAGE_FOOTERSET(185)