LibreOffice Module sw (master) 1
|
A container for the Header/Footer, PageBreak, and Outline Content Visibility controls. More...
#include <FrameControlsManager.hxx>
Public Member Functions | |
SwFrameControlsManager (SwEditWin *pEditWin) | |
~SwFrameControlsManager () | |
void | dispose () |
SwFrameControlPtr | GetControl (FrameControlType eType, const SwFrame *pFrame) |
void | RemoveControls (const SwFrame *pFrame) |
void | RemoveControlsByType (FrameControlType eType, const SwFrame *pFrame) |
void | HideControls (FrameControlType eType) |
void | SetReadonlyControls (bool bReadonly) |
void | SetHeaderFooterControl (const SwPageFrame *pPageFrame, FrameControlType eType, Point aOffset) |
void | SetPageBreakControl (const SwPageFrame *pPageFrame) |
void | SetUnfloatTableButton (const SwFlyFrame *pFlyFrame, bool bShow, Point aTopRightPixel=Point()) |
void | SetOutlineContentVisibilityButton (const SwContentFrame *pContentFrame) |
Private Attributes | |
VclPtr< SwEditWin > | m_pEditWin |
std::map< FrameControlType, SwFrameControlPtrMap > | m_aControls |
A container for the Header/Footer, PageBreak, and Outline Content Visibility controls.
Definition at line 30 of file FrameControlsManager.hxx.
SwFrameControlsManager::SwFrameControlsManager | ( | SwEditWin * | pEditWin | ) |
Definition at line 26 of file FrameControlsManager.cxx.
SwFrameControlsManager::~SwFrameControlsManager | ( | ) |
Definition at line 31 of file FrameControlsManager.cxx.
void SwFrameControlsManager::dispose | ( | void | ) |
Definition at line 35 of file FrameControlsManager.cxx.
References m_aControls.
SwFrameControlPtr SwFrameControlsManager::GetControl | ( | FrameControlType | eType, |
const SwFrame * | pFrame | ||
) |
Definition at line 40 of file FrameControlsManager.cxx.
References eType, and m_aControls.
Referenced by SwFlyFrame::ActiveUnfloatButton(), SwEditWin::IsInHeaderFooter(), and SwRootFrame::PaintSwFrame().
void SwFrameControlsManager::HideControls | ( | FrameControlType | eType | ) |
Definition at line 67 of file FrameControlsManager.cxx.
References eType, and m_aControls.
Referenced by SwWrtShell::InvalidateOutlineContentVisibility(), SwWrtShell::MakeAllFoldedOutlineContentVisible(), SwWrtShell::SetShowHeaderFooterSeparator(), and SwView::SetVisArea().
void SwFrameControlsManager::RemoveControls | ( | const SwFrame * | pFrame | ) |
Definition at line 52 of file FrameControlsManager.cxx.
References m_aControls.
Referenced by SwPageFrame::DestroyImpl().
void SwFrameControlsManager::RemoveControlsByType | ( | FrameControlType | eType, |
const SwFrame * | pFrame | ||
) |
Definition at line 61 of file FrameControlsManager.cxx.
References eType, and m_aControls.
Referenced by SwEditWin::Command(), SwEditWin::MouseMove(), and SwPageFrame::PaintBreak().
void SwFrameControlsManager::SetHeaderFooterControl | ( | const SwPageFrame * | pPageFrame, |
FrameControlType | eType, | ||
Point | aOffset | ||
) |
Definition at line 80 of file FrameControlsManager.cxx.
References eType, Footer, VclPtr< class reference_type >::get(), Header, SwViewOption::IsReadonly(), m_aControls, and m_pEditWin.
Referenced by SwPageFrame::PaintDecorators().
void SwFrameControlsManager::SetOutlineContentVisibilityButton | ( | const SwContentFrame * | pContentFrame | ) |
Definition at line 185 of file FrameControlsManager.cxx.
References sw::proofreadingiterator::get(), SwOutlineContentVisibilityWin::GetSymbol(), HIDE, vcl::Window::IsVisible(), m_aControls, m_pEditWin, Outline, SwOutlineContentVisibilityWin::Set(), vcl::Window::Show(), SHOW, and SwOutlineContentVisibilityWin::ShowAll().
Referenced by SwEditWin::MouseMove(), and SwTextFrame::UpdateOutlineContentVisibilityButton().
void SwFrameControlsManager::SetPageBreakControl | ( | const SwPageFrame * | pPageFrame | ) |
Definition at line 115 of file FrameControlsManager.cxx.
References sw::proofreadingiterator::get(), SwViewOption::IsReadonly(), vcl::Window::IsVisible(), m_aControls, m_pEditWin, PageBreak, and SwBreakDashedLine::UpdatePosition().
Referenced by SwPageFrame::PaintBreak().
void SwFrameControlsManager::SetReadonlyControls | ( | bool | bReadonly | ) |
Definition at line 73 of file FrameControlsManager.cxx.
References m_aControls.
Referenced by SwWrtShell::SetReadonlyOption().
void SwFrameControlsManager::SetUnfloatTableButton | ( | const SwFlyFrame * | pFlyFrame, |
bool | bShow, | ||
Point | aTopRightPixel = Point() |
||
) |
Definition at line 144 of file FrameControlsManager.cxx.
References FloatingTable, sw::proofreadingiterator::get(), SwViewOption::IsReadonly(), m_aControls, m_pEditWin, and UnfloatTableButton::SetOffset().
Referenced by SwFlyFrame::UpdateUnfloatButton().
|
private |
Definition at line 34 of file FrameControlsManager.hxx.
Referenced by dispose(), GetControl(), HideControls(), RemoveControls(), RemoveControlsByType(), SetHeaderFooterControl(), SetOutlineContentVisibilityButton(), SetPageBreakControl(), SetReadonlyControls(), and SetUnfloatTableButton().
Definition at line 33 of file FrameControlsManager.hxx.
Referenced by SetHeaderFooterControl(), SetOutlineContentVisibilityButton(), SetPageBreakControl(), and SetUnfloatTableButton().