Files
libreoffice/sw/source/uibase/index/toxmgr.cxx

503 lines
17 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
re-base on ALv2 code. Includes: Patches contributed by Oliver-Rainer Wittmann sw34bf06: #i117783# - Writer's implementation of XPagePrintable - apply print settings to new printing routines http://svn.apache.org/viewvc?view=revision&revision=1172115 sw34bf06: #o12311627# use <rtl_random> methods to create unique ids for list styles and list ids http://svn.apache.org/viewvc?view=revision&revision=1172112 sw34bf06 #i114725#,#i115828# - method <SwDoc::ClearDoc()> - clear list structures completely http://svn.apache.org/viewvc?view=revision&revision=1172122 i#118572 - remove ui string and help content regarding usage of Java Mail in Writer's Mail Merge as Java Mail is not used. http://svn.apache.org/viewvc?view=revision&revision=1197035 Patches contributed by Mathias Bauer cws mba34issues01: #i117718#: provide filter name in case storage of medium does not allow to detect one http://svn.apache.org/viewvc?view=revision&revision=1172350 cws mba34issues01: #i117721#: directly provide parameters retrieved from SfxMedium http://svn.apache.org/viewvc?view=revision&revision=1172353 gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 http://svn.apache.org/viewvc?view=revision&revision=1396797 http://svn.apache.org/viewvc?view=revision&revision=1397315 cws mba34issues01: #i117723#: convert assertion into trace http://svn.apache.org/viewvc?view=revision&revision=1172355 cws mba34issues01: #i117699#: keep layout alive until swdoc dies http://svn.apache.org/viewvc?view=revision&revision=1172362 cws mba34issues01: #i117943#: missing color attributes in RTF clipboard http://svn.apache.org/viewvc?view=revision&revision=1172363 Patch contributed by Henning Brinkmann imported patch i#103878 http://svn.apache.org/viewvc?view=revision&revision=1172109 Patches contributed by Michael Stahl sw34bf06: #i117955#: WW8 export: disable storing of section breaks in endnotes http://svn.apache.org/viewvc?view=revision&revision=1172119 Patch contributed by imacat Fixed the Asian language work count. http://svn.apache.org/viewvc?view=revision&revision=1241345 Patch contributed by Pedro Giffuni i#20878 - Add comment with BZ issue for reference. http://svn.apache.org/viewvc?view=revision&revision=1244517 Patch contributed by Andre Fischer Do not add targets for junit tests when junit is disabled. http://svn.apache.org/viewvc?view=revision&revision=1241508 add writerperfect dependency.
2011-03-31 10:05:04 +02:00
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
2000-09-18 16:15:01 +00:00
#include <wrtsh.hxx>
#include <shellres.hxx>
#include <swwait.hxx>
#include <view.hxx>
#include <toxmgr.hxx>
#include <crsskip.hxx>
#include <doc.hxx>
#include <IDocumentUndoRedo.hxx>
#include <swundo.hxx>
2000-09-18 16:15:01 +00:00
#include <globals.hrc>
// handle indexes with TOXMgr
2000-09-18 16:15:01 +00:00
SwTOXMgr::SwTOXMgr(SwWrtShell* pShell):
pSh(pShell)
{
GetTOXMarks();
SetCurTOXMark(0);
}
// handle current TOXMarks
sal_uInt16 SwTOXMgr::GetTOXMarks()
2000-09-18 16:15:01 +00:00
{
return pSh->GetCurTOXMarks(aCurMarks);
}
SwTOXMark* SwTOXMgr::GetTOXMark(sal_uInt16 nId)
2000-09-18 16:15:01 +00:00
{
if(!aCurMarks.empty())
2000-09-18 16:15:01 +00:00
return aCurMarks[nId];
return 0;
}
void SwTOXMgr::DeleteTOXMark()
{
SwTOXMark* pNext = 0;
if( pCurTOXMark )
{
pNext = const_cast<SwTOXMark*>(&pSh->GotoTOXMark( *pCurTOXMark, TOX_NXT ));
2000-09-18 16:15:01 +00:00
if( pNext == pCurTOXMark )
pNext = 0;
pSh->DeleteTOXMark( pCurTOXMark );
pSh->SetModified();
}
// go to next one
2000-09-18 16:15:01 +00:00
pCurTOXMark = pNext;
}
void SwTOXMgr::InsertTOXMark(const SwTOXMarkDescription& rDesc)
{
SwTOXMark* pMark = 0;
switch(rDesc.GetTOXType())
{
case TOX_CONTENT:
{
OSL_ENSURE(rDesc.GetLevel() > 0 && rDesc.GetLevel() <= MAXLEVEL,
"invalid InsertTOCMark level");
2000-09-18 16:15:01 +00:00
pMark = new SwTOXMark(pSh->GetTOXType(TOX_CONTENT, 0));
pMark->SetLevel( static_cast< sal_uInt16 >(rDesc.GetLevel()) );
2000-09-18 16:15:01 +00:00
if(rDesc.GetAltStr())
pMark->SetAlternativeText(*rDesc.GetAltStr());
}
break;
case TOX_INDEX:
{
pMark = new SwTOXMark(pSh->GetTOXType(TOX_INDEX, 0));
if( rDesc.GetPrimKey() && !rDesc.GetPrimKey()->isEmpty() )
2000-09-18 16:15:01 +00:00
{
pMark->SetPrimaryKey( *rDesc.GetPrimKey() );
if(rDesc.GetPhoneticReadingOfPrimKey())
pMark->SetPrimaryKeyReading( *rDesc.GetPhoneticReadingOfPrimKey() );
2000-09-18 16:15:01 +00:00
if( rDesc.GetSecKey() && !rDesc.GetSecKey()->isEmpty() )
{
2000-09-18 16:15:01 +00:00
pMark->SetSecondaryKey( *rDesc.GetSecKey() );
if(rDesc.GetPhoneticReadingOfSecKey())
pMark->SetSecondaryKeyReading( *rDesc.GetPhoneticReadingOfSecKey() );
}
2000-09-18 16:15:01 +00:00
}
if(rDesc.GetAltStr())
pMark->SetAlternativeText(*rDesc.GetAltStr());
if(rDesc.GetPhoneticReadingOfAltStr())
pMark->SetTextReading( *rDesc.GetPhoneticReadingOfAltStr() );
2000-09-18 16:15:01 +00:00
pMark->SetMainEntry(rDesc.IsMainEntry());
}
break;
case TOX_USER:
{
OSL_ENSURE(rDesc.GetLevel() > 0 && rDesc.GetLevel() <= MAXLEVEL,
"invalid InsertTOCMark level");
sal_uInt16 nId = rDesc.GetTOUName() ?
2000-09-18 16:15:01 +00:00
GetUserTypeID(*rDesc.GetTOUName()) : 0;
pMark = new SwTOXMark(pSh->GetTOXType(TOX_USER, nId));
pMark->SetLevel( static_cast< sal_uInt16 >(rDesc.GetLevel()) );
2000-09-18 16:15:01 +00:00
if(rDesc.GetAltStr())
pMark->SetAlternativeText(*rDesc.GetAltStr());
}
break;
case TOX_BIBLIOGRAPHY:
{
pMark = new SwTOXMark(pSh->GetTOXType(TOX_BIBLIOGRAPHY, 0));
if( rDesc.GetPrimKey() && !rDesc.GetPrimKey()->isEmpty() )
{
pMark->SetPrimaryKey( *rDesc.GetPrimKey() );
if(rDesc.GetPhoneticReadingOfPrimKey())
pMark->SetPrimaryKeyReading( *rDesc.GetPhoneticReadingOfPrimKey() );
if( rDesc.GetSecKey() && !rDesc.GetSecKey()->isEmpty() )
{
pMark->SetSecondaryKey( *rDesc.GetSecKey() );
if(rDesc.GetPhoneticReadingOfSecKey())
pMark->SetSecondaryKeyReading( *rDesc.GetPhoneticReadingOfSecKey() );
}
}
if(rDesc.GetAltStr())
pMark->SetAlternativeText(*rDesc.GetAltStr());
if(rDesc.GetPhoneticReadingOfAltStr())
pMark->SetTextReading( *rDesc.GetPhoneticReadingOfAltStr() );
pMark->SetMainEntry(rDesc.IsMainEntry());
}
break;
default:; //prevent warning
2000-09-18 16:15:01 +00:00
}
if (!pMark)
return;
2000-09-18 16:15:01 +00:00
pSh->StartAllAction();
pSh->SwEditShell::Insert(*pMark);
pSh->EndAllAction();
}
// Update of TOXMarks
2000-09-18 16:15:01 +00:00
void SwTOXMgr::UpdateTOXMark(const SwTOXMarkDescription& rDesc)
{
assert(pCurTOXMark && "no current TOXMark");
2000-09-18 16:15:01 +00:00
pSh->StartAllAction();
if(pCurTOXMark->GetTOXType()->GetType() == TOX_INDEX)
{
if(rDesc.GetPrimKey() && !rDesc.GetPrimKey()->isEmpty() )
2000-09-18 16:15:01 +00:00
{
pCurTOXMark->SetPrimaryKey( *rDesc.GetPrimKey() );
if(rDesc.GetPhoneticReadingOfPrimKey())
pCurTOXMark->SetPrimaryKeyReading( *rDesc.GetPhoneticReadingOfPrimKey() );
else
pCurTOXMark->SetPrimaryKeyReading( aEmptyOUStr );
2000-09-18 16:15:01 +00:00
if( rDesc.GetSecKey() && !rDesc.GetSecKey()->isEmpty() )
{
2000-09-18 16:15:01 +00:00
pCurTOXMark->SetSecondaryKey( *rDesc.GetSecKey() );
if(rDesc.GetPhoneticReadingOfSecKey())
pCurTOXMark->SetSecondaryKeyReading( *rDesc.GetPhoneticReadingOfSecKey() );
else
pCurTOXMark->SetSecondaryKeyReading( aEmptyOUStr );
}
2000-09-18 16:15:01 +00:00
else
{
pCurTOXMark->SetSecondaryKey( aEmptyOUStr );
pCurTOXMark->SetSecondaryKeyReading( aEmptyOUStr );
}
2000-09-18 16:15:01 +00:00
}
else
{
pCurTOXMark->SetPrimaryKey( aEmptyOUStr );
pCurTOXMark->SetPrimaryKeyReading( aEmptyOUStr );
pCurTOXMark->SetSecondaryKey( aEmptyOUStr );
pCurTOXMark->SetSecondaryKeyReading( aEmptyOUStr );
}
if(rDesc.GetPhoneticReadingOfAltStr())
pCurTOXMark->SetTextReading( *rDesc.GetPhoneticReadingOfAltStr() );
else
pCurTOXMark->SetTextReading( aEmptyOUStr );
2000-09-18 16:15:01 +00:00
pCurTOXMark->SetMainEntry(rDesc.IsMainEntry());
}
else
pCurTOXMark->SetLevel( static_cast< sal_uInt16 >(rDesc.GetLevel()) );
2000-09-18 16:15:01 +00:00
if(rDesc.GetAltStr())
{
// JP 26.08.96: Bug 30344 - either the text of a Doc or an alternative test,
// not both!
bool bReplace = pCurTOXMark->IsAlternativeText();
if( bReplace )
pCurTOXMark->SetAlternativeText( *rDesc.GetAltStr() );
else
2000-09-18 16:15:01 +00:00
{
SwTOXMark aCpy( *pCurTOXMark );
aCurMarks.clear();
2000-09-18 16:15:01 +00:00
pSh->DeleteTOXMark(pCurTOXMark);
aCpy.SetAlternativeText( *rDesc.GetAltStr() );
2000-09-18 16:15:01 +00:00
pSh->SwEditShell::Insert( aCpy );
pCurTOXMark = 0;
}
}
pSh->SetModified();
pSh->EndAllAction();
// Bug 36207 pCurTOXMark points nowhere here!
2000-09-18 16:15:01 +00:00
if(!pCurTOXMark)
{
pSh->Left(CRSR_SKIP_CHARS, false, 1, false );
2000-09-18 16:15:01 +00:00
pSh->GetCurTOXMarks(aCurMarks);
SetCurTOXMark(0);
}
}
// determine UserTypeID
sal_uInt16 SwTOXMgr::GetUserTypeID(const OUString& rStr)
2000-09-18 16:15:01 +00:00
{
sal_uInt16 nSize = pSh->GetTOXTypeCount(TOX_USER);
for(sal_uInt16 i=0; i < nSize; ++i)
2000-09-18 16:15:01 +00:00
{
const SwTOXType* pTmp = pSh->GetTOXType(TOX_USER, i);
if(pTmp && pTmp->GetTypeName() == rStr)
return i;
}
SwTOXType aUserType(TOX_USER, rStr);
pSh->InsertTOXType(aUserType);
return nSize;
}
// traveling between TOXMarks
void SwTOXMgr::NextTOXMark(bool bSame)
2000-09-18 16:15:01 +00:00
{
OSL_ENSURE(pCurTOXMark, "no current TOXMark");
2000-09-18 16:15:01 +00:00
if( pCurTOXMark )
{
SwTOXSearch eDir = bSame ? TOX_SAME_NXT : TOX_NXT;
pCurTOXMark = const_cast<SwTOXMark*>(&pSh->GotoTOXMark( *pCurTOXMark, eDir ));
2000-09-18 16:15:01 +00:00
}
}
void SwTOXMgr::PrevTOXMark(bool bSame)
2000-09-18 16:15:01 +00:00
{
OSL_ENSURE(pCurTOXMark, "no current TOXMark");
2000-09-18 16:15:01 +00:00
if( pCurTOXMark )
{
SwTOXSearch eDir = bSame ? TOX_SAME_PRV : TOX_PRV;
pCurTOXMark = const_cast<SwTOXMark*>(&pSh->GotoTOXMark(*pCurTOXMark, eDir ));
2000-09-18 16:15:01 +00:00
}
}
// insert keyword index
2000-09-18 16:15:01 +00:00
const SwTOXBase* SwTOXMgr::GetCurTOX()
{
return pSh->GetCurTOX();
}
const SwTOXType* SwTOXMgr::GetTOXType(TOXTypes eTyp, sal_uInt16 nId) const
2000-09-18 16:15:01 +00:00
{
return pSh->GetTOXType(eTyp, nId);
}
void SwTOXMgr::SetCurTOXMark(sal_uInt16 nId)
2000-09-18 16:15:01 +00:00
{
pCurTOXMark = (nId < aCurMarks.size()) ? aCurMarks[nId] : 0;
2000-09-18 16:15:01 +00:00
}
bool SwTOXMgr::UpdateOrInsertTOX(const SwTOXDescription& rDesc,
2000-09-18 16:15:01 +00:00
SwTOXBase** ppBase,
const SfxItemSet* pSet)
{
SwWait aWait( *pSh->GetView().GetDocShell(), true );
bool bRet = true;
const SwTOXBase* pCurTOX = ppBase && *ppBase ? *ppBase : GetCurTOX();
SwTOXBase* pTOX = const_cast<SwTOXBase*>(pCurTOX);
SwTOXBase * pNewTOX = NULL;
if (pTOX)
pNewTOX = new SwTOXBase(*pTOX);
2000-09-18 16:15:01 +00:00
TOXTypes eCurTOXType = rDesc.GetTOXType();
if(pCurTOX && !ppBase && pSh->HasSelection())
pSh->EnterStdMode();
2000-09-18 16:15:01 +00:00
switch(eCurTOXType)
{
case TOX_INDEX :
{
if(!pCurTOX || (ppBase && !(*ppBase)))
2000-09-18 16:15:01 +00:00
{
const SwTOXType* pType = pSh->GetTOXType(eCurTOXType, 0);
SwForm aForm(eCurTOXType);
pNewTOX = new SwTOXBase(pType, aForm, nsSwTOXElement::TOX_MARK, pType->GetTypeName());
2000-09-18 16:15:01 +00:00
}
pNewTOX->SetOptions(rDesc.GetIndexOptions());
pNewTOX->SetMainEntryCharStyle(rDesc.GetMainEntryCharStyle());
2000-09-18 16:15:01 +00:00
pSh->SetTOIAutoMarkURL(rDesc.GetAutoMarkURL());
pSh->ApplyAutoMark();
}
break;
case TOX_CONTENT :
{
if(!pCurTOX || (ppBase && !(*ppBase)))
2000-09-18 16:15:01 +00:00
{
const SwTOXType* pType = pSh->GetTOXType(eCurTOXType, 0);
SwForm aForm(eCurTOXType);
pNewTOX = new SwTOXBase(pType, aForm, rDesc.GetContentOptions(), pType->GetTypeName());
2000-09-18 16:15:01 +00:00
}
pNewTOX->SetCreate(rDesc.GetContentOptions());
pNewTOX->SetLevel(rDesc.GetLevel());
2000-09-18 16:15:01 +00:00
}
break;
case TOX_USER :
{
if(!pCurTOX || (ppBase && !(*ppBase)))
2000-09-18 16:15:01 +00:00
{
sal_uInt16 nPos = 0;
sal_uInt16 nSize = pSh->GetTOXTypeCount(eCurTOXType);
for(sal_uInt16 i=0; rDesc.GetTOUName() && i < nSize; ++i)
2000-09-18 16:15:01 +00:00
{ const SwTOXType* pType = pSh->GetTOXType(TOX_USER, i);
if(pType->GetTypeName() == *rDesc.GetTOUName())
{ nPos = i;
break;
}
}
const SwTOXType* pType = pSh->GetTOXType(eCurTOXType, nPos);
SwForm aForm(eCurTOXType);
pNewTOX = new SwTOXBase(pType, aForm, rDesc.GetContentOptions(), pType->GetTypeName());
2000-09-18 16:15:01 +00:00
}
else
{
const_cast<SwTOXBase*>( pCurTOX )->SetCreate(rDesc.GetContentOptions());
2000-09-18 16:15:01 +00:00
}
pNewTOX->SetLevelFromChapter(rDesc.IsLevelFromChapter());
2000-09-18 16:15:01 +00:00
}
break;
case TOX_CITATION: /** TODO */break;
2000-09-18 16:15:01 +00:00
case TOX_OBJECTS:
case TOX_TABLES:
case TOX_AUTHORITIES:
case TOX_BIBLIOGRAPHY:
2000-09-18 16:15:01 +00:00
case TOX_ILLUSTRATIONS:
{
//Special handling for TOX_AUTHORITY
if(TOX_AUTHORITIES == eCurTOXType)
{
SwAuthorityFieldType* pFType = static_cast<SwAuthorityFieldType*>(
pSh->GetFieldType(RES_AUTHORITY, aEmptyOUStr));
if (!pFType)
{
SwAuthorityFieldType const type(pSh->GetDoc());
pFType = static_cast<SwAuthorityFieldType*>(
pSh->InsertFieldType(type));
}
pFType->SetPreSuffix(rDesc.GetAuthBrackets()[0],
rDesc.GetAuthBrackets()[1]);
pFType->SetSequence(rDesc.IsAuthSequence());
SwTOXSortKey rArr[3];
rArr[0] = rDesc.GetSortKey1();
rArr[1] = rDesc.GetSortKey2();
rArr[2] = rDesc.GetSortKey3();
pFType->SetSortKeys(3, rArr);
pFType->SetSortByDocument(rDesc.IsSortByDocument());
pFType->SetLanguage(rDesc.GetLanguage());
pFType->SetSortAlgorithm(rDesc.GetSortAlgorithm());
pFType->UpdateFields();
2000-09-18 16:15:01 +00:00
}
// TODO: consider properties of the current TOXType
if(!pCurTOX || (ppBase && !(*ppBase)))
2000-09-18 16:15:01 +00:00
{
const SwTOXType* pType = pSh->GetTOXType(eCurTOXType, 0);
SwForm aForm(eCurTOXType);
pNewTOX = new SwTOXBase(
2000-09-18 16:15:01 +00:00
pType, aForm,
TOX_AUTHORITIES == eCurTOXType ? nsSwTOXElement::TOX_MARK : 0, pType->GetTypeName());
2000-09-18 16:15:01 +00:00
}
else
{
if((!ppBase || !(*ppBase)) && pSh->HasSelection())
2000-09-18 16:15:01 +00:00
pSh->DelRight();
pNewTOX = const_cast<SwTOXBase*>(pCurTOX);
2000-09-18 16:15:01 +00:00
}
pNewTOX->SetFromObjectNames(rDesc.IsCreateFromObjectNames());
pNewTOX->SetOLEOptions(rDesc.GetOLEOptions());
2000-09-18 16:15:01 +00:00
}
break;
}
OSL_ENSURE(pNewTOX, "no TOXBase created!" );
if(!pNewTOX)
return false;
pNewTOX->SetFromChapter(rDesc.IsFromChapter());
pNewTOX->SetSequenceName(rDesc.GetSequenceName());
pNewTOX->SetCaptionDisplay(rDesc.GetCaptionDisplay());
pNewTOX->SetProtected(rDesc.IsReadonly());
2000-09-18 16:15:01 +00:00
for(sal_uInt16 nLevel = 0; nLevel < MAXLEVEL; nLevel++)
pNewTOX->SetStyleNames(rDesc.GetStyleNames(nLevel), nLevel);
2000-09-18 16:15:01 +00:00
if(rDesc.GetTitle())
pNewTOX->SetTitle(*rDesc.GetTitle());
2000-09-18 16:15:01 +00:00
if(rDesc.GetForm())
pNewTOX->SetTOXForm(*rDesc.GetForm());
pNewTOX->SetLanguage(rDesc.GetLanguage());
pNewTOX->SetSortAlgorithm(rDesc.GetSortAlgorithm());
if(!pCurTOX || (ppBase && !(*ppBase)) )
2000-09-18 16:15:01 +00:00
{
// when ppBase is passed over, TOXBase is only created here
// and then inserted in a global document by the dialog
2000-09-18 16:15:01 +00:00
if(ppBase)
(*ppBase) = pNewTOX;
2000-09-18 16:15:01 +00:00
else
{
pSh->InsertTableOf(*pNewTOX, pSet);
delete pNewTOX;
2000-09-18 16:15:01 +00:00
}
}
else
{
SwDoc * pDoc = pSh->GetDoc();
if (pDoc->GetIDocumentUndoRedo().DoesUndo())
{
pDoc->GetIDocumentUndoRedo().DelAllUndoObj();
pDoc->GetIDocumentUndoRedo().StartUndo(UNDO_TOXCHANGE, NULL);
}
pDoc->ChgTOX(*pTOX, *pNewTOX);
pTOX->DisableKeepExpression();
2000-09-18 16:15:01 +00:00
bRet = pSh->UpdateTableOf(*pTOX, pSet);
pTOX->EnableKeepExpression();
2000-09-18 16:15:01 +00:00
if (pDoc->GetIDocumentUndoRedo().DoesUndo())
{
pDoc->GetIDocumentUndoRedo().EndUndo(UNDO_TOXCHANGE, NULL);
}
}
2000-09-18 16:15:01 +00:00
return bRet;
}
void SwTOXDescription::SetSortKeys(SwTOXSortKey eKey1,
SwTOXSortKey eKey2,
SwTOXSortKey eKey3)
{
SwTOXSortKey aArr[3];
sal_uInt16 nPos = 0;
2000-09-18 16:15:01 +00:00
if(AUTH_FIELD_END > eKey1.eField)
aArr[nPos++] = eKey1;
if(AUTH_FIELD_END > eKey2.eField)
aArr[nPos++] = eKey2;
if(AUTH_FIELD_END > eKey3.eField)
aArr[nPos++] = eKey3;
eSortKey1 = aArr[0];
eSortKey2 = aArr[1];
eSortKey3 = aArr[2];
}
void SwTOXDescription::ApplyTo(SwTOXBase& rTOXBase)
{
for(sal_uInt16 i = 0; i < MAXLEVEL; i++)
2000-09-18 16:15:01 +00:00
rTOXBase.SetStyleNames(GetStyleNames(i), i);
rTOXBase.SetTitle(GetTitle() ? *GetTitle() : OUString());
2000-09-18 16:15:01 +00:00
rTOXBase.SetCreate(GetContentOptions());
if(GetTOXType() == TOX_INDEX)
rTOXBase.SetOptions(GetIndexOptions());
if(GetTOXType() != TOX_INDEX)
rTOXBase.SetLevel(GetLevel());
rTOXBase.SetFromObjectNames(IsCreateFromObjectNames());
rTOXBase.SetSequenceName(GetSequenceName());
rTOXBase.SetCaptionDisplay(GetCaptionDisplay());
rTOXBase.SetFromChapter(IsFromChapter());
rTOXBase.SetProtected(IsReadonly());
rTOXBase.SetOLEOptions(GetOLEOptions());
rTOXBase.SetLevelFromChapter(IsLevelFromChapter());
rTOXBase.SetLanguage(eLanguage);
rTOXBase.SetSortAlgorithm(sSortAlgorithm);
2000-09-18 16:15:01 +00:00
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */