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) |
void | SetContentControlAliasButton (SwContentControl *pContentControl, Point aTopLeftPixel) |
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 31 of file FrameControlsManager.hxx.
SwFrameControlsManager::SwFrameControlsManager | ( | SwEditWin * | pEditWin | ) |
Definition at line 27 of file FrameControlsManager.cxx.
SwFrameControlsManager::~SwFrameControlsManager | ( | ) |
Definition at line 32 of file FrameControlsManager.cxx.
void SwFrameControlsManager::dispose | ( | void | ) |
Definition at line 36 of file FrameControlsManager.cxx.
References m_aControls.
SwFrameControlPtr SwFrameControlsManager::GetControl | ( | FrameControlType | eType, |
const SwFrame * | pFrame | ||
) |
Definition at line 41 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 68 of file FrameControlsManager.cxx.
References eType, and m_aControls.
Referenced by SwSelPaintRects::HighlightContentControl(), SwWrtShell::InvalidateOutlineContentVisibility(), SwWrtShell::MakeAllFoldedOutlineContentVisible(), SwWrtShell::SetShowHeaderFooterSeparator(), and SwView::SetVisArea().
void SwFrameControlsManager::RemoveControls | ( | const SwFrame * | pFrame | ) |
Definition at line 53 of file FrameControlsManager.cxx.
References m_aControls.
Referenced by SwPageFrame::DestroyImpl().
void SwFrameControlsManager::RemoveControlsByType | ( | FrameControlType | eType, |
const SwFrame * | pFrame | ||
) |
Definition at line 62 of file FrameControlsManager.cxx.
References eType, and m_aControls.
Referenced by SwEditWin::Command(), SwEditWin::MouseMove(), and SwPageFrame::PaintBreak().
void SwFrameControlsManager::SetContentControlAliasButton | ( | SwContentControl * | pContentControl, |
Point | aTopLeftPixel | ||
) |
Definition at line 178 of file FrameControlsManager.cxx.
References ContentControl, sw::proofreadingiterator::get(), SwViewOption::IsReadonly(), m_aControls, and m_pEditWin.
Referenced by SwSelPaintRects::HighlightContentControl().
void SwFrameControlsManager::SetHeaderFooterControl | ( | const SwPageFrame * | pPageFrame, |
FrameControlType | eType, | ||
Point | aOffset | ||
) |
Definition at line 81 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 212 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 116 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 74 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 145 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 35 of file FrameControlsManager.hxx.
Referenced by dispose(), GetControl(), HideControls(), RemoveControls(), RemoveControlsByType(), SetContentControlAliasButton(), SetHeaderFooterControl(), SetOutlineContentVisibilityButton(), SetPageBreakControl(), SetReadonlyControls(), and SetUnfloatTableButton().
Definition at line 34 of file FrameControlsManager.hxx.
Referenced by SetContentControlAliasButton(), SetHeaderFooterControl(), SetOutlineContentVisibilityButton(), SetPageBreakControl(), and SetUnfloatTableButton().