Lines Matching refs:rDesc

87 void	SwTOXMgr::InsertTOXMark(const SwTOXMarkDescription& rDesc)  in InsertTOXMark()  argument
90 switch(rDesc.GetTOXType()) in InsertTOXMark()
94 ASSERT(rDesc.GetLevel() > 0 && rDesc.GetLevel() <= MAXLEVEL, in InsertTOXMark()
97 pMark->SetLevel( static_cast< sal_uInt16 >(rDesc.GetLevel()) ); in InsertTOXMark()
99 if(rDesc.GetAltStr()) in InsertTOXMark()
100 pMark->SetAlternativeText(*rDesc.GetAltStr()); in InsertTOXMark()
107 if( rDesc.GetPrimKey() && rDesc.GetPrimKey()->Len() ) in InsertTOXMark()
109 pMark->SetPrimaryKey( *rDesc.GetPrimKey() ); in InsertTOXMark()
110 if(rDesc.GetPhoneticReadingOfPrimKey()) in InsertTOXMark()
111 pMark->SetPrimaryKeyReading( *rDesc.GetPhoneticReadingOfPrimKey() ); in InsertTOXMark()
113 if( rDesc.GetSecKey() && rDesc.GetSecKey()->Len() ) in InsertTOXMark()
115 pMark->SetSecondaryKey( *rDesc.GetSecKey() ); in InsertTOXMark()
116 if(rDesc.GetPhoneticReadingOfSecKey()) in InsertTOXMark()
117 pMark->SetSecondaryKeyReading( *rDesc.GetPhoneticReadingOfSecKey() ); in InsertTOXMark()
120 if(rDesc.GetAltStr()) in InsertTOXMark()
121 pMark->SetAlternativeText(*rDesc.GetAltStr()); in InsertTOXMark()
122 if(rDesc.GetPhoneticReadingOfAltStr()) in InsertTOXMark()
123 pMark->SetTextReading( *rDesc.GetPhoneticReadingOfAltStr() ); in InsertTOXMark()
124 pMark->SetMainEntry(rDesc.IsMainEntry()); in InsertTOXMark()
129 ASSERT(rDesc.GetLevel() > 0 && rDesc.GetLevel() <= MAXLEVEL, in InsertTOXMark()
131 sal_uInt16 nId = rDesc.GetTOUName() ? in InsertTOXMark()
132 GetUserTypeID(*rDesc.GetTOUName()) : 0; in InsertTOXMark()
134 pMark->SetLevel( static_cast< sal_uInt16 >(rDesc.GetLevel()) ); in InsertTOXMark()
136 if(rDesc.GetAltStr()) in InsertTOXMark()
137 pMark->SetAlternativeText(*rDesc.GetAltStr()); in InsertTOXMark()
151 void SwTOXMgr::UpdateTOXMark(const SwTOXMarkDescription& rDesc) in UpdateTOXMark() argument
158 if(rDesc.GetPrimKey() && rDesc.GetPrimKey()->Len() ) in UpdateTOXMark()
160 pCurTOXMark->SetPrimaryKey( *rDesc.GetPrimKey() ); in UpdateTOXMark()
161 if(rDesc.GetPhoneticReadingOfPrimKey()) in UpdateTOXMark()
162 pCurTOXMark->SetPrimaryKeyReading( *rDesc.GetPhoneticReadingOfPrimKey() ); in UpdateTOXMark()
166 if( rDesc.GetSecKey() && rDesc.GetSecKey()->Len() ) in UpdateTOXMark()
168 pCurTOXMark->SetSecondaryKey( *rDesc.GetSecKey() ); in UpdateTOXMark()
169 if(rDesc.GetPhoneticReadingOfSecKey()) in UpdateTOXMark()
170 pCurTOXMark->SetSecondaryKeyReading( *rDesc.GetPhoneticReadingOfSecKey() ); in UpdateTOXMark()
187 if(rDesc.GetPhoneticReadingOfAltStr()) in UpdateTOXMark()
188 pCurTOXMark->SetTextReading( *rDesc.GetPhoneticReadingOfAltStr() ); in UpdateTOXMark()
191 pCurTOXMark->SetMainEntry(rDesc.IsMainEntry()); in UpdateTOXMark()
194 pCurTOXMark->SetLevel( static_cast< sal_uInt16 >(rDesc.GetLevel()) ); in UpdateTOXMark()
196 if(rDesc.GetAltStr()) in UpdateTOXMark()
202 pCurTOXMark->SetAlternativeText( *rDesc.GetAltStr() ); in UpdateTOXMark()
208 aCpy.SetAlternativeText( *rDesc.GetAltStr() ); in UpdateTOXMark()
292 sal_Bool SwTOXMgr::UpdateOrInsertTOX(const SwTOXDescription& rDesc, in UpdateOrInsertTOX() argument
306 TOXTypes eCurTOXType = rDesc.GetTOXType(); in UpdateOrInsertTOX()
320 pNewTOX->SetOptions(rDesc.GetIndexOptions()); in UpdateOrInsertTOX()
321 pNewTOX->SetMainEntryCharStyle(rDesc.GetMainEntryCharStyle()); in UpdateOrInsertTOX()
322 pSh->SetTOIAutoMarkURL(rDesc.GetAutoMarkURL()); in UpdateOrInsertTOX()
332 pNewTOX = new SwTOXBase(pType, aForm, rDesc.GetContentOptions(), pType->GetTypeName()); in UpdateOrInsertTOX()
334 pNewTOX->SetCreate(rDesc.GetContentOptions()); in UpdateOrInsertTOX()
335 pNewTOX->SetLevel(rDesc.GetLevel()); in UpdateOrInsertTOX()
344 for(sal_uInt16 i=0; rDesc.GetTOUName() && i < nSize; ++i) in UpdateOrInsertTOX()
346 if(pType->GetTypeName() == *rDesc.GetTOUName()) in UpdateOrInsertTOX()
354 pNewTOX = new SwTOXBase(pType, aForm, rDesc.GetContentOptions(), pType->GetTypeName()); in UpdateOrInsertTOX()
359 const_cast<SwTOXBase*>( pCurTOX )->SetCreate(rDesc.GetContentOptions()); in UpdateOrInsertTOX()
361 pNewTOX->SetLevelFromChapter(rDesc.IsLevelFromChapter()); in UpdateOrInsertTOX()
377 pFType->SetPreSuffix(rDesc.GetAuthBrackets().GetChar(0), in UpdateOrInsertTOX()
378 rDesc.GetAuthBrackets().GetChar(1)); in UpdateOrInsertTOX()
379 pFType->SetSequence(rDesc.IsAuthSequence()); in UpdateOrInsertTOX()
381 rArr[0] = rDesc.GetSortKey1(); in UpdateOrInsertTOX()
382 rArr[1] = rDesc.GetSortKey2(); in UpdateOrInsertTOX()
383 rArr[2] = rDesc.GetSortKey3(); in UpdateOrInsertTOX()
385 pFType->SetSortByDocument(rDesc.IsSortByDocument()); in UpdateOrInsertTOX()
386 pFType->SetLanguage(rDesc.GetLanguage()); in UpdateOrInsertTOX()
387 pFType->SetSortAlgorithm(rDesc.GetSortAlgorithm()); in UpdateOrInsertTOX()
407 pNewTOX->SetFromObjectNames(rDesc.IsCreateFromObjectNames()); in UpdateOrInsertTOX()
408 pNewTOX->SetOLEOptions(rDesc.GetOLEOptions()); in UpdateOrInsertTOX()
418 pNewTOX->SetFromChapter(rDesc.IsFromChapter()); in UpdateOrInsertTOX()
419 pNewTOX->SetSequenceName(rDesc.GetSequenceName()); in UpdateOrInsertTOX()
420 pNewTOX->SetCaptionDisplay(rDesc.GetCaptionDisplay()); in UpdateOrInsertTOX()
421 pNewTOX->SetProtected(rDesc.IsReadonly()); in UpdateOrInsertTOX()
424 pNewTOX->SetStyleNames(rDesc.GetStyleNames(nLevel), nLevel); in UpdateOrInsertTOX()
426 if(rDesc.GetTitle()) in UpdateOrInsertTOX()
427 pNewTOX->SetTitle(*rDesc.GetTitle()); in UpdateOrInsertTOX()
428 if(rDesc.GetForm()) in UpdateOrInsertTOX()
429 pNewTOX->SetTOXForm(*rDesc.GetForm()); in UpdateOrInsertTOX()
430 pNewTOX->SetLanguage(rDesc.GetLanguage()); in UpdateOrInsertTOX()
431 pNewTOX->SetSortAlgorithm(rDesc.GetSortAlgorithm()); in UpdateOrInsertTOX()