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 #ifdef SW_DLLIMPLEMENTATION 32*cdf0e10cSrcweir #undef SW_DLLIMPLEMENTATION 33*cdf0e10cSrcweir #endif 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir 36*cdf0e10cSrcweir #include <sfx2/viewfrm.hxx> 37*cdf0e10cSrcweir #include <svl/style.hxx> 38*cdf0e10cSrcweir #include <vcl/msgbox.hxx> 39*cdf0e10cSrcweir #include <view.hxx> 40*cdf0e10cSrcweir #include <wrtsh.hxx> 41*cdf0e10cSrcweir #include <docsh.hxx> 42*cdf0e10cSrcweir #include <charfmt.hxx> 43*cdf0e10cSrcweir 44*cdf0e10cSrcweir //#ifndef _FLDMGR_HXX //autogen 45*cdf0e10cSrcweir //#include <fldmgr.hxx> 46*cdf0e10cSrcweir //#endif 47*cdf0e10cSrcweir 48*cdf0e10cSrcweir 49*cdf0e10cSrcweir #include <docstyle.hxx> 50*cdf0e10cSrcweir 51*cdf0e10cSrcweir #include "fldbas.hxx" 52*cdf0e10cSrcweir #include "lineinfo.hxx" 53*cdf0e10cSrcweir #include "globals.hrc" 54*cdf0e10cSrcweir #include "linenum.hrc" 55*cdf0e10cSrcweir #include "linenum.hxx" 56*cdf0e10cSrcweir #include "uitool.hxx" 57*cdf0e10cSrcweir 58*cdf0e10cSrcweir #include <IDocumentStylePoolAccess.hxx> 59*cdf0e10cSrcweir 60*cdf0e10cSrcweir /*-------------------------------------------------------------------- 61*cdf0e10cSrcweir Beschreibung: 62*cdf0e10cSrcweir --------------------------------------------------------------------*/ 63*cdf0e10cSrcweir 64*cdf0e10cSrcweir SwLineNumberingDlg::SwLineNumberingDlg(SwView *pVw) : 65*cdf0e10cSrcweir SfxSingleTabDialog(&pVw->GetViewFrame()->GetWindow(), 0, 0), 66*cdf0e10cSrcweir pSh(pVw->GetWrtShellPtr()) 67*cdf0e10cSrcweir { 68*cdf0e10cSrcweir // TabPage erzeugen 69*cdf0e10cSrcweir SetTabPage(SwLineNumberingPage::Create(this, *(SfxItemSet*)0)); 70*cdf0e10cSrcweir 71*cdf0e10cSrcweir GetOKButton()->SetClickHdl(LINK(this, SwLineNumberingDlg, OKHdl)); 72*cdf0e10cSrcweir } 73*cdf0e10cSrcweir 74*cdf0e10cSrcweir /*-------------------------------------------------------------------- 75*cdf0e10cSrcweir Beschreibung: 76*cdf0e10cSrcweir --------------------------------------------------------------------*/ 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir __EXPORT SwLineNumberingDlg::~SwLineNumberingDlg() 79*cdf0e10cSrcweir { 80*cdf0e10cSrcweir } 81*cdf0e10cSrcweir 82*cdf0e10cSrcweir /*-------------------------------------------------------------------- 83*cdf0e10cSrcweir Beschreibung: 84*cdf0e10cSrcweir --------------------------------------------------------------------*/ 85*cdf0e10cSrcweir 86*cdf0e10cSrcweir IMPL_LINK( SwLineNumberingDlg, OKHdl, Button *, EMPTYARG ) 87*cdf0e10cSrcweir { 88*cdf0e10cSrcweir if (GetOKButton()->IsEnabled()) 89*cdf0e10cSrcweir { 90*cdf0e10cSrcweir SfxTabPage* pCurPage = GetTabPage(); 91*cdf0e10cSrcweir if( pCurPage ) 92*cdf0e10cSrcweir pCurPage->FillItemSet(*(SfxItemSet*)0); 93*cdf0e10cSrcweir 94*cdf0e10cSrcweir EndDialog( RET_OK ); 95*cdf0e10cSrcweir } 96*cdf0e10cSrcweir 97*cdf0e10cSrcweir return 0; 98*cdf0e10cSrcweir } 99*cdf0e10cSrcweir 100*cdf0e10cSrcweir /*----------------------------------------------------------------------- 101*cdf0e10cSrcweir Beschreibung: 102*cdf0e10cSrcweir -----------------------------------------------------------------------*/ 103*cdf0e10cSrcweir 104*cdf0e10cSrcweir SwLineNumberingPage::SwLineNumberingPage( Window* pParent, 105*cdf0e10cSrcweir const SfxItemSet& rSet ) 106*cdf0e10cSrcweir : SfxTabPage(pParent, SW_RES(TP_LINENUMBERING), rSet), 107*cdf0e10cSrcweir aNumberingOnCB ( this, SW_RES( CB_NUMBERING_ON )), 108*cdf0e10cSrcweir aDisplayFL ( this, SW_RES( FL_DISPLAY )), 109*cdf0e10cSrcweir aCharStyleFT ( this, SW_RES( FT_CHAR_STYLE )), 110*cdf0e10cSrcweir aCharStyleLB ( this, SW_RES( LB_CHAR_STYLE )), 111*cdf0e10cSrcweir aFormatFT ( this, SW_RES( FT_FORMAT )), 112*cdf0e10cSrcweir aFormatLB ( this, SW_RES( LB_FORMAT ), INSERT_NUM_EXTENDED_TYPES), 113*cdf0e10cSrcweir aPosFT ( this, SW_RES( FT_POS )), 114*cdf0e10cSrcweir aPosLB ( this, SW_RES( LB_POS )), 115*cdf0e10cSrcweir aOffsetFT ( this, SW_RES( FT_OFFSET )), 116*cdf0e10cSrcweir aOffsetMF ( this, SW_RES( MF_OFFSET )), 117*cdf0e10cSrcweir aNumIntervalFT ( this, SW_RES( FT_NUM_INVERVAL )), 118*cdf0e10cSrcweir aNumIntervalNF ( this, SW_RES( NF_NUM_INVERVAL )), 119*cdf0e10cSrcweir aNumRowsFT ( this, SW_RES( FT_NUM_ROWS )), 120*cdf0e10cSrcweir aDivisorFL ( this, SW_RES( FL_DIVISOR )), 121*cdf0e10cSrcweir aDivisorFT ( this, SW_RES( FT_DIVISOR )), 122*cdf0e10cSrcweir aDivisorED ( this, SW_RES( ED_DIVISOR )), 123*cdf0e10cSrcweir aDivIntervalFT ( this, SW_RES( FT_DIV_INTERVAL )), 124*cdf0e10cSrcweir aDivIntervalNF ( this, SW_RES( NF_DIV_INTERVAL )), 125*cdf0e10cSrcweir aDivRowsFT ( this, SW_RES( FT_DIV_ROWS )), 126*cdf0e10cSrcweir aCountFL ( this, SW_RES( FL_COUNT )), 127*cdf0e10cSrcweir aCountEmptyLinesCB ( this, SW_RES( CB_COUNT_EMPTYLINES )), 128*cdf0e10cSrcweir aCountFrameLinesCB ( this, SW_RES( CB_COUNT_FRAMELINES )), 129*cdf0e10cSrcweir aRestartEachPageCB ( this, SW_RES( CB_RESTART_PAGE )) 130*cdf0e10cSrcweir 131*cdf0e10cSrcweir { 132*cdf0e10cSrcweir String sIntervalName = aDivIntervalFT.GetAccessibleName(); 133*cdf0e10cSrcweir sIntervalName += String::CreateFromAscii("("); 134*cdf0e10cSrcweir sIntervalName += aDivRowsFT.GetAccessibleName(); 135*cdf0e10cSrcweir sIntervalName += String::CreateFromAscii(")"); 136*cdf0e10cSrcweir aDivIntervalNF.SetAccessibleName(sIntervalName); 137*cdf0e10cSrcweir sIntervalName = aNumIntervalFT.GetAccessibleName(); 138*cdf0e10cSrcweir sIntervalName += String::CreateFromAscii("("); 139*cdf0e10cSrcweir sIntervalName += aNumRowsFT.GetAccessibleName(); 140*cdf0e10cSrcweir sIntervalName += String::CreateFromAscii(")"); 141*cdf0e10cSrcweir aNumIntervalNF.SetAccessibleName(sIntervalName); 142*cdf0e10cSrcweir 143*cdf0e10cSrcweir FreeResource(); 144*cdf0e10cSrcweir SwLineNumberingDlg *pDlg = (SwLineNumberingDlg *)GetParent(); 145*cdf0e10cSrcweir pSh = pDlg->GetWrtShell(); 146*cdf0e10cSrcweir // Zeichenvorlagen 147*cdf0e10cSrcweir ::FillCharStyleListBox(aCharStyleLB, pSh->GetView().GetDocShell()); 148*cdf0e10cSrcweir } 149*cdf0e10cSrcweir 150*cdf0e10cSrcweir /*----------------------------------------------------------------------- 151*cdf0e10cSrcweir Beschreibung: 152*cdf0e10cSrcweir -----------------------------------------------------------------------*/ 153*cdf0e10cSrcweir 154*cdf0e10cSrcweir __EXPORT SwLineNumberingPage::~SwLineNumberingPage() 155*cdf0e10cSrcweir { 156*cdf0e10cSrcweir } 157*cdf0e10cSrcweir 158*cdf0e10cSrcweir /*----------------------------------------------------------------------- 159*cdf0e10cSrcweir Beschreibung: 160*cdf0e10cSrcweir -----------------------------------------------------------------------*/ 161*cdf0e10cSrcweir 162*cdf0e10cSrcweir SfxTabPage* __EXPORT SwLineNumberingPage::Create( Window* pParent, const SfxItemSet& rSet ) 163*cdf0e10cSrcweir { 164*cdf0e10cSrcweir return new SwLineNumberingPage( pParent, rSet ); 165*cdf0e10cSrcweir } 166*cdf0e10cSrcweir 167*cdf0e10cSrcweir /*----------------------------------------------------------------------- 168*cdf0e10cSrcweir Beschreibung: 169*cdf0e10cSrcweir -----------------------------------------------------------------------*/ 170*cdf0e10cSrcweir 171*cdf0e10cSrcweir void __EXPORT SwLineNumberingPage::Reset( const SfxItemSet& ) 172*cdf0e10cSrcweir { 173*cdf0e10cSrcweir const SwLineNumberInfo &rInf = pSh->GetLineNumberInfo(); 174*cdf0e10cSrcweir IDocumentStylePoolAccess* pIDSPA = pSh->getIDocumentStylePoolAccess(); 175*cdf0e10cSrcweir 176*cdf0e10cSrcweir String sStyleName(rInf.GetCharFmt( *pIDSPA )->GetName()); 177*cdf0e10cSrcweir const sal_uInt16 nPos = aCharStyleLB.GetEntryPos(sStyleName); 178*cdf0e10cSrcweir 179*cdf0e10cSrcweir if (nPos != LISTBOX_ENTRY_NOTFOUND) 180*cdf0e10cSrcweir aCharStyleLB.SelectEntryPos(nPos); 181*cdf0e10cSrcweir else 182*cdf0e10cSrcweir { 183*cdf0e10cSrcweir if (sStyleName.Len()) 184*cdf0e10cSrcweir { 185*cdf0e10cSrcweir aCharStyleLB.InsertEntry(sStyleName); 186*cdf0e10cSrcweir aCharStyleLB.SelectEntry(sStyleName); 187*cdf0e10cSrcweir } 188*cdf0e10cSrcweir } 189*cdf0e10cSrcweir 190*cdf0e10cSrcweir // Format 191*cdf0e10cSrcweir // SwFldMgr aMgr( pSh ); 192*cdf0e10cSrcweir sal_uInt16 nSelFmt = rInf.GetNumType().GetNumberingType(); 193*cdf0e10cSrcweir // sal_uInt16 nCnt = aMgr.GetFormatCount( TYP_SEQFLD, sal_False ); 194*cdf0e10cSrcweir 195*cdf0e10cSrcweir // for( sal_uInt16 i = 0; i < nCnt; i++) 196*cdf0e10cSrcweir // { 197*cdf0e10cSrcweir // aFormatLB.InsertEntry(aMgr.GetFormatStr( TYP_SEQFLD, i)); 198*cdf0e10cSrcweir // sal_uInt16 nFmtId = aMgr.GetFormatId( TYP_SEQFLD, i ); 199*cdf0e10cSrcweir // aFormatLB.SetEntryData( i, (void*)nFmtId ); 200*cdf0e10cSrcweir // if( nFmtId == nSelFmt ) 201*cdf0e10cSrcweir // aFormatLB.SelectEntryPos( i ); 202*cdf0e10cSrcweir // } 203*cdf0e10cSrcweir aFormatLB.SelectNumberingType(nSelFmt); 204*cdf0e10cSrcweir 205*cdf0e10cSrcweir // if ( !aFormatLB.GetSelectEntryCount() ) 206*cdf0e10cSrcweir // aFormatLB.SelectEntryPos(aFormatLB.GetEntryCount() - 1); 207*cdf0e10cSrcweir 208*cdf0e10cSrcweir // Position 209*cdf0e10cSrcweir aPosLB.SelectEntryPos((sal_uInt16)rInf.GetPos()); 210*cdf0e10cSrcweir 211*cdf0e10cSrcweir // Offset 212*cdf0e10cSrcweir sal_uInt16 nOffset = rInf.GetPosFromLeft(); 213*cdf0e10cSrcweir if (nOffset == USHRT_MAX) 214*cdf0e10cSrcweir nOffset = 0; 215*cdf0e10cSrcweir 216*cdf0e10cSrcweir aOffsetMF.SetValue(aOffsetMF.Normalize(nOffset), FUNIT_TWIP); 217*cdf0e10cSrcweir 218*cdf0e10cSrcweir // Numerierungsoffset 219*cdf0e10cSrcweir aNumIntervalNF.SetValue(rInf.GetCountBy()); 220*cdf0e10cSrcweir 221*cdf0e10cSrcweir // Teiler 222*cdf0e10cSrcweir aDivisorED.SetText(rInf.GetDivider()); 223*cdf0e10cSrcweir 224*cdf0e10cSrcweir // Teileroffset 225*cdf0e10cSrcweir aDivIntervalNF.SetValue(rInf.GetDividerCountBy()); 226*cdf0e10cSrcweir 227*cdf0e10cSrcweir // Zaehlen 228*cdf0e10cSrcweir aCountEmptyLinesCB.Check(rInf.IsCountBlankLines()); 229*cdf0e10cSrcweir aCountFrameLinesCB.Check(rInf.IsCountInFlys()); 230*cdf0e10cSrcweir aRestartEachPageCB.Check(rInf.IsRestartEachPage()); 231*cdf0e10cSrcweir 232*cdf0e10cSrcweir aNumberingOnCB.Check(rInf.IsPaintLineNumbers()); 233*cdf0e10cSrcweir 234*cdf0e10cSrcweir aNumberingOnCB.SetClickHdl(LINK(this, SwLineNumberingPage, LineOnOffHdl)); 235*cdf0e10cSrcweir aDivisorED.SetModifyHdl(LINK(this, SwLineNumberingPage, ModifyHdl)); 236*cdf0e10cSrcweir ModifyHdl(); 237*cdf0e10cSrcweir LineOnOffHdl(); 238*cdf0e10cSrcweir } 239*cdf0e10cSrcweir 240*cdf0e10cSrcweir /*-------------------------------------------------------------------- 241*cdf0e10cSrcweir Beschreibung: Modify 242*cdf0e10cSrcweir --------------------------------------------------------------------*/ 243*cdf0e10cSrcweir 244*cdf0e10cSrcweir IMPL_LINK( SwLineNumberingPage, ModifyHdl, Edit *, EMPTYARG ) 245*cdf0e10cSrcweir { 246*cdf0e10cSrcweir sal_Bool bHasValue = aDivisorED.GetText().Len() != 0; 247*cdf0e10cSrcweir 248*cdf0e10cSrcweir aDivIntervalFT.Enable(bHasValue); 249*cdf0e10cSrcweir aDivIntervalNF.Enable(bHasValue); 250*cdf0e10cSrcweir aDivRowsFT.Enable(bHasValue); 251*cdf0e10cSrcweir 252*cdf0e10cSrcweir return 0; 253*cdf0e10cSrcweir } 254*cdf0e10cSrcweir 255*cdf0e10cSrcweir /*-------------------------------------------------------------------- 256*cdf0e10cSrcweir Beschreibung: On/Off 257*cdf0e10cSrcweir --------------------------------------------------------------------*/ 258*cdf0e10cSrcweir 259*cdf0e10cSrcweir IMPL_LINK( SwLineNumberingPage, LineOnOffHdl, CheckBox *, EMPTYARG ) 260*cdf0e10cSrcweir { 261*cdf0e10cSrcweir sal_Bool bEnable = aNumberingOnCB.IsChecked(); 262*cdf0e10cSrcweir 263*cdf0e10cSrcweir aCharStyleFT.Enable(bEnable); 264*cdf0e10cSrcweir aCharStyleLB.Enable(bEnable); 265*cdf0e10cSrcweir aFormatFT.Enable(bEnable); 266*cdf0e10cSrcweir aFormatLB.Enable(bEnable); 267*cdf0e10cSrcweir aPosFT.Enable(bEnable); 268*cdf0e10cSrcweir aPosLB.Enable(bEnable); 269*cdf0e10cSrcweir aOffsetFT.Enable(bEnable); 270*cdf0e10cSrcweir aOffsetMF.Enable(bEnable); 271*cdf0e10cSrcweir aNumIntervalFT.Enable(bEnable); 272*cdf0e10cSrcweir aNumIntervalNF.Enable(bEnable); 273*cdf0e10cSrcweir aNumRowsFT.Enable(bEnable); 274*cdf0e10cSrcweir aDisplayFL.Enable(bEnable); 275*cdf0e10cSrcweir aDivisorFT.Enable(bEnable); 276*cdf0e10cSrcweir aDivisorED.Enable(bEnable); 277*cdf0e10cSrcweir aDivIntervalFT.Enable(bEnable); 278*cdf0e10cSrcweir aDivIntervalNF.Enable(bEnable); 279*cdf0e10cSrcweir aDivRowsFT.Enable(bEnable); 280*cdf0e10cSrcweir aDivisorFL.Enable(bEnable); 281*cdf0e10cSrcweir aCountEmptyLinesCB.Enable(bEnable); 282*cdf0e10cSrcweir aCountFrameLinesCB.Enable(bEnable); 283*cdf0e10cSrcweir aRestartEachPageCB.Enable(bEnable); 284*cdf0e10cSrcweir aCountFL.Enable(bEnable); 285*cdf0e10cSrcweir 286*cdf0e10cSrcweir return 0; 287*cdf0e10cSrcweir } 288*cdf0e10cSrcweir 289*cdf0e10cSrcweir /*----------------------------------------------------------------------- 290*cdf0e10cSrcweir Beschreibung: 291*cdf0e10cSrcweir -----------------------------------------------------------------------*/ 292*cdf0e10cSrcweir 293*cdf0e10cSrcweir sal_Bool __EXPORT SwLineNumberingPage::FillItemSet( SfxItemSet& ) 294*cdf0e10cSrcweir { 295*cdf0e10cSrcweir SwLineNumberInfo aInf(pSh->GetLineNumberInfo()); 296*cdf0e10cSrcweir 297*cdf0e10cSrcweir // Zeichenvorlagen 298*cdf0e10cSrcweir String sCharFmtName(aCharStyleLB.GetSelectEntry()); 299*cdf0e10cSrcweir SwCharFmt *pCharFmt = pSh->FindCharFmtByName(sCharFmtName); 300*cdf0e10cSrcweir 301*cdf0e10cSrcweir if (!pCharFmt) 302*cdf0e10cSrcweir { 303*cdf0e10cSrcweir SfxStyleSheetBasePool* pPool = pSh->GetView().GetDocShell()->GetStyleSheetPool(); 304*cdf0e10cSrcweir SfxStyleSheetBase* pBase; 305*cdf0e10cSrcweir pBase = pPool->Find(sCharFmtName, SFX_STYLE_FAMILY_CHAR); 306*cdf0e10cSrcweir if(!pBase) 307*cdf0e10cSrcweir pBase = &pPool->Make(sCharFmtName, SFX_STYLE_FAMILY_CHAR); 308*cdf0e10cSrcweir pCharFmt = ((SwDocStyleSheet*)pBase)->GetCharFmt(); 309*cdf0e10cSrcweir } 310*cdf0e10cSrcweir 311*cdf0e10cSrcweir if (pCharFmt) 312*cdf0e10cSrcweir aInf.SetCharFmt(pCharFmt); 313*cdf0e10cSrcweir 314*cdf0e10cSrcweir // Format 315*cdf0e10cSrcweir SvxNumberType aType; 316*cdf0e10cSrcweir aType.SetNumberingType(aFormatLB.GetSelectedNumberingType()); 317*cdf0e10cSrcweir aInf.SetNumType(aType); 318*cdf0e10cSrcweir 319*cdf0e10cSrcweir // Position 320*cdf0e10cSrcweir aInf.SetPos((LineNumberPosition)aPosLB.GetSelectEntryPos()); 321*cdf0e10cSrcweir 322*cdf0e10cSrcweir // Offset 323*cdf0e10cSrcweir aInf.SetPosFromLeft((sal_uInt16)aOffsetMF.Denormalize(aOffsetMF.GetValue(FUNIT_TWIP))); 324*cdf0e10cSrcweir 325*cdf0e10cSrcweir // Numerierungsoffset 326*cdf0e10cSrcweir aInf.SetCountBy((sal_uInt16)aNumIntervalNF.GetValue()); 327*cdf0e10cSrcweir 328*cdf0e10cSrcweir // Teiler 329*cdf0e10cSrcweir aInf.SetDivider(aDivisorED.GetText()); 330*cdf0e10cSrcweir 331*cdf0e10cSrcweir // Teileroffset 332*cdf0e10cSrcweir aInf.SetDividerCountBy((sal_uInt16)aDivIntervalNF.GetValue()); 333*cdf0e10cSrcweir 334*cdf0e10cSrcweir // Zaehlen 335*cdf0e10cSrcweir aInf.SetCountBlankLines(aCountEmptyLinesCB.IsChecked()); 336*cdf0e10cSrcweir aInf.SetCountInFlys(aCountFrameLinesCB.IsChecked()); 337*cdf0e10cSrcweir aInf.SetRestartEachPage(aRestartEachPageCB.IsChecked()); 338*cdf0e10cSrcweir 339*cdf0e10cSrcweir aInf.SetPaintLineNumbers(aNumberingOnCB.IsChecked()); 340*cdf0e10cSrcweir 341*cdf0e10cSrcweir pSh->SetLineNumberInfo(aInf); 342*cdf0e10cSrcweir 343*cdf0e10cSrcweir return sal_False; 344*cdf0e10cSrcweir } 345*cdf0e10cSrcweir 346*cdf0e10cSrcweir 347