summaryrefslogtreecommitdiffstats
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-04 11:51:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-04 12:49:27 +0100
commitb243afd8755c2a470c6aa0607f5773bedd026937 (patch)
treedd84b6b5da4b8aa7fa8c4e5513112454a7ba6acd /svtools
parentconvert thesaurus dialog to .ui format (diff)
downloadcore-b243afd8755c2a470c6aa0607f5773bedd026937.tar.gz
core-b243afd8755c2a470c6aa0607f5773bedd026937.zip
callcatcher: update unused code list
and remove code freshly unused post widget layout introduction Change-Id: Ifa244391f7f2b565dec10314ca3fd2958dfd87a9
Diffstat (limited to 'svtools')
-rw-r--r--svtools/inc/svtools/ctrltool.hxx8
-rw-r--r--svtools/source/control/ctrltool.cxx77
2 files changed, 0 insertions, 85 deletions
diff --git a/svtools/inc/svtools/ctrltool.hxx b/svtools/inc/svtools/ctrltool.hxx
index 4fa406616330..f7c4cc59abab 100644
--- a/svtools/inc/svtools/ctrltool.hxx
+++ b/svtools/inc/svtools/ctrltool.hxx
@@ -92,13 +92,6 @@ Name generiert, der dem Anwender praesentiert werden kann.
--------------------------------------------------------------------------
-XubString FontList::GetFontMapText( const FontInfo& rInfo ) const;
-
-Diese Methode gibt einen Matchstring zurueck, der dem Anwender
-anzeigen soll, welche Probleme es mit diesem Font geben kann.
-
---------------------------------------------------------------------------
-
FontInfo FontList::Get( const String& rName, const String& rStyleName ) const;
Diese Methode sucht aus dem uebergebenen Namen und dem uebergebenen StyleName
@@ -189,7 +182,6 @@ public:
OutputDevice* GetDevice() const { return mpDev; }
OutputDevice* GetDevice2() const { return mpDev2; }
- XubString GetFontMapText( const FontInfo& rInfo ) const;
const XubString& GetNormalStr() const { return maNormal; }
const XubString& GetItalicStr() const { return maNormalItalic; }
diff --git a/svtools/source/control/ctrltool.cxx b/svtools/source/control/ctrltool.cxx
index 3c8ff6c00862..25b68786465d 100644
--- a/svtools/source/control/ctrltool.cxx
+++ b/svtools/source/control/ctrltool.cxx
@@ -519,83 +519,6 @@ XubString FontList::GetStyleName( const FontInfo& rInfo ) const
return aStyleName;
}
-// -----------------------------------------------------------------------
-
-XubString FontList::GetFontMapText( const FontInfo& rInfo ) const
-{
- if ( !rInfo.GetName().Len() )
- {
- XubString aEmptryStr;
- return aEmptryStr;
- }
-
- // Search Fontname
- ImplFontListNameInfo* pData = ImplFindByName( rInfo.GetName() );
- if ( !pData )
- {
- if ( !maMapNotAvailable.Len() )
- ((FontList*)this)->maMapNotAvailable = SVT_RESSTR(STR_SVT_FONTMAP_NOTAVAILABLE);
- return maMapNotAvailable;
- }
-
- // search for synthetic style
- sal_uInt16 nType = pData->mnType;
- const XubString& rStyleName = rInfo.GetStyleName();
- if ( rStyleName.Len() )
- {
- sal_Bool bNotSynthetic = sal_False;
- sal_Bool bNoneAvailable = sal_False;
- FontWeight eWeight = rInfo.GetWeight();
- FontItalic eItalic = rInfo.GetItalic();
- ImplFontListFontInfo* pFontInfo = pData->mpFirst;
- while ( pFontInfo )
- {
- if ( (eWeight == pFontInfo->GetWeight()) &&
- (eItalic == pFontInfo->GetItalic()) )
- {
- bNotSynthetic = sal_True;
- break;
- }
-
- pFontInfo = pFontInfo->mpNext;
- }
-
- if ( bNoneAvailable )
- {
- XubString aEmptryStr;
- return aEmptryStr;
- }
- else if ( !bNotSynthetic )
- {
- if ( !maMapStyleNotAvailable.Len() )
- ((FontList*)this)->maMapStyleNotAvailable = SVT_RESSTR(STR_SVT_FONTMAP_STYLENOTAVAILABLE);
- return maMapStyleNotAvailable;
- }
- }
-
- // Only Printer-Font?
- if ( (nType & (FONTLIST_FONTNAMETYPE_PRINTER | FONTLIST_FONTNAMETYPE_SCREEN)) == FONTLIST_FONTNAMETYPE_PRINTER )
- {
- if ( !maMapPrinterOnly.Len() )
- ((FontList*)this)->maMapPrinterOnly = SVT_RESSTR(STR_SVT_FONTMAP_PRINTERONLY);
- return maMapPrinterOnly;
- }
- // Only Screen-Font?
- else if ( (nType & (FONTLIST_FONTNAMETYPE_PRINTER | FONTLIST_FONTNAMETYPE_SCREEN)) == FONTLIST_FONTNAMETYPE_SCREEN
- && rInfo.GetType() == TYPE_RASTER )
- {
- if ( !maMapScreenOnly.Len() )
- ((FontList*)this)->maMapScreenOnly = SVT_RESSTR(STR_SVT_FONTMAP_SCREENONLY);
- return maMapScreenOnly;
- }
- else
- {
- if ( !maMapBoth.Len() )
- ((FontList*)this)->maMapBoth = SVT_RESSTR(STR_SVT_FONTMAP_BOTH);
- return maMapBoth;
- }
-}
-
namespace
{
FontInfo makeMissing(ImplFontListFontInfo* pFontNameInfo, const rtl::OUString &rName,