summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/graphhelp.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-03-23 11:19:50 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-03-23 11:19:50 +0000
commit3b0a741f1c9f098f209cd52b06df01b29a5ba931 (patch)
tree531f1413e000463610518b6d3fd6639a291b33be /sfx2/source/doc/graphhelp.cxx
parent2cca12f750330b3b746c13bbfe81f3f3de1a2375 (diff)
INTEGRATION: CWS thumbnail2 (1.3.282); FILE MERGED
2005/03/21 16:02:18 mav 1.3.282.3: #i45081# exchange thumbnail icons 2005/03/21 15:59:59 mav 1.3.282.2: #i45081# exchange thumbnail icons 2005/03/21 14:44:50 mav 1.3.282.1: #i45081# exchange thumbnail icons
Diffstat (limited to 'sfx2/source/doc/graphhelp.cxx')
-rw-r--r--sfx2/source/doc/graphhelp.cxx34
1 files changed, 7 insertions, 27 deletions
diff --git a/sfx2/source/doc/graphhelp.cxx b/sfx2/source/doc/graphhelp.cxx
index 593a00f7f09c..b410c4669666 100644
--- a/sfx2/source/doc/graphhelp.cxx
+++ b/sfx2/source/doc/graphhelp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: graphhelp.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: kz $ $Date: 2004-10-04 20:54:21 $
+ * last change: $Author: vg $ $Date: 2005-03-23 12:19:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -564,43 +564,23 @@ sal_uInt16 GraphicHelper::getThumbnailReplacementIDByFactoryName_Impl( const ::r
if ( aFactoryShortName.equalsAscii( "scalc" ) )
{
- if ( !bIsTemplate )
- nResult = BMP_128X128_CALC_DOC;
- else
- nResult = BMP_128X128_CALC_TEMP;
- }
- else if ( aFactoryShortName.equalsAscii( "schart" ) )
- {
- nResult = BMP_128X128_CHART_DOC;
+ nResult = BMP_128X128_CALC_DOC;
}
else if ( aFactoryShortName.equalsAscii( "sdraw" ) )
{
- if ( !bIsTemplate )
- nResult = BMP_128X128_DRAW_DOC;
- else
- nResult = BMP_128X128_DRAW_TEMP;
+ nResult = BMP_128X128_DRAW_DOC;
}
else if ( aFactoryShortName.equalsAscii( "simpress" ) )
{
- if ( !bIsTemplate )
- nResult = BMP_128X128_IMPRESS_DOC;
- else
- nResult = BMP_128X128_IMPRESS_TEMP;
- }
- else if ( aFactoryShortName.equalsAscii( "swriter/GlobalDocument" ) )
- {
- nResult = BMP_128X128_MASTER_DOC;
+ nResult = BMP_128X128_IMPRESS_DOC;
}
else if ( aFactoryShortName.equalsAscii( "smath" ) )
{
nResult = BMP_128X128_MATH_DOC;
}
- else if ( aFactoryShortName.equalsAscii( "swriter" ) )
+ else if ( aFactoryShortName.equalsAscii( "swriter" ) || aFactoryShortName.compareToAscii( "swriter/", 8 ) == 0 )
{
- if ( !bIsTemplate )
- nResult = BMP_128X128_WRITER_DOC;
- else
- nResult = BMP_128X128_WRITER_TEMP;
+ nResult = BMP_128X128_WRITER_DOC;
}
return nResult;