summaryrefslogtreecommitdiff
path: root/sw/source/ui/dbui/dbui.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/dbui/dbui.cxx')
-rw-r--r--sw/source/ui/dbui/dbui.cxx50
1 files changed, 25 insertions, 25 deletions
diff --git a/sw/source/ui/dbui/dbui.cxx b/sw/source/ui/dbui/dbui.cxx
index 45ddaa496613..e4faad79b069 100644
--- a/sw/source/ui/dbui/dbui.cxx
+++ b/sw/source/ui/dbui/dbui.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,14 +37,14 @@
#include "dbui.hxx"
PrintMonitor::PrintMonitor( Window *pParent, PrintMonitorType eType )
-: ModelessDialog( pParent, SW_RES(DLG_PRINTMONITOR) ),
- aDocName (this, SW_RES( FT_DOCNAME )),
- aPrinting (this, SW_RES(
- eType == MONITOR_TYPE_MAIL ?
+: ModelessDialog( pParent, SW_RES(DLG_PRINTMONITOR) ),
+ aDocName (this, SW_RES( FT_DOCNAME )),
+ aPrinting (this, SW_RES(
+ eType == MONITOR_TYPE_MAIL ?
FT_SENDING : eType == MONITOR_TYPE_SAVE ? FT_SAVING : FT_PRINTING )),
- aPrinter (this, SW_RES( FT_PRINTER )),
- aPrintInfo (this, SW_RES( FT_PRINTINFO )),
- aCancel (this, SW_RES( PB_CANCELPRNMON ))
+ aPrinter (this, SW_RES( FT_PRINTER )),
+ aPrintInfo (this, SW_RES( FT_PRINTINFO )),
+ aCancel (this, SW_RES( PB_CANCELPRNMON ))
{
switch (eType)
{
@@ -58,14 +58,14 @@ PrintMonitor::PrintMonitor( Window *pParent, PrintMonitorType eType )
void lcl_ResizeControl( Window* pWin, long nDiff )
{
Size aSize( pWin->GetSizePixel() );
- aSize.Width() += nDiff;
- pWin->SetSizePixel( aSize );
-}
+ aSize.Width() += nDiff;
+ pWin->SetSizePixel( aSize );
+}
void lcl_RePosControl( Window* pWin, long nDiff )
{
Point aPos( pWin->GetPosPixel() );
- aPos.X() += nDiff;
- pWin->SetPosPixel( aPos );
+ aPos.X() += nDiff;
+ pWin->SetPosPixel( aPos );
}
void PrintMonitor::ResizeControls()
@@ -80,29 +80,29 @@ void PrintMonitor::ResizeControls()
long nDiff = nPrinterTextWidth - aPrinterSize.Width();
if( nDiff > 2 * aDlgSize.Width() )
{
- aPrinter.SetStyle( WB_RIGHT | aPrinter.GetStyle() );
+ aPrinter.SetStyle( WB_RIGHT | aPrinter.GetStyle() );
nDiff = 2 * aDlgSize.Width();
}
aDlgSize.Width() += nDiff;
SetSizePixel(aDlgSize);
- lcl_ResizeControl( &aPrinter, nDiff );
+ lcl_ResizeControl( &aPrinter, nDiff );
nDiff /= 2;
- lcl_RePosControl( &aDocName, nDiff );
- lcl_RePosControl( &aPrinting, nDiff );
+ lcl_RePosControl( &aDocName, nDiff );
+ lcl_RePosControl( &aPrinting, nDiff );
lcl_RePosControl( &aPrintInfo, nDiff );
- lcl_RePosControl( &aCancel, nDiff );
+ lcl_RePosControl( &aCancel, nDiff );
}
}
// Progress Indicator for Creation of personalized Mail Merge documents:
CreateMonitor::CreateMonitor( Window *pParent )
-: ModelessDialog( pParent, SW_RES(DLG_MM_CREATIONMONITOR) ),
- m_aStatus (this, SW_RES( FT_STATUS )),
- m_aProgress (this, SW_RES( FT_PROGRESS )),
- m_aCreateDocuments (this, SW_RES( FT_CREATEDOCUMENTS )),
- m_aCounting (this, SW_RES( FT_COUNTING )),
- m_aCancelButton (this, SW_RES( PB_CANCELPRNMON )),
+: ModelessDialog( pParent, SW_RES(DLG_MM_CREATIONMONITOR) ),
+ m_aStatus (this, SW_RES( FT_STATUS )),
+ m_aProgress (this, SW_RES( FT_PROGRESS )),
+ m_aCreateDocuments (this, SW_RES( FT_CREATEDOCUMENTS )),
+ m_aCounting (this, SW_RES( FT_COUNTING )),
+ m_aCancelButton (this, SW_RES( PB_CANCELPRNMON )),
m_sCountingPattern(),
m_sVariable_Total( String::CreateFromAscii("%Y") ),
m_sVariable_Position( String::CreateFromAscii("%X") ),
@@ -117,7 +117,7 @@ CreateMonitor::CreateMonitor( Window *pParent )
void CreateMonitor::UpdateCountingText()
{
- String sText(m_sCountingPattern);
+ String sText(m_sCountingPattern);
sText.SearchAndReplaceAll( m_sVariable_Total, String::CreateFromInt32( m_nTotalCount ) );
sText.SearchAndReplaceAll( m_sVariable_Position, String::CreateFromInt32( m_nCurrentPosition ) );
m_aCounting.SetText(sText);