35 :
WeldToolbarPopup(pControl->getFrameInterface(), pParent,
"modules/swriter/ui/pagecolumncontrol.ui",
"PageColumnControl")
36 , m_xMoreButton(m_xBuilder->weld_button(
"moreoptions"))
39 bool bLandscape =
false;
43 pViewFrm->GetBindings().GetDispatcher()->QueryState( SID_ATTR_PAGE, pPageItem );
91 aPageColumnTypeItem.
SetValue( nColumnType );
94 SfxCallMode::RECORD, { &aPageColumnTypeItem });
99 if ( &rButton == m_xOneColumn.get() )
100 ExecuteColumnChange( 1 );
101 else if ( &rButton == m_xTwoColumns.get() )
102 ExecuteColumnChange( 2 );
103 else if ( &rButton == m_xThreeColumns.get() )
104 ExecuteColumnChange( 3 );
105 else if ( &rButton == m_xLeft.get() )
106 ExecuteColumnChange( 4 );
107 else if ( &rButton == m_xRight.get() )
108 ExecuteColumnChange( 5 );
void SetValue(sal_Int16 nTheValue)
static SAL_WARN_UNUSED_RESULT SfxViewFrame * Current()
std::unique_ptr< weld::Button > m_xTwoColumns
std::unique_ptr< weld::Button > m_xOneColumn
virtual void GrabFocus() override
std::unique_ptr< weld::Button > m_xRight
std::unique_ptr< weld::Button > m_xMoreButton
std::unique_ptr< weld::Button > m_xThreeColumns
virtual ~PageColumnControl() override
static void ExecuteColumnChange(const sal_uInt16 nColumnType)
PageColumnControl(PageColumnPopup *pControl, weld::Widget *pParent)
std::unique_ptr< weld::Button > m_xLeft
#define SID_ATTR_PAGE_COLUMN
#define FN_FORMAT_PAGE_COLUMN_DLG
#define LINK(Instance, Class, Member)