xref: /trunk/main/sw/source/ui/utlui/attrdesc.cxx (revision cdf0e10c)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
29*cdf0e10cSrcweir #include "precompiled_sw.hxx"
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir 
32*cdf0e10cSrcweir #include <svl/itemiter.hxx>
33*cdf0e10cSrcweir #include <vcl/svapp.hxx>
34*cdf0e10cSrcweir #include <editeng/itemtype.hxx>
35*cdf0e10cSrcweir #include <svtools/grfmgr.hxx>
36*cdf0e10cSrcweir #include <unotools/intlwrapper.hxx>
37*cdf0e10cSrcweir #include <comphelper/processfactory.hxx>
38*cdf0e10cSrcweir #include <fmtanchr.hxx>
39*cdf0e10cSrcweir #include <fmtfsize.hxx>
40*cdf0e10cSrcweir #include <fmtinfmt.hxx>
41*cdf0e10cSrcweir #include <fchrfmt.hxx>
42*cdf0e10cSrcweir #include <fmtautofmt.hxx>
43*cdf0e10cSrcweir #include <fmtsrnd.hxx>
44*cdf0e10cSrcweir #include <fmtornt.hxx>
45*cdf0e10cSrcweir #include <fmtlsplt.hxx>
46*cdf0e10cSrcweir #include <fmtrowsplt.hxx>
47*cdf0e10cSrcweir #include <fmtpdsc.hxx>
48*cdf0e10cSrcweir #include <fmtclds.hxx>
49*cdf0e10cSrcweir #include <fmteiro.hxx>
50*cdf0e10cSrcweir #include <fmturl.hxx>
51*cdf0e10cSrcweir #include <fmthdft.hxx>
52*cdf0e10cSrcweir #include <fmtcnct.hxx>
53*cdf0e10cSrcweir #include <fmtline.hxx>
54*cdf0e10cSrcweir #include <tgrditem.hxx>
55*cdf0e10cSrcweir #include <hfspacingitem.hxx>
56*cdf0e10cSrcweir #include <fmtruby.hxx>
57*cdf0e10cSrcweir #include <paratr.hxx>
58*cdf0e10cSrcweir #include <grfatr.hxx>
59*cdf0e10cSrcweir #include <pagedesc.hxx>
60*cdf0e10cSrcweir #include <charfmt.hxx>
61*cdf0e10cSrcweir #include <fmtcol.hxx>
62*cdf0e10cSrcweir #include <tox.hxx>
63*cdf0e10cSrcweir #ifndef _ATTRDESC_HRC
64*cdf0e10cSrcweir #include <attrdesc.hrc>
65*cdf0e10cSrcweir #endif
66*cdf0e10cSrcweir #include <fmtftntx.hxx>
67*cdf0e10cSrcweir #include <fmtfollowtextflow.hxx>
68*cdf0e10cSrcweir 
69*cdf0e10cSrcweir 
70*cdf0e10cSrcweir using namespace com::sun::star;
71*cdf0e10cSrcweir 
72*cdf0e10cSrcweir 
73*cdf0e10cSrcweir TYPEINIT2(SwFmtCharFmt,SfxPoolItem,SwClient);
74*cdf0e10cSrcweir 
75*cdf0e10cSrcweir // erfrage die Attribut-Beschreibung
76*cdf0e10cSrcweir void SwAttrSet::GetPresentation(
77*cdf0e10cSrcweir         SfxItemPresentation ePres,
78*cdf0e10cSrcweir         SfxMapUnit eCoreMetric,
79*cdf0e10cSrcweir         SfxMapUnit ePresMetric,
80*cdf0e10cSrcweir 		String &rText ) const
81*cdf0e10cSrcweir {
82*cdf0e10cSrcweir static sal_Char __READONLY_DATA sKomma[] = ", ";
83*cdf0e10cSrcweir 
84*cdf0e10cSrcweir 	rText.Erase();
85*cdf0e10cSrcweir 	String aStr;
86*cdf0e10cSrcweir 	if( Count() )
87*cdf0e10cSrcweir 	{
88*cdf0e10cSrcweir 		SfxItemIter aIter( *this );
89*cdf0e10cSrcweir         const IntlWrapper rInt( ::comphelper::getProcessServiceFactory(),
90*cdf0e10cSrcweir             						GetAppLanguage() );
91*cdf0e10cSrcweir 		while( sal_True )
92*cdf0e10cSrcweir 		{
93*cdf0e10cSrcweir 			aIter.GetCurItem()->GetPresentation( ePres, eCoreMetric,
94*cdf0e10cSrcweir                                                  ePresMetric, aStr,
95*cdf0e10cSrcweir 												 &rInt );
96*cdf0e10cSrcweir 			if( rText.Len() && aStr.Len() )
97*cdf0e10cSrcweir 				rText += String::CreateFromAscii(sKomma);
98*cdf0e10cSrcweir 			rText += aStr;
99*cdf0e10cSrcweir 			if( aIter.IsAtEnd() )
100*cdf0e10cSrcweir 				break;
101*cdf0e10cSrcweir 			aIter.NextItem();
102*cdf0e10cSrcweir 		}
103*cdf0e10cSrcweir 	}
104*cdf0e10cSrcweir }
105*cdf0e10cSrcweir 
106*cdf0e10cSrcweir // ATT_CHARFMT *********************************************
107*cdf0e10cSrcweir 
108*cdf0e10cSrcweir 
109*cdf0e10cSrcweir SfxItemPresentation SwFmtCharFmt::GetPresentation
110*cdf0e10cSrcweir (
111*cdf0e10cSrcweir 	SfxItemPresentation ePres,
112*cdf0e10cSrcweir 	SfxMapUnit			eCoreUnit,
113*cdf0e10cSrcweir 	SfxMapUnit			ePresUnit,
114*cdf0e10cSrcweir 	String& 			rText,
115*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
116*cdf0e10cSrcweir )	const
117*cdf0e10cSrcweir {
118*cdf0e10cSrcweir 	switch ( ePres )
119*cdf0e10cSrcweir 	{
120*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
121*cdf0e10cSrcweir 			rText.Erase();
122*cdf0e10cSrcweir 			break;
123*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
124*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
125*cdf0e10cSrcweir 		{
126*cdf0e10cSrcweir 			const SwCharFmt *pCharFmt = GetCharFmt();
127*cdf0e10cSrcweir 			if ( pCharFmt )
128*cdf0e10cSrcweir 			{
129*cdf0e10cSrcweir 				String aStr;
130*cdf0e10cSrcweir 				rText = SW_RESSTR(STR_CHARFMT );
131*cdf0e10cSrcweir 				pCharFmt->GetPresentation( ePres, eCoreUnit, ePresUnit, aStr );
132*cdf0e10cSrcweir 				rText += '(';
133*cdf0e10cSrcweir 				rText += aStr;
134*cdf0e10cSrcweir 				rText += ')';
135*cdf0e10cSrcweir 			}
136*cdf0e10cSrcweir 			else
137*cdf0e10cSrcweir 				rText = SW_RESSTR( STR_NO_CHARFMT );
138*cdf0e10cSrcweir 			return ePres;
139*cdf0e10cSrcweir 		}
140*cdf0e10cSrcweir         default:;//prevent warning
141*cdf0e10cSrcweir 	}
142*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
143*cdf0e10cSrcweir }
144*cdf0e10cSrcweir 
145*cdf0e10cSrcweir // ATT_AUTOFMT *********************************************
146*cdf0e10cSrcweir 
147*cdf0e10cSrcweir 
148*cdf0e10cSrcweir SfxItemPresentation SwFmtAutoFmt::GetPresentation
149*cdf0e10cSrcweir (
150*cdf0e10cSrcweir 	SfxItemPresentation ePres,
151*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
152*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
153*cdf0e10cSrcweir 	String& 			rText,
154*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
155*cdf0e10cSrcweir )	const
156*cdf0e10cSrcweir {
157*cdf0e10cSrcweir 	switch ( ePres )
158*cdf0e10cSrcweir 	{
159*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
160*cdf0e10cSrcweir 			rText.Erase();
161*cdf0e10cSrcweir 			break;
162*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
163*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
164*cdf0e10cSrcweir 		{
165*cdf0e10cSrcweir 			rText.Erase(); //TODO
166*cdf0e10cSrcweir 			return ePres;
167*cdf0e10cSrcweir 		}
168*cdf0e10cSrcweir         default:;//prevent warning
169*cdf0e10cSrcweir 	}
170*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
171*cdf0e10cSrcweir }
172*cdf0e10cSrcweir 
173*cdf0e10cSrcweir // ATT_INETFMT *********************************************
174*cdf0e10cSrcweir 
175*cdf0e10cSrcweir 
176*cdf0e10cSrcweir SfxItemPresentation SwFmtINetFmt::GetPresentation
177*cdf0e10cSrcweir (
178*cdf0e10cSrcweir 	SfxItemPresentation ePres,
179*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
180*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
181*cdf0e10cSrcweir 	String& 			rText,
182*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
183*cdf0e10cSrcweir )	const
184*cdf0e10cSrcweir {
185*cdf0e10cSrcweir 	switch ( ePres )
186*cdf0e10cSrcweir 	{
187*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
188*cdf0e10cSrcweir 			rText.Erase();
189*cdf0e10cSrcweir 			break;
190*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
191*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
192*cdf0e10cSrcweir 		{
193*cdf0e10cSrcweir 			rText = GetValue();
194*cdf0e10cSrcweir 			return ePres;
195*cdf0e10cSrcweir 		}
196*cdf0e10cSrcweir         default:;//prevent warning
197*cdf0e10cSrcweir 	}
198*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
199*cdf0e10cSrcweir }
200*cdf0e10cSrcweir 
201*cdf0e10cSrcweir SfxItemPresentation SwFmtRuby::GetPresentation( SfxItemPresentation ePres,
202*cdf0e10cSrcweir                             SfxMapUnit /*eCoreMetric*/, SfxMapUnit /*ePresMetric*/,
203*cdf0e10cSrcweir                             String &rText, const IntlWrapper* /*pIntl*/ ) const
204*cdf0e10cSrcweir {
205*cdf0e10cSrcweir 	switch ( ePres )
206*cdf0e10cSrcweir 	{
207*cdf0e10cSrcweir         case SFX_ITEM_PRESENTATION_NONE:
208*cdf0e10cSrcweir             rText.Erase();
209*cdf0e10cSrcweir             break;
210*cdf0e10cSrcweir         case SFX_ITEM_PRESENTATION_NAMELESS:
211*cdf0e10cSrcweir         case SFX_ITEM_PRESENTATION_COMPLETE:
212*cdf0e10cSrcweir             {
213*cdf0e10cSrcweir                 rText = aEmptyStr;
214*cdf0e10cSrcweir                 return ePres;
215*cdf0e10cSrcweir             }
216*cdf0e10cSrcweir         default:;//prevent warning
217*cdf0e10cSrcweir 	}
218*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
219*cdf0e10cSrcweir }
220*cdf0e10cSrcweir 
221*cdf0e10cSrcweir /*************************************************************************
222*cdf0e10cSrcweir |*    class		SwFmtDrop
223*cdf0e10cSrcweir *************************************************************************/
224*cdf0e10cSrcweir 
225*cdf0e10cSrcweir 
226*cdf0e10cSrcweir SfxItemPresentation SwFmtDrop::GetPresentation
227*cdf0e10cSrcweir (
228*cdf0e10cSrcweir 	SfxItemPresentation ePres,
229*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
230*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
231*cdf0e10cSrcweir 	String& 			rText,
232*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
233*cdf0e10cSrcweir )	const
234*cdf0e10cSrcweir {
235*cdf0e10cSrcweir 	rText.Erase();
236*cdf0e10cSrcweir 	switch ( ePres )
237*cdf0e10cSrcweir 	{
238*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
239*cdf0e10cSrcweir 			break;
240*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
241*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
242*cdf0e10cSrcweir 		{
243*cdf0e10cSrcweir 			if ( GetLines() > 1 )
244*cdf0e10cSrcweir 			{
245*cdf0e10cSrcweir 				if ( GetChars() > 1 )
246*cdf0e10cSrcweir 				{
247*cdf0e10cSrcweir 					rText = String::CreateFromInt32( GetChars() );
248*cdf0e10cSrcweir 					rText += ' ';
249*cdf0e10cSrcweir 				}
250*cdf0e10cSrcweir 				rText += SW_RESSTR( STR_DROP_OVER );
251*cdf0e10cSrcweir 				rText += ' ';
252*cdf0e10cSrcweir 				rText += String::CreateFromInt32( GetLines() );
253*cdf0e10cSrcweir 				rText += ' ';
254*cdf0e10cSrcweir 				rText += SW_RESSTR( STR_DROP_LINES );
255*cdf0e10cSrcweir 			}
256*cdf0e10cSrcweir 			else
257*cdf0e10cSrcweir 				rText = SW_RESSTR( STR_NO_DROP_LINES );
258*cdf0e10cSrcweir 			return ePres;
259*cdf0e10cSrcweir 		}
260*cdf0e10cSrcweir         default:;//prevent warning
261*cdf0e10cSrcweir 	}
262*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
263*cdf0e10cSrcweir }
264*cdf0e10cSrcweir 
265*cdf0e10cSrcweir /*************************************************************************
266*cdf0e10cSrcweir |*    class		SwRegisterItem
267*cdf0e10cSrcweir *************************************************************************/
268*cdf0e10cSrcweir 
269*cdf0e10cSrcweir 
270*cdf0e10cSrcweir SfxItemPresentation SwRegisterItem::GetPresentation
271*cdf0e10cSrcweir (
272*cdf0e10cSrcweir 	SfxItemPresentation ePres,
273*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
274*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
275*cdf0e10cSrcweir 	XubString& 			rText,
276*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
277*cdf0e10cSrcweir )	const
278*cdf0e10cSrcweir {
279*cdf0e10cSrcweir 	switch ( ePres )
280*cdf0e10cSrcweir 	{
281*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
282*cdf0e10cSrcweir 			rText.Erase();
283*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
284*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
285*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
286*cdf0e10cSrcweir 		{
287*cdf0e10cSrcweir 			sal_uInt16 nId = GetValue() ? STR_REGISTER_ON : STR_REGISTER_OFF;
288*cdf0e10cSrcweir 			rText = SW_RESSTR( nId );
289*cdf0e10cSrcweir 			return ePres;
290*cdf0e10cSrcweir 		}
291*cdf0e10cSrcweir         default:;//prevent warning
292*cdf0e10cSrcweir 	}
293*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
294*cdf0e10cSrcweir }
295*cdf0e10cSrcweir 
296*cdf0e10cSrcweir /*************************************************************************
297*cdf0e10cSrcweir |*    class		SwNumRuleItem
298*cdf0e10cSrcweir *************************************************************************/
299*cdf0e10cSrcweir 
300*cdf0e10cSrcweir 
301*cdf0e10cSrcweir SfxItemPresentation SwNumRuleItem::GetPresentation
302*cdf0e10cSrcweir (
303*cdf0e10cSrcweir 	SfxItemPresentation ePres,
304*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
305*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
306*cdf0e10cSrcweir 	XubString& 			rText,
307*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
308*cdf0e10cSrcweir )	const
309*cdf0e10cSrcweir {
310*cdf0e10cSrcweir 	switch ( ePres )
311*cdf0e10cSrcweir 	{
312*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
313*cdf0e10cSrcweir 			rText.Erase();
314*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
315*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
316*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
317*cdf0e10cSrcweir 		{
318*cdf0e10cSrcweir 			if( GetValue().Len() )
319*cdf0e10cSrcweir 				(((rText = SW_RESSTR( STR_NUMRULE_ON )) +=
320*cdf0e10cSrcweir 					'(' ) += GetValue() ) += ')';
321*cdf0e10cSrcweir 			else
322*cdf0e10cSrcweir 				rText = SW_RESSTR( STR_NUMRULE_OFF );
323*cdf0e10cSrcweir 			return ePres;
324*cdf0e10cSrcweir 		}
325*cdf0e10cSrcweir         default:;//prevent warning
326*cdf0e10cSrcweir 	}
327*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
328*cdf0e10cSrcweir }
329*cdf0e10cSrcweir /*************************************************************************
330*cdf0e10cSrcweir |*    class     SwParaConnectBorderItem
331*cdf0e10cSrcweir *************************************************************************/
332*cdf0e10cSrcweir 
333*cdf0e10cSrcweir SfxItemPresentation SwParaConnectBorderItem::GetPresentation
334*cdf0e10cSrcweir (
335*cdf0e10cSrcweir     SfxItemPresentation ePres,
336*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
337*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
338*cdf0e10cSrcweir     XubString&          rText,
339*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
340*cdf0e10cSrcweir )   const
341*cdf0e10cSrcweir {
342*cdf0e10cSrcweir     switch ( ePres )
343*cdf0e10cSrcweir     {
344*cdf0e10cSrcweir         case SFX_ITEM_PRESENTATION_NONE:
345*cdf0e10cSrcweir             rText.Erase();
346*cdf0e10cSrcweir             return SFX_ITEM_PRESENTATION_NONE;
347*cdf0e10cSrcweir         case SFX_ITEM_PRESENTATION_NAMELESS:
348*cdf0e10cSrcweir         case SFX_ITEM_PRESENTATION_COMPLETE:
349*cdf0e10cSrcweir         {
350*cdf0e10cSrcweir             sal_uInt16 nId = GetValue() ? STR_CONNECT_BORDER_ON : STR_CONNECT_BORDER_OFF;
351*cdf0e10cSrcweir             rText = SW_RESSTR( nId );
352*cdf0e10cSrcweir             return ePres;
353*cdf0e10cSrcweir         }
354*cdf0e10cSrcweir         default:;//prevent warning
355*cdf0e10cSrcweir     }
356*cdf0e10cSrcweir     return SFX_ITEM_PRESENTATION_NONE;
357*cdf0e10cSrcweir }
358*cdf0e10cSrcweir 
359*cdf0e10cSrcweir 
360*cdf0e10cSrcweir 
361*cdf0e10cSrcweir /******************************************************************************
362*cdf0e10cSrcweir  *	Frame-Attribute:
363*cdf0e10cSrcweir  ******************************************************************************/
364*cdf0e10cSrcweir 
365*cdf0e10cSrcweir 
366*cdf0e10cSrcweir SfxItemPresentation SwFmtFrmSize::GetPresentation
367*cdf0e10cSrcweir (
368*cdf0e10cSrcweir 	SfxItemPresentation ePres,
369*cdf0e10cSrcweir 	SfxMapUnit			eCoreUnit,
370*cdf0e10cSrcweir 	SfxMapUnit			ePresUnit,
371*cdf0e10cSrcweir 	String& 			rText,
372*cdf0e10cSrcweir     const IntlWrapper*        pIntl
373*cdf0e10cSrcweir )	const
374*cdf0e10cSrcweir {
375*cdf0e10cSrcweir 	switch ( ePres )
376*cdf0e10cSrcweir 	{
377*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
378*cdf0e10cSrcweir 		{
379*cdf0e10cSrcweir 			rText.Erase();
380*cdf0e10cSrcweir 			break;
381*cdf0e10cSrcweir 		}
382*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
383*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
384*cdf0e10cSrcweir 		{
385*cdf0e10cSrcweir 			rText = SW_RESSTR( STR_FRM_WIDTH );
386*cdf0e10cSrcweir 			rText += ' ';
387*cdf0e10cSrcweir 			if ( GetWidthPercent() )
388*cdf0e10cSrcweir 			{
389*cdf0e10cSrcweir 				rText += String::CreateFromInt32(GetWidthPercent());
390*cdf0e10cSrcweir 				rText += '%';
391*cdf0e10cSrcweir 			}
392*cdf0e10cSrcweir 			else
393*cdf0e10cSrcweir 			{
394*cdf0e10cSrcweir                 rText += ::GetMetricText( GetWidth(), eCoreUnit, ePresUnit, pIntl );
395*cdf0e10cSrcweir 				rText += ::GetSvxString( ::GetMetricId( ePresUnit ) );
396*cdf0e10cSrcweir 			}
397*cdf0e10cSrcweir             if ( ATT_VAR_SIZE != GetHeightSizeType() )
398*cdf0e10cSrcweir 			{
399*cdf0e10cSrcweir 				rText += ',';
400*cdf0e10cSrcweir 				rText += ' ';
401*cdf0e10cSrcweir                 const sal_uInt16 nId = ATT_FIX_SIZE == eFrmHeightType ?
402*cdf0e10cSrcweir 										STR_FRM_FIXEDHEIGHT : STR_FRM_MINHEIGHT;
403*cdf0e10cSrcweir 				rText += SW_RESSTR( nId );
404*cdf0e10cSrcweir 				rText += ' ';
405*cdf0e10cSrcweir 				if ( GetHeightPercent() )
406*cdf0e10cSrcweir 				{
407*cdf0e10cSrcweir 					rText += String::CreateFromInt32(GetHeightPercent());
408*cdf0e10cSrcweir 					rText += '%';
409*cdf0e10cSrcweir 				}
410*cdf0e10cSrcweir 				else
411*cdf0e10cSrcweir 				{
412*cdf0e10cSrcweir                     rText += ::GetMetricText( GetHeight(), eCoreUnit, ePresUnit, pIntl );
413*cdf0e10cSrcweir 					rText += ::GetSvxString( ::GetMetricId( ePresUnit ) );
414*cdf0e10cSrcweir 				}
415*cdf0e10cSrcweir 			}
416*cdf0e10cSrcweir 			return ePres;
417*cdf0e10cSrcweir 		}
418*cdf0e10cSrcweir         default:;//prevent warning
419*cdf0e10cSrcweir 	}
420*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
421*cdf0e10cSrcweir }
422*cdf0e10cSrcweir 
423*cdf0e10cSrcweir //Kopfzeile, fuer Seitenformate
424*cdf0e10cSrcweir //Client von FrmFmt das den Header beschreibt.
425*cdf0e10cSrcweir 
426*cdf0e10cSrcweir 
427*cdf0e10cSrcweir SfxItemPresentation SwFmtHeader::GetPresentation
428*cdf0e10cSrcweir (
429*cdf0e10cSrcweir 	SfxItemPresentation ePres,
430*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
431*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
432*cdf0e10cSrcweir 	String& 			rText,
433*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
434*cdf0e10cSrcweir )	const
435*cdf0e10cSrcweir {
436*cdf0e10cSrcweir 	switch ( ePres )
437*cdf0e10cSrcweir 	{
438*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
439*cdf0e10cSrcweir 			rText.Erase();
440*cdf0e10cSrcweir 			break;
441*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
442*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
443*cdf0e10cSrcweir 		{
444*cdf0e10cSrcweir 			const sal_uInt16 nId = GetHeaderFmt() ? STR_HEADER : STR_NO_HEADER;
445*cdf0e10cSrcweir 			rText = SW_RESSTR( nId );
446*cdf0e10cSrcweir 			return ePres;
447*cdf0e10cSrcweir 		}
448*cdf0e10cSrcweir         default:;//prevent warning
449*cdf0e10cSrcweir 	}
450*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
451*cdf0e10cSrcweir }
452*cdf0e10cSrcweir 
453*cdf0e10cSrcweir //Fusszeile, fuer Seitenformate
454*cdf0e10cSrcweir //Client von FrmFmt das den Footer beschreibt.
455*cdf0e10cSrcweir 
456*cdf0e10cSrcweir 
457*cdf0e10cSrcweir SfxItemPresentation SwFmtFooter::GetPresentation
458*cdf0e10cSrcweir (
459*cdf0e10cSrcweir 	SfxItemPresentation ePres,
460*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
461*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
462*cdf0e10cSrcweir 	String& 			rText,
463*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
464*cdf0e10cSrcweir )	const
465*cdf0e10cSrcweir {
466*cdf0e10cSrcweir 	switch ( ePres )
467*cdf0e10cSrcweir 	{
468*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
469*cdf0e10cSrcweir 			rText.Erase();
470*cdf0e10cSrcweir 			break;
471*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
472*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
473*cdf0e10cSrcweir 		{
474*cdf0e10cSrcweir 			const sal_uInt16 nId = GetFooterFmt() ? STR_FOOTER : STR_NO_FOOTER;
475*cdf0e10cSrcweir 			rText = SW_RESSTR( nId );
476*cdf0e10cSrcweir 			return ePres;
477*cdf0e10cSrcweir 		}
478*cdf0e10cSrcweir         default:;//prevent warning
479*cdf0e10cSrcweir 	}
480*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
481*cdf0e10cSrcweir }
482*cdf0e10cSrcweir 
483*cdf0e10cSrcweir 
484*cdf0e10cSrcweir SfxItemPresentation SwFmtSurround::GetPresentation
485*cdf0e10cSrcweir (
486*cdf0e10cSrcweir 	SfxItemPresentation ePres,
487*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
488*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
489*cdf0e10cSrcweir 	String& 			rText,
490*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
491*cdf0e10cSrcweir )	const
492*cdf0e10cSrcweir {
493*cdf0e10cSrcweir 	switch ( ePres )
494*cdf0e10cSrcweir 	{
495*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
496*cdf0e10cSrcweir 			rText.Erase();
497*cdf0e10cSrcweir 			break;
498*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
499*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
500*cdf0e10cSrcweir 		{
501*cdf0e10cSrcweir 			sal_uInt16 nId = 0;
502*cdf0e10cSrcweir 			switch ( (SwSurround)GetValue() )
503*cdf0e10cSrcweir 			{
504*cdf0e10cSrcweir 				case SURROUND_NONE:
505*cdf0e10cSrcweir 					nId = STR_SURROUND_NONE;
506*cdf0e10cSrcweir 				break;
507*cdf0e10cSrcweir 				case SURROUND_THROUGHT:
508*cdf0e10cSrcweir 					nId = STR_SURROUND_THROUGHT;
509*cdf0e10cSrcweir 				break;
510*cdf0e10cSrcweir 				case SURROUND_PARALLEL:
511*cdf0e10cSrcweir 					nId = STR_SURROUND_PARALLEL;
512*cdf0e10cSrcweir 				break;
513*cdf0e10cSrcweir 				case SURROUND_IDEAL:
514*cdf0e10cSrcweir 					nId = STR_SURROUND_IDEAL;
515*cdf0e10cSrcweir 				break;
516*cdf0e10cSrcweir 				case SURROUND_LEFT:
517*cdf0e10cSrcweir 					nId = STR_SURROUND_LEFT;
518*cdf0e10cSrcweir 				break;
519*cdf0e10cSrcweir 				case SURROUND_RIGHT:
520*cdf0e10cSrcweir 					nId = STR_SURROUND_RIGHT;
521*cdf0e10cSrcweir 				break;
522*cdf0e10cSrcweir                 default:;//prevent warning
523*cdf0e10cSrcweir 			}
524*cdf0e10cSrcweir 			if ( nId )
525*cdf0e10cSrcweir 				rText = SW_RESSTR( nId );
526*cdf0e10cSrcweir 
527*cdf0e10cSrcweir 			if ( IsAnchorOnly() )
528*cdf0e10cSrcweir 			{
529*cdf0e10cSrcweir 				rText += ' ';
530*cdf0e10cSrcweir 				rText += SW_RESSTR( STR_SURROUND_ANCHORONLY );
531*cdf0e10cSrcweir 			}
532*cdf0e10cSrcweir 			return ePres;
533*cdf0e10cSrcweir 		}
534*cdf0e10cSrcweir         default:;//prevent warning
535*cdf0e10cSrcweir 	}
536*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
537*cdf0e10cSrcweir }
538*cdf0e10cSrcweir 
539*cdf0e10cSrcweir 
540*cdf0e10cSrcweir //VertOrientation, wie und woran orientiert --
541*cdf0e10cSrcweir //	sich der FlyFrm in der Vertikalen -----------
542*cdf0e10cSrcweir 
543*cdf0e10cSrcweir 
544*cdf0e10cSrcweir SfxItemPresentation SwFmtVertOrient::GetPresentation
545*cdf0e10cSrcweir (
546*cdf0e10cSrcweir 	SfxItemPresentation ePres,
547*cdf0e10cSrcweir 	SfxMapUnit			eCoreUnit,
548*cdf0e10cSrcweir 	SfxMapUnit			ePresUnit,
549*cdf0e10cSrcweir 	String& 			rText,
550*cdf0e10cSrcweir     const IntlWrapper*        pIntl
551*cdf0e10cSrcweir )	const
552*cdf0e10cSrcweir {
553*cdf0e10cSrcweir 	switch ( ePres )
554*cdf0e10cSrcweir 	{
555*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
556*cdf0e10cSrcweir 			rText.Erase();
557*cdf0e10cSrcweir 			break;
558*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
559*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
560*cdf0e10cSrcweir 		{
561*cdf0e10cSrcweir 			sal_uInt16 nId = 0;
562*cdf0e10cSrcweir 			switch ( GetVertOrient() )
563*cdf0e10cSrcweir 			{
564*cdf0e10cSrcweir                 case text::VertOrientation::NONE:
565*cdf0e10cSrcweir 				{
566*cdf0e10cSrcweir 					rText += SW_RESSTR( STR_POS_Y );
567*cdf0e10cSrcweir 					rText += ' ';
568*cdf0e10cSrcweir                     rText += ::GetMetricText( GetPos(), eCoreUnit, ePresUnit, pIntl );
569*cdf0e10cSrcweir 					rText += ::GetSvxString( ::GetMetricId( ePresUnit ) );
570*cdf0e10cSrcweir 				}
571*cdf0e10cSrcweir 				break;
572*cdf0e10cSrcweir                 case text::VertOrientation::TOP:
573*cdf0e10cSrcweir 					nId = STR_VERT_TOP;
574*cdf0e10cSrcweir 					break;
575*cdf0e10cSrcweir                 case text::VertOrientation::CENTER:
576*cdf0e10cSrcweir 					nId = STR_VERT_CENTER;
577*cdf0e10cSrcweir 					break;
578*cdf0e10cSrcweir                 case text::VertOrientation::BOTTOM:
579*cdf0e10cSrcweir 					nId = STR_VERT_BOTTOM;
580*cdf0e10cSrcweir 					break;
581*cdf0e10cSrcweir                 case text::VertOrientation::LINE_TOP:
582*cdf0e10cSrcweir 					nId = STR_LINE_TOP;
583*cdf0e10cSrcweir 					break;
584*cdf0e10cSrcweir                 case text::VertOrientation::LINE_CENTER:
585*cdf0e10cSrcweir 					nId = STR_LINE_CENTER;
586*cdf0e10cSrcweir 					break;
587*cdf0e10cSrcweir                 case text::VertOrientation::LINE_BOTTOM:
588*cdf0e10cSrcweir 					nId = STR_LINE_BOTTOM;
589*cdf0e10cSrcweir 					break;
590*cdf0e10cSrcweir                 default:;//prevent warning
591*cdf0e10cSrcweir 			}
592*cdf0e10cSrcweir 			if ( nId )
593*cdf0e10cSrcweir 				rText += SW_RESSTR( nId );
594*cdf0e10cSrcweir 			return ePres;
595*cdf0e10cSrcweir 		}
596*cdf0e10cSrcweir         default:;//prevent warning
597*cdf0e10cSrcweir 	}
598*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
599*cdf0e10cSrcweir }
600*cdf0e10cSrcweir 
601*cdf0e10cSrcweir //HoriOrientation, wie und woran orientiert --
602*cdf0e10cSrcweir //	sich der FlyFrm in der Hoizontalen ----------
603*cdf0e10cSrcweir 
604*cdf0e10cSrcweir 
605*cdf0e10cSrcweir SfxItemPresentation SwFmtHoriOrient::GetPresentation
606*cdf0e10cSrcweir (
607*cdf0e10cSrcweir 	SfxItemPresentation ePres,
608*cdf0e10cSrcweir 	SfxMapUnit			eCoreUnit,
609*cdf0e10cSrcweir 	SfxMapUnit			ePresUnit,
610*cdf0e10cSrcweir 	String& 			rText,
611*cdf0e10cSrcweir     const IntlWrapper*        pIntl
612*cdf0e10cSrcweir )	const
613*cdf0e10cSrcweir {
614*cdf0e10cSrcweir 	switch ( ePres )
615*cdf0e10cSrcweir 	{
616*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
617*cdf0e10cSrcweir 			rText.Erase();
618*cdf0e10cSrcweir 			break;
619*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
620*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
621*cdf0e10cSrcweir 		{
622*cdf0e10cSrcweir 			sal_uInt16 nId = 0;
623*cdf0e10cSrcweir 			switch ( GetHoriOrient() )
624*cdf0e10cSrcweir 			{
625*cdf0e10cSrcweir                 case text::HoriOrientation::NONE:
626*cdf0e10cSrcweir 				{
627*cdf0e10cSrcweir 					rText += SW_RESSTR( STR_POS_X );
628*cdf0e10cSrcweir 					rText += ' ';
629*cdf0e10cSrcweir                     rText += ::GetMetricText( GetPos(), eCoreUnit, ePresUnit, pIntl );
630*cdf0e10cSrcweir 					rText += ::GetSvxString( ::GetMetricId( ePresUnit ) );
631*cdf0e10cSrcweir 				}
632*cdf0e10cSrcweir 				break;
633*cdf0e10cSrcweir                 case text::HoriOrientation::RIGHT:
634*cdf0e10cSrcweir 					nId = STR_HORI_RIGHT;
635*cdf0e10cSrcweir 				break;
636*cdf0e10cSrcweir                 case text::HoriOrientation::CENTER:
637*cdf0e10cSrcweir 					nId = STR_HORI_CENTER;
638*cdf0e10cSrcweir 				break;
639*cdf0e10cSrcweir                 case text::HoriOrientation::LEFT:
640*cdf0e10cSrcweir 					nId = STR_HORI_LEFT;
641*cdf0e10cSrcweir 				break;
642*cdf0e10cSrcweir                 case text::HoriOrientation::INSIDE:
643*cdf0e10cSrcweir 					nId = STR_HORI_INSIDE;
644*cdf0e10cSrcweir 				break;
645*cdf0e10cSrcweir                 case text::HoriOrientation::OUTSIDE:
646*cdf0e10cSrcweir 					nId = STR_HORI_OUTSIDE;
647*cdf0e10cSrcweir 				break;
648*cdf0e10cSrcweir                 case text::HoriOrientation::FULL:
649*cdf0e10cSrcweir 					nId = STR_HORI_FULL;
650*cdf0e10cSrcweir 				break;
651*cdf0e10cSrcweir                 default:;//prevent warning
652*cdf0e10cSrcweir 			}
653*cdf0e10cSrcweir 			if ( nId )
654*cdf0e10cSrcweir 				rText += SW_RESSTR( nId );
655*cdf0e10cSrcweir 			return ePres;
656*cdf0e10cSrcweir 		}
657*cdf0e10cSrcweir         default:;//prevent warning
658*cdf0e10cSrcweir 	}
659*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
660*cdf0e10cSrcweir }
661*cdf0e10cSrcweir 
662*cdf0e10cSrcweir //FlyAnchor, Anker des Freifliegenden Rahmen ----
663*cdf0e10cSrcweir 
664*cdf0e10cSrcweir 
665*cdf0e10cSrcweir SfxItemPresentation SwFmtAnchor::GetPresentation
666*cdf0e10cSrcweir (
667*cdf0e10cSrcweir 	SfxItemPresentation ePres,
668*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
669*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
670*cdf0e10cSrcweir 	String& 			rText,
671*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
672*cdf0e10cSrcweir )	const
673*cdf0e10cSrcweir {
674*cdf0e10cSrcweir 	switch ( ePres )
675*cdf0e10cSrcweir 	{
676*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
677*cdf0e10cSrcweir 			rText.Erase();
678*cdf0e10cSrcweir 			break;
679*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
680*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
681*cdf0e10cSrcweir 		{
682*cdf0e10cSrcweir 			sal_uInt16 nId = 0;
683*cdf0e10cSrcweir 			switch ( GetAnchorId() )
684*cdf0e10cSrcweir 			{
685*cdf0e10cSrcweir                 case FLY_AT_PARA:
686*cdf0e10cSrcweir                     nId = STR_FLY_AT_PARA;
687*cdf0e10cSrcweir 					break;
688*cdf0e10cSrcweir                 case FLY_AS_CHAR:
689*cdf0e10cSrcweir                     nId = STR_FLY_AS_CHAR;
690*cdf0e10cSrcweir 					break;
691*cdf0e10cSrcweir                 case FLY_AT_PAGE:
692*cdf0e10cSrcweir                     nId = STR_FLY_AT_PAGE;
693*cdf0e10cSrcweir 					break;
694*cdf0e10cSrcweir                 default:;//prevent warning
695*cdf0e10cSrcweir 			}
696*cdf0e10cSrcweir 			if ( nId )
697*cdf0e10cSrcweir 				rText += SW_RESSTR( nId );
698*cdf0e10cSrcweir 			return ePres;
699*cdf0e10cSrcweir 		}
700*cdf0e10cSrcweir         default:;//prevent warning
701*cdf0e10cSrcweir 	}
702*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
703*cdf0e10cSrcweir }
704*cdf0e10cSrcweir 
705*cdf0e10cSrcweir 
706*cdf0e10cSrcweir SfxItemPresentation SwFmtPageDesc::GetPresentation
707*cdf0e10cSrcweir (
708*cdf0e10cSrcweir 	SfxItemPresentation ePres,
709*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
710*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
711*cdf0e10cSrcweir 	String& 			rText,
712*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
713*cdf0e10cSrcweir )	const
714*cdf0e10cSrcweir {
715*cdf0e10cSrcweir 	switch ( ePres )
716*cdf0e10cSrcweir 	{
717*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
718*cdf0e10cSrcweir 			rText.Erase();
719*cdf0e10cSrcweir 			break;
720*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
721*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
722*cdf0e10cSrcweir 		{
723*cdf0e10cSrcweir 			const SwPageDesc *pPageDesc = GetPageDesc();
724*cdf0e10cSrcweir 			if ( pPageDesc )
725*cdf0e10cSrcweir 				rText = pPageDesc->GetName();
726*cdf0e10cSrcweir 			else
727*cdf0e10cSrcweir 				rText = SW_RESSTR( STR_NO_PAGEDESC );
728*cdf0e10cSrcweir 			return ePres;
729*cdf0e10cSrcweir 		}
730*cdf0e10cSrcweir         default:;//prevent warning
731*cdf0e10cSrcweir 	}
732*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
733*cdf0e10cSrcweir }
734*cdf0e10cSrcweir 
735*cdf0e10cSrcweir //Der ColumnDescriptor --------------------------
736*cdf0e10cSrcweir 
737*cdf0e10cSrcweir 
738*cdf0e10cSrcweir SfxItemPresentation SwFmtCol::GetPresentation
739*cdf0e10cSrcweir (
740*cdf0e10cSrcweir 	SfxItemPresentation ePres,
741*cdf0e10cSrcweir 	SfxMapUnit			eCoreUnit,
742*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
743*cdf0e10cSrcweir 	String& 			rText,
744*cdf0e10cSrcweir     const IntlWrapper*        pIntl
745*cdf0e10cSrcweir )	const
746*cdf0e10cSrcweir {
747*cdf0e10cSrcweir 	switch ( ePres )
748*cdf0e10cSrcweir 	{
749*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
750*cdf0e10cSrcweir 			rText.Erase();
751*cdf0e10cSrcweir 			break;
752*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
753*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
754*cdf0e10cSrcweir 		{
755*cdf0e10cSrcweir 			sal_uInt16 nCnt = GetNumCols();
756*cdf0e10cSrcweir 			if ( nCnt > 1 )
757*cdf0e10cSrcweir 			{
758*cdf0e10cSrcweir 				rText = String::CreateFromInt32(nCnt);
759*cdf0e10cSrcweir 				rText += ' ';
760*cdf0e10cSrcweir 				rText += SW_RESSTR( STR_COLUMNS );
761*cdf0e10cSrcweir 				if ( COLADJ_NONE != GetLineAdj() )
762*cdf0e10cSrcweir 				{
763*cdf0e10cSrcweir 					sal_uInt16 nWdth = sal_uInt16(GetLineWidth());
764*cdf0e10cSrcweir 					rText += ' ';
765*cdf0e10cSrcweir 					rText += SW_RESSTR( STR_LINE_WIDTH );
766*cdf0e10cSrcweir 					rText += ' ';
767*cdf0e10cSrcweir 					rText += ::GetMetricText( nWdth, eCoreUnit,
768*cdf0e10cSrcweir                                               SFX_MAPUNIT_POINT, pIntl );
769*cdf0e10cSrcweir 				}
770*cdf0e10cSrcweir 			}
771*cdf0e10cSrcweir 			else
772*cdf0e10cSrcweir 				rText.Erase();
773*cdf0e10cSrcweir 			return ePres;
774*cdf0e10cSrcweir 		}
775*cdf0e10cSrcweir         default:;//prevent warning
776*cdf0e10cSrcweir 	}
777*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
778*cdf0e10cSrcweir }
779*cdf0e10cSrcweir 
780*cdf0e10cSrcweir //URL's und Maps
781*cdf0e10cSrcweir 
782*cdf0e10cSrcweir 
783*cdf0e10cSrcweir SfxItemPresentation SwFmtURL::GetPresentation
784*cdf0e10cSrcweir (
785*cdf0e10cSrcweir 	SfxItemPresentation ePres,
786*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
787*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
788*cdf0e10cSrcweir 	String& 			rText,
789*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
790*cdf0e10cSrcweir )	const
791*cdf0e10cSrcweir {
792*cdf0e10cSrcweir 	rText.Erase();
793*cdf0e10cSrcweir 	switch ( ePres )
794*cdf0e10cSrcweir 	{
795*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
796*cdf0e10cSrcweir 			break;
797*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
798*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
799*cdf0e10cSrcweir 		{
800*cdf0e10cSrcweir 			if ( pMap )
801*cdf0e10cSrcweir 				rText.AppendAscii( RTL_CONSTASCII_STRINGPARAM("Client-Map"));
802*cdf0e10cSrcweir 			if ( sURL.Len() )
803*cdf0e10cSrcweir 			{
804*cdf0e10cSrcweir 				if ( pMap )
805*cdf0e10cSrcweir 					rText.AppendAscii( RTL_CONSTASCII_STRINGPARAM(" - "));
806*cdf0e10cSrcweir 				rText.AppendAscii( RTL_CONSTASCII_STRINGPARAM("URL: "));
807*cdf0e10cSrcweir 				rText += sURL;
808*cdf0e10cSrcweir 				if ( bIsServerMap )
809*cdf0e10cSrcweir 					rText.AppendAscii( RTL_CONSTASCII_STRINGPARAM(" (Server-Map)"));
810*cdf0e10cSrcweir 			}
811*cdf0e10cSrcweir 			if ( sTargetFrameName.Len() )
812*cdf0e10cSrcweir 			{
813*cdf0e10cSrcweir 				rText.AppendAscii( RTL_CONSTASCII_STRINGPARAM(", Target: "));
814*cdf0e10cSrcweir 				rText += sTargetFrameName;
815*cdf0e10cSrcweir 			}
816*cdf0e10cSrcweir 			return ePres;
817*cdf0e10cSrcweir 		}
818*cdf0e10cSrcweir         default:;//prevent warning
819*cdf0e10cSrcweir 	}
820*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
821*cdf0e10cSrcweir }
822*cdf0e10cSrcweir 
823*cdf0e10cSrcweir 
824*cdf0e10cSrcweir //SwFmtEditInReadonly
825*cdf0e10cSrcweir 
826*cdf0e10cSrcweir 
827*cdf0e10cSrcweir SfxItemPresentation SwFmtEditInReadonly::GetPresentation
828*cdf0e10cSrcweir (
829*cdf0e10cSrcweir 	SfxItemPresentation ePres,
830*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
831*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
832*cdf0e10cSrcweir 	String& 			rText,
833*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
834*cdf0e10cSrcweir )	const
835*cdf0e10cSrcweir {
836*cdf0e10cSrcweir 	rText.Erase();
837*cdf0e10cSrcweir 	switch ( ePres )
838*cdf0e10cSrcweir 	{
839*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
840*cdf0e10cSrcweir 			rText.Erase();
841*cdf0e10cSrcweir 			break;
842*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
843*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
844*cdf0e10cSrcweir 		{
845*cdf0e10cSrcweir 			if ( GetValue() )
846*cdf0e10cSrcweir 				rText = SW_RESSTR(STR_EDIT_IN_READONLY);
847*cdf0e10cSrcweir 			return ePres;
848*cdf0e10cSrcweir 		}
849*cdf0e10cSrcweir         default:;//prevent warning
850*cdf0e10cSrcweir 	}
851*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
852*cdf0e10cSrcweir }
853*cdf0e10cSrcweir 
854*cdf0e10cSrcweir 
855*cdf0e10cSrcweir SfxItemPresentation SwFmtLayoutSplit::GetPresentation
856*cdf0e10cSrcweir (
857*cdf0e10cSrcweir 	SfxItemPresentation ePres,
858*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
859*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
860*cdf0e10cSrcweir 	String& 			rText,
861*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
862*cdf0e10cSrcweir )	const
863*cdf0e10cSrcweir {
864*cdf0e10cSrcweir 	switch ( ePres )
865*cdf0e10cSrcweir 	{
866*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
867*cdf0e10cSrcweir 			rText.Erase();
868*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
869*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
870*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
871*cdf0e10cSrcweir 		{
872*cdf0e10cSrcweir 			if ( GetValue() )
873*cdf0e10cSrcweir 				rText = SW_RESSTR(STR_LAYOUT_SPLIT);
874*cdf0e10cSrcweir 			return ePres;
875*cdf0e10cSrcweir 		}
876*cdf0e10cSrcweir         default:;//prevent warning
877*cdf0e10cSrcweir 	}
878*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
879*cdf0e10cSrcweir }
880*cdf0e10cSrcweir 
881*cdf0e10cSrcweir SfxItemPresentation SwFmtRowSplit::GetPresentation
882*cdf0e10cSrcweir (
883*cdf0e10cSrcweir     SfxItemPresentation /*ePres*/,
884*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
885*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
886*cdf0e10cSrcweir     String&             /*rText*/,
887*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
888*cdf0e10cSrcweir )   const
889*cdf0e10cSrcweir {
890*cdf0e10cSrcweir     return SFX_ITEM_PRESENTATION_NONE;
891*cdf0e10cSrcweir }
892*cdf0e10cSrcweir 
893*cdf0e10cSrcweir 
894*cdf0e10cSrcweir SfxItemPresentation SwFmtFtnEndAtTxtEnd::GetPresentation
895*cdf0e10cSrcweir (
896*cdf0e10cSrcweir 	SfxItemPresentation ePres,
897*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
898*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
899*cdf0e10cSrcweir 	String& 			rText,
900*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
901*cdf0e10cSrcweir )	const
902*cdf0e10cSrcweir {
903*cdf0e10cSrcweir 	switch ( ePres )
904*cdf0e10cSrcweir 	{
905*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
906*cdf0e10cSrcweir 			rText.Erase();
907*cdf0e10cSrcweir 			break;
908*cdf0e10cSrcweir 
909*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
910*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
911*cdf0e10cSrcweir 			{
912*cdf0e10cSrcweir 				switch( GetValue() )
913*cdf0e10cSrcweir 				{
914*cdf0e10cSrcweir 				case FTNEND_ATPGORDOCEND:
915*cdf0e10cSrcweir //					rText = SW_RESSTR( STR_LAYOUT_FTN );
916*cdf0e10cSrcweir 					break;
917*cdf0e10cSrcweir 
918*cdf0e10cSrcweir 				case FTNEND_ATTXTEND:
919*cdf0e10cSrcweir 					break;
920*cdf0e10cSrcweir 
921*cdf0e10cSrcweir 				case FTNEND_ATTXTEND_OWNNUMSEQ:
922*cdf0e10cSrcweir 					{
923*cdf0e10cSrcweir //	String 		sPrefix;
924*cdf0e10cSrcweir //	String 		sSuffix;
925*cdf0e10cSrcweir //	SvxNumberType 	aFmt;
926*cdf0e10cSrcweir //	sal_uInt16 	  	nOffset;
927*cdf0e10cSrcweir //						rText +=
928*cdf0e10cSrcweir 					}
929*cdf0e10cSrcweir 					break;
930*cdf0e10cSrcweir 				}
931*cdf0e10cSrcweir 			}
932*cdf0e10cSrcweir 			break;
933*cdf0e10cSrcweir 
934*cdf0e10cSrcweir 		default:
935*cdf0e10cSrcweir 			ePres = SFX_ITEM_PRESENTATION_NONE;
936*cdf0e10cSrcweir 			break;
937*cdf0e10cSrcweir 	}
938*cdf0e10cSrcweir 	return ePres;
939*cdf0e10cSrcweir }
940*cdf0e10cSrcweir 
941*cdf0e10cSrcweir SfxItemPresentation SwFmtChain::GetPresentation
942*cdf0e10cSrcweir (
943*cdf0e10cSrcweir 	SfxItemPresentation ePres,
944*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
945*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
946*cdf0e10cSrcweir 	String& 			rText,
947*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
948*cdf0e10cSrcweir )	const
949*cdf0e10cSrcweir {
950*cdf0e10cSrcweir 	switch ( ePres )
951*cdf0e10cSrcweir 	{
952*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
953*cdf0e10cSrcweir 			rText.Erase();
954*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
955*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
956*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
957*cdf0e10cSrcweir 		{
958*cdf0e10cSrcweir 			if ( GetPrev() || GetNext() )
959*cdf0e10cSrcweir 			{
960*cdf0e10cSrcweir 				rText = SW_RESSTR(STR_CONNECT1);
961*cdf0e10cSrcweir 				if ( GetPrev() )
962*cdf0e10cSrcweir 				{
963*cdf0e10cSrcweir 					rText += GetPrev()->GetName();
964*cdf0e10cSrcweir 					if ( GetNext() )
965*cdf0e10cSrcweir 						rText += SW_RESSTR(STR_CONNECT2);
966*cdf0e10cSrcweir 				}
967*cdf0e10cSrcweir 				if ( GetNext() )
968*cdf0e10cSrcweir 					rText += GetNext()->GetName();
969*cdf0e10cSrcweir 			}
970*cdf0e10cSrcweir 			return ePres;
971*cdf0e10cSrcweir 		}
972*cdf0e10cSrcweir         default:;//prevent warning
973*cdf0e10cSrcweir 	}
974*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
975*cdf0e10cSrcweir }
976*cdf0e10cSrcweir 
977*cdf0e10cSrcweir 
978*cdf0e10cSrcweir SfxItemPresentation SwFmtLineNumber::GetPresentation
979*cdf0e10cSrcweir (
980*cdf0e10cSrcweir 	SfxItemPresentation ePres,
981*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
982*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
983*cdf0e10cSrcweir 	String& 			rText,
984*cdf0e10cSrcweir     const IntlWrapper*    /*pIntl*/
985*cdf0e10cSrcweir )	const
986*cdf0e10cSrcweir {
987*cdf0e10cSrcweir 	switch ( ePres )
988*cdf0e10cSrcweir 	{
989*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
990*cdf0e10cSrcweir 			rText.Erase();
991*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
992*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
993*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
994*cdf0e10cSrcweir 		{
995*cdf0e10cSrcweir 			if ( IsCount() )
996*cdf0e10cSrcweir 				rText += SW_RESSTR(STR_LINECOUNT);
997*cdf0e10cSrcweir 			else
998*cdf0e10cSrcweir 				rText += SW_RESSTR(STR_DONTLINECOUNT);
999*cdf0e10cSrcweir 			if ( GetStartValue() )
1000*cdf0e10cSrcweir 			{
1001*cdf0e10cSrcweir 				rText += ' ';
1002*cdf0e10cSrcweir 				rText += SW_RESSTR(STR_LINCOUNT_START);
1003*cdf0e10cSrcweir 				rText += String::CreateFromInt32(GetStartValue());
1004*cdf0e10cSrcweir 			}
1005*cdf0e10cSrcweir 			return ePres;
1006*cdf0e10cSrcweir 		}
1007*cdf0e10cSrcweir         default:;//prevent warning
1008*cdf0e10cSrcweir 	}
1009*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
1010*cdf0e10cSrcweir }
1011*cdf0e10cSrcweir 
1012*cdf0e10cSrcweir SfxItemPresentation SwTextGridItem::GetPresentation
1013*cdf0e10cSrcweir (
1014*cdf0e10cSrcweir     SfxItemPresentation ePres,
1015*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
1016*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
1017*cdf0e10cSrcweir 	String& 			rText,
1018*cdf0e10cSrcweir     const IntlWrapper*  /*pIntl*/
1019*cdf0e10cSrcweir )	const
1020*cdf0e10cSrcweir {
1021*cdf0e10cSrcweir 	switch ( ePres )
1022*cdf0e10cSrcweir 	{
1023*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NONE:
1024*cdf0e10cSrcweir 			rText.Erase();
1025*cdf0e10cSrcweir 			return SFX_ITEM_PRESENTATION_NONE;
1026*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_NAMELESS:
1027*cdf0e10cSrcweir 		case SFX_ITEM_PRESENTATION_COMPLETE:
1028*cdf0e10cSrcweir 		{
1029*cdf0e10cSrcweir 			sal_uInt16 nId = 0;
1030*cdf0e10cSrcweir 
1031*cdf0e10cSrcweir             switch ( GetGridType() )
1032*cdf0e10cSrcweir             {
1033*cdf0e10cSrcweir             case GRID_NONE :
1034*cdf0e10cSrcweir                 nId = STR_GRID_NONE;
1035*cdf0e10cSrcweir                 break;
1036*cdf0e10cSrcweir             case GRID_LINES_ONLY :
1037*cdf0e10cSrcweir                 nId = STR_GRID_LINES_ONLY;
1038*cdf0e10cSrcweir                 break;
1039*cdf0e10cSrcweir             case GRID_LINES_CHARS :
1040*cdf0e10cSrcweir                 nId = STR_GRID_LINES_CHARS;
1041*cdf0e10cSrcweir                 break;
1042*cdf0e10cSrcweir             }
1043*cdf0e10cSrcweir 			if ( nId )
1044*cdf0e10cSrcweir                 rText += SW_RESSTR( nId );
1045*cdf0e10cSrcweir 			return ePres;
1046*cdf0e10cSrcweir 		}
1047*cdf0e10cSrcweir         default:;//prevent warning
1048*cdf0e10cSrcweir 	}
1049*cdf0e10cSrcweir 
1050*cdf0e10cSrcweir     return SFX_ITEM_PRESENTATION_NONE;
1051*cdf0e10cSrcweir }
1052*cdf0e10cSrcweir 
1053*cdf0e10cSrcweir 
1054*cdf0e10cSrcweir //SwHeaderAndFooterEatSpacingItem
1055*cdf0e10cSrcweir 
1056*cdf0e10cSrcweir 
1057*cdf0e10cSrcweir SfxItemPresentation SwHeaderAndFooterEatSpacingItem::GetPresentation
1058*cdf0e10cSrcweir (
1059*cdf0e10cSrcweir     SfxItemPresentation /*ePres*/,
1060*cdf0e10cSrcweir     SfxMapUnit          /*eCoreUnit*/,
1061*cdf0e10cSrcweir     SfxMapUnit          /*ePresUnit*/,
1062*cdf0e10cSrcweir     String&             /*rText*/,
1063*cdf0e10cSrcweir     const IntlWrapper*        /*pIntl*/
1064*cdf0e10cSrcweir )	const
1065*cdf0e10cSrcweir {
1066*cdf0e10cSrcweir //    rText.Erase();
1067*cdf0e10cSrcweir //    switch ( ePres )
1068*cdf0e10cSrcweir //    {
1069*cdf0e10cSrcweir //        case SFX_ITEM_PRESENTATION_NONE:
1070*cdf0e10cSrcweir //            rText.Erase();
1071*cdf0e10cSrcweir //            break;
1072*cdf0e10cSrcweir //        case SFX_ITEM_PRESENTATION_NAMELESS:
1073*cdf0e10cSrcweir //        case SFX_ITEM_PRESENTATION_COMPLETE:
1074*cdf0e10cSrcweir //        {
1075*cdf0e10cSrcweir //            if ( GetValue() )
1076*cdf0e10cSrcweir //                rText = SW_RESSTR(STR_EDIT_IN_READONLY);
1077*cdf0e10cSrcweir //            return ePres;
1078*cdf0e10cSrcweir //        }
1079*cdf0e10cSrcweir //    }
1080*cdf0e10cSrcweir 	return SFX_ITEM_PRESENTATION_NONE;
1081*cdf0e10cSrcweir }
1082*cdf0e10cSrcweir 
1083*cdf0e10cSrcweir 
1084*cdf0e10cSrcweir // ---------------------- Grafik-Attribute --------------------------
1085*cdf0e10cSrcweir 
1086*cdf0e10cSrcweir SfxItemPresentation SwMirrorGrf::GetPresentation(
1087*cdf0e10cSrcweir     SfxItemPresentation ePres, SfxMapUnit /*eCoreUnit*/, SfxMapUnit /*ePresUnit*/,
1088*cdf0e10cSrcweir     String& rText, const IntlWrapper* /*pIntl*/ ) const
1089*cdf0e10cSrcweir {
1090*cdf0e10cSrcweir 	switch ( ePres )
1091*cdf0e10cSrcweir 	{
1092*cdf0e10cSrcweir 	case SFX_ITEM_PRESENTATION_NAMELESS:
1093*cdf0e10cSrcweir 	case SFX_ITEM_PRESENTATION_COMPLETE:
1094*cdf0e10cSrcweir 		{
1095*cdf0e10cSrcweir 			sal_uInt16 nId;
1096*cdf0e10cSrcweir 			switch( GetValue() )
1097*cdf0e10cSrcweir 			{
1098*cdf0e10cSrcweir             case RES_MIRROR_GRAPH_DONT:     nId = STR_NO_MIRROR;    break;
1099*cdf0e10cSrcweir             case RES_MIRROR_GRAPH_VERT: nId = STR_VERT_MIRROR;  break;
1100*cdf0e10cSrcweir             case RES_MIRROR_GRAPH_HOR:  nId = STR_HORI_MIRROR;  break;
1101*cdf0e10cSrcweir             case RES_MIRROR_GRAPH_BOTH: nId = STR_BOTH_MIRROR;  break;
1102*cdf0e10cSrcweir 			default:					nId = 0;	break;
1103*cdf0e10cSrcweir 			}
1104*cdf0e10cSrcweir 			if ( nId )
1105*cdf0e10cSrcweir 			{
1106*cdf0e10cSrcweir 				rText = SW_RESSTR( nId );
1107*cdf0e10cSrcweir 				if (bGrfToggle)
1108*cdf0e10cSrcweir 					rText += SW_RESSTR( STR_MIRROR_TOGGLE );
1109*cdf0e10cSrcweir 			}
1110*cdf0e10cSrcweir 		}
1111*cdf0e10cSrcweir 		break;
1112*cdf0e10cSrcweir 	default:
1113*cdf0e10cSrcweir 		ePres = SFX_ITEM_PRESENTATION_NONE;
1114*cdf0e10cSrcweir 		rText.Erase();
1115*cdf0e10cSrcweir 		break;
1116*cdf0e10cSrcweir 	}
1117*cdf0e10cSrcweir 	return ePres;
1118*cdf0e10cSrcweir }
1119*cdf0e10cSrcweir 
1120*cdf0e10cSrcweir 
1121*cdf0e10cSrcweir SfxItemPresentation SwRotationGrf::GetPresentation(
1122*cdf0e10cSrcweir     SfxItemPresentation ePres, SfxMapUnit /*eCoreUnit*/, SfxMapUnit /*ePresUnit*/,
1123*cdf0e10cSrcweir     String &rText, const IntlWrapper* /*pIntl*/) const
1124*cdf0e10cSrcweir {
1125*cdf0e10cSrcweir 	switch( ePres )
1126*cdf0e10cSrcweir 	{
1127*cdf0e10cSrcweir 	case SFX_ITEM_PRESENTATION_NAMELESS:
1128*cdf0e10cSrcweir 	case SFX_ITEM_PRESENTATION_COMPLETE:
1129*cdf0e10cSrcweir 		if( SFX_ITEM_PRESENTATION_COMPLETE == ePres )
1130*cdf0e10cSrcweir 			rText = SW_RESSTR( STR_ROTATION );
1131*cdf0e10cSrcweir 		else if( rText.Len() )
1132*cdf0e10cSrcweir 			rText.Erase();
1133*cdf0e10cSrcweir         ( rText += UniString::CreateFromInt32( GetValue() )) += '\xB0';
1134*cdf0e10cSrcweir 		break;
1135*cdf0e10cSrcweir 
1136*cdf0e10cSrcweir 	default:
1137*cdf0e10cSrcweir 		ePres = SFX_ITEM_PRESENTATION_NONE;
1138*cdf0e10cSrcweir 		rText.Erase();
1139*cdf0e10cSrcweir 		break;
1140*cdf0e10cSrcweir 	}
1141*cdf0e10cSrcweir 	return ePres;
1142*cdf0e10cSrcweir }
1143*cdf0e10cSrcweir 
1144*cdf0e10cSrcweir SfxItemPresentation SwLuminanceGrf::GetPresentation(
1145*cdf0e10cSrcweir     SfxItemPresentation ePres, SfxMapUnit /*eCoreUnit*/, SfxMapUnit /*ePresUnit*/,
1146*cdf0e10cSrcweir     String &rText, const IntlWrapper* /*pIntl*/) const
1147*cdf0e10cSrcweir {
1148*cdf0e10cSrcweir 	switch( ePres )
1149*cdf0e10cSrcweir 	{
1150*cdf0e10cSrcweir 	case SFX_ITEM_PRESENTATION_NAMELESS:
1151*cdf0e10cSrcweir 	case SFX_ITEM_PRESENTATION_COMPLETE:
1152*cdf0e10cSrcweir 		if( SFX_ITEM_PRESENTATION_COMPLETE == ePres )
1153*cdf0e10cSrcweir 			rText = SW_RESSTR( STR_LUMINANCE );
1154*cdf0e10cSrcweir 		else if( rText.Len() )
1155*cdf0e10cSrcweir 			rText.Erase();
1156*cdf0e10cSrcweir 		( rText += UniString::CreateFromInt32( GetValue() )) += '%';
1157*cdf0e10cSrcweir 		break;
1158*cdf0e10cSrcweir 
1159*cdf0e10cSrcweir 	default:
1160*cdf0e10cSrcweir 		ePres = SFX_ITEM_PRESENTATION_NONE;
1161*cdf0e10cSrcweir 		rText.Erase();
1162*cdf0e10cSrcweir 		break;
1163*cdf0e10cSrcweir 	}
1164*cdf0e10cSrcweir 	return ePres;
1165*cdf0e10cSrcweir }
1166*cdf0e10cSrcweir 
1167*cdf0e10cSrcweir SfxItemPresentation SwContrastGrf::GetPresentation(
1168*cdf0e10cSrcweir     SfxItemPresentation ePres, SfxMapUnit /*eCoreUnit*/, SfxMapUnit /*ePresUnit*/,
1169*cdf0e10cSrcweir     String &rText, const IntlWrapper* /*pIntl*/) const
1170*cdf0e10cSrcweir {
1171*cdf0e10cSrcweir 	switch( ePres )
1172*cdf0e10cSrcweir 	{
1173*cdf0e10cSrcweir 	case SFX_ITEM_PRESENTATION_NAMELESS:
1174*cdf0e10cSrcweir 	case SFX_ITEM_PRESENTATION_COMPLETE:
1175*cdf0e10cSrcweir 		if( SFX_ITEM_PRESENTATION_COMPLETE == ePres )
1176*cdf0e10cSrcweir 			rText = SW_RESSTR( STR_CONTRAST );
1177*cdf0e10cSrcweir 		else if( rText.Len() )
1178*cdf0e10cSrcweir 			rText.Erase();
1179*cdf0e10cSrcweir 		( rText += UniString::CreateFromInt32( GetValue() )) += '%';
1180*cdf0e10cSrcweir 		break;
1181*cdf0e10cSrcweir 
1182*cdf0e10cSrcweir 	default:
1183*cdf0e10cSrcweir 		ePres = SFX_ITEM_PRESENTATION_NONE;
1184*cdf0e10cSrcweir 		rText.Erase();
1185*cdf0e10cSrcweir 		break;
1186*cdf0e10cSrcweir 	}
1187*cdf0e10cSrcweir 	return ePres;
1188*cdf0e10cSrcweir }
1189*cdf0e10cSrcweir 
1190*cdf0e10cSrcweir SfxItemPresentation SwChannelGrf::GetPresentation(
1191*cdf0e10cSrcweir     SfxItemPresentation ePres, SfxMapUnit /*eCoreUnit*/, SfxMapUnit /*ePresUnit*/,
1192*cdf0e10cSrcweir     String &rText, const IntlWrapper* /*pIntl*/) const
1193*cdf0e10cSrcweir {
1194*cdf0e10cSrcweir 	switch( ePres )
1195*cdf0e10cSrcweir 	{
1196*cdf0e10cSrcweir 	case SFX_ITEM_PRESENTATION_NAMELESS:
1197*cdf0e10cSrcweir 	case SFX_ITEM_PRESENTATION_COMPLETE:
1198*cdf0e10cSrcweir 		if( SFX_ITEM_PRESENTATION_COMPLETE == ePres )
1199*cdf0e10cSrcweir 		{
1200*cdf0e10cSrcweir 			sal_uInt16 nId;
1201*cdf0e10cSrcweir 			switch ( Which() )
1202*cdf0e10cSrcweir 			{
1203*cdf0e10cSrcweir 			case RES_GRFATR_CHANNELR:	nId = STR_CHANNELR; break;
1204*cdf0e10cSrcweir 			case RES_GRFATR_CHANNELG:	nId = STR_CHANNELG; break;
1205*cdf0e10cSrcweir 			case RES_GRFATR_CHANNELB:	nId = STR_CHANNELB; break;
1206*cdf0e10cSrcweir 			default:					nId = 0; break;
1207*cdf0e10cSrcweir 			}
1208*cdf0e10cSrcweir 			if( nId )
1209*cdf0e10cSrcweir 				rText = SW_RESSTR( nId );
1210*cdf0e10cSrcweir 			else if( rText.Len() )
1211*cdf0e10cSrcweir 				rText.Erase();
1212*cdf0e10cSrcweir 		}
1213*cdf0e10cSrcweir 		else if( rText.Len() )
1214*cdf0e10cSrcweir 			rText.Erase();
1215*cdf0e10cSrcweir 		( rText += UniString::CreateFromInt32( GetValue() )) += '%';
1216*cdf0e10cSrcweir 		break;
1217*cdf0e10cSrcweir 
1218*cdf0e10cSrcweir 	default:
1219*cdf0e10cSrcweir 		ePres = SFX_ITEM_PRESENTATION_NONE;
1220*cdf0e10cSrcweir 		rText.Erase();
1221*cdf0e10cSrcweir 		break;
1222*cdf0e10cSrcweir 	}
1223*cdf0e10cSrcweir 	return ePres;
1224*cdf0e10cSrcweir }
1225*cdf0e10cSrcweir 
1226*cdf0e10cSrcweir SfxItemPresentation SwGammaGrf::GetPresentation(
1227*cdf0e10cSrcweir     SfxItemPresentation ePres, SfxMapUnit /*eCoreUnit*/, SfxMapUnit /*ePresUnit*/,
1228*cdf0e10cSrcweir     String &rText, const IntlWrapper* /*pIntl*/) const
1229*cdf0e10cSrcweir {
1230*cdf0e10cSrcweir 	switch( ePres )
1231*cdf0e10cSrcweir 	{
1232*cdf0e10cSrcweir 	case SFX_ITEM_PRESENTATION_NAMELESS:
1233*cdf0e10cSrcweir 	case SFX_ITEM_PRESENTATION_COMPLETE:
1234*cdf0e10cSrcweir 		if( SFX_ITEM_PRESENTATION_COMPLETE == ePres )
1235*cdf0e10cSrcweir 			rText = SW_RESSTR( STR_GAMMA );
1236*cdf0e10cSrcweir 		else if( rText.Len() )
1237*cdf0e10cSrcweir 			rText.Erase();
1238*cdf0e10cSrcweir 		( rText += UniString::CreateFromDouble( GetValue() )) += '%';
1239*cdf0e10cSrcweir 		break;
1240*cdf0e10cSrcweir 
1241*cdf0e10cSrcweir 	default:
1242*cdf0e10cSrcweir 		ePres = SFX_ITEM_PRESENTATION_NONE;
1243*cdf0e10cSrcweir 		rText.Erase();
1244*cdf0e10cSrcweir 		break;
1245*cdf0e10cSrcweir 	}
1246*cdf0e10cSrcweir 	return ePres;
1247*cdf0e10cSrcweir }
1248*cdf0e10cSrcweir 
1249*cdf0e10cSrcweir SfxItemPresentation SwInvertGrf::GetPresentation(
1250*cdf0e10cSrcweir     SfxItemPresentation ePres, SfxMapUnit /*eCoreUnit*/, SfxMapUnit /*ePresUnit*/,
1251*cdf0e10cSrcweir     String &rText, const IntlWrapper* /*pIntl*/) const
1252*cdf0e10cSrcweir {
1253*cdf0e10cSrcweir 	rText.Erase();
1254*cdf0e10cSrcweir 	switch( ePres )
1255*cdf0e10cSrcweir 	{
1256*cdf0e10cSrcweir 	case SFX_ITEM_PRESENTATION_NAMELESS:
1257*cdf0e10cSrcweir 	case SFX_ITEM_PRESENTATION_COMPLETE:
1258*cdf0e10cSrcweir 		if( SFX_ITEM_PRESENTATION_COMPLETE == ePres )
1259*cdf0e10cSrcweir 		{
1260*cdf0e10cSrcweir 			sal_uInt16 nId = 0 != GetValue() ? STR_INVERT : STR_INVERT_NOT;
1261*cdf0e10cSrcweir 			rText = SW_RESSTR( nId );
1262*cdf0e10cSrcweir 		}
1263*cdf0e10cSrcweir 		break;
1264*cdf0e10cSrcweir 
1265*cdf0e10cSrcweir 	default:
1266*cdf0e10cSrcweir 		ePres = SFX_ITEM_PRESENTATION_NONE;
1267*cdf0e10cSrcweir 		break;
1268*cdf0e10cSrcweir 	}
1269*cdf0e10cSrcweir 	return ePres;
1270*cdf0e10cSrcweir }
1271*cdf0e10cSrcweir 
1272*cdf0e10cSrcweir SfxItemPresentation SwTransparencyGrf::GetPresentation(
1273*cdf0e10cSrcweir     SfxItemPresentation ePres, SfxMapUnit /*eCoreUnit*/, SfxMapUnit /*ePresUnit*/,
1274*cdf0e10cSrcweir     String &rText, const IntlWrapper* /*pIntl*/) const
1275*cdf0e10cSrcweir {
1276*cdf0e10cSrcweir 	switch( ePres )
1277*cdf0e10cSrcweir 	{
1278*cdf0e10cSrcweir 	case SFX_ITEM_PRESENTATION_NAMELESS:
1279*cdf0e10cSrcweir 	case SFX_ITEM_PRESENTATION_COMPLETE:
1280*cdf0e10cSrcweir 		if( SFX_ITEM_PRESENTATION_COMPLETE == ePres )
1281*cdf0e10cSrcweir 			rText = SW_RESSTR( STR_TRANSPARENCY );
1282*cdf0e10cSrcweir 		else if( rText.Len() )
1283*cdf0e10cSrcweir 			rText.Erase();
1284*cdf0e10cSrcweir 		( rText += UniString::CreateFromInt32( GetValue() )) += '%';
1285*cdf0e10cSrcweir 		break;
1286*cdf0e10cSrcweir 
1287*cdf0e10cSrcweir 	default:
1288*cdf0e10cSrcweir 		ePres = SFX_ITEM_PRESENTATION_NONE;
1289*cdf0e10cSrcweir 		rText.Erase();
1290*cdf0e10cSrcweir 		break;
1291*cdf0e10cSrcweir 	}
1292*cdf0e10cSrcweir 	return ePres;
1293*cdf0e10cSrcweir }
1294*cdf0e10cSrcweir 
1295*cdf0e10cSrcweir SfxItemPresentation SwDrawModeGrf::GetPresentation(
1296*cdf0e10cSrcweir     SfxItemPresentation ePres, SfxMapUnit /*eCoreUnit*/, SfxMapUnit /*ePresUnit*/,
1297*cdf0e10cSrcweir     String &rText, const IntlWrapper* /*pIntl*/) const
1298*cdf0e10cSrcweir {
1299*cdf0e10cSrcweir 	rText.Erase();
1300*cdf0e10cSrcweir 	switch( ePres )
1301*cdf0e10cSrcweir 	{
1302*cdf0e10cSrcweir 	case SFX_ITEM_PRESENTATION_NAMELESS:
1303*cdf0e10cSrcweir 	case SFX_ITEM_PRESENTATION_COMPLETE:
1304*cdf0e10cSrcweir 		if( SFX_ITEM_PRESENTATION_COMPLETE == ePres )
1305*cdf0e10cSrcweir 		{
1306*cdf0e10cSrcweir 			sal_uInt16 nId;
1307*cdf0e10cSrcweir 			switch ( GetValue() )
1308*cdf0e10cSrcweir 			{
1309*cdf0e10cSrcweir 
1310*cdf0e10cSrcweir 			case GRAPHICDRAWMODE_GREYS:		nId = STR_DRAWMODE_GREY; break;
1311*cdf0e10cSrcweir 			case GRAPHICDRAWMODE_MONO:      nId = STR_DRAWMODE_BLACKWHITE; break;
1312*cdf0e10cSrcweir 			case GRAPHICDRAWMODE_WATERMARK:	nId = STR_DRAWMODE_WATERMARK; break;
1313*cdf0e10cSrcweir 			default:						nId = STR_DRAWMODE_STD; break;
1314*cdf0e10cSrcweir 			}
1315*cdf0e10cSrcweir 			(rText = SW_RESSTR( STR_DRAWMODE ) ) += SW_RESSTR( nId );
1316*cdf0e10cSrcweir 		}
1317*cdf0e10cSrcweir 		break;
1318*cdf0e10cSrcweir 
1319*cdf0e10cSrcweir 	default:
1320*cdf0e10cSrcweir 		ePres = SFX_ITEM_PRESENTATION_NONE;
1321*cdf0e10cSrcweir 		break;
1322*cdf0e10cSrcweir 	}
1323*cdf0e10cSrcweir 	return ePres;
1324*cdf0e10cSrcweir }
1325*cdf0e10cSrcweir 
1326*cdf0e10cSrcweir SfxItemPresentation SwFmtFollowTextFlow::GetPresentation( SfxItemPresentation ePres,
1327*cdf0e10cSrcweir                                     SfxMapUnit /*eCoreMetric*/,
1328*cdf0e10cSrcweir                                     SfxMapUnit /*ePresMetric*/,
1329*cdf0e10cSrcweir                                     String &rText,
1330*cdf0e10cSrcweir                                     const IntlWrapper*    /*pIntl*/ ) const
1331*cdf0e10cSrcweir {
1332*cdf0e10cSrcweir     rText.Erase();
1333*cdf0e10cSrcweir     switch( ePres )
1334*cdf0e10cSrcweir     {
1335*cdf0e10cSrcweir         case SFX_ITEM_PRESENTATION_NAMELESS:
1336*cdf0e10cSrcweir         break;
1337*cdf0e10cSrcweir         case SFX_ITEM_PRESENTATION_COMPLETE:
1338*cdf0e10cSrcweir             {
1339*cdf0e10cSrcweir                 sal_uInt16 nId = GetValue() ? STR_FOLLOW_TEXT_FLOW : STR_DONT_FOLLOW_TEXT_FLOW;
1340*cdf0e10cSrcweir                 rText = SW_RESSTR( nId );
1341*cdf0e10cSrcweir             }
1342*cdf0e10cSrcweir         break;
1343*cdf0e10cSrcweir 
1344*cdf0e10cSrcweir         default:
1345*cdf0e10cSrcweir             ePres = SFX_ITEM_PRESENTATION_NONE;
1346*cdf0e10cSrcweir         break;
1347*cdf0e10cSrcweir     }
1348*cdf0e10cSrcweir     return ePres;
1349*cdf0e10cSrcweir }
1350*cdf0e10cSrcweir 
1351