Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
83b8e4c0
Kaydet (Commit)
83b8e4c0
authored
Mar 01, 2013
tarafından
Urs Fässler
Kaydeden (comit)
Michael Meeks
Mar 01, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
translation of German comments in file sd/source/core/sdpage2.cxx
Change-Id: I310ca52319b553ab153dfce53b145f8785a4c62a
üst
4c5e8540
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
34 deletions
+34
-34
sdpage2.cxx
sd/source/core/sdpage2.cxx
+34
-34
No files found.
sd/source/core/sdpage2.cxx
Dosyayı görüntüle @
83b8e4c0
...
@@ -55,21 +55,22 @@ extern void NotifyDocumentEvent( SdDrawDocument* pDocument, const rtl::OUString&
...
@@ -55,21 +55,22 @@ extern void NotifyDocumentEvent( SdDrawDocument* pDocument, const rtl::OUString&
/*************************************************************************
/*************************************************************************
|*
|*
|* Set
PresentationLayout, setzt: Layoutnamen, Masterpage-Verkn�pfung und
|* Set
s: 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: All
e 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,
...
@@ -79,7 +80,7 @@ void SdPage::SetPresentationLayout(const String& rLayoutName,
sal_Bool
bReverseOrder
)
sal_Bool
bReverseOrder
)
{
{
/*********************************************************************
/*********************************************************************
|*
Layoutname der Seit
e
|*
Name of the layout of the pag
e
\********************************************************************/
\********************************************************************/
OUString
aOldLayoutName
(
maLayoutName
);
// merken
OUString
aOldLayoutName
(
maLayoutName
);
// merken
OUStringBuffer
aBuf
(
rLayoutName
);
OUStringBuffer
aBuf
(
rLayoutName
);
...
@@ -87,7 +88,7 @@ void SdPage::SetPresentationLayout(const String& 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,
...
@@ -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 fue
r OutlinerParaObject
// -
replace-data fo
r 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,
...
@@ -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,
...
@@ -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 al
le
//
only PresObjListe considered. But we want to consider all "Tit
le
//
"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,
...
@@ -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()
...
@@ -286,7 +286,7 @@ void SdPage::EndListenOutlineText()
/*************************************************************************
/*************************************************************************
|*
|*
|*
Neues Model setzen
|*
Set new model
|*
|*
\************************************************************************/
\************************************************************************/
...
@@ -294,7 +294,7 @@ void SdPage::SetModel(SdrModel* pNewModel)
...
@@ -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)
...
@@ -302,7 +302,7 @@ void SdPage::SetModel(SdrModel* pNewModel)
/*************************************************************************
/*************************************************************************
|*
|*
|* Is
t die Seit
e read-only?
|* Is
this pag
e read-only?
|*
|*
\************************************************************************/
\************************************************************************/
...
@@ -313,7 +313,7 @@ bool SdPage::IsReadOnly() const
...
@@ -313,7 +313,7 @@ bool SdPage::IsReadOnly() const
/*************************************************************************
/*************************************************************************
|*
|*
|*
Beim sfx2::LinkManager anmelden
|*
Connect to sfx2::LinkManager
|*
|*
\************************************************************************/
\************************************************************************/
...
@@ -326,14 +326,14 @@ void SdPage::ConnectLink()
...
@@ -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()
...
@@ -346,7 +346,7 @@ void SdPage::ConnectLink()
/*************************************************************************
/*************************************************************************
|*
|*
|*
Beim sfx2::LinkManager abmelden
|*
Disconnect from sfx2::LinkManager
|*
|*
\************************************************************************/
\************************************************************************/
...
@@ -357,8 +357,8 @@ void SdPage::DisconnectLink()
...
@@ -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)
...
@@ -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()
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment