summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-31 23:49:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-31 23:49:35 +0100
commitef6add9a7e0bcba1fb039afb75d62e753fa37949 (patch)
tree2f4bcee1cbcb97e6015995b7edd0d9087289a54e /svtools
parentd4d26018402aaa75fcb6524f5c7d99fcd9c5be45 (diff)
callcatcher: remove unused code
Diffstat (limited to 'svtools')
-rw-r--r--svtools/inc/svtools/scriptedtext.hxx15
-rw-r--r--svtools/source/contnr/templwin.cxx40
-rw-r--r--svtools/source/control/scriptedtext.cxx7
3 files changed, 0 insertions, 62 deletions
diff --git a/svtools/inc/svtools/scriptedtext.hxx b/svtools/inc/svtools/scriptedtext.hxx
index bbca120ef017..d7114042562b 100644
--- a/svtools/inc/svtools/scriptedtext.hxx
+++ b/svtools/inc/svtools/scriptedtext.hxx
@@ -59,21 +59,6 @@ public:
A reference to an output device. */
SvtScriptedTextHelper( OutputDevice& _rOutDevice );
- /** Constructor sets an output device and fonts for all script types.
- @param _rOutDevice
- A reference to an output device.
- @param _pLatinFont
- The font for latin characters.
- @param _pAsianFont
- The font for asian characters.
- @param _pCmplxFont
- The font for complex text layout. */
- SvtScriptedTextHelper(
- OutputDevice& _rOutDevice,
- Font* _pLatinFont,
- Font* _pAsianFont,
- Font* _pCmplxFont );
-
/** Copy constructor. */
SvtScriptedTextHelper(
const SvtScriptedTextHelper& _rCopy );
diff --git a/svtools/source/contnr/templwin.cxx b/svtools/source/contnr/templwin.cxx
index 7650fa534f77..6e4e51559754 100644
--- a/svtools/source/contnr/templwin.cxx
+++ b/svtools/source/contnr/templwin.cxx
@@ -1639,7 +1639,6 @@ void SvtTemplateWindow::SelectFolder(sal_Int32 nFolderPosition)
{
pIconWin->SelectFolder(nFolderPosition);
}
-// struct SvtTmplDlg_Impl ------------------------------------------------
struct SvtTmplDlg_Impl
{
@@ -1654,47 +1653,8 @@ struct SvtTmplDlg_Impl
SvtTmplDlg_Impl( Window* pParent ) : pWin( new SvtTemplateWindow( pParent ) ) ,bSelectNoOpen( sal_False ) {}
~SvtTmplDlg_Impl() { delete pWin; }
-
- uno::Reference< util::XOfficeInstallationDirectories > getOfficeInstDirs();
};
-uno::Reference< util::XOfficeInstallationDirectories > SvtTmplDlg_Impl::getOfficeInstDirs()
-{
- if ( !m_xOfficeInstDirs.is() )
- {
- try
- {
- uno::Reference< lang::XMultiServiceFactory > xSMgr = comphelper::getProcessServiceFactory();
-
- uno::Reference< beans::XPropertySet > xPropSet( xSMgr, uno::UNO_QUERY );
- if ( xPropSet.is() )
- {
- uno::Reference< uno::XComponentContext > xCtx;
- xPropSet->getPropertyValue(
- rtl::OUString(
- RTL_CONSTASCII_USTRINGPARAM( "DefaultContext" ) ) )
- >>= xCtx;
-
- if ( xCtx.is() )
- {
- xCtx->getValueByName(
- rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
- "/singletons/com.sun.star.util.theOfficeInstallationDirectories" ) ) )
- >>= m_xOfficeInstDirs;
- }
- }
- }
- catch( uno::Exception& )
- {}
- }
-
- return m_xOfficeInstDirs;
-}
-
-// class SvtDocumentTemplateDialog ---------------------------------------
-
-// ------------------------------------------------------------------------
-
SvtDocumentTemplateDialog::SvtDocumentTemplateDialog( Window* pParent ) :
ModalDialog( pParent, SvtResId( DLG_DOCTEMPLATE ) ),
diff --git a/svtools/source/control/scriptedtext.cxx b/svtools/source/control/scriptedtext.cxx
index 98f6c05ac0d7..143f630fa95e 100644
--- a/svtools/source/control/scriptedtext.cxx
+++ b/svtools/source/control/scriptedtext.cxx
@@ -331,13 +331,6 @@ SvtScriptedTextHelper::SvtScriptedTextHelper( OutputDevice& _rOutDevice ) :
{
}
-SvtScriptedTextHelper::SvtScriptedTextHelper(
- OutputDevice& _rOutDevice,
- Font* _pLatinFont, Font* _pAsianFont, Font* _pCmplxFont ) :
- mpImpl( new SvtScriptedTextHelper_Impl( _rOutDevice, _pLatinFont, _pAsianFont, _pCmplxFont ) )
-{
-}
-
SvtScriptedTextHelper::SvtScriptedTextHelper( const SvtScriptedTextHelper& _rCopy ) :
mpImpl( new SvtScriptedTextHelper_Impl( *_rCopy.mpImpl ) )
{