10#undef SC_DLLIMPLEMENTATION
15#include <document.hxx>
16#include <officecfg/Office/Common.hxx>
17#include <config_features.h>
20 :
SfxTabPage(pPage, pController,
"modules/scalc/ui/optdefaultpage.ui",
"OptDefaultPage", &rCoreSet)
21 , m_xEdNSheets(m_xBuilder->weld_spin_button(
"sheetsnumber"))
22 , m_xEdSheetPrefix(m_xBuilder->weld_entry(
"sheetprefix"))
23 , m_xEdJumboSheets(m_xBuilder->weld_check_button(
"jumbo_sheets"))
28#if HAVE_FEATURE_JUMBO_SHEETS
29 if (!officecfg::Office::Common::Misc::ExperimentalMode::get())
40 return std::make_unique<ScTpDefaultsOptions>(pPage, pController, *rCoreAttrs);
58#if HAVE_FEATURE_JUMBO_SHEETS
59 aOpt.SetInitJumboSheets( bJumboSheets );
72 aOpt = pDefaultsItem->GetDefaultsOptions();
84 return DeactivateRC::KeepPage;
131 OnFocusPrefixInput();
bool GetInitJumboSheets() const
void SetInitTabCount(SCTAB nTabs)
SCTAB GetInitTabCount() const
void SetInitTabPrefix(const OUString &aPrefix)
const OUString & GetInitTabPrefix() const
static SC_DLLPUBLIC bool ValidTabName(const OUString &rName)
ScTpDefaultsOptions(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rCoreSet)
std::unique_ptr< weld::CheckButton > m_xEdJumboSheets
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rCoreSet)
virtual bool FillItemSet(SfxItemSet *rCoreSet) override
std::unique_ptr< weld::Entry > m_xEdSheetPrefix
virtual ~ScTpDefaultsOptions() override
std::unique_ptr< weld::SpinButton > m_xEdNSheets
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
void OnFocusPrefixInput()
virtual void Reset(const SfxItemSet *rCoreSet) override
OUString maOldPrefixValue
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
#define LINK(Instance, Class, Member)
IMPL_LINK_NOARG(ScTpDefaultsOptions, NumModifiedHdl, weld::Entry &, void)