diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2006-12-01 14:59:19 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2006-12-01 14:59:19 +0000 |
commit | 692c218aeb56da1515ded4b1d7d225a96eb9e2b2 (patch) | |
tree | 34572330ac421205e17375ab9f5fe2aa8bba47cf /sw/source/ui/utlui/attrdesc.cxx | |
parent | f3decdc5338ad08a69af2a346e065374af5df2b8 (diff) |
INTEGRATION: CWS swautomatic01 (1.18.322); FILE MERGED
2006/10/10 19:34:40 fme 1.18.322.3: RESYNC: (1.19-1.20); FILE MERGED
2006/09/01 13:44:49 fme 1.18.322.2: RESYNC: (1.18-1.19); FILE MERGED
2006/05/17 14:39:47 ama 1.18.322.1: #i65476# Automatic Styles
Diffstat (limited to 'sw/source/ui/utlui/attrdesc.cxx')
-rw-r--r-- | sw/source/ui/utlui/attrdesc.cxx | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/sw/source/ui/utlui/attrdesc.cxx b/sw/source/ui/utlui/attrdesc.cxx index 2a65d1cd3b..396809dd99 100644 --- a/sw/source/ui/utlui/attrdesc.cxx +++ b/sw/source/ui/utlui/attrdesc.cxx @@ -4,9 +4,9 @@ * * $RCSfile: attrdesc.cxx,v $ * - * $Revision: 1.20 $ + * $Revision: 1.21 $ * - * last change: $Author: obo $ $Date: 2006-09-16 23:31:56 $ + * last change: $Author: rt $ $Date: 2006-12-01 15:59:19 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -70,6 +70,9 @@ #ifndef _FCHRFMT_HXX //autogen #include <fchrfmt.hxx> #endif +#ifndef _FMTAUTOFMT_HXX +#include <fmtautofmt.hxx> +#endif #ifndef _FMTSRND_HXX //autogen #include <fmtsrnd.hxx> #endif @@ -222,6 +225,33 @@ SfxItemPresentation SwFmtCharFmt::GetPresentation return SFX_ITEM_PRESENTATION_NONE; } +// ATT_AUTOFMT ********************************************* + + +SfxItemPresentation SwFmtAutoFmt::GetPresentation +( + SfxItemPresentation ePres, + SfxMapUnit eCoreUnit, + SfxMapUnit ePresUnit, + String& rText, + const IntlWrapper* pIntl +) const +{ + switch ( ePres ) + { + case SFX_ITEM_PRESENTATION_NONE: + rText.Erase(); + break; + case SFX_ITEM_PRESENTATION_NAMELESS: + case SFX_ITEM_PRESENTATION_COMPLETE: + { + rText.Erase(); //TODO + return ePres; + } + } + return SFX_ITEM_PRESENTATION_NONE; +} + // ATT_INETFMT ********************************************* |