User: hr Date: 06/06/19 19:59:09 Modified: /dba/dbaccess/source/ui/control/ FieldDescControl.cxx
Log: INTEGRATION: CWS warnings01 (1.41.74); FILE MERGED 2006/03/24 15:36:06 fs 1.41.74.1: #i57457# warning-free code (unxlngi6/.pro + unxsoli4.pro) File Changes: Directory: /dba/dbaccess/source/ui/control/ =========================================== File [changed]: FieldDescControl.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/control/FieldDescControl.cxx?r1=1.41&r2=1.42 Delta lines: +68 -63 --------------------- --- FieldDescControl.cxx 23 Sep 2005 12:22:54 -0000 1.41 +++ FieldDescControl.cxx 20 Jun 2006 02:59:07 -0000 1.42 @@ -150,12 +150,11 @@ using namespace dbaui; using namespace dbtools; -// using namespace comphelper; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::beans; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::sdbc; -// using namespace ::com::sun::star::sdb; +using namespace ::com::sun::star::util; //================================================================== @@ -197,49 +196,53 @@ // class OFieldDescControl //================================================================== -DBG_NAME(OFieldDescControl); +DBG_NAME(OFieldDescControl) //================================================================== OFieldDescControl::OFieldDescControl( Window* pParent, const ResId& rResId, OTableDesignHelpBar* pHelpBar) :TabPage( pParent, rResId ) - ,m_pPreviousType() ,pHelp( pHelpBar ) - ,nCurChildId(1) - ,pDefault(NULL) + ,pLastFocusWindow(NULL) + ,m_pActFocusWindow(NULL) ,pDefaultText(NULL) - ,pRequired(NULL) ,pRequiredText(NULL) - ,pAutoIncrement(NULL) ,pAutoIncrementText(NULL) - ,pTextLen(NULL) ,pTextLenText(NULL) - ,pNumType(NULL) ,pNumTypeText(NULL) - ,pLastFocusWindow(NULL) - ,pFormatSample(NULL) - ,pFormatText(NULL) - ,pFormat(NULL) - ,pLength(NULL) ,pLengthText(NULL) - ,pScale(NULL) ,pScaleText(NULL) - ,pBoolDefault(NULL) + ,pFormatText(NULL) ,pBoolDefaultText(NULL) - ,m_pColumnName(NULL) ,m_pColumnNameText(NULL) - ,m_pType(NULL) ,m_pTypeText(NULL) ,m_pAutoIncrementValueText(NULL) + ,pRequired(NULL) + ,pNumType(NULL) + ,pAutoIncrement(NULL) + ,pDefault(NULL) + ,pTextLen(NULL) + ,pLength(NULL) + ,pScale(NULL) + ,pFormatSample(NULL) + ,pBoolDefault(NULL) + ,m_pColumnName(NULL) + ,m_pType(NULL) ,m_pAutoIncrementValue(NULL) + ,pFormat(NULL) + ,m_pVertScroll( NULL ) + ,m_pHorzScroll( NULL ) + ,m_pPreviousType() + ,nCurChildId(1) ,m_nPos(-1) ,aYes(ModuleRes(STR_VALUE_YES)) ,aNo(ModuleRes(STR_VALUE_NO)) - ,nDelayedGrabFocusEvent(0) - ,pActFieldDescr(NULL) - ,m_pActFocusWindow(NULL) - ,m_bRight(sal_False) + ,m_nOldVThumb( 0 ) + ,m_nOldHThumb( 0 ) ,m_nWidth(50) + ,nDelayedGrabFocusEvent(0) ,m_bAdded(sal_False) + ,m_bRightAligned(false) + ,pActFieldDescr(NULL) { DBG_CTOR(OFieldDescControl,NULL); @@ -263,44 +266,48 @@ //------------------------------------------------------------------------------ OFieldDescControl::OFieldDescControl( Window* pParent, OTableDesignHelpBar* pHelpBar ) :TabPage( pParent, WB_3DLOOK | WB_DIALOGCONTROL ) - ,m_pPreviousType() ,pHelp( pHelpBar ) - ,nCurChildId(1) - ,pDefault(NULL) + ,pLastFocusWindow(NULL) + ,m_pActFocusWindow(NULL) ,pDefaultText(NULL) - ,pRequired(NULL) ,pRequiredText(NULL) - ,pAutoIncrement(NULL) ,pAutoIncrementText(NULL) - ,pTextLen(NULL) ,pTextLenText(NULL) - ,pNumType(NULL) ,pNumTypeText(NULL) - ,pLastFocusWindow(NULL) - ,pFormatSample(NULL) - ,pFormatText(NULL) - ,pFormat(NULL) - ,pLength(NULL) ,pLengthText(NULL) - ,pScale(NULL) ,pScaleText(NULL) - ,pBoolDefault(NULL) + ,pFormatText(NULL) ,pBoolDefaultText(NULL) - ,m_pColumnName(NULL) ,m_pColumnNameText(NULL) - ,m_pType(NULL) ,m_pTypeText(NULL) ,m_pAutoIncrementValueText(NULL) + ,pRequired(NULL) + ,pNumType(NULL) + ,pAutoIncrement(NULL) + ,pDefault(NULL) + ,pTextLen(NULL) + ,pLength(NULL) + ,pScale(NULL) + ,pFormatSample(NULL) + ,pBoolDefault(NULL) + ,m_pColumnName(NULL) + ,m_pType(NULL) ,m_pAutoIncrementValue(NULL) + ,pFormat(NULL) + ,m_pVertScroll( NULL ) + ,m_pHorzScroll( NULL ) + ,m_pPreviousType() + ,nCurChildId(1) ,m_nPos(-1) ,aYes(ModuleRes(STR_VALUE_YES)) ,aNo(ModuleRes(STR_VALUE_NO)) - ,nDelayedGrabFocusEvent(0) - ,pActFieldDescr(0) - ,m_pActFocusWindow(NULL) - ,m_bRight(sal_False) + ,m_nOldVThumb( 0 ) + ,m_nOldHThumb( 0 ) ,m_nWidth(50) + ,nDelayedGrabFocusEvent(0) ,m_bAdded(sal_False) + ,m_bRightAligned(false) + ,pActFieldDescr(NULL) { DBG_CTOR(OFieldDescControl,NULL); @@ -364,8 +371,6 @@ { static String aZero('0'); static String aOne('1'); - static String aNo(ModuleRes(STR_VALUE_NO)); - static String aYes(ModuleRes(STR_VALUE_YES)); if (rUIString == aNo) return aZero; @@ -379,8 +384,6 @@ { static String aZero('0'); static String aOne('1'); - static String aYes(ModuleRes(STR_VALUE_YES)); - static String aNo(ModuleRes(STR_VALUE_NO)); static String aNone(ModuleRes(STR_VALUE_NONE)); // FS - 66161 - 14.05.1999 - aeltere Versionen haben eventuell einen sprachabhaengigen String als Default gespeichert @@ -403,7 +406,7 @@ } //------------------------------------------------------------------------------ -IMPL_LINK(OFieldDescControl, OnScroll, ScrollBar*, pBar) +IMPL_LINK(OFieldDescControl, OnScroll, ScrollBar*, /*pBar*/) { ScrollAllAggregates(); return 0; @@ -741,7 +744,7 @@ } //------------------------------------------------------------------------ -IMPL_LINK( OFieldDescControl, FormatClickHdl, Button *, pButton ) +IMPL_LINK( OFieldDescControl, FormatClickHdl, Button *, /*pButton*/ ) { DBG_CHKTHIS(OFieldDescControl,NULL); ////////////////////////////////////////////////////////////////////// @@ -751,10 +754,8 @@ sal_Int32 nOldFormatKey(pActFieldDescr->GetFormatKey()); SvxCellHorJustify rOldJustify = pActFieldDescr->GetHorJustify(); - Reference< ::com::sun::star::util::XNumberFormatsSupplier > xSupplier = GetFormatter()->getNumberFormatsSupplier(); - - Reference< XUnoTunnel > xTunnel(xSupplier,UNO_QUERY); - SvNumberFormatsSupplierObj* pSupplierImpl = (SvNumberFormatsSupplierObj*)xTunnel->getSomething(SvNumberFormatsSupplierObj::getUnoTunnelId()); + Reference< XNumberFormatsSupplier > xSupplier = GetFormatter()->getNumberFormatsSupplier(); + SvNumberFormatsSupplierObj* pSupplierImpl = SvNumberFormatsSupplierObj::getImplementation( xSupplier ); SvNumberFormatter* pFormatter = pSupplierImpl->GetNumberFormatter(); sal_uInt16 nFlags; @@ -781,6 +782,10 @@ return 0; } +// ----------------------------------------------------------------------- +void OFieldDescControl::SetModified(sal_Bool /*bModified*/) +{ +} //------------------------------------------------------------------------ IMPL_LINK( OFieldDescControl, ChangeHdl, ListBox *, pListBox ) { @@ -883,7 +888,7 @@ }; long nMaxWidth = 0; - for (int i=0; i<sizeof(adAggregates)/sizeof(adAggregates[0]); i++) + for (size_t i=0; i<sizeof(adAggregates)/sizeof(adAggregates[0]); i++) { if (adAggregates[i].pctrlTextControl) { @@ -896,7 +901,7 @@ // und los ... int nCurrentControlPos = 0; Control* pZOrderPredecessor = NULL; - for (int i=0; i<sizeof(adAggregates)/sizeof(adAggregates[0]); i++) + for (size_t i=0; i<sizeof(adAggregates)/sizeof(adAggregates[0]); i++) { if (adAggregates[i].pctrlInputControl) { @@ -1413,35 +1418,35 @@ aSize.Height() = CONTROL_HEIGHT; break; case 1: - if ( m_bRight ) + if ( isRightAligned() ) aSize.Width() = LogicToPixel(Size(m_nWidth, 0),MAP_APPFONT).Width(); else aSize.Width() = CONTROL_WIDTH_2; aSize.Height() = CONTROL_HEIGHT; break; case 2: - if ( m_bRight ) + if ( isRightAligned() ) aSize.Width() = LogicToPixel(Size(m_nWidth, 0),MAP_APPFONT).Width(); else aSize.Width() = CONTROL_WIDTH_2; aSize.Height() = long(1.5*CONTROL_HEIGHT); break; case 3: - if ( m_bRight ) + if ( isRightAligned() ) aSize.Width() = LogicToPixel(Size(m_nWidth, 0),MAP_APPFONT).Width(); else aSize.Width() = CONTROL_WIDTH_3; aSize.Height() = CONTROL_HEIGHT; break; case 4: - if ( m_bRight ) + if ( isRightAligned() ) aSize.Width() = LogicToPixel(Size(m_nWidth, 0),MAP_APPFONT).Width(); else aSize.Width() = CONTROL_WIDTH_4; aSize.Height() = CONTROL_HEIGHT; break; default: - if ( m_bRight ) + if ( isRightAligned() ) aSize.Width() = LogicToPixel(Size(m_nWidth, 0),MAP_APPFONT).Width(); else aSize.Width() = CONTROL_WIDTH_1; @@ -1462,7 +1467,7 @@ case 2: case 3: case 4: - if ( m_bRight ) + if ( isRightAligned() ) { Size aOwnSize = GetSizePixel(); aPosition.X() = aOwnSize.Width() - aSize.Width(); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
