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
eca6f305
Kaydet (Commit)
eca6f305
authored
Kas 04, 2014
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
line spacing: Final cleanup.
Change-Id: Ide0e653493759e7583fbebb2b3d23d614bdb803c
üst
0ce9c4f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
33 deletions
+22
-33
ParaLineSpacingControl.cxx
svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx
+9
-16
ParaLineSpacingControl.hxx
svx/source/sidebar/paragraph/ParaLineSpacingControl.hxx
+13
-17
No files found.
svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx
Dosyayı görüntüle @
eca6f305
...
...
@@ -16,18 +16,14 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "ParaLineSpacingControl.hxx"
#include "ParaPropertyPanel.hrc"
#include <sfx2/sidebar/ResourceDefinitions.hrc>
#include <svx/dialogs.hrc>
#include <svx/dialmgr.hxx>
#include <unotools/viewoptions.hxx>
#include <editeng/editids.hrc>
#include <editeng/kernitem.hxx>
#include <editeng/lspcitem.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/sidebar/Theme.hxx>
#include <sfx2/viewfrm.hxx>
#include <svtools/unitconv.hxx>
#include <vcl/settings.hxx>
#define DEFAULT_LINE_SPACING 200
#define FIX_DIST_DEF 283
...
...
@@ -51,7 +47,6 @@
#define MIN_FIXED_DISTANCE 28
using
namespace
svx
;
using
namespace
svx
::
sidebar
;
ParaLineSpacingControl
::
ParaLineSpacingControl
(
sal_uInt16
nId
)
:
SfxPopupWindow
(
nId
,
"ParaLineSpacingControl"
,
"svx/ui/paralinespacingcontrol.ui"
)
...
...
@@ -94,14 +89,14 @@ ParaLineSpacingControl::ParaLineSpacingControl(sal_uInt16 nId)
SetFieldUnit
(
*
mpLineDistAtMetricBox
,
eUnit
);
i
nitialize
();
I
nitialize
();
}
ParaLineSpacingControl
::~
ParaLineSpacingControl
()
{
}
void
ParaLineSpacingControl
::
i
nitialize
()
void
ParaLineSpacingControl
::
I
nitialize
()
{
const
SfxPoolItem
*
pItem
;
SfxItemState
eState
=
SfxViewFrame
::
Current
()
->
GetBindings
().
GetDispatcher
()
->
QueryState
(
SID_ATTR_PARA_LINESPACE
,
pItem
);
...
...
@@ -287,8 +282,8 @@ void ParaLineSpacingControl::UpdateMetricFields()
mpActLineDistFld
->
Show
();
mpActLineDistFld
->
Enable
();
break
;
case
LLINESPACE_FIX
:
{
mpLineDistAtPercentBox
->
Hide
();
mpActLineDistFld
=
mpLineDistAtMetricBox
;
...
...
@@ -301,8 +296,7 @@ void ParaLineSpacingControl::UpdateMetricFields()
mpLineDistLabel
->
Enable
();
mpActLineDistFld
->
Show
();
mpActLineDistFld
->
Enable
();
}
break
;
break
;
}
}
...
...
@@ -348,10 +342,9 @@ void ParaLineSpacingControl::ExecuteLineSpace()
case
LLINESPACE_DURCH
:
case
LLINESPACE_FIX
:
SetLineSpace
(
aSpacing
,
nPos
,
GetCoreValue
(
*
mpLineDistAtMetricBox
,
meLNSpaceUnit
));
break
;
break
;
default
:
OSL_ENSURE
(
false
,
"error!!"
);
break
;
}
...
...
svx/source/sidebar/paragraph/ParaLineSpacingControl.hxx
Dosyayı görüntüle @
eca6f305
...
...
@@ -19,16 +19,11 @@
#ifndef INCLUDED_SVX_SOURCE_SIDEBAR_PARAGRAPH_PARALINESPACINGCONTROL_HXX
#define INCLUDED_SVX_SOURCE_SIDEBAR_PARAGRAPH_PARALINESPACINGCONTROL_HXX
#include "svx/sidebar/ValueSetWithTextControl.hxx"
#include <sfx2/bindings.hxx>
#include <svtools/ctrlbox.hxx>
#include <svtools/ctrltool.hxx>
#include <vcl/fixed.hxx>
#include <svl/poolitem.hxx>
#include <editeng/lspcitem.hxx>
#include <sfx2/sidebar/EnumContext.hxx>
#include <sfx2/tbxctrl.hxx>
class
SvxLineSpacingItem
;
namespace
svx
{
class
ParaLineSpacingControl
:
public
SfxPopupWindow
...
...
@@ -37,15 +32,6 @@ public:
ParaLineSpacingControl
(
sal_uInt16
nId
);
virtual
~
ParaLineSpacingControl
();
short
GetLastCustomState
();
long
GetLastCustomValue
();
void
ExecuteLineSpace
();
void
SetLineSpace
(
SvxLineSpacingItem
&
rLineSpace
,
int
eSpace
,
long
lValue
=
0
);
void
ExecuteLineSpacing
(
sal_uInt16
aEntry
);
private
:
SfxMapUnit
meLNSpaceUnit
;
...
...
@@ -63,7 +49,17 @@ private:
MetricField
*
mpLineDistAtMetricBox
;
private
:
void
initialize
();
/// Setup the widgets with values from the document.
void
Initialize
();
/// Take the values from the widgets, and update the paragraph accordingly.
void
ExecuteLineSpace
();
/// Set one particular value.
void
SetLineSpace
(
SvxLineSpacingItem
&
rLineSpace
,
int
eSpace
,
long
lValue
=
0
);
/// For the buttons - set the values, and close the popup.
void
ExecuteLineSpacing
(
sal_uInt16
aEntry
);
/// Set mpActlineDistFld and visibility of mpLineDist* fields according to what is just selected.
void
UpdateMetricFields
();
...
...
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