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
af169a60
Kaydet (Commit)
af169a60
authored
May 31, 2013
tarafından
abdulmajeed ahmed
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix fdo#51835 Indent changes in Calc forces alignment to left
Change-Id: Ifef68cdd62a11b5cdc032a91a7dd96fa0357a42c
üst
c2530b02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
attarray.cxx
sc/source/core/data/attarray.cxx
+2
-1
output2.cxx
sc/source/ui/view/output2.cxx
+10
-4
No files found.
sc/source/core/data/attarray.cxx
Dosyayı görüntüle @
af169a60
...
@@ -1653,7 +1653,8 @@ void ScAttrArray::ChangeIndent( SCROW nStartRow, SCROW nEndRow, bool bIncrement
...
@@ -1653,7 +1653,8 @@ void ScAttrArray::ChangeIndent( SCROW nStartRow, SCROW nEndRow, bool bIncrement
const
SfxPoolItem
*
pItem
;
const
SfxPoolItem
*
pItem
;
bool
bNeedJust
=
(
rOldSet
.
GetItemState
(
ATTR_HOR_JUSTIFY
,
false
,
&
pItem
)
!=
SFX_ITEM_SET
bool
bNeedJust
=
(
rOldSet
.
GetItemState
(
ATTR_HOR_JUSTIFY
,
false
,
&
pItem
)
!=
SFX_ITEM_SET
||
((
const
SvxHorJustifyItem
*
)
pItem
)
->
GetValue
()
!=
SVX_HOR_JUSTIFY_LEFT
);
||
(((
const
SvxHorJustifyItem
*
)
pItem
)
->
GetValue
()
!=
SVX_HOR_JUSTIFY_LEFT
&&
((
const
SvxHorJustifyItem
*
)
pItem
)
->
GetValue
()
!=
SVX_HOR_JUSTIFY_RIGHT
));
sal_uInt16
nOldValue
=
((
const
SfxUInt16Item
&
)
rOldSet
.
Get
(
ATTR_INDENT
)).
GetValue
();
sal_uInt16
nOldValue
=
((
const
SfxUInt16Item
&
)
rOldSet
.
Get
(
ATTR_INDENT
)).
GetValue
();
sal_uInt16
nNewValue
=
nOldValue
;
sal_uInt16
nNewValue
=
nOldValue
;
if
(
bIncrement
)
if
(
bIncrement
)
...
...
sc/source/ui/view/output2.cxx
Dosyayı görüntüle @
af169a60
...
@@ -148,7 +148,8 @@ public:
...
@@ -148,7 +148,8 @@ public:
SvxCellJustifyMethod
GetVerJustMethod
()
const
{
return
eAttrVerJustMethod
;
}
SvxCellJustifyMethod
GetVerJustMethod
()
const
{
return
eAttrVerJustMethod
;
}
const
SvxMarginItem
*
GetMargin
()
const
{
return
pMargin
;
}
const
SvxMarginItem
*
GetMargin
()
const
{
return
pMargin
;
}
sal_uInt16
GetLeftTotal
()
const
{
return
pMargin
->
GetLeftMargin
()
+
nIndent
;
}
sal_uInt16
GetLeftTotal
()
const
{
return
pMargin
->
GetLeftMargin
()
+
nIndent
;
}
sal_uInt16
GetRightTotal
()
const
{
return
pMargin
->
GetRightMargin
()
+
nIndent
;
}
const
String
&
GetString
()
const
{
return
aString
;
}
const
String
&
GetString
()
const
{
return
aString
;
}
const
Size
&
GetTextSize
()
const
{
return
aTextSize
;
}
const
Size
&
GetTextSize
()
const
{
return
aTextSize
;
}
...
@@ -422,7 +423,7 @@ void ScDrawStringsVars::SetPattern(
...
@@ -422,7 +423,7 @@ void ScDrawStringsVars::SetPattern(
// Raender
// Raender
pMargin
=
(
const
SvxMarginItem
*
)
&
pPattern
->
GetItem
(
ATTR_MARGIN
,
pCondSet
);
pMargin
=
(
const
SvxMarginItem
*
)
&
pPattern
->
GetItem
(
ATTR_MARGIN
,
pCondSet
);
if
(
eAttrHorJust
==
SVX_HOR_JUSTIFY_LEFT
)
if
(
eAttrHorJust
==
SVX_HOR_JUSTIFY_LEFT
||
eAttrHorJust
==
SVX_HOR_JUSTIFY_RIGHT
)
nIndent
=
((
const
SfxUInt16Item
&
)
pPattern
->
GetItem
(
ATTR_INDENT
,
pCondSet
)).
GetValue
();
nIndent
=
((
const
SfxUInt16Item
&
)
pPattern
->
GetItem
(
ATTR_INDENT
,
pCondSet
)).
GetValue
();
else
else
nIndent
=
0
;
nIndent
=
0
;
...
@@ -1863,7 +1864,7 @@ void ScOutputData::DrawStrings( sal_Bool bPixelToLogic )
...
@@ -1863,7 +1864,7 @@ void ScOutputData::DrawStrings( sal_Bool bPixelToLogic )
break
;
break
;
case
SVX_HOR_JUSTIFY_RIGHT
:
case
SVX_HOR_JUSTIFY_RIGHT
:
nJustPosX
+=
nAvailWidth
-
aVars
.
GetTextSize
().
Width
()
-
nJustPosX
+=
nAvailWidth
-
aVars
.
GetTextSize
().
Width
()
-
(
long
)
(
aVars
.
Get
Margin
()
->
GetRightMargin
()
*
mnPPTX
);
(
long
)
(
aVars
.
Get
RightTotal
()
*
mnPPTX
);
bRightAdjusted
=
sal_True
;
bRightAdjusted
=
sal_True
;
break
;
break
;
case
SVX_HOR_JUSTIFY_CENTER
:
case
SVX_HOR_JUSTIFY_CENTER
:
...
@@ -2376,13 +2377,18 @@ void ScOutputData::DrawEditParam::calcMargins(long& rTopM, long& rLeftM, long& r
...
@@ -2376,13 +2377,18 @@ void ScOutputData::DrawEditParam::calcMargins(long& rTopM, long& rLeftM, long& r
static_cast
<
const
SvxMarginItem
&>
(
mpPattern
->
GetItem
(
ATTR_MARGIN
,
mpCondSet
));
static_cast
<
const
SvxMarginItem
&>
(
mpPattern
->
GetItem
(
ATTR_MARGIN
,
mpCondSet
));
sal_uInt16
nIndent
=
0
;
sal_uInt16
nIndent
=
0
;
if
(
meHorJust
==
SVX_HOR_JUSTIFY_LEFT
)
if
(
meHorJust
==
SVX_HOR_JUSTIFY_LEFT
||
meHorJust
==
SVX_HOR_JUSTIFY_RIGHT
)
nIndent
=
lcl_GetValue
<
SfxUInt16Item
,
sal_uInt16
>
(
*
mpPattern
,
ATTR_INDENT
,
mpCondSet
);
nIndent
=
lcl_GetValue
<
SfxUInt16Item
,
sal_uInt16
>
(
*
mpPattern
,
ATTR_INDENT
,
mpCondSet
);
rLeftM
=
static_cast
<
long
>
(((
rMargin
.
GetLeftMargin
()
+
nIndent
)
*
nPPTX
));
rLeftM
=
static_cast
<
long
>
(((
rMargin
.
GetLeftMargin
()
+
nIndent
)
*
nPPTX
));
rTopM
=
static_cast
<
long
>
((
rMargin
.
GetTopMargin
()
*
nPPTY
));
rTopM
=
static_cast
<
long
>
((
rMargin
.
GetTopMargin
()
*
nPPTY
));
rRightM
=
static_cast
<
long
>
((
rMargin
.
GetRightMargin
()
*
nPPTX
));
rRightM
=
static_cast
<
long
>
((
rMargin
.
GetRightMargin
()
*
nPPTX
));
rBottomM
=
static_cast
<
long
>
((
rMargin
.
GetBottomMargin
()
*
nPPTY
));
rBottomM
=
static_cast
<
long
>
((
rMargin
.
GetBottomMargin
()
*
nPPTY
));
if
(
meHorJust
==
SVX_HOR_JUSTIFY_RIGHT
)
{
rLeftM
=
static_cast
<
long
>
((
rMargin
.
GetLeftMargin
()
*
nPPTX
));
rRightM
=
static_cast
<
long
>
(((
rMargin
.
GetRightMargin
()
+
nIndent
)
*
nPPTX
));
}
}
}
void
ScOutputData
::
DrawEditParam
::
calcPaperSize
(
void
ScOutputData
::
DrawEditParam
::
calcPaperSize
(
...
...
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