LibreOffice Module sd (master) 1
Public Member Functions | Private Attributes | List of all members
Assistent Class Reference

#include <assclass.hxx>

Public Member Functions

 Assistent (int nNoOfPage)
 
bool IsEnabled (int nPage) const
 
void EnablePage (int nPage)
 
void DisablePage (int nPage)
 
bool InsertControl (int nDestPage, weld::Widget *pUsedControl)
 adds a control to the specified page More...
 
void NextPage ()
 
void PreviousPage ()
 
bool GotoPage (const int nPageToGo)
 
bool IsLastPage () const
 
bool IsFirstPage () const
 
int GetCurrentPage () const
 

Private Attributes

std::vector< weld::Widget * > maPages [MAX_PAGES]
 contains for every page the controls, which have to be connected? correctly More...
 
int mnPages
 number of pages More...
 
int mnCurrentPage
 
std::unique_ptr< bool[]> mpPageStatus
 

Detailed Description

Definition at line 31 of file assclass.hxx.

Constructor & Destructor Documentation

◆ Assistent()

Assistent::Assistent ( int  nNoOfPage)

Definition at line 25 of file assclass.cxx.

References i, MAX_PAGES, mnPages, and mpPageStatus.

Member Function Documentation

◆ DisablePage()

void Assistent::DisablePage ( int  nPage)

Definition at line 148 of file assclass.cxx.

References DBG_ASSERT, GotoPage(), mnCurrentPage, mnPages, and mpPageStatus.

Referenced by SdPublishingDlg::SetDesign().

◆ EnablePage()

void Assistent::EnablePage ( int  nPage)

Definition at line 138 of file assclass.cxx.

References DBG_ASSERT, mnPages, and mpPageStatus.

Referenced by SdPublishingDlg::SetDesign().

◆ GetCurrentPage()

int Assistent::GetCurrentPage ( ) const
inline

Definition at line 65 of file assclass.hxx.

Referenced by SdPublishingDlg::ChangePage(), and SdPublishingDlg::UpdatePage().

◆ GotoPage()

bool Assistent::GotoPage ( const int  nPageToGo)

◆ InsertControl()

bool Assistent::InsertControl ( int  nDestPage,
weld::Widget pUsedControl 
)

adds a control to the specified page

Definition at line 37 of file assclass.cxx.

References DBG_ASSERT, weld::Widget::hide(), maPages, mnPages, and weld::Widget::set_sensitive().

Referenced by SdPublishingDlg::CreatePages().

◆ IsEnabled()

bool Assistent::IsEnabled ( int  nPage) const

Definition at line 131 of file assclass.cxx.

References DBG_ASSERT, mnPages, and mpPageStatus.

◆ IsFirstPage()

bool Assistent::IsFirstPage ( ) const

Definition at line 119 of file assclass.cxx.

References mnCurrentPage, and mpPageStatus.

Referenced by SdPublishingDlg::UpdatePage().

◆ IsLastPage()

bool Assistent::IsLastPage ( ) const

Definition at line 107 of file assclass.cxx.

References mnCurrentPage, mnPages, and mpPageStatus.

Referenced by SdPublishingDlg::UpdatePage().

◆ NextPage()

void Assistent::NextPage ( )

Definition at line 52 of file assclass.cxx.

References GotoPage(), mnCurrentPage, mnPages, and mpPageStatus.

◆ PreviousPage()

void Assistent::PreviousPage ( )

Definition at line 65 of file assclass.cxx.

References GotoPage(), mnCurrentPage, and mpPageStatus.

Member Data Documentation

◆ maPages

std::vector<weld::Widget*> Assistent::maPages[MAX_PAGES]
private

contains for every page the controls, which have to be connected? correctly

Definition at line 35 of file assclass.hxx.

Referenced by GotoPage(), and InsertControl().

◆ mnCurrentPage

int Assistent::mnCurrentPage
private

Definition at line 40 of file assclass.hxx.

Referenced by DisablePage(), GotoPage(), IsFirstPage(), IsLastPage(), NextPage(), and PreviousPage().

◆ mnPages

int Assistent::mnPages
private

number of pages

Definition at line 38 of file assclass.hxx.

Referenced by Assistent(), DisablePage(), EnablePage(), GotoPage(), InsertControl(), IsEnabled(), IsLastPage(), and NextPage().

◆ mpPageStatus

std::unique_ptr<bool[]> Assistent::mpPageStatus
private

The documentation for this class was generated from the following files: