Kaydet (Commit) bbee706b authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS warnings01 (1.34.222); FILE MERGED

2006/04/07 18:03:09 sb 1.34.222.2: RESYNC: (1.34-1.35); FILE MERGED
2006/04/06 14:39:45 ab 1.34.222.1: #i55991# warning-free code
üst 767ed26f
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: charmap.cxx,v $ * $RCSfile: charmap.cxx,v $
* *
* $Revision: 1.35 $ * $Revision: 1.36 $
* *
* last change: $Author: hr $ $Date: 2006-01-26 18:03:55 $ * last change: $Author: hr $ $Date: 2006-06-19 15:01:52 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -63,7 +63,6 @@ ...@@ -63,7 +63,6 @@
#ifndef _SV_EDIT_HXX #ifndef _SV_EDIT_HXX
#include <vcl/edit.hxx> #include <vcl/edit.hxx>
#endif #endif
#pragma hdrstop
#ifndef INCLUDED_SVTOOLS_COLORCFG_HXX #ifndef INCLUDED_SVTOOLS_COLORCFG_HXX
#include <svtools/colorcfg.hxx> #include <svtools/colorcfg.hxx>
...@@ -174,8 +173,8 @@ sal_Unicode& getSelectedChar() ...@@ -174,8 +173,8 @@ sal_Unicode& getSelectedChar()
SvxShowCharSet::SvxShowCharSet( Window* pParent, const ResId& rResId ) : SvxShowCharSet::SvxShowCharSet( Window* pParent, const ResId& rResId ) :
Control( pParent, rResId ) Control( pParent, rResId )
,aVscrollSB( this, WB_VERT)
,m_pAccessible(NULL) ,m_pAccessible(NULL)
,aVscrollSB( this, WB_VERT)
{ {
nSelectedIndex = -1; // TODO: move into init list when it is no longer static nSelectedIndex = -1; // TODO: move into init list when it is no longer static
...@@ -325,8 +324,9 @@ int SvxShowCharSet::LastInView( void ) const ...@@ -325,8 +324,9 @@ int SvxShowCharSet::LastInView( void ) const
{ {
ULONG nIndex = FirstInView(); ULONG nIndex = FirstInView();
nIndex += ROW_COUNT * COLUMN_COUNT - 1; nIndex += ROW_COUNT * COLUMN_COUNT - 1;
if( nIndex > maFontCharMap.GetCharCount() - 1 ) ULONG nCompare = sal::static_int_cast<ULONG>( maFontCharMap.GetCharCount() - 1 );
nIndex = maFontCharMap.GetCharCount() - 1; if( nIndex > nCompare )
nIndex = nCompare;
return nIndex; return nIndex;
} }
...@@ -946,20 +946,20 @@ SvxShowText::~SvxShowText() ...@@ -946,20 +946,20 @@ SvxShowText::~SvxShowText()
SvxCharMapData::SvxCharMapData( SfxModalDialog* pDialog, BOOL bOne_ ) SvxCharMapData::SvxCharMapData( SfxModalDialog* pDialog, BOOL bOne_ )
: mpDialog( pDialog ), : mpDialog( pDialog ),
aShowSet ( pDialog, ResId( CT_SHOWSET ) ), aShowSet ( pDialog, ResId( CT_SHOWSET ) ),
aShowText ( pDialog, ResId( CT_SHOWTEXT ) ),
aOKBtn ( pDialog, ResId( BTN_CHAR_OK ) ),
aCancelBtn ( pDialog, ResId( BTN_CHAR_CANCEL ) ),
aHelpBtn ( pDialog, ResId( BTN_CHAR_HELP ) ),
aDeleteBtn ( pDialog, ResId( BTN_DELETE ) ),
aFontText ( pDialog, ResId( FT_FONT ) ), aFontText ( pDialog, ResId( FT_FONT ) ),
aFontLB ( pDialog, ResId( LB_FONT ) ), aFontLB ( pDialog, ResId( LB_FONT ) ),
aSubsetText ( pDialog, ResId( FT_SUBSET ) ), aSubsetText ( pDialog, ResId( FT_SUBSET ) ),
aSubsetLB ( pDialog, ResId( LB_SUBSET ) ), aSubsetLB ( pDialog, ResId( LB_SUBSET ) ),
aSymbolText ( pDialog, ResId( FT_SYMBOLE ) ), aSymbolText ( pDialog, ResId( FT_SYMBOLE ) ),
aShowText ( pDialog, ResId( CT_SHOWTEXT ) ),
aShowChar ( pDialog, ResId( CT_SHOWCHAR ), TRUE ), aShowChar ( pDialog, ResId( CT_SHOWCHAR ), TRUE ),
aCharCodeText ( pDialog, ResId( FT_CHARCODE ) ), aCharCodeText ( pDialog, ResId( FT_CHARCODE ) ),
aOKBtn ( pDialog, ResId( BTN_CHAR_OK ) ), bOne( bOne_ ),
aCancelBtn ( pDialog, ResId( BTN_CHAR_CANCEL ) ), pSubsetMap( NULL )
aHelpBtn ( pDialog, ResId( BTN_CHAR_HELP ) ),
aDeleteBtn ( pDialog, ResId( BTN_DELETE ) ),
pSubsetMap( NULL ),
bOne( bOne_ )
{ {
aFont = pDialog->GetFont(); aFont = pDialog->GetFont();
aFont.SetTransparent( TRUE ); aFont.SetTransparent( TRUE );
...@@ -1123,11 +1123,11 @@ IMPL_LINK( SvxCharMapData, FontSelectHdl, ListBox *, EMPTYARG ) ...@@ -1123,11 +1123,11 @@ IMPL_LINK( SvxCharMapData, FontSelectHdl, ListBox *, EMPTYARG )
const Subset* s; const Subset* s;
while( NULL != (s = pSubsetMap->GetNextSubset( bFirst )) ) while( NULL != (s = pSubsetMap->GetNextSubset( bFirst )) )
{ {
USHORT nPos = aSubsetLB.InsertEntry( s->GetName() ); USHORT nPos_ = aSubsetLB.InsertEntry( s->GetName() );
aSubsetLB.SetEntryData( nPos, (void*)s ); aSubsetLB.SetEntryData( nPos_, (void*)s );
// NOTE: subset must live at least as long as the selected font // NOTE: subset must live at least as long as the selected font
if( bFirst ) if( bFirst )
aSubsetLB.SelectEntryPos( nPos ); aSubsetLB.SelectEntryPos( nPos_ );
bFirst = false; bFirst = false;
} }
if( aSubsetLB.GetEntryCount() <= 1 ) if( aSubsetLB.GetEntryCount() <= 1 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment