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
d71b97c1
Kaydet (Commit)
d71b97c1
authored
Şub 06, 2012
tarafından
David Vogt
Kaydeden (comit)
Michael Meeks
Şub 21, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Translated german code comments to english
üst
ad7f850e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
29 deletions
+27
-29
newfrm.cxx
sw/source/core/layout/newfrm.cxx
+27
-29
No files found.
sw/source/core/layout/newfrm.cxx
Dosyayı görüntüle @
d71b97c1
...
...
@@ -356,8 +356,8 @@ SwRectFn fnRectVL2R = &aVerticalRightToLeft;
// #i65250#
sal_uInt32
SwFrm
::
mnLastFrmId
=
0
;
TYPEINIT1
(
SwFrm
,
SwClient
);
//rtti f
ue
r SwFrm
TYPEINIT1
(
SwCntntFrm
,
SwFrm
);
//rtti f
ue
r SwCntntFrm
TYPEINIT1
(
SwFrm
,
SwClient
);
//rtti f
o
r SwFrm
TYPEINIT1
(
SwCntntFrm
,
SwFrm
);
//rtti f
o
r SwCntntFrm
void
_FrmInit
()
...
...
@@ -376,12 +376,12 @@ void _FrmInit()
void
_FrmFinit
()
{
#if OSL_DEBUG_LEVEL > 0
//
im Chache duerfen nur noch 0-Pointer stehen
//
The cache may only contain null pointers at this time.
for
(
sal_uInt16
n
=
SwFrm
::
GetCachePtr
()
->
Count
();
n
;
)
if
(
(
*
SwFrm
::
GetCachePtr
())[
--
n
]
)
{
SwCacheObj
*
pObj
=
(
*
SwFrm
::
GetCachePtr
())[
n
];
OSL_ENSURE
(
!
pObj
,
"Wer hat sich nicht ausgetragen?"
);
OSL_ENSURE
(
!
pObj
,
"Wer hat sich nicht ausgetragen?"
);
// TOOD: translate?
}
#endif
delete
SwRootFrm
::
pVout
;
...
...
@@ -390,7 +390,7 @@ void _FrmFinit()
/*************************************************************************
|*
|* RootFrm::
Alles was so zur CurrShell gehoert
|* RootFrm::
Everything that belongs to CurrShell
|*
|*************************************************************************/
...
...
@@ -400,7 +400,7 @@ SV_IMPL_PTRARR_SORT(SwCurrShells,CurrShellPtr)
CurrShell
::
CurrShell
(
ViewShell
*
pNew
)
{
OSL_ENSURE
(
pNew
,
"
0-Shell einsetzen
?"
);
OSL_ENSURE
(
pNew
,
"
insert 0-Shell
?"
);
pRoot
=
pNew
->
GetLayout
();
if
(
pRoot
)
{
...
...
@@ -438,15 +438,15 @@ void SetShell( ViewShell *pSh )
void
SwRootFrm
::
DeRegisterShell
(
ViewShell
*
pSh
)
{
//
Wenn moeglich irgendeine Shell aktivieren
//
Activate some shell if possible
if
(
pCurrShell
==
pSh
)
pCurrShell
=
pSh
->
GetNext
()
!=
pSh
?
(
ViewShell
*
)
pSh
->
GetNext
()
:
0
;
//
Das hat sich eruebrigt
//
Doesn't matter anymore
if
(
pWaitingCurrShell
==
pSh
)
pWaitingCurrShell
=
0
;
//
Referenzen entfernen.
//
Remove references
for
(
sal_uInt16
i
=
0
;
i
<
pCurrShells
->
Count
();
++
i
)
{
CurrShell
*
pC
=
(
*
pCurrShells
)[
i
];
...
...
@@ -465,10 +465,10 @@ void InitCurrShells( SwRootFrm *pRoot )
|*
|* SwRootFrm::SwRootFrm()
|*
|*
Beschreibung
:
|*
Der RootFrm laesst sich grundsaetzlich vom Dokument ein eigene
s
|*
FrmFmt geben. Dieses loescht er dann selbst im DTor.
|*
Das eigene FrmFmt wird vom uebergebenen Format abgeleite
t.
|*
Description
:
|*
The RootFrm requests an own FrmFmt from the document, which it i
s
|*
going to delete again in the dtor. The own FrmFmt is derived from
|*
the passed-in FrmFm
t.
|*
|*************************************************************************/
...
...
@@ -483,7 +483,7 @@ SwRootFrm::SwRootFrm( SwFrmFmt *pFmt, ViewShell * pSh ) :
mbBookMode
(
false
),
mbSidebarChanged
(
false
),
mbNeedGrammarCheck
(
false
),
nBrowseWidth
(
MM50
*
4
),
//2cm
M
inimum
nBrowseWidth
(
MM50
*
4
),
//2cm
m
inimum
pTurbo
(
0
),
pLastPage
(
0
),
pCurrShell
(
pSh
),
...
...
@@ -508,8 +508,8 @@ void SwRootFrm::Init( SwFrmFmt* pFmt )
IDocumentFieldsAccess
*
pFieldsAccess
=
pFmt
->
getIDocumentFieldsAccess
();
const
IDocumentSettingAccess
*
pSettingAccess
=
pFmt
->
getIDocumentSettingAccess
();
pTimerAccess
->
StopIdling
();
pLayoutAccess
->
SetCurrentViewShell
(
this
->
GetCurrShell
()
);
//
Fuer das Erzeugen der Flys durch
MakeFrms() //swmod 071108//swmod 071225
bCallbackActionEnabled
=
sal_False
;
//
vor Verlassen auf sal_True setzen
!
pLayoutAccess
->
SetCurrentViewShell
(
this
->
GetCurrShell
()
);
//
Helps creating the Flys by
MakeFrms() //swmod 071108//swmod 071225
bCallbackActionEnabled
=
sal_False
;
//
needs to be set to sal_True before leaving
!
SdrModel
*
pMd
=
pFmt
->
getIDocumentDrawModelAccess
()
->
GetDrawModel
();
if
(
pMd
)
...
...
@@ -522,10 +522,9 @@ void SwRootFrm::Init( SwFrmFmt* pFmt )
pDrawPage
->
SetSize
(
Frm
().
SSize
()
);
}
//Initialisierung des Layouts: Seiten erzeugen. Inhalt mit cntnt verbinden
//usw.
//Zuerst einiges initialiseren und den ersten Node besorgen (der wird
//fuer den PageDesc benoetigt).
// Initialize the layout: create pages, link content with Cntnt etc.
// First, initialize some stuff, then get hold of the first
// node (which will be needed for the PageDesc).
SwDoc
*
pDoc
=
pFmt
->
GetDoc
();
SwNodeIndex
aIndex
(
*
pDoc
->
GetNodes
().
GetEndOfContent
().
StartOfSectionNode
()
);
...
...
@@ -533,8 +532,7 @@ void SwRootFrm::Init( SwFrmFmt* pFmt )
// #123067# pNode = 0 can really happen
SwTableNode
*
pTblNd
=
pNode
?
pNode
->
FindTableNode
()
:
0
;
//PageDesc besorgen (entweder vom FrmFmt des ersten Node oder den
//initialen.)
// Get hold of PageDesc (either via FrmFmt of the first node or the initial one).
SwPageDesc
*
pDesc
=
0
;
sal_uInt16
nPgNum
=
1
;
...
...
@@ -542,14 +540,14 @@ void SwRootFrm::Init( SwFrmFmt* pFmt )
{
const
SwFmtPageDesc
&
rDesc
=
pTblNd
->
GetTable
().
GetFrmFmt
()
->
GetPageDesc
();
pDesc
=
(
SwPageDesc
*
)
rDesc
.
GetPageDesc
();
//#19104#
Seitennummeroffset beruecksictigen
!!
//#19104#
respect the page number offset
!!
bIsVirtPageNum
=
0
!=
(
nPgNum
=
rDesc
.
GetNumOffset
()
);
}
else
if
(
pNode
)
{
const
SwFmtPageDesc
&
rDesc
=
pNode
->
GetSwAttrSet
().
GetPageDesc
();
pDesc
=
(
SwPageDesc
*
)
rDesc
.
GetPageDesc
();
//#19104#
Seitennummeroffset beruecksictigen
!!
//#19104#
respect the page number offset
!!
bIsVirtPageNum
=
0
!=
(
nPgNum
=
rDesc
.
GetNumOffset
()
);
}
else
...
...
@@ -559,17 +557,17 @@ void SwRootFrm::Init( SwFrmFmt* pFmt )
&
const_cast
<
const
SwDoc
*>
(
pDoc
)
->
GetPageDesc
(
0
);
const
sal_Bool
bOdd
=
!
nPgNum
||
0
!=
(
nPgNum
%
2
);
//
Eine Seite erzeugen und in das Layout stellen
//
Create a page and put it in the layout
SwPageFrm
*
pPage
=
::
InsertNewPage
(
*
pDesc
,
this
,
bOdd
,
sal_False
,
sal_False
,
0
);
//
Erstes Blatt im Bodytext-Bereich suche
n.
//
Find the first page in the Bodytext sectio
n.
SwLayoutFrm
*
pLay
=
pPage
->
FindBodyCont
();
while
(
pLay
->
Lower
()
)
pLay
=
(
SwLayoutFrm
*
)
pLay
->
Lower
();
SwNodeIndex
aTmp
(
*
pDoc
->
GetNodes
().
GetEndOfContent
().
StartOfSectionNode
(),
1
);
::
_InsertCnt
(
pLay
,
pDoc
,
aTmp
.
GetIndex
(),
sal_True
);
//
Noch nicht ersetzte Master aus der Liste entfernen
.
//
Remove masters that haven't been replaced yet from the list
.
RemoveMasterObjs
(
pDrawPage
);
if
(
pSettingAccess
->
get
(
IDocumentSettingAccess
::
GLOBAL_DOCUMENT
)
)
pFieldsAccess
->
UpdateRefFlds
(
NULL
);
...
...
@@ -624,7 +622,7 @@ SwRootFrm::~SwRootFrm()
delete
pDestroy
;
pDestroy
=
0
;
//
Referenzen entfernen.
//
Remove references
for
(
sal_uInt16
i
=
0
;
i
<
pCurrShells
->
Count
();
++
i
)
(
*
pCurrShells
)[
i
]
->
pRoot
=
0
;
...
...
@@ -642,7 +640,7 @@ SwRootFrm::~SwRootFrm()
void
SwRootFrm
::
RemoveMasterObjs
(
SdrPage
*
pPg
)
{
//
Alle Masterobjekte aus der Page entfernen. Nicht loeschen!
!
//
Remove all master objects from the Page. But don't delete
!
for
(
sal_uLong
i
=
pPg
?
pPg
->
GetObjCount
()
:
0
;
i
;
)
{
SdrObject
*
pObj
=
pPg
->
GetObj
(
--
i
);
...
...
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