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
5a032ac8
Kaydet (Commit)
5a032ac8
authored
Nis 25, 2011
tarafından
Christoph Herzog
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Translation of German comments.
üst
38e39a9f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
82 additions
and
95 deletions
+82
-95
swtypes.hxx
sw/inc/swtypes.hxx
+0
-0
tabcol.hxx
sw/inc/tabcol.hxx
+14
-15
tblafmt.hxx
sw/inc/tblafmt.hxx
+9
-17
tblenum.hxx
sw/inc/tblenum.hxx
+15
-15
tblsel.hxx
sw/inc/tblsel.hxx
+36
-39
tox.hxx
sw/inc/tox.hxx
+1
-1
txatbase.hxx
sw/inc/txatbase.hxx
+1
-1
txtatr.hxx
sw/inc/txtatr.hxx
+3
-4
txtflcnt.hxx
sw/inc/txtflcnt.hxx
+3
-3
No files found.
sw/inc/swtypes.hxx
Dosyayı görüntüle @
5a032ac8
This diff is collapsed.
Click to expand it.
sw/inc/tabcol.hxx
Dosyayı görüntüle @
5a032ac8
...
...
@@ -41,31 +41,30 @@ struct SwTabColsEntry
long
nPos
;
long
nMin
;
long
nMax
;
sal_Bool
bHidden
;
//Fuer jeden Eintrag ein Flag, Hidden oder nicht.
//Wenn das Flag Hidden sal_True ist liegt der Spalten-
//trenner nicht in der aktuellen Zeile; er muss
//mit gepflegt werden, darf aber nicht angezeigt
//werden.
sal_Bool
bHidden
;
// For each entry a flag, hidden or not.
// If the flag bHidden is sal_True column separator
// is not in current line. It must maintained
// but it may not be displayed.
};
typedef
std
::
vector
<
SwTabColsEntry
>
SwTabColsEntries
;
class
SW_DLLPUBLIC
SwTabCols
{
long
nLeftMin
,
//
Linker aeusserer Rand (Bezugspunkt) in
//
Dokumentkordinaten
.
//
Alle anderen Werte relativ zu diesem Punk
t!
nLeft
,
//
Linker Rand der Tabel
le.
nRight
,
//
Rechter Rand der Tabel
le.
nRightMax
;
//
Maximaler rechter Rand der Tabel
le.
bool
bLastRowAllowedToChange
;
//
i
f the last row of the table frame
long
nLeftMin
,
//
Leftmost border (reference point) for
//
document coordinates
.
//
All other values are relative to this poin
t!
nLeft
,
//
Left border of tab
le.
nRight
,
//
Right border of tab
le.
nRightMax
;
//
Maximum right border of tab
le.
bool
bLastRowAllowedToChange
;
//
I
f the last row of the table frame
// is split across pages, it may not
// change its size
// change its size
.
SwTabColsEntries
aData
;
//
fuer den CopyCTor
//
For the CopyCTor.
const
SwTabColsEntries
&
GetData
()
const
{
return
aData
;
}
public
:
...
...
sw/inc/tblafmt.hxx
Dosyayı görüntüle @
5a032ac8
...
...
@@ -30,15 +30,7 @@
/*************************************************************************
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Die akt. Struktur der Autoformatierung darf nicht mehr veraendert werden.
Diese wird durch unterschiedlichen Code vom StartWriter und vom StarCalc
eingelesen/geschrieben.
Sollte sich doch mal eine Aenderung nicht vermeiden lassen, dann auf
jedenfall in beiden Applikationen aendern.
The structure of table auto formatting should not changed. It is used
The structure of table auto formatting should not be changed. It is used
by different code of Writer and Calc. If a change is necessary, the
source code of both applications must be changed!
...
...
@@ -46,7 +38,7 @@
**************************************************************************/
#include <svl/svarray.hxx>
#include "hintids.hxx" //
_immmer_ vor den
solar-items!
#include "hintids.hxx" //
_Always_ before the
solar-items!
#include <svx/algitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/fhgtitem.hxx>
...
...
@@ -124,7 +116,7 @@ public:
int
operator
==
(
const
SwBoxAutoFmt
&
rCmp
)
const
;
SwBoxAutoFmt
&
operator
=
(
const
SwBoxAutoFmt
&
rNew
);
//
die Get-Methoden
//
The get-methods.
const
SvxFontItem
&
GetFont
()
const
{
return
aFont
;
}
const
SvxFontHeightItem
&
GetHeight
()
const
{
return
aHeight
;
}
const
SvxWeightItem
&
GetWeight
()
const
{
return
aWeight
;
}
...
...
@@ -151,7 +143,7 @@ public:
void
GetValueFormat
(
String
&
rFmt
,
LanguageType
&
rLng
,
LanguageType
&
rSys
)
const
{
rFmt
=
sNumFmtString
;
rLng
=
eNumFmtLanguage
;
rSys
=
eSysLanguage
;
}
//
die SetMethoden
//
The set-methods.
void
SetFont
(
const
SvxFontItem
&
rNew
)
{
aFont
=
rNew
;
}
void
SetHeight
(
const
SvxFontHeightItem
&
rNew
)
{
aHeight
=
rNew
;
}
void
SetWeight
(
const
SvxWeightItem
&
rNew
)
{
aWeight
=
rNew
;
}
...
...
@@ -186,27 +178,27 @@ public:
sal_Bool
SaveVerionNo
(
SvStream
&
rStream
)
const
;
#ifdef READ_OLDVERS
// l
ade alte Version
// l
oad old version.
sal_Bool
LoadOld
(
SvStream
&
rStream
,
sal_uInt16
aLoadVer
[]
);
#endif
};
class
SW_DLLPUBLIC
SwTableAutoFmt
{
friend
void
_FinitCore
();
//
zum Zerstoeren des dflt. Pointers
friend
void
_FinitCore
();
//
To destroy dflt. pointer.
static
SwBoxAutoFmt
*
pDfltBoxAutoFmt
;
String
aName
;
sal_uInt16
nStrResId
;
//
common flags of Calc and Writer
//
Common flags of Calc and Writer.
sal_Bool
bInclFont
:
1
;
sal_Bool
bInclJustify
:
1
;
sal_Bool
bInclFrame
:
1
;
sal_Bool
bInclBackground
:
1
;
sal_Bool
bInclValueFormat
:
1
;
// Calc specific flags
// Calc specific flags
.
sal_Bool
bInclWidthHeight
:
1
;
SwBoxAutoFmt
*
aBoxAutoFmt
[
16
];
...
...
@@ -247,7 +239,7 @@ public:
sal_Bool
Save
(
SvStream
&
rStream
)
const
;
#ifdef READ_OLDVERS
//
load old versions
//
Load old versions.
sal_Bool
LoadOld
(
SvStream
&
rStream
,
sal_uInt16
aLoadVer
[]
);
#endif
};
...
...
sw/inc/tblenum.hxx
Dosyayı görüntüle @
5a032ac8
...
...
@@ -28,7 +28,8 @@
#ifndef _TBLENUM_HXX
#define _TBLENUM_HXX
//fuers aendern der Tabellen/Spalten/Zeilen Breiten/Hoehen
// For changing table columns/rows widths/heights.
typedef
sal_uInt16
TblChgWidthHeightType
;
namespace
nsTblChgWidthHeightType
...
...
@@ -43,30 +44,29 @@ namespace nsTblChgWidthHeightType
const
TblChgWidthHeightType
WH_CELL_BOTTOM
=
7
;
//
folgende koennen hinein verodert werden
const
TblChgWidthHeightType
WH_FLAG_INSDEL
=
0x4000
;
// Insert/Del-
Modus: das
Bigger-Flag
//
besagt was passiert
:
// bBigger ->
Box wird entfernt
// !bBigger->
Box wird eingefuegt
const
TblChgWidthHeightType
WH_FLAG_BIGGER
=
0x8000
;
// Box
wird groesser -> sonst kleiner
//
The following can "or"ed into.
const
TblChgWidthHeightType
WH_FLAG_INSDEL
=
0x4000
;
// Insert/Del-
mode: the
Bigger-Flag
//
tells what happens
:
// bBigger ->
box gets removed.
// !bBigger->
box gets inserted.
const
TblChgWidthHeightType
WH_FLAG_BIGGER
=
0x8000
;
// Box
becomes larger -> else smaller.
}
enum
TblChgMode
{
TBLFIX_CHGABS
,
// Tab
elle feste Breite, den Nachbar andern
TBLFIX_CHGPROP
,
// Tab
elle feste Breite, alle Nachbarn aendern
TBLVAR_CHGABS
// Tab
elle variable, alle Nachbarn aendern
TBLFIX_CHGABS
,
// Tab
le fixed width, change neighbour.
TBLFIX_CHGPROP
,
// Tab
le fixed width, change all neighbours.
TBLVAR_CHGABS
// Tab
le variable, change all neighbours.
};
enum
SplitTbl_HeadlineOption
{
HEADLINE_NONE
=
0
,
//
lasse alles wie es ist
HEADLINE_NONE
=
0
,
//
Leave everything in place.
HEADLINE_BORDERCOPY
,
// von der davor obere Line der vorhergehen Line
HEADLINE_CNTNTCOPY
,
// kopiere die 1. Line komplett mit Inhalt
HEADLINE_BOXATTRCOPY
,
// kopiere von der 1. Line die Box Attribute
HEADLINE_BOXATRCOLLCOPY
// kopiere von der 1. Line die Box Attribute
// und die Absatzvorlagen
HEADLINE_CNTNTCOPY
,
// Copy 1st line with all contents.
HEADLINE_BOXATTRCOPY
,
// Copy box attributs of 1st line.
HEADLINE_BOXATRCOLLCOPY
// Copy box attributes and paragraph styles of 1st line.
};
enum
TableMergeErr
...
...
sw/inc/tblsel.hxx
Dosyayı görüntüle @
5a032ac8
...
...
@@ -51,21 +51,20 @@ SV_DECL_PTRARR( SwCellFrms, SwCellFrm*, 16, 16 )
SV_DECL_PTRARR_SORT
(
SwSelBoxes
,
SwTableBoxPtr
,
10
,
20
)
//Sucht alle Boxen zusammen, die in der Tabelle selektiert sind.
//Je nach enum-Parameter wird die Selektion in der angegebenen Richtung
//erweitert.
//Die Boxen werden ueber das Layout zusammengsucht, es wird auch bei
//aufgespaltenen Tabellen korrekt gearbeitet (siehe: MakeSelUnions()).
// Collects all boxes in table that are selected.
// Selection gets extended in given direction according to enum-parameter.
// Boxes are collected via the Layout; works correctly if tables are split.
// (Cf. MakeSelUnions().)
typedef
sal_uInt16
SwTblSearchType
;
namespace
nsSwTblSearchType
{
const
SwTblSearchType
TBLSEARCH_NONE
=
0x1
;
//
keine Erweiterung
const
SwTblSearchType
TBLSEARCH_ROW
=
0x2
;
//
erweiter auf Zeilen
const
SwTblSearchType
TBLSEARCH_COL
=
0x3
;
//
erweiter auf Spalten
const
SwTblSearchType
TBLSEARCH_NONE
=
0x1
;
//
No extension.
const
SwTblSearchType
TBLSEARCH_ROW
=
0x2
;
//
Extend to rows.
const
SwTblSearchType
TBLSEARCH_COL
=
0x3
;
//
Extend to columns.
//
als Flag zu den anderen Werten!
!
const
SwTblSearchType
TBLSEARCH_PROTECT
=
0x8
;
//
auch geschuetzte Boxen einsammeln
const
SwTblSearchType
TBLSEARCH_NO_UNION_CORRECT
=
0x10
;
//
die zusammenges. Union nicht korrigieren
//
As flag to the other values
!
const
SwTblSearchType
TBLSEARCH_PROTECT
=
0x8
;
//
Collect protected boxes too.
const
SwTblSearchType
TBLSEARCH_NO_UNION_CORRECT
=
0x10
;
//
Do not correct collected Union.
}
SW_DLLPUBLIC
void
GetTblSel
(
const
SwCrsrShell
&
rShell
,
SwSelBoxes
&
rBoxes
,
...
...
@@ -74,60 +73,58 @@ SW_DLLPUBLIC void GetTblSel( const SwCrsrShell& rShell, SwSelBoxes& rBoxes,
void
GetTblSel
(
const
SwCursor
&
rCrsr
,
SwSelBoxes
&
rBoxes
,
const
SwTblSearchType
=
nsSwTblSearchType
::
TBLSEARCH_NONE
);
//wie vor, jedoch wird nicht von der Selektion sondern von den
//
Start- EndFrms ausgegangen
.
//
As before, but don't start from selection but from Start- EndFrms
.
void
GetTblSel
(
const
SwLayoutFrm
*
pStart
,
const
SwLayoutFrm
*
pEnd
,
SwSelBoxes
&
rBoxes
,
SwCellFrms
*
pCells
,
const
SwTblSearchType
=
nsSwTblSearchType
::
TBLSEARCH_NONE
);
//
Desgleichen nocheinmal direkt per PaM's
//
As before but directly via PaMs.
void
GetTblSelCrs
(
const
SwCrsrShell
&
rShell
,
SwSelBoxes
&
rBoxes
);
void
GetTblSelCrs
(
const
SwTableCursor
&
rTblCrsr
,
SwSelBoxes
&
rBoxes
);
//
suche fuer eine AutoSumme die beteiligten Boxen zusammen
//
Collect boxes relevant for auto sum.
sal_Bool
GetAutoSumSel
(
const
SwCrsrShell
&
,
SwCellFrms
&
);
//
check if the SelBoxes contains protected Boxes
//
Check if the SelBoxes contains protected Boxes.
sal_Bool
HasProtectedCells
(
const
SwSelBoxes
&
rBoxes
);
//
teste, ob die Selektion ausgeglichen ist
//
Check if selection is balanced.
SV_DECL_PTRARR
(
SwChartBoxes
,
SwTableBoxPtr
,
16
,
16
)
SV_DECL_PTRARR_DEL
(
SwChartLines
,
SwChartBoxes
*
,
25
,
50
)
sal_Bool
ChkChartSel
(
const
SwNode
&
rSttNd
,
const
SwNode
&
rEndNd
,
SwChartLines
*
pGetCLines
=
0
);
//
teste ob die Celle in die SSelection gehoert
// (
wurde eine Funktion, damit GetTblSel() und MakeTblCrsr() immer
//
das "gleiche Verstaendnis" fuer die Selektion haben)
//
Check if cell is part of SSelection.
// (
Became a function, in order to make sure that GetTblSel() and MakeTblCrsr()
//
have always the same concept of the selection.
sal_Bool
IsFrmInTblSel
(
const
SwRect
&
rUnion
,
const
SwFrm
*
pCell
);
// bestimme die Boxen, die zusammen gefasst werden sollen.
// Dabei wird auf Layout Basis das Rechteck "angepasst". D.H. es
// werden Boxen zugefuegt wenn welche an den Seiten ueberlappen
// Zusaetzlich wird die neue Box erzeugt und mit dem entsprechenden
// Inhalt gefuellt.
// Determine boxes to be merged.
// In this process the rectangle gets "adapted" on the base of the layout,
// i.e. boxes are added if some overlap at the sides.
// Additionally a new box is created and filled with the relevant content.
void
GetMergeSel
(
const
SwPaM
&
rPam
,
SwSelBoxes
&
rBoxes
,
SwTableBox
**
ppMergeBox
,
SwUndoTblMerge
*
pUndo
=
0
);
//
teste ob die selektierten Boxen ein gueltiges Merge erlauben
//
Check if selected boxes allow for a valid merge.
sal_uInt16
CheckMergeSel
(
const
SwPaM
&
rPam
);
sal_uInt16
CheckMergeSel
(
const
SwSelBoxes
&
rBoxes
);
sal_Bool
IsEmptyBox
(
const
SwTableBox
&
rBox
,
SwPaM
&
rPam
);
// teste ob ein Split oder InsertCol dazu fuehrt, das eine Box
// kleiner als MINLAY wird.
// Check if Split or InsertCol lead to a box becoming smaller than MINLAY.
sal_Bool
CheckSplitCells
(
const
SwCrsrShell
&
rShell
,
sal_uInt16
nDiv
,
const
SwTblSearchType
=
nsSwTblSearchType
::
TBLSEARCH_NONE
);
sal_Bool
CheckSplitCells
(
const
SwCursor
&
rCrsr
,
sal_uInt16
nDiv
,
const
SwTblSearchType
=
nsSwTblSearchType
::
TBLSEARCH_NONE
);
//
Fuer das Arbeiten auf TabSelektion auch fuer aufgespaltene Tabellen
.
//
For working on tab selection also for split tables
.
class
SwSelUnion
{
SwRect
aUnion
;
//
Das die Sel umschliessende Rechteck
.
SwTabFrm
*
pTable
;
//
Die (Follow-)Table zu der
Union.
SwRect
aUnion
;
//
The rectangle enclosing the selection
.
SwTabFrm
*
pTable
;
//
The (Follow-)Table for the
Union.
public
:
SwSelUnion
(
const
SwRect
&
rRect
,
SwTabFrm
*
pTab
)
:
...
...
@@ -141,18 +138,18 @@ public:
SV_DECL_PTRARR_DEL
(
SwSelUnions
,
SwSelUnion
*
,
10
,
20
)
//
Ermittelt die von einer Tabellenselektion betroffenen Tabellen und die
//
Union-Rechteckte der Selektionen - auch fuer aufgespaltene Tabellen
.
//
Wenn ein Parameter != nsSwTblSearchType::TBLSEARCH_NONE uebergeben wird, so wird die
//
Selektion in der angegebenen Richtung erweitert
.
//
Gets the tables involved in a table selection and the union-rectangles of the selections
//
- also for split tables
.
//
If a parameter is passed that != nsSwTblSearchType::TBLSEARCH_NONE
//
the selection is extended in the given direction
.
void
MakeSelUnions
(
SwSelUnions
&
,
const
SwLayoutFrm
*
pStart
,
const
SwLayoutFrm
*
pEnd
,
const
SwTblSearchType
=
nsSwTblSearchType
::
TBLSEARCH_NONE
);
// -------------------------------------------------------------------
//
Diese Klassen kopieren die aktuelle Tabellen-Selektion (rBoxes)
//
unter Beibehaltung der Tabellen-Strubktur in eine eigene Struktur
//
These classes copy the current table selections (rBoxes) into a
//
separate structure while keeping the table structure.
class
_FndBox
;
class
_FndLine
;
...
...
@@ -166,7 +163,7 @@ class _FndBox
_FndLines
aLines
;
_FndLine
*
pUpper
;
SwTableLine
*
pLineBefore
;
//
Zum Loeschen/Restaurieren des Layouts
.
SwTableLine
*
pLineBefore
;
//
For deleting/restoring the layout
.
SwTableLine
*
pLineBehind
;
public
:
...
...
sw/inc/tox.hxx
Dosyayı görüntüle @
5a032ac8
...
...
@@ -73,7 +73,7 @@ class SW_DLLPUBLIC SwTOXMark
friend
void
_InitCore
();
friend
class
SwTxtTOXMark
;
String
aAltText
;
//
Der Text des Eintrages ist unterschiedlich
String
aAltText
;
//
Text of caption is different.
String
aPrimaryKey
,
aSecondaryKey
;
// three more strings for phonetic sorting
...
...
sw/inc/txatbase.hxx
Dosyayı görüntüle @
5a032ac8
...
...
@@ -136,7 +136,7 @@ public:
};
// --------------- Inline Implement
ierungen
------------------------
// --------------- Inline Implement
ations
------------------------
inline
const
xub_StrLen
*
SwTxtAttr
::
GetEnd
()
const
{
...
...
sw/inc/txtatr.hxx
Dosyayı görüntüle @
5a032ac8
...
...
@@ -32,7 +32,7 @@
#include <calbck.hxx>
class
SwTxtNode
;
//
fuer SwTxtFld
class
SwTxtNode
;
//
For SwTxtFld.
class
SwCharFmt
;
namespace
sw
{
...
...
@@ -51,7 +51,7 @@ public:
SwTxtCharFmt
(
SwFmtCharFmt
&
rAttr
,
xub_StrLen
nStart
,
xub_StrLen
nEnd
);
virtual
~
SwTxtCharFmt
(
);
//
werden vom SwFmtCharFmt hierher weitergeleitet (no derivation from SwClient!)
//
Passed from SwFmtCharFmt (no derivation from SwClient!).
void
ModifyNotification
(
const
SfxPoolItem
*
,
const
SfxPoolItem
*
);
bool
GetInfo
(
SfxPoolItem
&
rInfo
)
const
;
...
...
@@ -109,7 +109,7 @@ public:
SW_DLLPRIVATE
void
InitRuby
(
SwTxtNode
&
rNode
);
///
get and set TxtNode pointer
///
Get and set TxtNode pointer.
const
SwTxtNode
*
GetpTxtNode
()
const
{
return
m_pTxtNode
;
}
inline
const
SwTxtNode
&
GetTxtNode
()
const
;
void
ChgTxtNode
(
SwTxtNode
*
pNew
)
{
m_pTxtNode
=
pNew
;
}
...
...
@@ -119,7 +119,6 @@ public:
{
return
(
const_cast
<
SwTxtRuby
*>
(
this
))
->
GetCharFmt
();
}
};
// --------------- Inline Implementierungen ------------------------
inline
const
SwTxtNode
&
SwTxtRuby
::
GetTxtNode
()
const
{
...
...
sw/inc/txtflcnt.hxx
Dosyayı görüntüle @
5a032ac8
...
...
@@ -36,7 +36,7 @@ class SwTxtNode;
class
SwDoc
;
// SWTXT_FLYCNT ********************************
// Attribut
fuer zeilengebundene Frames (ohne Endindex)
// Attribut
e for line-bound frames (without end index).
class
SwTxtFlyCnt
:
public
SwTxtAttr
{
...
...
@@ -45,13 +45,13 @@ class SwTxtFlyCnt : public SwTxtAttr
public
:
SwTxtFlyCnt
(
SwFmtFlyCnt
&
rAttr
,
xub_StrLen
nStart
);
// Set
zt den Anker im pFmt u
nd
// Set
s anchor in pFmt a
nd
void
SetAnchor
(
const
SwTxtNode
*
pNode
);
inline
SwFlyInCntFrm
*
GetFlyFrm
(
const
SwFrm
*
pCurrFrm
);
inline
const
SwFlyInCntFrm
*
GetFlyFrm
(
const
SwFrm
*
pCurrFrm
)
const
;
//
erzeugt sich ein neues FlyFrameFormat
//
creates for itself a new FlyFrameFormat.
void
CopyFlyFmt
(
SwDoc
*
pDoc
);
};
...
...
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