Lines 444-466
Link Here
|
444 |
pNewDBMgr = new SwNewDBMgr; |
444 |
pNewDBMgr = new SwNewDBMgr; |
445 |
|
445 |
|
446 |
// create TOXTypes |
446 |
// create TOXTypes |
447 |
ShellResource* pShellRes = ViewShell::GetShellRes(); |
447 |
InitTOXTypes(); |
448 |
|
|
|
449 |
SwTOXType * pNew = new SwTOXType(TOX_CONTENT, pShellRes->aTOXContentName ); |
450 |
pTOXTypes->Insert( pNew, pTOXTypes->Count() ); |
451 |
pNew = new SwTOXType(TOX_INDEX, pShellRes->aTOXIndexName ); |
452 |
pTOXTypes->Insert( pNew, pTOXTypes->Count() ); |
453 |
pNew = new SwTOXType(TOX_USER, pShellRes->aTOXUserName ); |
454 |
pTOXTypes->Insert( pNew, pTOXTypes->Count() ); |
455 |
pNew = new SwTOXType(TOX_ILLUSTRATIONS, pShellRes->aTOXIllustrationsName ); |
456 |
pTOXTypes->Insert( pNew, pTOXTypes->Count() ); |
457 |
pNew = new SwTOXType(TOX_OBJECTS, pShellRes->aTOXObjectsName ); |
458 |
pTOXTypes->Insert( pNew, pTOXTypes->Count() ); |
459 |
pNew = new SwTOXType(TOX_TABLES, pShellRes->aTOXTablesName ); |
460 |
pTOXTypes->Insert( pNew, pTOXTypes->Count() ); |
461 |
pNew = new SwTOXType(TOX_AUTHORITIES, pShellRes->aTOXAuthoritiesName ); |
462 |
pTOXTypes->Insert( pNew, pTOXTypes->Count() ); |
463 |
|
464 |
// --> OD 2008-03-07 #refactorlists# |
448 |
// --> OD 2008-03-07 #refactorlists# |
465 |
// pass empty item set containing the paragraph's list attributes |
449 |
// pass empty item set containing the paragraph's list attributes |
466 |
// as ignorable items to the stype manager. |
450 |
// as ignorable items to the stype manager. |
Lines 832-838
Link Here
|
832 |
// loesche der Nodes geloescht werden. |
816 |
// loesche der Nodes geloescht werden. |
833 |
pBookmarkTbl->DeleteAndDestroy( 0, pBookmarkTbl->Count() ); |
817 |
pBookmarkTbl->DeleteAndDestroy( 0, pBookmarkTbl->Count() ); |
834 |
pTOXTypes->DeleteAndDestroy( 0, pTOXTypes->Count() ); |
818 |
pTOXTypes->DeleteAndDestroy( 0, pTOXTypes->Count() ); |
835 |
|
819 |
InitTOXTypes( ); |
836 |
// create a dummy pagedesc for the layout |
820 |
// create a dummy pagedesc for the layout |
837 |
sal_uInt16 nDummyPgDsc = MakePageDesc( String::CreateFromAscii( "?DUMMY?" )); |
821 |
sal_uInt16 nDummyPgDsc = MakePageDesc( String::CreateFromAscii( "?DUMMY?" )); |
838 |
SwPageDesc* pDummyPgDsc = aPageDescs[ nDummyPgDsc ]; |
822 |
SwPageDesc* pDummyPgDsc = aPageDescs[ nDummyPgDsc ]; |
Lines 1056-1058
Link Here
|
1056 |
} |
1040 |
} |
1057 |
} |
1041 |
} |
1058 |
// <-- |
1042 |
// <-- |
|
|
1043 |
void SwDoc::InitTOXTypes() |
1044 |
{ |
1045 |
ShellResource* pShellRes = ViewShell::GetShellRes(); |
1046 |
SwTOXType * pNew = new SwTOXType(TOX_CONTENT, pShellRes->aTOXContentName ); |
1047 |
pTOXTypes->Insert( pNew, pTOXTypes->Count() ); |
1048 |
pNew = new SwTOXType(TOX_INDEX, pShellRes->aTOXIndexName ); |
1049 |
pTOXTypes->Insert( pNew, pTOXTypes->Count() ); |
1050 |
pNew = new SwTOXType(TOX_USER, pShellRes->aTOXUserName ); |
1051 |
pTOXTypes->Insert( pNew, pTOXTypes->Count() ); |
1052 |
pNew = new SwTOXType(TOX_ILLUSTRATIONS, pShellRes->aTOXIllustrationsName ); |
1053 |
pTOXTypes->Insert( pNew, pTOXTypes->Count() ); |
1054 |
pNew = new SwTOXType(TOX_OBJECTS, pShellRes->aTOXObjectsName ); |
1055 |
pTOXTypes->Insert( pNew, pTOXTypes->Count() ); |
1056 |
pNew = new SwTOXType(TOX_TABLES, pShellRes->aTOXTablesName ); |
1057 |
pTOXTypes->Insert( pNew, pTOXTypes->Count() ); |
1058 |
pNew = new SwTOXType(TOX_AUTHORITIES, pShellRes->aTOXAuthoritiesName ); |
1059 |
pTOXTypes->Insert( pNew, pTOXTypes->Count() ); |
1060 |
} |