20#undef SC_DLLIMPLEMENTATION
25#include <printopt.hxx>
31 :
SfxTabPage(pPage, pController,
"modules/scalc/ui/optdlg.ui",
"optCalcPrintPage", &rCoreAttrs )
32 , m_xSkipEmptyPagesCB(m_xBuilder->weld_check_button(
"suppressCB"))
33 , m_xSelectedSheetsCB(m_xBuilder->weld_check_button(
"printCB"))
34 , m_xForceBreaksCB(m_xBuilder->weld_check_button(
"forceBreaksCB"))
44 return std::make_unique<ScTpPrintOptions>(pPage, pController, *rAttrSet);
52 return DeactivateRC::LeavePage;
60 aOptions = pItem->GetPrintOptions();
64 aOptions =
SC_MOD()->GetPrintOptions();
69 bool bChecked = pItem->GetValue();
86 rCoreAttrs->
ClearItem( SID_PRINT_SELECTEDSHEET );
92 if ( bSkipEmptyChanged || bSelectedSheetsChanged || bForceBreaksChanged )
99 if ( bSelectedSheetsChanged )
bool GetSkipEmpty() const
void SetSkipEmpty(bool bVal)
bool GetForceBreaks() const
void SetAllSheets(bool bVal)
void SetForceBreaks(bool bVal)
bool GetAllSheets() const
virtual void Reset(const SfxItemSet *rCoreSet) override
std::unique_ptr< weld::CheckButton > m_xForceBreaksCB
ScTpPrintOptions(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rCoreSet)
virtual bool FillItemSet(SfxItemSet *rCoreSet) override
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
std::unique_ptr< weld::CheckButton > m_xSkipEmptyPagesCB
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rCoreSet)
std::unique_ptr< weld::CheckButton > m_xSelectedSheetsCB
virtual ~ScTpPrintOptions() override
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
sal_uInt16 ClearItem(sal_uInt16 nWhich=0)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)