🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #117022

Re: WinWord spellchecker in Xnews (was Re: Xnews' future)

#117022
From: Ch.Esperado
Date: Tue, 31 Dec 2002 21:16
114 lines
5767 bytes
Le mar. 31 d�c. 2002 07:57:49 � 726724 <726724@nomail.com> � s'est dit: 
"tiens, je vais �crire �a": news:hqf21vocrnp4vgffmd0uhtdd7rlntbotla@4ax.com

> use EditExt and it will underline
> spelling mistakes on the fly .

Got-it.
Thanks a lot.
I was searching for so long time..
But 7 MO it is something ;-)
I was so much bored with winword, two macros on the fly:
one to get rid of all fancy .dot, and the second to return to Xnews on one 
clic.
Those, if somebody is interested: bring-it to the menu, and Just clic.
The starting one:
#####################################################################
Sub XnewStart()
'
' XnewsSart Macro
' 
'
    ActiveDocument.Styles("Xnews").AutomaticallyUpdate = True
    With ActiveDocument.Styles("Xnews").Font
        .Name = "Courier New"
        .Size = 10
        .Bold = False
        .Italic = False
        .Underline = wdUnderlineNone        
        .StrikeThrough = False
        .DoubleStrikeThrough = False
        .Outline = False
        .Emboss = False
        .Shadow = False
        .Hidden = False
        .SmallCaps = False
        .AllCaps = False
        .Color = wdColorAutomatic
        .Engrave = False
        .Superscript = False
        .Subscript = False
        .Scaling = 100
        .Kerning = 0
        .Animation = wdAnimationNone
    End With
    With ActiveDocument.Styles("Xnews").ParagraphFormat
        .LeftIndent = PixelsToPoints(0)
        .RightIndent = PixelsToPoints(29)
        .SpaceBefore = PixelsToPoints(0)
        .SpaceBeforeAuto = False
        .SpaceAfter = PixelsToPoints(0)
        .SpaceAfterAuto = False
        .LineSpacingRule = wdLineSpaceSingle
        .Alignment = wdAlignParagraphLeft
        .WidowControl = True
        .KeepWithNext = False
        .KeepTogether = False
        .PageBreakBefore = False
        .NoLineNumber = False
        .Hyphenation = True
        .FirstLineIndent = 0
        .OutlineLevel = wdOutlineLevelBodyText
        .CharacterUnitLeftIndent = PixelsToPoints(0)
        .CharacterUnitRightIndent = PixelsToPoints(0)
        .CharacterUnitFirstLineIndent = PixelsToPoints(0)
        .LineUnitBefore = PixelsToPoints(0)
        .LineUnitAfter = PixelsToPoints(0)
    End With
    ActiveDocument.Styles("Xnews").ParagraphFormat.TabStops.ClearAll
    ActiveDocument.Styles("Xnews").ParagraphFormat.TabStops.Add 
Position:=459, _
         Alignment:=wdAlignTabLeft, Leader:=wdTabLeaderSpaces
    With ActiveDocument.Styles("Xnews").ParagraphFormat
        With .Shading
            .Texture = wdTextureNone
            .ForegroundPatternColor = wdColorAutomatic
            .BackgroundPatternColor = wdColorAutomatic
        End With
        .Borders(wdBorderLeft).LineStyle = wdLineStyleNone
        .Borders(wdBorderRight).LineStyle = wdLineStyleNone
        .Borders(wdBorderTop).LineStyle = wdLineStyleNone
        .Borders(wdBorderBottom).LineStyle = wdLineStyleNone
        With .Borders
            .DistanceFromTop = 1
            .DistanceFromLeft = 4
            .DistanceFromBottom = 1
            .DistanceFromRight = 4
            .Shadow = False
        End With
    End With
    ActiveDocument.Styles("Xnews").LanguageID = wdFrench
    ActiveDocument.Styles("Xnews").NoProofing = False
    ActiveDocument.Styles("Xnews").Frame.Delete
    Selection.Style = ActiveDocument.Styles("Xnews")
End Sub
######################################################
And to return:
#####################################################
Sub XnClose()
'
' XnClose Macro

'
    ActiveDocument.Save
    ActiveWindow.Close
    Application.WindowState = wdWindowStateMinimize

End Sub

-- 
Christophe.                         <http://esperado.chez.tiscali.fr>
Il est toujours utile de faire � des questions techniques, des r�ponses
en vingt lignes du genre: Lisez l'aide tout y est expliqu� etc...
Surtout quand la r�ponse pr�cise aurait pris une seule ligne.
Technical Details
Message-ID: <aut500.3vubotb.1@ch.esperado.hamster-fr.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!proxad.net!feeder2-1.proxad.net!news3-1.free.fr!not-for-mail
References: <aunbc6$8pfk8$3@ID-34.news.dfncis.de> <1ssuapmujk2v0.1rd72saitbkrh.dlg@40tude.net> <m2n0mobocj.fsf@maxqnz.com> <auoei3.3vvkc65.1@ch.esperado.hamster-fr.org> <Xns92F425A5B51EdHKD5wn8zzamck5@209.98.50.131> <aupri4.3vvi7ef.1@ch.esperado.hamster-fr.org> <Xns92F4EA39E9B37iaincheyne@195.149.20.147> <pan.2002.12.31.00.16.01.863620@ibtta.gov> <aurdvg$9me9n$4@ID-34.news.dfncis.de> <hqf21vocrnp4vgffmd0uhtdd7rlntbotla@4ax.com>

Show Full Headers
Complete Article Headers
Message-ID: <aut500.3vubotb.1@ch.esperado.hamster-fr.org>
Subject: Re: WinWord spellchecker in Xnews (was Re: Xnews' future)
Date: Tue, 31 Dec 2002 22:16:31 +0100
From: "Ch.Esperado" <ch.esperado@hamster-fr.org>
References: <aunbc6$8pfk8$3@ID-34.news.dfncis.de> <1ssuapmujk2v0.1rd72saitbkrh.dlg@40tude.net> <m2n0mobocj.fsf@maxqnz.com> <auoei3.3vvkc65.1@ch.esperado.hamster-fr.org> <Xns92F425A5B51EdHKD5wn8zzamck5@209.98.50.131> <aupri4.3vvi7ef.1@ch.esperado.hamster-fr.org> <Xns92F4EA39E9B37iaincheyne@195.149.20.147> <pan.2002.12.31.00.16.01.863620@ibtta.gov> <aurdvg$9me9n$4@ID-34.news.dfncis.de> <hqf21vocrnp4vgffmd0uhtdd7rlntbotla@4ax.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!proxad.net!feeder2-1.proxad.net!news3-1.free.fr!not-for-mail
User-Agent: Xnews/Fr.08.12 Hamster-Fr/2.0.1.14(Win32;WScripts 1.03)
Newsgroups: news.software.readers
Organization: Des orgues anisees
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-original: Yes
X-Accept-Language: de mes amis
X-face: 5h+)ZS80/5^!H4p&~%[QRV#iI4)u(.)Ck2Y0qa0q\gNr>PG@O=A`+Qio[xMY3QWtXdM__LE;:UVw;AarXkr7IS9;k@3.[2](<"/{!]QdMy9Mn*kG]&P:Nl\_m"?wH^q,djhp(XJkz#=]?)rz1}
Reply-To: ch.esperado@alussinan.org
Lines: 113
NNTP-Posting-Date: 01 Jan 2003 05:11:43 MET
NNTP-Posting-Host: 213.19.11.46
X-Trace: 1041394303 news3-1.free.fr 17152 213.19.11.46:1046
X-Complaints-To: abuse@proxad.net