diff options
Diffstat (limited to 'sw/source/ui/index/swuiidxmrk.cxx')
-rw-r--r-- | sw/source/ui/index/swuiidxmrk.cxx | 192 |
1 files changed, 96 insertions, 96 deletions
diff --git a/sw/source/ui/index/swuiidxmrk.cxx b/sw/source/ui/index/swuiidxmrk.cxx index a49272f481bf..1ec95e7aea8c 100644 --- a/sw/source/ui/index/swuiidxmrk.cxx +++ b/sw/source/ui/index/swuiidxmrk.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -59,7 +59,7 @@ #include <wrtsh.hxx> #include <view.hxx> #include <multmrk.hxx> -#include <swundo.hxx> // fuer Undo-Ids +#include <swundo.hxx> // fuer Undo-Ids #include <cmdid.h> #include <index.hrc> #include <idxmrk.hrc> @@ -97,7 +97,7 @@ using namespace ::comphelper; using namespace ::com::sun::star; /*-------------------------------------------------------------------- - Beschreibung: Dialog zum Einfuegen einer Verzeichnismarkierung + Beschreibung: Dialog zum Einfuegen einer Verzeichnismarkierung --------------------------------------------------------------------*/ SwIndexMarkDlg::SwIndexMarkDlg(Window *pParent, sal_Bool bNewDlg, @@ -106,7 +106,7 @@ SwIndexMarkDlg::SwIndexMarkDlg(Window *pParent, Window(pParent, rResId), aTypeFT (this, SW_RES(LBL_INDEX )), aTypeDCB(this, SW_RES(DCB_INDEX )), - aNewBT(this, SW_RES(BT_NEW )), + aNewBT(this, SW_RES(BT_NEW )), aEntryFT(this, SW_RES(LBL_ENTRY )), aEntryED(this, SW_RES(SL_ENTRY )), @@ -168,43 +168,43 @@ SwIndexMarkDlg::SwIndexMarkDlg(Window *pParent, SetStyle(GetStyle()|WB_DIALOGCONTROL); FreeResource(); - aOKBT .SetHelpId(HID_INSERT_IDX_MRK_OK ); - aCancelBT .SetHelpId(HID_INSERT_IDX_MRK_CLOSE ); - aDelBT .SetHelpId(HID_INSERT_IDX_MRK_DELETE ); - aNewBT .SetHelpId(HID_INSERT_IDX_MRK_NEW ); - aPrevBT .SetHelpId(HID_INSERT_IDX_MRK_PREV ); - aPrevSameBT .SetHelpId(HID_INSERT_IDX_MRK_PREV_SAME ); - aNextBT .SetHelpId(HID_INSERT_IDX_MRK_NEXT ); - aNextSameBT .SetHelpId(HID_INSERT_IDX_MRK_NEXT_SAME ); - aTypeDCB .SetHelpId(HID_INSERT_IDX_MRK_TYPE ); - aEntryED .SetHelpId(HID_INSERT_IDX_MRK_ENTRY ); - aKeyDCB .SetHelpId(HID_INSERT_IDX_MRK_PRIM_KEY ); - aKey2DCB .SetHelpId(HID_INSERT_IDX_MRK_SEC_KEY ); - aLevelED .SetHelpId(HID_INSERT_IDX_MRK_LEVEL ); - aMainEntryCB .SetHelpId(HID_INSERT_IDX_MRK_MAIN_ENTRY); - aApplyToAllCB .SetHelpId(HID_INSERT_IDX_MRK_APPLY_ALL ); - aPhoneticED0 .SetHelpId(HID_INSERT_IDX_MRK_PHONETIC_READING ); - aPhoneticED1 .SetHelpId(HID_INSERT_IDX_MRK_PHONETIC_READING ); - aPhoneticED2 .SetHelpId(HID_INSERT_IDX_MRK_PHONETIC_READING ); - - aSearchCaseSensitiveCB.SetHelpId( HID_INSERT_IDX_MRK_SRCH_CASESENSITIVE ); - aSearchCaseWordOnlyCB.SetHelpId( HID_INSERT_IDX_MRK_SRCH_WORDONLY ); + aOKBT .SetHelpId(HID_INSERT_IDX_MRK_OK ); + aCancelBT .SetHelpId(HID_INSERT_IDX_MRK_CLOSE ); + aDelBT .SetHelpId(HID_INSERT_IDX_MRK_DELETE ); + aNewBT .SetHelpId(HID_INSERT_IDX_MRK_NEW ); + aPrevBT .SetHelpId(HID_INSERT_IDX_MRK_PREV ); + aPrevSameBT .SetHelpId(HID_INSERT_IDX_MRK_PREV_SAME ); + aNextBT .SetHelpId(HID_INSERT_IDX_MRK_NEXT ); + aNextSameBT .SetHelpId(HID_INSERT_IDX_MRK_NEXT_SAME ); + aTypeDCB .SetHelpId(HID_INSERT_IDX_MRK_TYPE ); + aEntryED .SetHelpId(HID_INSERT_IDX_MRK_ENTRY ); + aKeyDCB .SetHelpId(HID_INSERT_IDX_MRK_PRIM_KEY ); + aKey2DCB .SetHelpId(HID_INSERT_IDX_MRK_SEC_KEY ); + aLevelED .SetHelpId(HID_INSERT_IDX_MRK_LEVEL ); + aMainEntryCB .SetHelpId(HID_INSERT_IDX_MRK_MAIN_ENTRY); + aApplyToAllCB .SetHelpId(HID_INSERT_IDX_MRK_APPLY_ALL ); + aPhoneticED0 .SetHelpId(HID_INSERT_IDX_MRK_PHONETIC_READING ); + aPhoneticED1 .SetHelpId(HID_INSERT_IDX_MRK_PHONETIC_READING ); + aPhoneticED2 .SetHelpId(HID_INSERT_IDX_MRK_PHONETIC_READING ); + + aSearchCaseSensitiveCB.SetHelpId( HID_INSERT_IDX_MRK_SRCH_CASESENSITIVE ); + aSearchCaseWordOnlyCB.SetHelpId( HID_INSERT_IDX_MRK_SRCH_WORDONLY ); GetParent()->SetText( SW_RESSTR( bNewMark ? STR_IDXMRK_INSERT : STR_IDXMRK_EDIT)); - aDelBT.SetClickHdl(LINK(this,SwIndexMarkDlg, DelHdl)); - aPrevBT.SetClickHdl(LINK(this,SwIndexMarkDlg, PrevHdl)); - aPrevSameBT.SetClickHdl(LINK(this,SwIndexMarkDlg, PrevSameHdl)); - aNextBT.SetClickHdl(LINK(this,SwIndexMarkDlg, NextHdl)); - aNextSameBT.SetClickHdl(LINK(this,SwIndexMarkDlg, NextSameHdl)); - //aTypeDCB.SetModifyHdl(LINK(this,SwIndexMarkDlg, ModifyHdl)); - aTypeDCB.SetSelectHdl(LINK(this,SwIndexMarkDlg, ModifyHdl)); - aKeyDCB.SetModifyHdl(LINK(this,SwIndexMarkDlg, KeyDCBModifyHdl)); - aKey2DCB.SetModifyHdl(LINK(this,SwIndexMarkDlg, KeyDCBModifyHdl)); - aOKBT.SetClickHdl(LINK(this,SwIndexMarkDlg, InsertHdl)); - aCancelBT.SetClickHdl(LINK(this,SwIndexMarkDlg, CloseHdl)); - aEntryED.SetModifyHdl(LINK(this,SwIndexMarkDlg, ModifyHdl)); + aDelBT.SetClickHdl(LINK(this,SwIndexMarkDlg, DelHdl)); + aPrevBT.SetClickHdl(LINK(this,SwIndexMarkDlg, PrevHdl)); + aPrevSameBT.SetClickHdl(LINK(this,SwIndexMarkDlg, PrevSameHdl)); + aNextBT.SetClickHdl(LINK(this,SwIndexMarkDlg, NextHdl)); + aNextSameBT.SetClickHdl(LINK(this,SwIndexMarkDlg, NextSameHdl)); + //aTypeDCB.SetModifyHdl(LINK(this,SwIndexMarkDlg, ModifyHdl)); + aTypeDCB.SetSelectHdl(LINK(this,SwIndexMarkDlg, ModifyHdl)); + aKeyDCB.SetModifyHdl(LINK(this,SwIndexMarkDlg, KeyDCBModifyHdl)); + aKey2DCB.SetModifyHdl(LINK(this,SwIndexMarkDlg, KeyDCBModifyHdl)); + aOKBT.SetClickHdl(LINK(this,SwIndexMarkDlg, InsertHdl)); + aCancelBT.SetClickHdl(LINK(this,SwIndexMarkDlg, CloseHdl)); + aEntryED.SetModifyHdl(LINK(this,SwIndexMarkDlg, ModifyHdl)); aNewBT.SetClickHdl(LINK(this, SwIndexMarkDlg, NewUserIdxHdl)); aApplyToAllCB.SetClickHdl(LINK(this, SwIndexMarkDlg, SearchTypeHdl)); aPhoneticED0.SetModifyHdl(LINK(this,SwIndexMarkDlg, PhoneticEDModifyHdl)); @@ -236,7 +236,7 @@ SwIndexMarkDlg::SwIndexMarkDlg(Window *pParent, } /*-------------------------------------------------------------------- - Beschreibung: Controls neu initialisieren mit der aktuellen + Beschreibung: Controls neu initialisieren mit der aktuellen Markierung --------------------------------------------------------------------*/ void SwIndexMarkDlg::InitControls() @@ -326,7 +326,7 @@ void SwIndexMarkDlg::InitControls() UpdateDialog(); } else - { // aktuelle Selektion (1.Element) anzeigen ???? + { // aktuelle Selektion (1.Element) anzeigen ???? sal_uInt16 nCnt = pSh->GetCrsrCnt(); if (nCnt < 2) { @@ -346,7 +346,7 @@ void SwIndexMarkDlg::InitControls() } // Verzeichnistyp ist default - if( sTmpTypeSelection.Len() && + if( sTmpTypeSelection.Len() && LISTBOX_ENTRY_NOTFOUND != aTypeDCB.GetEntryPos( sTmpTypeSelection ) ) aTypeDCB.SelectEntry(sTmpTypeSelection); else @@ -355,7 +355,7 @@ void SwIndexMarkDlg::InitControls() } } -void SwIndexMarkDlg::UpdateLanguageDependenciesForPhoneticReading() +void SwIndexMarkDlg::UpdateLanguageDependenciesForPhoneticReading() { //no phonetic reading if no global cjk support if( !xExtendedIndexEntrySupplier.is() ) @@ -411,7 +411,7 @@ void SwIndexMarkDlg::UpdateLanguageDependenciesForPhoneticReading() */ } -String SwIndexMarkDlg::GetDefaultPhoneticReading( const String& rText ) +String SwIndexMarkDlg::GetDefaultPhoneticReading( const String& rText ) { if( !bIsPhoneticReadingEnabled ) return aEmptyStr; @@ -423,7 +423,7 @@ String SwIndexMarkDlg::GetDefaultPhoneticReading( const String& rText ) /* -----------------07.09.99 10:43------------------- Change the content of aEntryED if text is selected --------------------------------------------------*/ -void SwIndexMarkDlg::Activate() +void SwIndexMarkDlg::Activate() { // aktuelle Selektion (1.Element) anzeigen ???? if(bNewMark) @@ -450,7 +450,7 @@ void SwIndexMarkDlg::Activate() } /*-------------------------------------------------------------------- - Beschreibung: Ok-Button auswerten + Beschreibung: Ok-Button auswerten --------------------------------------------------------------------*/ void SwIndexMarkDlg::Apply() { @@ -499,7 +499,7 @@ void SwIndexMarkDlg::InsertUpdate() } /*-------------------------------------------------------------------- - Beschreibung: Marke einfuegen + Beschreibung: Marke einfuegen --------------------------------------------------------------------*/ static void lcl_SelectSameStrings(SwWrtShell& rSh, BOOL bWordOnly, BOOL bCaseSensitive) { @@ -537,7 +537,7 @@ void SwIndexMarkDlg::InsertMark() switch(nPos) { case POS_CONTENT : break; - case POS_INDEX: // Stichwortverzeichnismarke + case POS_INDEX: // Stichwortverzeichnismarke { UpdateKeyBoxes(); String aPrim(aKeyDCB.GetText()); @@ -579,11 +579,11 @@ void SwIndexMarkDlg::InsertMark() } /*-------------------------------------------------------------------- - Beschreibung: Marke Updaten + Beschreibung: Marke Updaten --------------------------------------------------------------------*/ void SwIndexMarkDlg::UpdateMark() { - String aAltText(aEntryED.GetText()); + String aAltText(aEntryED.GetText()); String* pAltText = aOrgStr != aEntryED.GetText() ? &aAltText : 0; //empty alternative texts are not allowed if(pAltText && !pAltText->Len()) @@ -629,7 +629,7 @@ void SwIndexMarkDlg::UpdateKeyBoxes() sal_uInt16 nPos = aKeyDCB.GetEntryPos(aKey); if(nPos == LISTBOX_ENTRY_NOTFOUND && aKey.Len() > 0) - { // neuen Key erzeugen + { // neuen Key erzeugen aKeyDCB.InsertEntry(aKey); } @@ -637,21 +637,21 @@ void SwIndexMarkDlg::UpdateKeyBoxes() nPos = aKey2DCB.GetEntryPos(aKey); if(nPos == LISTBOX_ENTRY_NOTFOUND && aKey.Len() > 0) - { // neuen Key erzeugen + { // neuen Key erzeugen aKey2DCB.InsertEntry(aKey); } } class SwNewUserIdxDlg : public ModalDialog { - OKButton aOKPB; - CancelButton aCancelPB; - HelpButton aHelpPB; + OKButton aOKPB; + CancelButton aCancelPB; + HelpButton aHelpPB; FixedLine aNameFL; - FixedText aNameFT; - Edit aNameED; + FixedText aNameFT; + Edit aNameED; - SwIndexMarkDlg* pDlg; + SwIndexMarkDlg* pDlg; DECL_LINK( ModifyHdl, Edit*); @@ -672,8 +672,8 @@ class SwNewUserIdxDlg : public ModalDialog aNameED.GrabFocus(); } - virtual void Apply(); - String GetName(){return aNameED.GetText();} + virtual void Apply(); + String GetName(){return aNameED.GetText();} }; void SwNewUserIdxDlg::Apply() { @@ -731,7 +731,7 @@ IMPL_LINK( SwIndexMarkDlg, CloseHdl, Button *, EMPTYARG ) } /*-------------------------------------------------------------------- - Beschreibung: VerzeichnisTyp auswaehlen nur bei Einfuegen + Beschreibung: VerzeichnisTyp auswaehlen nur bei Einfuegen --------------------------------------------------------------------*/ IMPL_LINK( SwIndexMarkDlg, ModifyHdl, ListBox *, pBox ) { @@ -740,12 +740,12 @@ IMPL_LINK( SwIndexMarkDlg, ModifyHdl, ListBox *, pBox ) // Verzeichnistyp setzen sal_uInt16 nPos = aTypeDCB.GetEntryPos(aTypeDCB.GetSelectEntry()); sal_Bool bLevelEnable = sal_False, - bKeyEnable = sal_False, - bSetKey2 = sal_False, + bKeyEnable = sal_False, + bSetKey2 = sal_False, bKey2Enable = sal_False, - bEntryHasText = sal_False, - bKey1HasText = sal_False, - bKey2HasText = sal_False; + bEntryHasText = sal_False, + bKey1HasText = sal_False, + bKey2HasText = sal_False; if(nPos == POS_INDEX) { if(aEntryED.GetText().Len()) @@ -881,9 +881,9 @@ void SwIndexMarkDlg::UpdateDialog() sal_Bool bLevelEnable = sal_True, bKeyEnable = sal_False, bKey2Enable = sal_False, - bEntryHasText = sal_False, - bKey1HasText = sal_False, - bKey2HasText = sal_False; + bEntryHasText = sal_False, + bKey1HasText = sal_False, + bKey2HasText = sal_False; TOXTypes eCurType = pMark->GetTOXType()->GetType(); if(TOX_INDEX == eCurType) @@ -1032,8 +1032,8 @@ IMPL_LINK( SwIndexMarkDlg, KeyDCBModifyHdl, ComboBox *, pBox ) aPhoneticED2.SetText(GetDefaultPhoneticReading(pBox->GetText())); } } - sal_Bool bKey1HasText = (0 != aKeyDCB.GetText().Len()); - sal_Bool bKey2HasText = (0 != aKey2DCB.GetText().Len()); + sal_Bool bKey1HasText = (0 != aKeyDCB.GetText().Len()); + sal_Bool bKey2HasText = (0 != aKey2DCB.GetText().Len()); aPhoneticFT1.Enable(bKey1HasText&&bIsPhoneticReadingEnabled); aPhoneticED1.Enable(bKey1HasText&bIsPhoneticReadingEnabled); @@ -1082,7 +1082,7 @@ SfxModelessDialog(_pBindings, pChild, pParent, SvtCJKOptions().IsCJKFontEnabled( Initialize(pInfo); } -void SwIndexMarkFloatDlg::Activate() +void SwIndexMarkFloatDlg::Activate() { SfxModelessDialog::Activate(); aDlg.Activate(); @@ -1101,7 +1101,7 @@ SvxStandardDialog(pParent, SvtCJKOptions().IsCJKFontEnabled()?SW_RES(DLG_EDIT_ID aDlg.ReInitDlg(rSh, pCurTOXMark); } -void SwIndexMarkModalDlg::Apply() +void SwIndexMarkModalDlg::Apply() { aDlg.Apply(); } @@ -1110,21 +1110,21 @@ class SwCreateAuthEntryDlg_Impl : public ModalDialog { FixedLine aEntriesFL; - FixedText* pFixedTexts[AUTH_FIELD_END]; - ListBox* pTypeListBox; - ComboBox* pIdentifierBox; - Edit* pEdits[AUTH_FIELD_END]; + FixedText* pFixedTexts[AUTH_FIELD_END]; + ListBox* pTypeListBox; + ComboBox* pIdentifierBox; + Edit* pEdits[AUTH_FIELD_END]; OKButton aOKBT; - CancelButton aCancelBT; - HelpButton aHelpBT; + CancelButton aCancelBT; + HelpButton aHelpBT; - Link aShortNameCheckLink; + Link aShortNameCheckLink; - SwWrtShell& rWrtSh; + SwWrtShell& rWrtSh; - sal_Bool m_bNewEntryMode; - sal_Bool m_bNameAllowed; + sal_Bool m_bNewEntryMode; + sal_Bool m_bNameAllowed; DECL_LINK(IdentifierHdl, ComboBox*); DECL_LINK(ShortNameHdl, Edit*); @@ -1138,9 +1138,9 @@ public: sal_Bool bCreate); ~SwCreateAuthEntryDlg_Impl(); - String GetEntryText(ToxAuthorityField eField) const; + String GetEntryText(ToxAuthorityField eField) const; - void SetCheckNameHdl(const Link& rLink) {aShortNameCheckLink = rLink;} + void SetCheckNameHdl(const Link& rLink) {aShortNameCheckLink = rLink;} }; @@ -1229,11 +1229,11 @@ SwAuthMarkDlg::SwAuthMarkDlg( Window *pParent, aFromComponentRB.Check(bIsFromComponent); aFromDocContentRB.Check(!bIsFromComponent); - aOKBT .SetHelpId(HID_INSERT_AUTH_MRK_OK ); - aCancelBT .SetHelpId(HID_INSERT_AUTH_MRK_CLOSE); - aEntryED .SetHelpId(HID_INSERT_AUTH_MRK_ENTRY ); - aCreateEntryPB .SetHelpId(HID_INSERT_AUTH_MRK_CREATE_ENTRY ); - aEditEntryPB .SetHelpId(HID_INSERT_AUTH_MRK_EDIT_ENTRY ); + aOKBT .SetHelpId(HID_INSERT_AUTH_MRK_OK ); + aCancelBT .SetHelpId(HID_INSERT_AUTH_MRK_CLOSE); + aEntryED .SetHelpId(HID_INSERT_AUTH_MRK_ENTRY ); + aCreateEntryPB .SetHelpId(HID_INSERT_AUTH_MRK_CREATE_ENTRY ); + aEditEntryPB .SetHelpId(HID_INSERT_AUTH_MRK_EDIT_ENTRY ); aOKBT.SetClickHdl(LINK(this,SwAuthMarkDlg, InsertHdl)); aCancelBT.SetClickHdl(LINK(this,SwAuthMarkDlg, CloseHdl)); @@ -1261,7 +1261,7 @@ SwAuthMarkDlg::~SwAuthMarkDlg() { } -void SwAuthMarkDlg::ReInitDlg(SwWrtShell& rWrtShell) +void SwAuthMarkDlg::ReInitDlg(SwWrtShell& rWrtShell) { pSh = &rWrtShell; InitControls(); @@ -1329,7 +1329,7 @@ IMPL_LINK( SwAuthMarkDlg, CompEntryHdl, ListBox*, pBox) { const SwAuthorityFieldType* pFType = (const SwAuthorityFieldType*) pSh->GetFldType(RES_AUTHORITY, aEmptyStr); - const SwAuthEntry* pEntry = pFType ? pFType->GetEntryByIdentifier(sEntry) : 0; + const SwAuthEntry* pEntry = pFType ? pFType->GetEntryByIdentifier(sEntry) : 0; for(sal_uInt16 i = 0; i < AUTH_FIELD_END; i++) m_sFields[i] = pEntry ? pEntry->GetAuthorField((ToxAuthorityField)i) : aEmptyStr; @@ -1356,7 +1356,7 @@ IMPL_LINK( SwAuthMarkDlg, InsertHdl, PushButton *, EMPTYARG ) //check if the entry already exists with different content const SwAuthorityFieldType* pFType = (const SwAuthorityFieldType*) pSh->GetFldType(RES_AUTHORITY, aEmptyStr); - const SwAuthEntry* pEntry = pFType ? + const SwAuthEntry* pEntry = pFType ? pFType->GetEntryByIdentifier( m_sFields[AUTH_FIELD_IDENTIFIER]) : 0; if(pEntry) @@ -1497,7 +1497,7 @@ IMPL_LINK(SwAuthMarkDlg, ChangeSourceHdl, RadioButton*, pButton) if(pFType) { SvStringsDtor aIds; - pFType->GetAllEntryIdentifiers( aIds ); + pFType->GetAllEntryIdentifiers( aIds ); for(sal_uInt16 n = 0; n < aIds.Count(); n++) aEntryLB.InsertEntry(*aIds.GetObject(n)); } @@ -1676,7 +1676,7 @@ SwCreateAuthEntryDlg_Impl::SwCreateAuthEntryDlg_Impl(Window* pParent, if(pFType) { SvStringsDtor aIds; - pFType->GetAllEntryIdentifiers( aIds ); + pFType->GetAllEntryIdentifiers( aIds ); for(sal_uInt16 n = 0; n < aIds.Count(); n++) pIdentifierBox->InsertEntry(*aIds.GetObject(n)); } @@ -1744,7 +1744,7 @@ SwCreateAuthEntryDlg_Impl::~SwCreateAuthEntryDlg_Impl() delete pIdentifierBox; } -String SwCreateAuthEntryDlg_Impl::GetEntryText(ToxAuthorityField eField) const +String SwCreateAuthEntryDlg_Impl::GetEntryText(ToxAuthorityField eField) const { String sRet; if( AUTH_FIELD_AUTHORITY_TYPE == eField ) @@ -1830,7 +1830,7 @@ SwAuthMarkFloatDlg::SwAuthMarkFloatDlg(SfxBindings* _pBindings, aDlg.ReInitDlg(*pWrtShell); } -void SwAuthMarkFloatDlg::Activate() +void SwAuthMarkFloatDlg::Activate() { SfxModelessDialog::Activate(); aDlg.Activate(); @@ -1849,7 +1849,7 @@ SwAuthMarkModalDlg::SwAuthMarkModalDlg(Window *pParent, SwWrtShell& rSh) : aDlg.ReInitDlg(rSh); } -void SwAuthMarkModalDlg::Apply() +void SwAuthMarkModalDlg::Apply() { aDlg.InsertHdl(0); } |