translation of German comments in file sd/source/core/sdpage2.cxx
Change-Id: I310ca52319b553ab153dfce53b145f8785a4c62a
This commit is contained in:
committed by
Michael Meeks
parent
4c5e854039
commit
83b8e4c0de
@@ -55,21 +55,22 @@ extern void NotifyDocumentEvent( SdDrawDocument* pDocument, const rtl::OUString&
|
|||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
|*
|
|*
|
||||||
|* SetPresentationLayout, setzt: Layoutnamen, Masterpage-Verkn<6B>pfung und
|
|* Sets: names of layout, master page links and templates for presentation
|
||||||
|* Vorlagen fuer Praesentationsobjekte
|
|* objects
|
||||||
|*
|
|*
|
||||||
|* Vorraussetzungen: - Die Seite muss bereits das richtige Model kennen!
|
|* Preconditions: - The page has to know the correct model!
|
||||||
|* - Die entsprechende Masterpage muss bereits im Model sein.
|
|* - The corresponding master page has to be in the model.
|
||||||
|* - Die entsprechenden StyleSheets muessen bereits im
|
|* - The corresponding style sheets have to be in the style sheet
|
||||||
|* im StyleSheetPool sein.
|
|* pool.
|
||||||
|*
|
|*
|
||||||
|* bReplaceStyleSheets = sal_True : Benannte StyleSheets werden ausgetauscht
|
|* bReplaceStyleSheets = sal_True : Named style sheets are replaced
|
||||||
|* sal_False: Alle StyleSheets werden neu zugewiesen
|
|* sal_False: All style sheets are reassigned
|
||||||
|*
|
|*
|
||||||
|* bSetMasterPage = sal_True : MasterPage suchen und zuweisen
|
|* bSetMasterPage = sal_True : search and assign master page
|
||||||
|*
|
|*
|
||||||
|* bReverseOrder = sal_False: MasterPages von vorn nach hinten suchen
|
|* bReverseOrder = sal_False: search master page from head to tail
|
||||||
|* sal_True : MasterPages von hinten nach vorn suchen (fuer Undo-Action)
|
|* sal_True : search master page from tail to head
|
||||||
|
|* (for undo operations)
|
||||||
|*
|
|*
|
||||||
\************************************************************************/
|
\************************************************************************/
|
||||||
|
|
||||||
@@ -79,7 +80,7 @@ void SdPage::SetPresentationLayout(const String& rLayoutName,
|
|||||||
sal_Bool bReverseOrder)
|
sal_Bool bReverseOrder)
|
||||||
{
|
{
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
|* Layoutname der Seite
|
|* Name of the layout of the page
|
||||||
\********************************************************************/
|
\********************************************************************/
|
||||||
OUString aOldLayoutName(maLayoutName); // merken
|
OUString aOldLayoutName(maLayoutName); // merken
|
||||||
OUStringBuffer aBuf(rLayoutName);
|
OUStringBuffer aBuf(rLayoutName);
|
||||||
@@ -87,7 +88,7 @@ void SdPage::SetPresentationLayout(const String& rLayoutName,
|
|||||||
maLayoutName = aBuf.makeStringAndClear();
|
maLayoutName = aBuf.makeStringAndClear();
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
|* ggf. Masterpage suchen und setzen
|
|* search and replace master page if necessary
|
||||||
\********************************************************************/
|
\********************************************************************/
|
||||||
if (bSetMasterPage && !IsMasterPage())
|
if (bSetMasterPage && !IsMasterPage())
|
||||||
{
|
{
|
||||||
@@ -132,11 +133,11 @@ void SdPage::SetPresentationLayout(const String& rLayoutName,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
|* Vorlagen fuer Praesentationsobjekte
|
|* templates for presentation objects
|
||||||
\********************************************************************/
|
\********************************************************************/
|
||||||
// Listen mit:
|
// list with:
|
||||||
// - Vorlagenzeigern fuer Gliederungstextobjekt (alte und neue Vorlagen)
|
// - pointer to templates for outline text object (old and new templates)
|
||||||
// -Replacedaten fuer OutlinerParaObject
|
// - replace-data for OutlinerParaObject
|
||||||
std::vector<SfxStyleSheetBase*> aOutlineStyles;
|
std::vector<SfxStyleSheetBase*> aOutlineStyles;
|
||||||
std::vector<SfxStyleSheetBase*> aOldOutlineStyles;
|
std::vector<SfxStyleSheetBase*> aOldOutlineStyles;
|
||||||
boost::ptr_vector<StyleReplaceData> aReplList;
|
boost::ptr_vector<StyleReplaceData> aReplList;
|
||||||
@@ -177,7 +178,7 @@ void SdPage::SetPresentationLayout(const String& rLayoutName,
|
|||||||
|
|
||||||
if (bReplaceStyleSheets && pSheet)
|
if (bReplaceStyleSheets && pSheet)
|
||||||
{
|
{
|
||||||
// Replace anstatt Set
|
// Replace instead Set
|
||||||
StyleReplaceData* pReplData = new StyleReplaceData;
|
StyleReplaceData* pReplData = new StyleReplaceData;
|
||||||
pReplData->nNewFamily = pSheet->GetFamily();
|
pReplData->nNewFamily = pSheet->GetFamily();
|
||||||
pReplData->nFamily = pSheet->GetFamily();
|
pReplData->nFamily = pSheet->GetFamily();
|
||||||
@@ -234,9 +235,9 @@ void SdPage::SetPresentationLayout(const String& rLayoutName,
|
|||||||
else if (pObj->GetObjInventor() == SdrInventor &&
|
else if (pObj->GetObjInventor() == SdrInventor &&
|
||||||
pObj->GetObjIdentifier() == OBJ_TITLETEXT)
|
pObj->GetObjIdentifier() == OBJ_TITLETEXT)
|
||||||
{
|
{
|
||||||
// PresObjKind nicht ueber GetPresObjKind() holen, da dort nur
|
// We do net get PresObjKind via GetPresObjKind() since there are
|
||||||
// die PresObjListe beruecksichtigt wird. Es sollen aber alle
|
// only PresObjListe considered. But we want to consider all "Title
|
||||||
// "Titelobjekte" hier beruecksichtigt werden (Paste aus Clipboard usw.)
|
// objects" here (paste from clipboard etc.)
|
||||||
SfxStyleSheet* pSheet = GetStyleSheetForPresObj(PRESOBJ_TITLE);
|
SfxStyleSheet* pSheet = GetStyleSheetForPresObj(PRESOBJ_TITLE);
|
||||||
|
|
||||||
if (pSheet)
|
if (pSheet)
|
||||||
@@ -255,8 +256,7 @@ void SdPage::SetPresentationLayout(const String& rLayoutName,
|
|||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
|*
|
|*
|
||||||
|* das Gliederungstextobjekt bei den Vorlagen fuer die Gliederungsebenen
|
|* disconnect outline text object from templates for outline levels
|
||||||
|* abmelden
|
|
||||||
|*
|
|*
|
||||||
\************************************************************************/
|
\************************************************************************/
|
||||||
|
|
||||||
@@ -286,7 +286,7 @@ void SdPage::EndListenOutlineText()
|
|||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
|*
|
|*
|
||||||
|* Neues Model setzen
|
|* Set new model
|
||||||
|*
|
|*
|
||||||
\************************************************************************/
|
\************************************************************************/
|
||||||
|
|
||||||
@@ -294,7 +294,7 @@ void SdPage::SetModel(SdrModel* pNewModel)
|
|||||||
{
|
{
|
||||||
DisconnectLink();
|
DisconnectLink();
|
||||||
|
|
||||||
// Model umsetzen
|
// assign model
|
||||||
FmFormPage::SetModel(pNewModel);
|
FmFormPage::SetModel(pNewModel);
|
||||||
|
|
||||||
ConnectLink();
|
ConnectLink();
|
||||||
@@ -302,7 +302,7 @@ void SdPage::SetModel(SdrModel* pNewModel)
|
|||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
|*
|
|*
|
||||||
|* Ist die Seite read-only?
|
|* Is this page read-only?
|
||||||
|*
|
|*
|
||||||
\************************************************************************/
|
\************************************************************************/
|
||||||
|
|
||||||
@@ -313,7 +313,7 @@ bool SdPage::IsReadOnly() const
|
|||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
|*
|
|*
|
||||||
|* Beim sfx2::LinkManager anmelden
|
|* Connect to sfx2::LinkManager
|
||||||
|*
|
|*
|
||||||
\************************************************************************/
|
\************************************************************************/
|
||||||
|
|
||||||
@@ -326,14 +326,14 @@ void SdPage::ConnectLink()
|
|||||||
( (SdDrawDocument*) pModel)->IsNewOrLoadCompleted())
|
( (SdDrawDocument*) pModel)->IsNewOrLoadCompleted())
|
||||||
{
|
{
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* Anmelden
|
* Connect
|
||||||
* Nur Standardseiten duerfen gelinkt sein
|
* Only standard pages are allowed to be linked
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
::sd::DrawDocShell* pDocSh = ((SdDrawDocument*) pModel)->GetDocSh();
|
::sd::DrawDocShell* pDocSh = ((SdDrawDocument*) pModel)->GetDocSh();
|
||||||
|
|
||||||
if (!pDocSh || !pDocSh->GetMedium()->GetOrigURL().equals(maFileName))
|
if (!pDocSh || !pDocSh->GetMedium()->GetOrigURL().equals(maFileName))
|
||||||
{
|
{
|
||||||
// Keine Links auf Dokument-eigene Seiten!
|
// No links to document owned pages!
|
||||||
mpPageLink = new SdPageLink(this, maFileName, maBookmarkName);
|
mpPageLink = new SdPageLink(this, maFileName, maBookmarkName);
|
||||||
String aFilterName(SdResId(STR_IMPRESS));
|
String aFilterName(SdResId(STR_IMPRESS));
|
||||||
pLinkManager->InsertFileLink(*mpPageLink, OBJECT_CLIENT_FILE,
|
pLinkManager->InsertFileLink(*mpPageLink, OBJECT_CLIENT_FILE,
|
||||||
@@ -346,7 +346,7 @@ void SdPage::ConnectLink()
|
|||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
|*
|
|*
|
||||||
|* Beim sfx2::LinkManager abmelden
|
|* Disconnect from sfx2::LinkManager
|
||||||
|*
|
|*
|
||||||
\************************************************************************/
|
\************************************************************************/
|
||||||
|
|
||||||
@@ -357,8 +357,8 @@ void SdPage::DisconnectLink()
|
|||||||
if (pLinkManager && mpPageLink)
|
if (pLinkManager && mpPageLink)
|
||||||
{
|
{
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* Abmelden
|
* Disconnect
|
||||||
* (Bei Remove wird *pGraphicLink implizit deleted)
|
* (remove deletes *pGraphicLink implicit)
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
pLinkManager->Remove(mpPageLink);
|
pLinkManager->Remove(mpPageLink);
|
||||||
mpPageLink=NULL;
|
mpPageLink=NULL;
|
||||||
@@ -410,7 +410,7 @@ SdPage::SdPage(const SdPage& rSrcPage)
|
|||||||
// header footer
|
// header footer
|
||||||
setHeaderFooterSettings( rSrcPage.getHeaderFooterSettings() );
|
setHeaderFooterSettings( rSrcPage.getHeaderFooterSettings() );
|
||||||
|
|
||||||
mpPageLink = NULL; // Wird beim Einfuegen ueber ConnectLink() gesetzt
|
mpPageLink = NULL; // is set when inserting via ConnectLink()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user