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