LibreOffice Module svtools (master) 1
Public Member Functions | Private Attributes | List of all members
BrowserColumn Class Referencefinal

#include <datwin.hxx>

Public Member Functions

 BrowserColumn (sal_uInt16 nItemId, OUString aTitle, sal_uLong nWidthPixel, const Fraction &rCurrentZoom)
 
 ~BrowserColumn ()
 
sal_uInt16 GetId () const
 
sal_uLong Width () const
 
OUString & Title ()
 
bool IsFrozen () const
 
void Freeze ()
 
void Draw (BrowseBox const &rBox, OutputDevice &rDev, const Point &rPos)
 
void SetWidth (sal_uLong nNewWidthPixel, const Fraction &rCurrentZoom)
 
void ZoomChanged (const Fraction &rNewZoom)
 

Private Attributes

sal_uInt16 _nId
 
sal_uLong _nOriginalWidth
 
sal_uLong _nWidth
 
OUString _aTitle
 
bool _bFrozen
 

Detailed Description

Definition at line 53 of file datwin.hxx.

Constructor & Destructor Documentation

◆ BrowserColumn()

BrowserColumn::BrowserColumn ( sal_uInt16  nItemId,
OUString  aTitle,
sal_uLong  nWidthPixel,
const Fraction rCurrentZoom 
)

◆ ~BrowserColumn()

BrowserColumn::~BrowserColumn ( )

Definition at line 105 of file datwin.cxx.

Member Function Documentation

◆ Draw()

void BrowserColumn::Draw ( BrowseBox const &  rBox,
OutputDevice rDev,
const Point rPos 
)

◆ Freeze()

void BrowserColumn::Freeze ( )
inline

Definition at line 72 of file datwin.hxx.

References _bFrozen.

◆ GetId()

sal_uInt16 BrowserColumn::GetId ( ) const
inline

◆ IsFrozen()

bool BrowserColumn::IsFrozen ( ) const
inline

Definition at line 71 of file datwin.hxx.

References _bFrozen.

Referenced by BrowseBox::MouseButtonDown(), BrowseBox::SetColumnTitle(), and BrowseBox::SetColumnWidth().

◆ SetWidth()

void BrowserColumn::SetWidth ( sal_uLong  nNewWidthPixel,
const Fraction rCurrentZoom 
)

Definition at line 109 of file datwin.cxx.

References _nOriginalWidth, _nWidth, Fraction::GetDenominator(), Fraction::GetNumerator(), LONG_MAX, and n.

Referenced by BrowseBox::Draw().

◆ Title()

OUString & BrowserColumn::Title ( )
inline

Definition at line 69 of file datwin.hxx.

References _aTitle.

Referenced by BrowseBox::Draw(), BrowseBox::Paint(), and BrowseBox::SetColumnTitle().

◆ Width()

sal_uLong BrowserColumn::Width ( ) const
inline

◆ ZoomChanged()

void BrowserColumn::ZoomChanged ( const Fraction rNewZoom)

Definition at line 168 of file datwin.cxx.

References _nOriginalWidth, _nWidth, and n.

Member Data Documentation

◆ _aTitle

OUString BrowserColumn::_aTitle
private

Definition at line 58 of file datwin.hxx.

Referenced by Title().

◆ _bFrozen

bool BrowserColumn::_bFrozen
private

Definition at line 59 of file datwin.hxx.

Referenced by Freeze(), and IsFrozen().

◆ _nId

sal_uInt16 BrowserColumn::_nId
private

Definition at line 55 of file datwin.hxx.

Referenced by Draw(), and GetId().

◆ _nOriginalWidth

sal_uLong BrowserColumn::_nOriginalWidth
private

Definition at line 56 of file datwin.hxx.

Referenced by BrowserColumn(), SetWidth(), and ZoomChanged().

◆ _nWidth

sal_uLong BrowserColumn::_nWidth
private

Definition at line 57 of file datwin.hxx.

Referenced by BrowserColumn(), SetWidth(), Width(), and ZoomChanged().


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