callcatcher: ditch various unused methods
This commit is contained in:
parent
a2c7a85db6
commit
b74f17642d
10 changed files with 0 additions and 148 deletions
|
@ -3393,17 +3393,6 @@ void SvImpLBox::SetUpdateMode( sal_Bool bMode )
|
|||
}
|
||||
}
|
||||
|
||||
void SvImpLBox::SetUpdateModeFast( sal_Bool bMode )
|
||||
{
|
||||
if( bUpdateMode != bMode )
|
||||
{
|
||||
bUpdateMode = bMode;
|
||||
if( bUpdateMode )
|
||||
UpdateAll( sal_False, sal_False );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
sal_Bool SvImpLBox::SetMostRight( SvLBoxEntry* pEntry )
|
||||
{
|
||||
if( pView->nTreeFlags & TREEFLAG_RECALCTABS )
|
||||
|
@ -3545,18 +3534,6 @@ void SvImpLBox::ShowFocusRect( const SvLBoxEntry* pEntry )
|
|||
}
|
||||
}
|
||||
|
||||
void SvImpLBox::SetTabBar( TabBar* _pTabBar )
|
||||
{
|
||||
pTabBar = _pTabBar;
|
||||
}
|
||||
|
||||
void SvImpLBox::CancelPendingEdit()
|
||||
{
|
||||
if( aEditTimer.IsActive() )
|
||||
aEditTimer.Stop();
|
||||
nFlags &= ~F_START_EDITTIMER;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
void SvImpLBox::implInitDefaultNodeImages()
|
||||
{
|
||||
|
|
|
@ -353,14 +353,10 @@ public:
|
|||
void RepaintScrollBars();
|
||||
void EnableAsyncDrag( sal_Bool b) { bAsyncBeginDrag = b; }
|
||||
void SetUpdateMode( sal_Bool );
|
||||
void SetUpdateModeFast( sal_Bool );
|
||||
sal_Bool GetUpdateMode() const { return bUpdateMode; }
|
||||
Rectangle GetClipRegionRect() const;
|
||||
sal_Bool HasHorScrollBar() const { return aHorSBar.IsVisible(); }
|
||||
void ShowFocusRect( const SvLBoxEntry* pEntry );
|
||||
void SetTabBar( TabBar* pTabBar );
|
||||
void CancelPendingEdit();
|
||||
|
||||
void CallEventListeners( sal_uLong nEvent, void* pData = NULL );
|
||||
|
||||
/** Enables, that one cell of a tablistbox entry can be focused */
|
||||
|
|
|
@ -450,7 +450,6 @@ public:
|
|||
void Reset();
|
||||
sal_uInt16 Scan( sal_uInt16 nCount = 5 );
|
||||
size_t Count( sal_Bool bUpdated = sal_True ) const;
|
||||
sal_Bool Update();
|
||||
|
||||
Dir& operator +=( const Dir& rDir );
|
||||
DirEntry& operator []( size_t nIndex ) const;
|
||||
|
|
|
@ -266,18 +266,6 @@ void Dir::Construct( DirEntryKind nKindFlags )
|
|||
aNameMask = String("*", osl_getThreadTextEncoding());
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|*
|
||||
|* Dir::Update()
|
||||
|*
|
||||
*************************************************************************/
|
||||
|
||||
sal_Bool Dir::Update()
|
||||
{
|
||||
Reset();
|
||||
return Scan( USHRT_MAX ) > 0;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|*
|
||||
|* Dir::Reset()
|
||||
|
|
|
@ -198,7 +198,6 @@ public:
|
|||
|
||||
void SetFloatStyle( WinBits nWinStyle );
|
||||
WinBits GetFloatStyle() const;
|
||||
void SetTabStop();
|
||||
|
||||
virtual void SetPosSizePixel( long nX, long nY,
|
||||
long nWidth, long nHeight,
|
||||
|
|
|
@ -255,9 +255,6 @@ public:
|
|||
|
||||
int getFonts() const
|
||||
{ return m_pFontList ? m_pFontList->countValues() : 0; }
|
||||
void getFontAttributes( int,
|
||||
String& rEncoding,
|
||||
String& rCharset ) const;
|
||||
String getFont( int ) const;
|
||||
|
||||
|
||||
|
|
|
@ -617,88 +617,6 @@ void FreetypeManager::AddFontFile( const rtl::OString& rNormalizedName,
|
|||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
long FreetypeManager::AddFontDir( const String& rUrlName )
|
||||
{
|
||||
osl::Directory aDir( rUrlName );
|
||||
osl::FileBase::RC rcOSL = aDir.open();
|
||||
if( rcOSL != osl::FileBase::E_None )
|
||||
return 0;
|
||||
|
||||
long nCount = 0;
|
||||
|
||||
osl::DirectoryItem aDirItem;
|
||||
rtl_TextEncoding theEncoding = osl_getThreadTextEncoding();
|
||||
while( (rcOSL = aDir.getNextItem( aDirItem, 20 )) == osl::FileBase::E_None )
|
||||
{
|
||||
osl::FileStatus aFileStatus( osl_FileStatus_Mask_FileURL );
|
||||
rcOSL = aDirItem.getFileStatus( aFileStatus );
|
||||
|
||||
::rtl::OUString aUSytemPath;
|
||||
OSL_VERIFY( osl::FileBase::E_None
|
||||
== osl::FileBase::getSystemPathFromFileURL( aFileStatus.getFileURL(), aUSytemPath ));
|
||||
::rtl::OString aCFileName = rtl::OUStringToOString( aUSytemPath, theEncoding );
|
||||
const char* pszFontFileName = aCFileName.getStr();
|
||||
|
||||
FT_FaceRec_* aFaceFT = NULL;
|
||||
for( int nFaceNum = 0, nMaxFaces = 1; nFaceNum < nMaxFaces; ++nFaceNum )
|
||||
{
|
||||
FT_Error rcFT = FT_New_Face( aLibFT, pszFontFileName, nFaceNum, &aFaceFT );
|
||||
if( (rcFT != FT_Err_Ok) || (aFaceFT == NULL) )
|
||||
break;
|
||||
|
||||
if( !FT_IS_SCALABLE( aFaceFT ) ) // ignore non-scalabale fonts
|
||||
continue;
|
||||
|
||||
nMaxFaces = aFaceFT->num_faces;
|
||||
|
||||
ImplDevFontAttributes aDFA;
|
||||
|
||||
// TODO: prefer unicode names if available
|
||||
// TODO: prefer locale specific names if available?
|
||||
if ( aFaceFT->family_name )
|
||||
aDFA.maName = String::CreateFromAscii( aFaceFT->family_name );
|
||||
|
||||
if ( aFaceFT->style_name )
|
||||
aDFA.maStyleName = String::CreateFromAscii( aFaceFT->style_name );
|
||||
|
||||
aDFA.mbSymbolFlag = false;
|
||||
for( int i = aFaceFT->num_charmaps; --i >= 0; )
|
||||
{
|
||||
const FT_CharMap aCM = aFaceFT->charmaps[i];
|
||||
#if (FTVERSION < 2000)
|
||||
if( aCM->encoding == FT_ENCODING_NONE )
|
||||
#else
|
||||
if( (aCM->platform_id == TT_PLATFORM_MICROSOFT)
|
||||
&& (aCM->encoding_id == TT_MS_ID_SYMBOL_CS) )
|
||||
#endif
|
||||
aDFA.mbSymbolFlag = true;
|
||||
}
|
||||
|
||||
// TODO: extract better font characterization data from font
|
||||
aDFA.meFamily = FAMILY_DONTKNOW;
|
||||
aDFA.mePitch = FT_IS_FIXED_WIDTH( aFaceFT ) ? PITCH_FIXED : PITCH_VARIABLE;
|
||||
aDFA.meWidthType = WIDTH_DONTKNOW;
|
||||
aDFA.meWeight = FT_STYLE_FLAG_BOLD & aFaceFT->style_flags ? WEIGHT_BOLD : WEIGHT_NORMAL;
|
||||
aDFA.meItalic = FT_STYLE_FLAG_ITALIC & aFaceFT->style_flags ? ITALIC_NORMAL : ITALIC_NONE;
|
||||
|
||||
aDFA.mnQuality = 0;
|
||||
aDFA.mbOrientation= true;
|
||||
aDFA.mbDevice = true;
|
||||
aDFA.mbSubsettable= false;
|
||||
aDFA.mbEmbeddable = false;
|
||||
|
||||
FT_Done_Face( aFaceFT );
|
||||
AddFontFile( aCFileName, nFaceNum, ++mnNextFontId, aDFA, NULL );
|
||||
++nCount;
|
||||
}
|
||||
}
|
||||
|
||||
aDir.close();
|
||||
return nCount;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
void FreetypeManager::AnnounceFonts( ImplDevFontList* pToAdd ) const
|
||||
{
|
||||
for( FontList::const_iterator it = maFontList.begin(); it != maFontList.end(); ++it )
|
||||
|
|
|
@ -162,7 +162,6 @@ public:
|
|||
FreetypeManager();
|
||||
~FreetypeManager();
|
||||
|
||||
long AddFontDir( const String& rUrlName );
|
||||
void AddFontFile( const rtl::OString& rNormalizedName,
|
||||
int nFaceNum, sal_IntPtr nFontId, const ImplDevFontAttributes&,
|
||||
const ExtraKernInfo* );
|
||||
|
|
|
@ -1485,13 +1485,6 @@ WinBits ImplDockingWindowWrapper::GetFloatStyle() const
|
|||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
void ImplDockingWindowWrapper::SetTabStop()
|
||||
{
|
||||
GetWindow()->SetStyle( GetWindow()->GetStyle() | (WB_GROUP | WB_TABSTOP) );
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
void ImplDockingWindowWrapper::SetPosSizePixel( long nX, long nY,
|
||||
long nWidth, long nHeight,
|
||||
sal_uInt16 nFlags )
|
||||
|
|
|
@ -1455,20 +1455,6 @@ void PPDParser::getDefaultResolution( int& rXRes, int& rYRes ) const
|
|||
rYRes = 300;
|
||||
}
|
||||
|
||||
void PPDParser::getFontAttributes(
|
||||
int nFont,
|
||||
String& rEncoding,
|
||||
String& rCharset ) const
|
||||
{
|
||||
if( m_pFontList && nFont >= 0 && nFont < m_pFontList->countValues() )
|
||||
{
|
||||
String aAttribs =
|
||||
WhitespaceToSpace( m_pFontList->getValue( nFont )->m_aValue );
|
||||
rEncoding = GetCommandLineToken( 0, aAttribs );
|
||||
rCharset = GetCommandLineToken( 2, aAttribs );
|
||||
}
|
||||
}
|
||||
|
||||
String PPDParser::getFont( int nFont ) const
|
||||
{
|
||||
if( ! m_pFontList )
|
||||
|
|
Loading…
Reference in a new issue