summaryrefslogtreecommitdiff
path: root/sw/source/ui/app/applab.cxx
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-06-08 08:36:06 +0200
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-06-08 08:36:06 +0200
commit01693a8a10be052a15a7e4ebe3084cb23dae3c07 (patch)
tree1044b5ab6c04ff2b9ddf04a3716741b012d45221 /sw/source/ui/app/applab.cxx
parentcb16c0615a79235f74d3675549f39a1851157a06 (diff)
parenta970622b31d98cf06b1fc7221e6c8a67e8716b66 (diff)
Automated merge with http://x42-so4:8009/ooo
Diffstat (limited to 'sw/source/ui/app/applab.cxx')
-rw-r--r--sw/source/ui/app/applab.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sw/source/ui/app/applab.cxx b/sw/source/ui/app/applab.cxx
index 04fbebc865c8..41f055f86050 100644
--- a/sw/source/ui/app/applab.cxx
+++ b/sw/source/ui/app/applab.cxx
@@ -378,19 +378,20 @@ static sal_uInt16 nBCTitleNo = 0;
else
pSh->SetMark(); // set only the mark
- SwSection aSect( CONTENT_SECTION,
- String::CreateFromAscii(MASTER_LABEL));
+ SwSectionData aSect(CONTENT_SECTION,
+ String::CreateFromAscii(MASTER_LABEL));
pSh->InsertSection(aSect);
}
}
else if (rItem.bSynchron)
{
- SwSection aSect(FILE_LINK_SECTION, pSh->GetUniqueSectionName());
+ SwSectionData aSect(FILE_LINK_SECTION,
+ pSh->GetUniqueSectionName());
String sLinkName(sfx2::cTokenSeperator);
sLinkName += sfx2::cTokenSeperator;
sLinkName += String::CreateFromAscii(MASTER_LABEL);
aSect.SetLinkFileName(sLinkName);
- aSect.SetProtect();
+ aSect.SetProtectFlag(true);
pSh->Insert(aDotStr); // Dummytext zum Zuweisen der Section
pSh->SttDoc();
pSh->EndDoc(sal_True); // Alles im Rahmen selektieren