diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-01-03 23:50:02 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-01-04 02:15:05 +0100 |
commit | 5badba2028ebf3ce399ed659c78b3590f364c67e (patch) | |
tree | d4223a9ef5723f7b753a08cce75f024b17822306 /svx | |
parent | 5f363ce8bc563f64271744026cf0e16830cf9b06 (diff) |
A bit of cleanup.
Change-Id: Ia7c5cf07dba7f65ee65dab67a0a32975c8026dce
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/ctredlin.cxx | 35 |
1 files changed, 4 insertions, 31 deletions
diff --git a/svx/source/dialog/ctredlin.cxx b/svx/source/dialog/ctredlin.cxx index 57fd00e0912f..b39052ba7e0d 100644 --- a/svx/source/dialog/ctredlin.cxx +++ b/svx/source/dialog/ctredlin.cxx @@ -33,33 +33,19 @@ #include <svx/ctredlin.hxx> #include "helpid.hrc" - -// Local Defines and Function - - -static long nStaticTabs[]= -{ - 5,10,65,120,170,220 -}; - #define WRITER_DATE 2 #define CALC_DATE 3 -RedlinData::RedlinData() - : - aDateTime( DateTime::EMPTY ) +RedlinData::RedlinData() : aDateTime(DateTime::EMPTY) { bDisabled=false; pData=NULL; } + RedlinData::~RedlinData() { } - -// class SvxRedlinEntry (Entries for list) - - SvxRedlinEntry::SvxRedlinEntry() : SvTreeListEntry() { @@ -71,9 +57,6 @@ SvxRedlinEntry::~SvxRedlinEntry() delete pRedDat; } -// Functions in the inserts Items of SvxRedlinTable - - SvLBoxColorString::SvLBoxColorString(SvTreeListEntry*pEntry, sal_uInt16 nFlags, const OUString& rStr, const Color& rCol) : SvLBoxString(pEntry, nFlags, rStr) @@ -99,12 +82,6 @@ SvLBoxItem* SvLBoxColorString::Create() const void SvLBoxColorString::Paint( const Point& rPos, SvTreeListBox& rDev, const SvViewDataEntry* pView, const SvTreeListEntry* pEntry) -/* [Description] - - Paint function of the SvLBoxColorString class. The relevant text with the - selected color is drawn in the output device. -*/ - { Color aColor=rDev.GetTextColor(); Color a2Color=aColor; @@ -192,7 +169,6 @@ void SvxRedlinTable::SetCalcView(bool bFlag) } } - void SvxRedlinTable::UpdateFilterTest() { Date aDateMax( Date::SYSTEM ); @@ -202,7 +178,6 @@ void SvxRedlinTable::UpdateFilterTest() tools::Time aTMin(0); tools::Time aTMax(23,59,59); - DateTime aDTMin(aDateMin); DateTime aDTMax(aDateMax); @@ -236,7 +211,6 @@ void SvxRedlinTable::UpdateFilterTest() } } - void SvxRedlinTable::SetFilterDate(bool bFlag) { bDate=bFlag; @@ -414,7 +388,8 @@ SvxTPView::SvxTPView(vcl::Window *pParent, VclBuilderContainer *pTopLevel) m_pRejectAll->SetClickHdl(aLink); m_pUndo->SetClickHdl(aLink); - m_pViewData->SetTabs(nStaticTabs); + const long pTabs[] = { 5, 10, 65, 120, 170, 220 }; + m_pViewData->SetTabs(pTabs); } void SvxTPView::ActivatePage() @@ -1102,8 +1077,6 @@ void SvxAcceptChgCtr::ShowViewPage() SetCurPageId(m_nViewPageId); } - - SvxRedlinTable* SvxAcceptChgCtr::GetViewTable() { return pTPView ? pTPView->GetTableControl() : NULL; |