callcatcher: various unused methods

This commit is contained in:
Caolán McNamara
2011-10-03 21:40:06 +01:00
parent f1d4ce6ea5
commit 04723baf6e
15 changed files with 0 additions and 338 deletions

View File

@@ -227,10 +227,6 @@ public:
String GetWord( sal_uInt16 nPara, xub_StrLen nIndex );
ESelection GetWord( const ESelection& rSelection, sal_uInt16 nWordType ) const;
ESelection WordLeft( const ESelection& rSelection, sal_uInt16 nWordType ) const;
ESelection WordRight( const ESelection& rSelection, sal_uInt16 nWordType ) const;
ESelection CursorLeft( const ESelection& rSelection, sal_uInt16 nCharacterIteratorMode ) const;
ESelection CursorRight( const ESelection& rSelection, sal_uInt16 nCharacterIteratorMode ) const;
ESelection SelectSentence( const ESelection& rCurSel ) const;
void Clear();

View File

@@ -751,46 +751,6 @@ ESelection EditEngine::GetWord( const ESelection& rSelection, sal_uInt16 nWordTy
return pE->pImpEditEngine->CreateESel( aSel );
}
ESelection EditEngine::WordLeft( const ESelection& rSelection, sal_uInt16 nWordType ) const
{
// ImpEditEngine-Iteration-Methods should be const!
EditEngine* pE = (EditEngine*)this;
EditSelection aSel( pE->pImpEditEngine->CreateSel( rSelection ) );
aSel = pE->pImpEditEngine->WordLeft( aSel.Min(), nWordType );
return pE->pImpEditEngine->CreateESel( aSel );
}
ESelection EditEngine::WordRight( const ESelection& rSelection, sal_uInt16 nWordType ) const
{
// ImpEditEngine-Iteration-Methods should be const!
EditEngine* pE = (EditEngine*)this;
EditSelection aSel( pE->pImpEditEngine->CreateSel( rSelection ) );
aSel = pE->pImpEditEngine->WordRight( aSel.Max(), nWordType );
return pE->pImpEditEngine->CreateESel( aSel );
}
ESelection EditEngine::CursorLeft( const ESelection& rSelection, sal_uInt16 nCharacterIteratorMode ) const
{
// ImpEditEngine-Iteration-Methods should be const!
EditEngine* pE = (EditEngine*)this;
EditSelection aSel( pE->pImpEditEngine->CreateSel( rSelection ) );
aSel = pE->pImpEditEngine->CursorLeft( aSel.Min(), nCharacterIteratorMode );
return pE->pImpEditEngine->CreateESel( aSel );
}
ESelection EditEngine::CursorRight( const ESelection& rSelection, sal_uInt16 nCharacterIteratorMode ) const
{
// ImpEditEngine-Iteration-Methods should be const!
EditEngine* pE = (EditEngine*)this;
EditSelection aSel( pE->pImpEditEngine->CreateSel( rSelection ) );
aSel = pE->pImpEditEngine->CursorRight( aSel.Max(), nCharacterIteratorMode );
return pE->pImpEditEngine->CreateESel( aSel );
}
ESelection EditEngine::SelectSentence( const ESelection& rCurSel ) const
{
EditEngine* pE = (EditEngine*)this;

View File

@@ -118,142 +118,6 @@ sal_Bool LinguOptions::SetLocale_Impl( sal_Int16 &rLanguage, Any &rOld, const An
return bRes;
}
sal_Bool LinguOptions::SetValue( Any &rOld, const Any &rVal, sal_Int32 nWID )
{
MutexGuard aGuard( GetLinguMutex() );
sal_Bool bRes = sal_False;
sal_Int16 *pnVal = 0;
sal_Bool *pbVal = 0;
switch( nWID )
{
case WID_IS_GERMAN_PRE_REFORM : /*! deprecated !*/ break;
case WID_IS_USE_DICTIONARY_LIST : pbVal = &pData->bIsUseDictionaryList; break;
case WID_IS_IGNORE_CONTROL_CHARACTERS : pbVal = &pData->bIsIgnoreControlCharacters; break;
case WID_IS_HYPH_AUTO : pbVal = &pData->bIsHyphAuto; break;
case WID_IS_HYPH_SPECIAL : pbVal = &pData->bIsHyphSpecial; break;
case WID_IS_SPELL_AUTO : pbVal = &pData->bIsSpellAuto; break;
case WID_IS_SPELL_HIDE : /*! deprecated !*/ break;
case WID_IS_SPELL_IN_ALL_LANGUAGES :/*! deprecated !*/ break;
case WID_IS_SPELL_SPECIAL : pbVal = &pData->bIsSpellSpecial; break;
case WID_IS_WRAP_REVERSE : pbVal = &pData->bIsSpellReverse; break;
case WID_DEFAULT_LANGUAGE : pnVal = &pData->nDefaultLanguage; break;
case WID_IS_SPELL_CAPITALIZATION : pbVal = &pData->bIsSpellCapitalization; break;
case WID_IS_SPELL_WITH_DIGITS : pbVal = &pData->bIsSpellWithDigits; break;
case WID_IS_SPELL_UPPER_CASE : pbVal = &pData->bIsSpellUpperCase; break;
case WID_HYPH_MIN_LEADING : pnVal = &pData->nHyphMinLeading; break;
case WID_HYPH_MIN_TRAILING : pnVal = &pData->nHyphMinTrailing; break;
case WID_HYPH_MIN_WORD_LENGTH : pnVal = &pData->nHyphMinWordLength; break;
case WID_DEFAULT_LOCALE :
{
bRes = SetLocale_Impl( pData->nDefaultLanguage, rOld, rVal, ::com::sun::star::i18n::ScriptType::LATIN );
break;
}
case WID_DEFAULT_LOCALE_CJK :
{
bRes = SetLocale_Impl( pData->nDefaultLanguage_CJK, rOld, rVal, ::com::sun::star::i18n::ScriptType::ASIAN );
break;
}
case WID_DEFAULT_LOCALE_CTL :
{
bRes = SetLocale_Impl( pData->nDefaultLanguage_CTL, rOld, rVal, ::com::sun::star::i18n::ScriptType::COMPLEX );
break;
}
default :
{
DBG_ASSERT( 0,"lng : unknown WID");
bRes = sal_False;
}
}
if (pbVal)
{
sal_Bool bNew = sal_False;
rVal >>= bNew;
if (bNew != *pbVal)
{
rOld <<= *pbVal;
*pbVal = bNew;
bRes = sal_True;
}
}
if (pnVal)
{
sal_Int16 nNew = 0;
rVal >>= nNew;
if (nNew != *pnVal)
{
rOld <<= *pnVal;
*pnVal = nNew;
bRes = sal_True;
}
}
return bRes;
}
void LinguOptions::GetValue( Any &rVal, sal_Int32 nWID ) const
{
MutexGuard aGuard( GetLinguMutex() );
sal_Int16 *pnVal = 0;
sal_Bool *pbVal = 0;
sal_Bool bDummy = sal_False;
switch( nWID )
{
case WID_IS_GERMAN_PRE_REFORM : pbVal = &bDummy; /*! deprecated !*/ break;
case WID_IS_USE_DICTIONARY_LIST : pbVal = &pData->bIsUseDictionaryList; break;
case WID_IS_IGNORE_CONTROL_CHARACTERS : pbVal = &pData->bIsIgnoreControlCharacters; break;
case WID_IS_HYPH_AUTO : pbVal = &pData->bIsHyphAuto; break;
case WID_IS_HYPH_SPECIAL : pbVal = &pData->bIsHyphSpecial; break;
case WID_IS_SPELL_AUTO : pbVal = &pData->bIsSpellAuto; break;
case WID_IS_SPELL_HIDE : pbVal = &bDummy; /*! deprecated !*/ break;
case WID_IS_SPELL_IN_ALL_LANGUAGES :pbVal = &bDummy; /*! deprecated !*/ break;
case WID_IS_SPELL_SPECIAL : pbVal = &pData->bIsSpellSpecial; break;
case WID_IS_WRAP_REVERSE : pbVal = &pData->bIsSpellReverse; break;
case WID_DEFAULT_LANGUAGE : pnVal = &pData->nDefaultLanguage; break;
case WID_IS_SPELL_CAPITALIZATION : pbVal = &pData->bIsSpellCapitalization; break;
case WID_IS_SPELL_WITH_DIGITS : pbVal = &pData->bIsSpellWithDigits; break;
case WID_IS_SPELL_UPPER_CASE : pbVal = &pData->bIsSpellUpperCase; break;
case WID_HYPH_MIN_LEADING : pnVal = &pData->nHyphMinLeading; break;
case WID_HYPH_MIN_TRAILING : pnVal = &pData->nHyphMinTrailing; break;
case WID_HYPH_MIN_WORD_LENGTH : pnVal = &pData->nHyphMinWordLength; break;
case WID_DEFAULT_LOCALE :
{
Locale aLocale( MsLangId::convertLanguageToLocale( pData->nDefaultLanguage ) );
rVal.setValue( &aLocale, ::getCppuType((Locale*)0 ));
break;
}
case WID_DEFAULT_LOCALE_CJK :
{
Locale aLocale( MsLangId::convertLanguageToLocale( pData->nDefaultLanguage_CJK ) );
rVal.setValue( &aLocale, ::getCppuType((Locale*)0 ));
break;
}
case WID_DEFAULT_LOCALE_CTL :
{
Locale aLocale( MsLangId::convertLanguageToLocale( pData->nDefaultLanguage_CTL ) );
rVal.setValue( &aLocale, ::getCppuType((Locale*)0 ));
break;
}
default :
{
DBG_ASSERT( 0,"lng : unknown WID");
}
}
if (pbVal)
rVal <<= *pbVal;
if (pnVal)
rVal <<= *pnVal;
}
struct WID_Name
{
sal_Int32 nWID;

View File

@@ -79,10 +79,6 @@ public:
LinguOptions(const LinguOptions &rOpt);
~LinguOptions();
sal_Bool SetValue( ::com::sun::star::uno::Any &rOld,
const ::com::sun::star::uno::Any &rVal, sal_Int32 nWID );
void GetValue( ::com::sun::star::uno::Any &rVal, sal_Int32 nWID ) const;
static ::rtl::OUString GetName( sal_Int32 nWID );
const ::com::sun::star::uno::Sequence< rtl::OUString >

View File

@@ -266,10 +266,6 @@ public:
/// Symbols and language identical
bool operator==( const NfCurrencyEntry& r ) const;
/// Set this format to be the EURo entry, overwrite other settings
void SetEuro();
bool IsEuro() const;
/** Apply format information (nPositiveFormat,
nNegativeFormat, nDigits, cZeroChar) of another format. */
void ApplyVariableInformation( const NfCurrencyEntry& );

View File

@@ -3823,28 +3823,6 @@ bool NfCurrencyEntry::operator==( const NfCurrencyEntry& r ) const
;
}
void NfCurrencyEntry::SetEuro()
{
aSymbol = NfCurrencyEntry::GetEuroSymbol();
aBankSymbol.AssignAscii( RTL_CONSTASCII_STRINGPARAM( "EUR" ) );
eLanguage = LANGUAGE_DONTKNOW;
nPositiveFormat = 3;
nNegativeFormat = 8;
nDigits = 2;
cZeroChar = '0';
}
bool NfCurrencyEntry::IsEuro() const
{
if ( aBankSymbol.EqualsAscii( "EUR" ) )
return true;
String aEuro( NfCurrencyEntry::GetEuroSymbol() );
return aSymbol == aEuro;
}
void NfCurrencyEntry::ApplyVariableInformation( const NfCurrencyEntry& r )
{
nPositiveFormat = r.nPositiveFormat;

View File

@@ -37,7 +37,6 @@
class TaskBar;
class TaskStatusFieldItem;
class ImplTaskBarFloat;
struct ImplTaskSBFldItem;
struct ImplTaskItem;
@@ -335,7 +334,6 @@ public:
class SVT_DLLPUBLIC TaskBar : public Window
{
private:
ImplTaskBarFloat* mpAutoHideBar;
TaskButtonBar* mpButtonBar;
TaskToolBox* mpTaskToolBox;
TaskStatusBar* mpStatusBar;

View File

@@ -36,27 +36,6 @@
#include <svtools/taskbar.hxx>
// =======================================================================
class ImplTaskBarFloat : public FloatingWindow
{
public:
TaskBar* mpTaskBar;
public:
ImplTaskBarFloat( TaskBar* pTaskBar );
};
// -----------------------------------------------------------------------
ImplTaskBarFloat::ImplTaskBarFloat( TaskBar* pTaskBar ) :
FloatingWindow( pTaskBar, 0 )
{
mpTaskBar = pTaskBar;
}
// =======================================================================
#define TASKBAR_BORDER 2
#define TASKBAR_OFFSIZE 3
#define TASKBAR_OFFX 2

View File

@@ -224,7 +224,6 @@ public:
INetURLObject GetURL() const;
String GetFilterName() const;
Graphic GetGraphic() const;
sal_Bool GetVCDrawModel( FmFormModel& rModel ) const;
sal_Bool IsLinkage() const;
static bool FillThemeList( std::vector<String>& rThemeList );
@@ -255,7 +254,6 @@ public:
sal_Bool bProgess = sal_False );
static sal_Bool InsertGraphicObj( const String& rThemeName, const Graphic& rGraphic );
static sal_Bool InsertGraphicObj( sal_uIntPtr nThemeId, const Graphic& rGraphic );
static sal_uIntPtr GetSdrObjCount( const String& rThemeName );
static sal_uIntPtr GetSdrObjCount( sal_uIntPtr nThemeId );
@@ -266,7 +264,6 @@ public:
SdrModel* pModel = NULL, Bitmap* pThumb = NULL );
static sal_Bool InsertSdrObj( const String& rThemeName, FmFormModel& rModel );
static sal_Bool InsertSdrObj( sal_uIntPtr nThemeId, FmFormModel& rModel );
static sal_Bool BeginLocking( const String& rThemeName );
static sal_Bool BeginLocking( sal_uIntPtr nThemeId );

View File

@@ -95,13 +95,6 @@ Graphic GalleryExplorer::GetGraphic() const
// ------------------------------------------------------------------------
sal_Bool GalleryExplorer::GetVCDrawModel( FmFormModel& rModel ) const
{
return GALLERYBROWSER()->GetVCDrawModel( rModel );
}
// ------------------------------------------------------------------------
sal_Bool GalleryExplorer::IsLinkage() const
{
return GALLERYBROWSER()->IsLinkage();
@@ -329,14 +322,6 @@ sal_Bool GalleryExplorer::InsertGraphicObj( const String& rThemeName, const Grap
// ------------------------------------------------------------------------
sal_Bool GalleryExplorer::InsertGraphicObj( sal_uIntPtr nThemeId, const Graphic& rGraphic )
{
Gallery* pGal = ImplGetGallery();
return( pGal ? InsertGraphicObj( pGal->GetThemeName( nThemeId ), rGraphic ) : sal_False );
}
// ------------------------------------------------------------------------
sal_uIntPtr GalleryExplorer::GetSdrObjCount( const String& rThemeName )
{
Gallery* pGal = ImplGetGallery();
@@ -436,14 +421,6 @@ sal_Bool GalleryExplorer::InsertSdrObj( const String& rThemeName, FmFormModel& r
return bRet;
}
// ------------------------------------------------------------------------
sal_Bool GalleryExplorer::InsertSdrObj( sal_uIntPtr nThemeId, FmFormModel& rModel )
{
Gallery* pGal = ImplGetGallery();
return( pGal ? InsertSdrObj( pGal->GetThemeName( nThemeId ), rModel ) : sal_False );
}
// -----------------------------------------------------------------------------
sal_Bool GalleryExplorer::BeginLocking( const String& rThemeName )

View File

@@ -46,7 +46,6 @@ public:
Fraction() { nNumerator = 0; nDenominator = 1; }
Fraction( const Fraction & rFrac );
Fraction( long nNum, long nDen=1 );
Fraction( long nN1, long nN2, long nD1, long nD2 );
Fraction( double dVal );
bool IsValid() const;

View File

@@ -128,51 +128,6 @@ static void Reduce( BigInt &rVal1, BigInt &rVal2 )
|*
*************************************************************************/
Fraction::Fraction( long nN1, long nN2, long nD1, long nD2 )
{
long n;
int i = 1;
if( nN1 < 0 ) { i = -i; nN1 = -nN1; }
if( nN2 < 0 ) { i = -i; nN2 = -nN2; }
if( nD1 < 0 ) { i = -i; nD1 = -nD1; }
if( nD2 < 0 ) { i = -i; nD2 = -nD2; }
n = GetGGT( nN1, nD1 ); if( n > 1 ) { nN1 /= n; nD1 /= n; }
n = GetGGT( nN1, nD2 ); if( n > 1 ) { nN1 /= n; nD2 /= n; }
n = GetGGT( nN2, nD1 ); if( n > 1 ) { nN2 /= n; nD1 /= n; }
n = GetGGT( nN2, nD2 ); if( n > 1 ) { nN2 /= n; nD2 /= n; }
BigInt nN( nN1 );
nN *= BigInt( nN2 );
BigInt nD( nD1 );
nD *= BigInt( nD2 );
while ( nN.bIsBig || nD.bIsBig )
{
BigInt n1 = 1;
BigInt n2 = 2;
nN += n1;
nN /= n2;
nD += n1;
nD /= n2;
// Kuerzen ueber Groesste Gemeinsame Teiler
Reduce( nN, nD );
}
nNumerator = i * (long)nN;
nDenominator = (long)nD;
}
/*************************************************************************
|*
|* Fraction::Fraction()
|*
*************************************************************************/
// Zur Initialisierung eines Bruches wird nNum dem Zaehler und nDen dem
// Nenner zugewiesen. Da negative Werte des Nenners einen Bruch als
// ungueltig kennzeichnen, wird bei der Eingabe eines negativen Nenners

View File

@@ -111,8 +111,6 @@ EECharAttribArray::Insert(EECharAttribArray const*, unsigned short, unsigned sho
EECharAttribArray::Replace(EECharAttrib const&, unsigned short)
EECharAttribArray::Replace(EECharAttrib const*, unsigned short, unsigned short)
EECharAttribArray::_ForEach(unsigned short, unsigned short, unsigned char (*)(EECharAttrib const&, void*), void*)
EditEngine::CursorLeft(ESelection const&, unsigned short) const
EditEngine::CursorRight(ESelection const&, unsigned short) const
EditEngine::EnablePasteSpecial(unsigned char)
EditEngine::EndSpelling()
EditEngine::GetAsianCompressionMode() const
@@ -138,8 +136,6 @@ EditEngine::SetBigTextObjectStart(unsigned short)
EditEngine::SetGroupChars(String const&)
EditEngine::SetText(unsigned short, EditTextObject const&)
EditEngine::StopSelectionMode()
EditEngine::WordLeft(ESelection const&, unsigned short) const
EditEngine::WordRight(ESelection const&, unsigned short) const
EditView::Drop(DropEvent const&)
EditView::GetDropPos()
EditView::GetSelectionMode() const
@@ -178,7 +174,6 @@ FontStyleMenu::Fill(String const&, FontList const*)
FontStyleMenu::FontStyleMenu()
FormattedField::SetValidateText(String const&, String const*)
FormatterBase::SetFieldText(String const&, unsigned char)
Fraction::Fraction(long, long, long, long)
GDIMetaFile::CopyAction(unsigned long) const
GDIMetaFile::GetActionPos(String const&)
GDIMetaFile::GetLabel(unsigned long)
@@ -194,9 +189,6 @@ GDIMetaFile::WindEnd()
GDIMetaFile::WindNext()
GalleryExplorer::DrawCentered(OutputDevice*, FmFormModel const&)
GalleryExplorer::GetObjCount(unsigned long)
GalleryExplorer::GetVCDrawModel(FmFormModel&) const
GalleryExplorer::InsertGraphicObj(unsigned long, Graphic const&)
GalleryExplorer::InsertSdrObj(unsigned long, FmFormModel&)
GraphCtrl::GraphCtrl(Window*, long)
Graphic::Draw(OutputDevice*, String const&, Font&, Bitmap const&, Point const&, Size const&)
Graphic::GetGraphicsCompressMode(SvStream&)
@@ -237,7 +229,6 @@ ImplImageList::GetImageCount() const
ImplListBox::GetEntryFlags(unsigned short) const
ImplRegionBand::IsInside(long, long)
ImplRegionBand::IsOver(long, long)
ImplTaskBarFloat::ImplTaskBarFloat(TaskBar*)
ImplWin::GetModeImage() const
ImplWin::SetModeImage(Image const&)
IniParser::Dump()
@@ -261,8 +252,6 @@ LineListBox::GetEntryDistance(unsigned short) const
LineListBox::GetEntryLine1(unsigned short) const
LineListBox::GetEntryLine2(unsigned short) const
LinguMgr::UpdateAll()
LinguOptions::GetValue(com::sun::star::uno::Any&, int) const
LinguOptions::SetValue(com::sun::star::uno::Any&, com::sun::star::uno::Any const&, int)
LinkStructArr::DeleteAndDestroy(unsigned short, unsigned short)
LngSvcMgr::RemoveLngSvcEvtBroadcaster(com::sun::star::uno::Reference<com::sun::star::linguistic2::XLinguServiceEventBroadcaster> const&)
LocaleDataWrapper::getCollatorImplementations() const
@@ -292,10 +281,8 @@ Matrix3d::Inverse() const
Matrix3d::Matrix3d()
MergeData::~MergeData()
MergeDataFile::Dump()
MessBox::GetModeImage() const
MessBox::MessBox(unsigned short)
MessBox::SetDefaultCheckBoxText()
MessBox::SetModeImage(Image const&)
MetaCommentAction::MetaCommentAction(unsigned char const*, unsigned int)
MetricBox::RemoveValue(long, FieldUnit)
MetricField::ConvertValue(long, unsigned short, FieldUnit, MapUnit)
@@ -313,9 +300,7 @@ MultiSelection::PrevSelected()
NameNode::IsOrderTree() const
NativeNumberWrapper::isValidNatNum(com::sun::star::lang::Locale const&, short) const
NfCurrencyEntry::ApplyVariableInformation(NfCurrencyEntry const&)
NfCurrencyEntry::IsEuro() const
NfCurrencyEntry::NfCurrencyEntry()
NfCurrencyEntry::SetEuro()
NfShCurrencyEntries::DeleteAndDestroy(unsigned short, unsigned short)
NotificationSettings::CopyData()
NotifyBrokenPackage::isAborted()

View File

@@ -100,9 +100,6 @@ public:
void SetImage( const Image& rImage ) { maImage = rImage; }
const Image& GetImage() const { return maImage; }
sal_Bool SetModeImage( const Image& rImage );
const Image& GetModeImage( ) const;
void SetDefaultCheckBoxText();
void SetCheckBoxText( const XubString& rText ) { maCheckBoxText = rText;}
const XubString& GetCheckBoxText() const { return maCheckBoxText;}

View File

@@ -459,21 +459,6 @@ void MessBox::SetDefaultCheckBoxText()
// -----------------------------------------------------------------------
sal_Bool MessBox::SetModeImage( const Image& rImage )
{
SetImage( rImage );
return sal_True;
}
// -----------------------------------------------------------------------
const Image& MessBox::GetModeImage( ) const
{
return maImage;
}
// -----------------------------------------------------------------------
Size MessBox::GetOptimalSize(WindowSizeType eType) const
{
switch( eType ) {