summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-28 09:02:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-28 09:02:37 +0100
commitb74f17642d0bcd94b938241ba8a6ce3ee09af757 (patch)
treea7b7346524d82be536f0bcf72756169f74b710d2
parenta2c7a85db679aa537524a772ce7989980398fe34 (diff)
callcatcher: ditch various unused methods
-rw-r--r--svtools/source/contnr/svimpbox.cxx23
-rw-r--r--svtools/source/inc/svimpbox.hxx4
-rw-r--r--tools/inc/tools/fsys.hxx1
-rw-r--r--tools/source/fsys/tdir.cxx12
-rw-r--r--vcl/inc/vcl/dockwin.hxx1
-rw-r--r--vcl/inc/vcl/ppdparser.hxx3
-rw-r--r--vcl/source/glyphs/gcach_ftyp.cxx82
-rw-r--r--vcl/source/glyphs/gcach_ftyp.hxx1
-rw-r--r--vcl/source/window/dockmgr.cxx7
-rw-r--r--vcl/unx/generic/printer/ppdparser.cxx14
10 files changed, 0 insertions, 148 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx
index e0e9efca6f59..cf533304b8b5 100644
--- a/svtools/source/contnr/svimpbox.cxx
+++ b/svtools/source/contnr/svimpbox.cxx
@@ -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()
{
diff --git a/svtools/source/inc/svimpbox.hxx b/svtools/source/inc/svimpbox.hxx
index d38046a6f47c..44685901ffbf 100644
--- a/svtools/source/inc/svimpbox.hxx
+++ b/svtools/source/inc/svimpbox.hxx
@@ -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 */
diff --git a/tools/inc/tools/fsys.hxx b/tools/inc/tools/fsys.hxx
index faa454d451cc..5f34c2de413c 100644
--- a/tools/inc/tools/fsys.hxx
+++ b/tools/inc/tools/fsys.hxx
@@ -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;
diff --git a/tools/source/fsys/tdir.cxx b/tools/source/fsys/tdir.cxx
index d500a3896de7..e1057787a3d5 100644
--- a/tools/source/fsys/tdir.cxx
+++ b/tools/source/fsys/tdir.cxx
@@ -268,18 +268,6 @@ void Dir::Construct( DirEntryKind nKindFlags )
/*************************************************************************
|*
-|* Dir::Update()
-|*
-*************************************************************************/
-
-sal_Bool Dir::Update()
-{
- Reset();
- return Scan( USHRT_MAX ) > 0;
-}
-
-/*************************************************************************
-|*
|* Dir::Reset()
|*
*************************************************************************/
diff --git a/vcl/inc/vcl/dockwin.hxx b/vcl/inc/vcl/dockwin.hxx
index 9d0edbccb778..beeac2e51b59 100644
--- a/vcl/inc/vcl/dockwin.hxx
+++ b/vcl/inc/vcl/dockwin.hxx
@@ -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,
diff --git a/vcl/inc/vcl/ppdparser.hxx b/vcl/inc/vcl/ppdparser.hxx
index 34dcb60e49d2..0437c5b3afc0 100644
--- a/vcl/inc/vcl/ppdparser.hxx
+++ b/vcl/inc/vcl/ppdparser.hxx
@@ -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;
diff --git a/vcl/source/glyphs/gcach_ftyp.cxx b/vcl/source/glyphs/gcach_ftyp.cxx
index 79bcb608fb5f..c38bc3701e61 100644
--- a/vcl/source/glyphs/gcach_ftyp.cxx
+++ b/vcl/source/glyphs/gcach_ftyp.cxx
@@ -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 )
diff --git a/vcl/source/glyphs/gcach_ftyp.hxx b/vcl/source/glyphs/gcach_ftyp.hxx
index 9cbe49cd495e..95e6a3a0b526 100644
--- a/vcl/source/glyphs/gcach_ftyp.hxx
+++ b/vcl/source/glyphs/gcach_ftyp.hxx
@@ -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* );
diff --git a/vcl/source/window/dockmgr.cxx b/vcl/source/window/dockmgr.cxx
index 6186514d2b88..576c94a800ef 100644
--- a/vcl/source/window/dockmgr.cxx
+++ b/vcl/source/window/dockmgr.cxx
@@ -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 )
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index f0e97e820c05..74a335847e59 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -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 )