summaryrefslogtreecommitdiff
path: root/sw/source/ui/config
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-10-01 17:26:46 +0200
committerMichael Stahl <mstahl@redhat.com>2013-10-01 18:03:37 +0200
commit31e37f8f405d53ad0d5b1a271e07976328f93d64 (patch)
treeaf3f8403c25db961dc4f063100d4d95dd3650490 /sw/source/ui/config
parentf67d166b30dcba9e854716b29e1035693ef7481b (diff)
remove SwCompatibilityOptPage::ReplaceFormatName
... which probably didn't do anything anyway since the dialog actually used %WRITERCOMPATIBILITYVERSIONOOO11 and not the variables replaced here. Change-Id: I27a59382476979b3bbcdb7fc06eda2243d1487e1
Diffstat (limited to 'sw/source/ui/config')
-rw-r--r--sw/source/ui/config/optcomp.cxx19
1 files changed, 0 insertions, 19 deletions
diff --git a/sw/source/ui/config/optcomp.cxx b/sw/source/ui/config/optcomp.cxx
index d6029e4c1c09..f793df09265b 100644
--- a/sw/source/ui/config/optcomp.cxx
+++ b/sw/source/ui/config/optcomp.cxx
@@ -113,11 +113,6 @@ SwCompatibilityOptPage::SwCompatibilityOptPage(Window* pParent, const SfxItemSet
for (sal_uInt16 nId = COPT_USE_PRINTERDEVICE; nId <= COPT_EXPAND_WORDSPACE; ++nId)
{
OUString sEntry = m_pFormattingLB->GetEntry(nId);
- if ( COPT_USE_OUR_TABSTOPS == nId ||
- COPT_USE_LINESPACING == nId ||
- COPT_USE_OBJECTPOSITIONING == nId ||
- COPT_USE_OUR_TEXTWRAPPING == nId )
- ReplaceFormatName( sEntry );
SvTreeListEntry* pEntry = m_pOptionsLB->SvTreeListBox::InsertEntry( sEntry );
if ( pEntry )
{
@@ -143,20 +138,6 @@ SwCompatibilityOptPage::~SwCompatibilityOptPage()
delete m_pImpl;
}
-void SwCompatibilityOptPage::ReplaceFormatName( OUString& rEntry )
-{
- OUString sFormatName(utl::ConfigManager::getProductName());
- const bool bOpenOffice = ( sFormatName == "OpenOffice.org" );
- const OUString sFormatVersion = bOpenOffice
- ? OUString("1.1")
- : OUString("6.0/7");
- if ( !bOpenOffice && ( sFormatName != "StarSuite" ) )
- sFormatName = "StarOffice";
-
- rEntry = rEntry.replaceFirst( "%FORMATNAME", sFormatName )
- .replaceFirst( "%FORMATVERSION", sFormatVersion );
-}
-
sal_uLong convertBools2Ulong_Impl
(
bool _bUsePrtMetrics,