callcatcher: unused code

Change-Id: I7dcaa6f57815321e108cd7ce284fe145dc0506f2
This commit is contained in:
Caolán McNamara 2013-03-04 09:22:56 +00:00
parent bef4b0dd6e
commit ecda52f6b3
19 changed files with 0 additions and 140 deletions

View File

@ -69,14 +69,6 @@ ScCsvControl::ScCsvControl( ScCsvControl& rParent ) :
{ {
} }
ScCsvControl::ScCsvControl( Window* pParent, const ScCsvLayoutData& rData, const ResId& rResId ) :
Control( pParent, rResId ),
mrData( rData ),
mpAccessible( NULL ),
mbValidGfx( false )
{
}
ScCsvControl::ScCsvControl( Window* pParent, const ScCsvLayoutData& rData, WinBits nBits ) : ScCsvControl::ScCsvControl( Window* pParent, const ScCsvLayoutData& rData, WinBits nBits ) :
Control( pParent, nBits ), Control( pParent, nBits ),
mrData( rData ), mrData( rData ),

View File

@ -267,7 +267,6 @@ private:
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
public: public:
explicit ScCsvControl( ScCsvControl& rParent ); explicit ScCsvControl( ScCsvControl& rParent );
explicit ScCsvControl( Window* pParent, const ScCsvLayoutData& rData, const ResId& rResId );
explicit ScCsvControl( Window* pParent, const ScCsvLayoutData& rData, WinBits nBits ); explicit ScCsvControl( Window* pParent, const ScCsvLayoutData& rData, WinBits nBits );
virtual ~ScCsvControl(); virtual ~ScCsvControl();

View File

@ -252,7 +252,6 @@ private:
protected: protected:
SfxTabPage( Window *pParent, const ResId &, const SfxItemSet &rAttrSet ); SfxTabPage( Window *pParent, const ResId &, const SfxItemSet &rAttrSet );
SfxTabPage(Window *pParent, const rtl::OString& rID, const rtl::OUString& rUIXMLDescription, const SfxItemSet &rAttrSet); SfxTabPage(Window *pParent, const rtl::OString& rID, const rtl::OUString& rUIXMLDescription, const SfxItemSet &rAttrSet);
SfxTabPage( Window *pParent, WinBits nStyle, const SfxItemSet &rAttrSet );
sal_uInt16 GetSlot( sal_uInt16 nWhich ) const sal_uInt16 GetSlot( sal_uInt16 nWhich ) const
{ return pSet->GetPool()->GetSlotId( nWhich ); } { return pSet->GetPool()->GetSlotId( nWhich ); }

View File

@ -238,15 +238,6 @@ SfxTabPage::SfxTabPage(Window *pParent, const rtl::OString& rID, const rtl::OUSt
{ {
} }
// -----------------------------------------------------------------------
SfxTabPage:: SfxTabPage( Window *pParent, WinBits nStyle, const SfxItemSet &rAttrSet ) :
TabPage(pParent, nStyle),
pSet ( &rAttrSet ),
bHasExchangeSupport ( sal_False ),
pTabDlg ( NULL ),
pImpl ( new TabPageImpl )
{
}
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
SfxTabPage::~SfxTabPage() SfxTabPage::~SfxTabPage()

View File

@ -435,7 +435,6 @@ protected:
public: public:
FontNameBox( Window* pParent, FontNameBox( Window* pParent,
WinBits nWinStyle = WB_SORT ); WinBits nWinStyle = WB_SORT );
FontNameBox( Window* pParent, const ResId& rResId );
virtual ~FontNameBox(); virtual ~FontNameBox();
virtual void UserDraw( const UserDrawEvent& rUDEvt ); virtual void UserDraw( const UserDrawEvent& rUDEvt );

View File

@ -1048,16 +1048,6 @@ FontNameBox::FontNameBox( Window* pParent, WinBits nWinStyle ) :
InitFontMRUEntriesFile(); InitFontMRUEntriesFile();
} }
// -------------------------------------------------------------------
FontNameBox::FontNameBox( Window* pParent, const ResId& rResId ) :
ComboBox( pParent, rResId )
{
mpFontList = NULL;
mbWYSIWYG = sal_False;
InitFontMRUEntriesFile();
}
extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeFontNameBox(Window *pParent, VclBuilder::stringmap &rMap) extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeFontNameBox(Window *pParent, VclBuilder::stringmap &rMap)
{ {
bool bDropdown = extractDropdown(rMap); bool bDropdown = extractDropdown(rMap);

View File

@ -106,7 +106,6 @@ class UNOTOOLS_DLLPUBLIC SAL_WARN_UNUSED SvtModuleOptions : public utl::detail::
sal_Bool IsModuleInstalled ( EModule eModule ) const; sal_Bool IsModuleInstalled ( EModule eModule ) const;
::rtl::OUString GetModuleName ( EModule eModule ) const; ::rtl::OUString GetModuleName ( EModule eModule ) const;
::rtl::OUString GetFactoryName ( EFactory eFactory ) const; ::rtl::OUString GetFactoryName ( EFactory eFactory ) const;
::rtl::OUString GetFactoryShortName ( EFactory eFactory ) const;
::rtl::OUString GetFactoryStandardTemplate( EFactory eFactory ) const; ::rtl::OUString GetFactoryStandardTemplate( EFactory eFactory ) const;
::rtl::OUString GetFactoryEmptyDocumentURL( EFactory eFactory ) const; ::rtl::OUString GetFactoryEmptyDocumentURL( EFactory eFactory ) const;
::rtl::OUString GetFactoryDefaultFilter ( EFactory eFactory ) const; ::rtl::OUString GetFactoryDefaultFilter ( EFactory eFactory ) const;

View File

@ -1048,13 +1048,6 @@ sal_Bool SvtModuleOptions::IsModuleInstalled( EModule eModule ) const
return m_pDataContainer->GetFactoryName( eFactory ); return m_pDataContainer->GetFactoryName( eFactory );
} }
//*****************************************************************************************************************
::rtl::OUString SvtModuleOptions::GetFactoryShortName( EFactory eFactory ) const
{
::osl::MutexGuard aGuard( impl_GetOwnStaticMutex() );
return m_pDataContainer->GetFactoryShortName( eFactory );
}
//***************************************************************************************************************** //*****************************************************************************************************************
::rtl::OUString SvtModuleOptions::GetFactoryStandardTemplate( EFactory eFactory ) const ::rtl::OUString SvtModuleOptions::GetFactoryStandardTemplate( EFactory eFactory ) const
{ {

View File

@ -149,7 +149,6 @@ public:
Edit( Window* pParent, WinBits nStyle = WB_BORDER ); Edit( Window* pParent, WinBits nStyle = WB_BORDER );
Edit( Window* pParent, const ResId& rResId ); Edit( Window* pParent, const ResId& rResId );
Edit( Window* pParent, const ResId& rResId, bool bDisableAccessibleLabeledByRelation );
virtual ~Edit(); virtual ~Edit();
virtual void MouseButtonDown( const MouseEvent& rMEvt ); virtual void MouseButtonDown( const MouseEvent& rMEvt );

View File

@ -61,7 +61,6 @@ protected:
public: public:
FixedText( Window* pParent, WinBits nStyle = 0 ); FixedText( Window* pParent, WinBits nStyle = 0 );
FixedText( Window* pParent, const ResId& rResId ); FixedText( Window* pParent, const ResId& rResId );
FixedText( Window* pParent, const ResId& rResId, bool bDisableAccessibleLabelForRelation );
~FixedText(); ~FixedText();
virtual void Paint( const Rectangle& rRect ); virtual void Paint( const Rectangle& rRect );

View File

@ -261,7 +261,6 @@ public:
static void SetAppName( const String& rUniqueName ); static void SetAppName( const String& rUniqueName );
static String GetAppName(); static String GetAppName();
static bool LoadBrandBitmap (const char* pName, BitmapEx &rBitmap); static bool LoadBrandBitmap (const char* pName, BitmapEx &rBitmap);
static bool LoadBrandSVG( const char *pName, BitmapEx &rBitmap );
// default name of the application for message dialogs and printing // default name of the application for message dialogs and printing
static void SetDisplayName( const OUString& rDisplayName ); static void SetDisplayName( const OUString& rDisplayName );

View File

@ -391,8 +391,6 @@ public:
mbIsInTaskPaneList:1, mbIsInTaskPaneList:1,
mbToolbarFloatingWindow:1, mbToolbarFloatingWindow:1,
mbCallHandlersDuringInputDisabled:1, mbCallHandlersDuringInputDisabled:1,
mbDisableAccessibleLabelForRelation:1,
mbDisableAccessibleLabeledByRelation:1,
mbHelpTextDynamic:1, mbHelpTextDynamic:1,
mbFakeFocusSet:1, mbFakeFocusSet:1,
mbHexpand:1, mbHexpand:1,

View File

@ -45,19 +45,6 @@ namespace {
loadPng( rBaseDir + "/program/edition" + rName, rBitmap) || loadPng( rBaseDir + "/program/edition" + rName, rBitmap) ||
loadPng( rBaseDir + "/program" + rName, rBitmap); loadPng( rBaseDir + "/program" + rName, rBitmap);
} }
static bool loadSvg( const OUString & rPath, BitmapEx &rBitmap)
{
INetURLObject aObj( rPath );
SvgData aSvgData(aObj.PathToFileName());
rBitmap = aSvgData.getReplacement();
return !rBitmap.IsEmpty();
}
static bool tryLoadSvg( const OUString& rBaseDir, const OUString& rName, BitmapEx& rBitmap )
{
return
loadSvg( rBaseDir + "/program/edition" + rName, rBitmap) ||
loadSvg( rBaseDir + "/program" + rName, rBitmap);
}
} }
bool Application::LoadBrandBitmap (const char* pName, BitmapEx &rBitmap) bool Application::LoadBrandBitmap (const char* pName, BitmapEx &rBitmap)
@ -86,28 +73,4 @@ bool Application::LoadBrandBitmap (const char* pName, BitmapEx &rBitmap)
return false; return false;
} }
bool Application::LoadBrandSVG (const char *pName, BitmapEx &rBitmap)
{
OUString aBaseDir( "$BRAND_BASE_DIR");
rtl::Bootstrap::expandMacros( aBaseDir );
rtl::OUString aBaseName( "/" + rtl::OUString::createFromAscii( pName ) );
rtl::OUString aSvg( ".svg" );
rtl_Locale *pLoc = NULL;
osl_getProcessLocale (&pLoc);
LanguageTag aLanguageTag( *pLoc);
::std::vector< OUString > aFallbacks( aLanguageTag.getFallbackStrings());
for (size_t i=0; i < aFallbacks.size(); ++i)
{
if (tryLoadSvg( aBaseDir, aBaseName + "-" + aFallbacks[i] + aSvg, rBitmap))
return true;
}
if (tryLoadSvg( aBaseDir, aBaseName + aSvg, rBitmap))
return true;
return false;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -1647,13 +1647,6 @@ void Application::SetFilterHdl( const Link& rLink )
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
const Link& Application::GetFilterHdl()
{
return ImplGetSVData()->maGDIData.mpGrfConverter->GetFilterHdl();
}
// -----------------------------------------------------------------------
sal_Bool ImplCallHotKey( const KeyCode& rKeyCode ) sal_Bool ImplCallHotKey( const KeyCode& rKeyCode )
{ {
ImplSVData* pSVData = ImplGetSVData(); ImplSVData* pSVData = ImplGetSVData();

View File

@ -253,25 +253,6 @@ bool Edit::set_property(const rtl::OString &rKey, const rtl::OString &rValue)
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
Edit::Edit( Window* pParent, const ResId& rResId, bool bDisableAccessibleLabeledByRelation ) :
Control( WINDOW_EDIT )
{
ImplInitEditData();
rResId.SetRT( RSC_EDIT );
WinBits nStyle = ImplInitRes( rResId );
ImplInit( pParent, nStyle );
ImplLoadRes( rResId );
if ( bDisableAccessibleLabeledByRelation )
ImplGetWindowImpl()->mbDisableAccessibleLabeledByRelation = sal_True;
// Derived MultiLineEdit takes care to call Show only after MultiLineEdit
// ctor has already started:
if ( !(nStyle & WB_HIDE) && rResId.GetRT() != RSC_MULTILINEEDIT )
Show();
}
// -----------------------------------------------------------------------
Edit::~Edit() Edit::~Edit()
{ {
delete mpDDInfo; delete mpDDInfo;

View File

@ -175,25 +175,6 @@ FixedText::FixedText( Window* pParent, const ResId& rResId )
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
FixedText::FixedText( Window* pParent, const ResId& rResId, bool bDisableAccessibleLabelForRelation )
: Control( WINDOW_FIXEDTEXT )
, m_nMaxWidthChars(-1)
, m_nMinWidthChars(-1)
, m_pMnemonicWindow(NULL)
{
rResId.SetRT( RSC_TEXT );
WinBits nStyle = ImplInitRes( rResId );
ImplInit( pParent, nStyle );
ImplLoadRes( rResId );
if ( bDisableAccessibleLabelForRelation )
ImplGetWindowImpl()->mbDisableAccessibleLabelForRelation = sal_True;
if ( !(nStyle & WB_HIDE) )
Show();
}
// -----------------------------------------------------------------------
sal_uInt16 FixedText::ImplGetTextStyle( WinBits nWinStyle ) sal_uInt16 FixedText::ImplGetTextStyle( WinBits nWinStyle )
{ {
sal_uInt16 nTextStyle = TEXT_DRAW_MNEMONIC | TEXT_DRAW_ENDELLIPSIS; sal_uInt16 nTextStyle = TEXT_DRAW_MNEMONIC | TEXT_DRAW_ENDELLIPSIS;

View File

@ -711,8 +711,6 @@ void Window::ImplInitWindowData( WindowType nType )
mpWindowImpl->mbIsInTaskPaneList = sal_False; // sal_True: window was added to the taskpanelist in the topmost system window mpWindowImpl->mbIsInTaskPaneList = sal_False; // sal_True: window was added to the taskpanelist in the topmost system window
mpWindowImpl->mnNativeBackground = 0; // initialize later, depends on type mpWindowImpl->mnNativeBackground = 0; // initialize later, depends on type
mpWindowImpl->mbCallHandlersDuringInputDisabled = sal_False; // sal_True: call event handlers even if input is disabled mpWindowImpl->mbCallHandlersDuringInputDisabled = sal_False; // sal_True: call event handlers even if input is disabled
mpWindowImpl->mbDisableAccessibleLabelForRelation = sal_False; // sal_True: do not set LabelFor relation on accessible objects
mpWindowImpl->mbDisableAccessibleLabeledByRelation = sal_False; // sal_True: do not set LabeledBy relation on accessible objects
mpWindowImpl->mbHelpTextDynamic = sal_False; // sal_True: append help id in HELP_DEBUG case mpWindowImpl->mbHelpTextDynamic = sal_False; // sal_True: append help id in HELP_DEBUG case
mpWindowImpl->mbFakeFocusSet = sal_False; // sal_True: pretend as if the window has focus. mpWindowImpl->mbFakeFocusSet = sal_False; // sal_True: pretend as if the window has focus.
mpWindowImpl->mbHexpand = false; mpWindowImpl->mbHexpand = false;
@ -9011,9 +9009,6 @@ Window* Window::GetAccessibleRelationMemberOf() const
Window* Window::getAccessibleRelationLabelFor() const Window* Window::getAccessibleRelationLabelFor() const
{ {
if (mpWindowImpl->mbDisableAccessibleLabelForRelation)
return NULL;
if (mpWindowImpl->mpAccessibleInfos && mpWindowImpl->mpAccessibleInfos->pLabelForWindow) if (mpWindowImpl->mpAccessibleInfos && mpWindowImpl->mpAccessibleInfos->pLabelForWindow)
return mpWindowImpl->mpAccessibleInfos->pLabelForWindow; return mpWindowImpl->mpAccessibleInfos->pLabelForWindow;
@ -9035,9 +9030,6 @@ Window* Window::GetAccessibleRelationLabelFor() const
Window* Window::GetAccessibleRelationLabeledBy() const Window* Window::GetAccessibleRelationLabeledBy() const
{ {
if (mpWindowImpl->mbDisableAccessibleLabeledByRelation)
return NULL;
if (mpWindowImpl->mpAccessibleInfos && mpWindowImpl->mpAccessibleInfos->pLabeledByWindow) if (mpWindowImpl->mpAccessibleInfos && mpWindowImpl->mpAccessibleInfos->pLabeledByWindow)
return mpWindowImpl->mpAccessibleInfos->pLabeledByWindow; return mpWindowImpl->mpAccessibleInfos->pLabeledByWindow;

View File

@ -92,7 +92,6 @@ protected:
public: public:
MacroSecurityTP(Window* _pParent, const OString& rID, MacroSecurityTP(Window* _pParent, const OString& rID,
const OUString& rUIXMLDescription, MacroSecurity* _pDlg); const OUString& rUIXMLDescription, MacroSecurity* _pDlg);
MacroSecurityTP(Window* _pParent, const ResId& _rResId, MacroSecurity* _pDlg);
void SetTabDlg(MacroSecurity* pTabDlg) void SetTabDlg(MacroSecurity* pTabDlg)
{ {

View File

@ -99,12 +99,6 @@ MacroSecurityTP::MacroSecurityTP(Window* _pParent, const OString& rID,
{ {
} }
MacroSecurityTP::MacroSecurityTP( Window* _pParent, const ResId& _rResId, MacroSecurity* _pDlg )
:TabPage ( _pParent, _rResId )
,mpDlg ( _pDlg )
{
}
MacroSecurityLevelTP::MacroSecurityLevelTP(Window* _pParent, MacroSecurity* _pDlg) MacroSecurityLevelTP::MacroSecurityLevelTP(Window* _pParent, MacroSecurity* _pDlg)
: MacroSecurityTP(_pParent, "SecurityLevelPage", "xmlsec/ui/securitylevelpage.ui", _pDlg) : MacroSecurityTP(_pParent, "SecurityLevelPage", "xmlsec/ui/securitylevelpage.ui", _pDlg)
{ {