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
aa82339b
Kaydet (Commit)
aa82339b
authored
Nis 23, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert DRAG_ constants to scoped enum
Change-Id: I7946a1406bfbbc894a0a2aca32ead43e4cc89508
üst
88254f05
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
14 deletions
+19
-14
ruler.hxx
include/svx/ruler.hxx
+19
-14
svxruler.cxx
svx/source/dialog/svxruler.cxx
+0
-0
No files found.
include/svx/ruler.hxx
Dosyayı görüntüle @
aa82339b
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include <svtools/ruler.hxx>
#include <svtools/ruler.hxx>
#include <svl/lstner.hxx>
#include <svl/lstner.hxx>
#include <svx/svxdllapi.h>
#include <svx/svxdllapi.h>
#include <o3tl/typed_flags_set.hxx>
#include <boost/scoped_array.hpp>
#include <boost/scoped_array.hpp>
#include <memory>
#include <memory>
...
@@ -41,6 +42,23 @@ class SvxObjectItem;
...
@@ -41,6 +42,23 @@ class SvxObjectItem;
class
SfxBoolItem
;
class
SfxBoolItem
;
struct
SvxRuler_Impl
;
struct
SvxRuler_Impl
;
enum
class
SvxRulerDragFlags
{
NONE
=
0x00
,
OBJECT
=
0x01
,
// reduce size of the last column, shift
OBJECT_SIZE_LINEAR
=
0x02
,
OBJECT_SIZE_PROPORTIONAL
=
0x04
,
// proportional, Ctrl
// only current line (table; Shift-Ctrl)
OBJECT_ACTLINE_ONLY
=
0x08
,
// currently same key assignment
OBJECT_LEFT_INDENT_ONLY
=
OBJECT_SIZE_PROPORTIONAL
,
};
namespace
o3tl
{
template
<>
struct
typed_flags
<
SvxRulerDragFlags
>
:
is_typed_flags
<
SvxRulerDragFlags
,
0x0f
>
{};
}
class
SVX_DLLPUBLIC
SvxRuler
:
public
Ruler
,
public
SfxListener
class
SVX_DLLPUBLIC
SvxRuler
:
public
Ruler
,
public
SfxListener
{
{
friend
class
SvxRulerItem
;
friend
class
SvxRulerItem
;
...
@@ -68,20 +86,7 @@ class SVX_DLLPUBLIC SvxRuler: public Ruler, public SfxListener
...
@@ -68,20 +86,7 @@ class SVX_DLLPUBLIC SvxRuler: public Ruler, public SfxListener
long
lMinFrame
;
// minimal frame width in pixels
long
lMinFrame
;
// minimal frame width in pixels
long
lInitialDragPos
;
long
lInitialDragPos
;
sal_uInt16
nFlags
;
sal_uInt16
nFlags
;
SvxRulerDragFlags
nDragType
;
enum
{
NONE
=
0x0000
,
DRAG_OBJECT
=
0x0001
,
// reduce size of the last column, shift
DRAG_OBJECT_SIZE_LINEAR
=
0x0002
,
DRAG_OBJECT_SIZE_PROPORTIONAL
=
0x0004
,
// proportional, Ctrl
// only current line (table; Shift-Ctrl)
DRAG_OBJECT_ACTLINE_ONLY
=
0x0008
,
// currently same key assignment
DRAG_OBJECT_LEFT_INDENT_ONLY
=
DRAG_OBJECT_SIZE_PROPORTIONAL
}
nDragType
;
sal_uInt16
nDefTabType
;
sal_uInt16
nDefTabType
;
sal_uInt16
nTabCount
;
sal_uInt16
nTabCount
;
sal_uInt16
nTabBufSize
;
sal_uInt16
nTabBufSize
;
...
...
svx/source/dialog/svxruler.cxx
Dosyayı görüntüle @
aa82339b
This diff is collapsed.
Click to expand it.
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