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
ab959403
Kaydet (Commit)
ab959403
authored
Tem 31, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Extract SwTextShell::CreateInsertFrameItemSet() from SwTextShell::ExecInsert()
Change-Id: I94ecd7c391c656e86918a227d344a24eef893577
üst
6c3ca675
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
38 deletions
+48
-38
textsh.hxx
sw/source/uibase/inc/textsh.hxx
+4
-1
textsh.cxx
sw/source/uibase/shells/textsh.cxx
+44
-37
No files found.
sw/source/uibase/inc/textsh.hxx
Dosyayı görüntüle @
ab959403
...
@@ -25,9 +25,10 @@
...
@@ -25,9 +25,10 @@
class
AbstractSvxPostItDialog
;
class
AbstractSvxPostItDialog
;
class
SwFieldMgr
;
class
SwFieldMgr
;
class
SwFlyFrmAttrMgr
;
class
SvxHyperlinkItem
;
class
SvxHyperlinkItem
;
class
SwTextShell
:
public
SwBaseShell
class
S
W_DLLPUBLIC
S
wTextShell
:
public
SwBaseShell
{
{
SwFieldMgr
*
pPostItFieldMgr
;
SwFieldMgr
*
pPostItFieldMgr
;
RotateTransliteration
m_aRotateCase
;
RotateTransliteration
m_aRotateCase
;
...
@@ -80,6 +81,8 @@ public:
...
@@ -80,6 +81,8 @@ public:
SwTextShell
(
SwView
&
rView
);
SwTextShell
(
SwView
&
rView
);
virtual
~
SwTextShell
();
virtual
~
SwTextShell
();
/// Create item set for the insert frame dialog.
SfxItemSet
CreateInsertFrameItemSet
(
SwFlyFrmAttrMgr
&
rMgr
);
};
};
void
sw_CharDialog
(
SwWrtShell
&
rWrtSh
,
bool
bUseDialog
,
sal_uInt16
nSlot
,
const
SfxItemSet
*
pArgs
,
SfxRequest
*
pReq
);
void
sw_CharDialog
(
SwWrtShell
&
rWrtSh
,
bool
bUseDialog
,
sal_uInt16
nSlot
,
const
SfxItemSet
*
pArgs
,
SfxRequest
*
pReq
);
...
...
sw/source/uibase/shells/textsh.cxx
Dosyayı görüntüle @
ab959403
...
@@ -572,43 +572,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq)
...
@@ -572,43 +572,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq)
}
}
else
else
{
{
static
const
sal_uInt16
aFrmAttrRange
[]
=
SfxItemSet
aSet
=
CreateInsertFrameItemSet
(
aMgr
);
{
RES_FRMATR_BEGIN
,
RES_FRMATR_END
-
1
,
SID_ATTR_BORDER_INNER
,
SID_ATTR_BORDER_INNER
,
FN_GET_PRINT_AREA
,
FN_GET_PRINT_AREA
,
SID_ATTR_PAGE_SIZE
,
SID_ATTR_PAGE_SIZE
,
FN_SET_FRM_NAME
,
FN_SET_FRM_NAME
,
SID_HTML_MODE
,
SID_HTML_MODE
,
SID_COLOR_TABLE
,
SID_BITMAP_LIST
,
0
};
SfxItemSet
aSet
(
GetPool
(),
aFrmAttrRange
);
aSet
.
Put
(
SfxUInt16Item
(
SID_HTML_MODE
,
::
GetHtmlMode
(
GetView
().
GetDocShell
())));
// For the Area tab page.
GetShell
().
GetDoc
()
->
getIDocumentDrawModelAccess
().
GetDrawModel
()
->
PutAreaListItems
(
aSet
);
const
SwRect
&
rPg
=
GetShell
().
GetAnyCurRect
(
RECT_PAGE
);
SwFormatFrmSize
aFrmSize
(
ATT_VAR_SIZE
,
rPg
.
Width
(),
rPg
.
Height
());
aFrmSize
.
SetWhich
(
GetPool
().
GetWhich
(
SID_ATTR_PAGE_SIZE
));
aSet
.
Put
(
aFrmSize
);
const
SwRect
&
rPr
=
GetShell
().
GetAnyCurRect
(
RECT_PAGE_PRT
);
SwFormatFrmSize
aPrtSize
(
ATT_VAR_SIZE
,
rPr
.
Width
(),
rPr
.
Height
());
aPrtSize
.
SetWhich
(
GetPool
().
GetWhich
(
FN_GET_PRINT_AREA
));
aSet
.
Put
(
aPrtSize
);
aSet
.
Put
(
aMgr
.
GetAttrSet
());
aSet
.
SetParent
(
aMgr
.
GetAttrSet
().
GetParent
()
);
// Delete minimum size in columns.
SvxBoxInfoItem
aBoxInfo
(
static_cast
<
const
SvxBoxInfoItem
&>
(
aSet
.
Get
(
SID_ATTR_BORDER_INNER
)));
const
SvxBoxItem
&
rBox
=
static_cast
<
const
SvxBoxItem
&>
(
aSet
.
Get
(
RES_BOX
));
aBoxInfo
.
SetMinDist
(
false
);
aBoxInfo
.
SetDefDist
(
rBox
.
GetDistance
(
SvxBoxItemLine
::
LEFT
));
aSet
.
Put
(
aBoxInfo
);
FieldUnit
eMetric
=
::
GetDfltMetric
(
0
!=
PTR_CAST
(
SwWebDocShell
,
GetView
().
GetDocShell
()));
FieldUnit
eMetric
=
::
GetDfltMetric
(
0
!=
PTR_CAST
(
SwWebDocShell
,
GetView
().
GetDocShell
()));
SW_MOD
()
->
PutItem
(
SfxUInt16Item
(
SID_ATTR_METRIC
,
static_cast
<
sal_uInt16
>
(
eMetric
)));
SW_MOD
()
->
PutItem
(
SfxUInt16Item
(
SID_ATTR_METRIC
,
static_cast
<
sal_uInt16
>
(
eMetric
)));
...
@@ -969,6 +933,49 @@ SwTextShell::~SwTextShell()
...
@@ -969,6 +933,49 @@ SwTextShell::~SwTextShell()
{
{
}
}
SfxItemSet
SwTextShell
::
CreateInsertFrameItemSet
(
SwFlyFrmAttrMgr
&
rMgr
)
{
static
const
sal_uInt16
aFrmAttrRange
[]
=
{
RES_FRMATR_BEGIN
,
RES_FRMATR_END
-
1
,
SID_ATTR_BORDER_INNER
,
SID_ATTR_BORDER_INNER
,
FN_GET_PRINT_AREA
,
FN_GET_PRINT_AREA
,
SID_ATTR_PAGE_SIZE
,
SID_ATTR_PAGE_SIZE
,
FN_SET_FRM_NAME
,
FN_SET_FRM_NAME
,
SID_HTML_MODE
,
SID_HTML_MODE
,
SID_COLOR_TABLE
,
SID_BITMAP_LIST
,
0
};
SfxItemSet
aSet
(
GetPool
(),
aFrmAttrRange
);
aSet
.
Put
(
SfxUInt16Item
(
SID_HTML_MODE
,
::
GetHtmlMode
(
GetView
().
GetDocShell
())));
// For the Area tab page.
GetShell
().
GetDoc
()
->
getIDocumentDrawModelAccess
().
GetDrawModel
()
->
PutAreaListItems
(
aSet
);
const
SwRect
&
rPg
=
GetShell
().
GetAnyCurRect
(
RECT_PAGE
);
SwFormatFrmSize
aFrmSize
(
ATT_VAR_SIZE
,
rPg
.
Width
(),
rPg
.
Height
());
aFrmSize
.
SetWhich
(
GetPool
().
GetWhich
(
SID_ATTR_PAGE_SIZE
));
aSet
.
Put
(
aFrmSize
);
const
SwRect
&
rPr
=
GetShell
().
GetAnyCurRect
(
RECT_PAGE_PRT
);
SwFormatFrmSize
aPrtSize
(
ATT_VAR_SIZE
,
rPr
.
Width
(),
rPr
.
Height
());
aPrtSize
.
SetWhich
(
GetPool
().
GetWhich
(
FN_GET_PRINT_AREA
));
aSet
.
Put
(
aPrtSize
);
aSet
.
Put
(
rMgr
.
GetAttrSet
());
aSet
.
SetParent
(
rMgr
.
GetAttrSet
().
GetParent
()
);
// Delete minimum size in columns.
SvxBoxInfoItem
aBoxInfo
(
static_cast
<
const
SvxBoxInfoItem
&>
(
aSet
.
Get
(
SID_ATTR_BORDER_INNER
)));
const
SvxBoxItem
&
rBox
=
static_cast
<
const
SvxBoxItem
&>
(
aSet
.
Get
(
RES_BOX
));
aBoxInfo
.
SetMinDist
(
false
);
aBoxInfo
.
SetDefDist
(
rBox
.
GetDistance
(
SvxBoxItemLine
::
LEFT
));
aSet
.
Put
(
aBoxInfo
);
return
aSet
;
}
void
SwTextShell
::
InsertSymbol
(
SfxRequest
&
rReq
)
void
SwTextShell
::
InsertSymbol
(
SfxRequest
&
rReq
)
{
{
const
SfxItemSet
*
pArgs
=
rReq
.
GetArgs
();
const
SfxItemSet
*
pArgs
=
rReq
.
GetArgs
();
...
...
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