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
fdeaa040
Kaydet (Commit)
fdeaa040
authored
Kas 11, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix members of SwFrmAddPage
Change-Id: Id4a5a5794ff03a88922df7fd1dcba75ed601dd59
üst
cd43da04
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
167 additions
and
167 deletions
+167
-167
frmpage.cxx
sw/source/ui/frmdlg/frmpage.cxx
+140
-140
frmpage.hxx
sw/source/uibase/inc/frmpage.hxx
+27
-27
No files found.
sw/source/ui/frmdlg/frmpage.cxx
Dosyayı görüntüle @
fdeaa040
...
...
@@ -2864,34 +2864,34 @@ IMPL_LINK_NOARG_TYPED(SwFrmURLPage, InsertFileHdl, Button*, void)
SwFrmAddPage
::
SwFrmAddPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rSet
)
:
SfxTabPage
(
pParent
,
"FrmAddPage"
,
"modules/swriter/ui/frmaddpage.ui"
,
&
rSet
)
,
pWrtSh
(
nullptr
)
,
bHtmlMode
(
false
)
,
bFormat
(
false
)
,
bNew
(
false
)
{
get
(
pNameFrame
,
"nameframe"
);
get
(
pNameFT
,
"name_label"
);
get
(
pNameED
,
"name"
);
get
(
pAltNameFT
,
"altname_label"
);
get
(
pAltNameED
,
"altname"
);
get
(
pPrevFT
,
"prev_label"
);
get
(
pPrevLB
,
"prev"
);
get
(
pNextFT
,
"next_label"
);
get
(
pNextLB
,
"next"
);
get
(
pProtectFrame
,
"protect"
);
get
(
pProtectContentCB
,
"protectcontent"
);
get
(
pProtectFrameCB
,
"protectframe"
);
get
(
pProtectSizeCB
,
"protectsize"
);
,
m_
pWrtSh
(
nullptr
)
,
m_
bHtmlMode
(
false
)
,
m_
bFormat
(
false
)
,
m_
bNew
(
false
)
{
get
(
m_
pNameFrame
,
"nameframe"
);
get
(
m_
pNameFT
,
"name_label"
);
get
(
m_
pNameED
,
"name"
);
get
(
m_
pAltNameFT
,
"altname_label"
);
get
(
m_
pAltNameED
,
"altname"
);
get
(
m_
pPrevFT
,
"prev_label"
);
get
(
m_
pPrevLB
,
"prev"
);
get
(
m_
pNextFT
,
"next_label"
);
get
(
m_
pNextLB
,
"next"
);
get
(
m_
pProtectFrame
,
"protect"
);
get
(
m_
pProtectContentCB
,
"protectcontent"
);
get
(
m_
pProtectFrameCB
,
"protectframe"
);
get
(
m_
pProtectSizeCB
,
"protectsize"
);
get
(
m_pContentAlignFrame
,
"contentalign"
);
get
(
m_pVertAlignLB
,
"vertalign"
);
get
(
pPropertiesFrame
,
"properties"
);
get
(
pEditInReadonlyCB
,
"editinreadonly"
);
get
(
pPrintFrameCB
,
"printframe"
);
get
(
pTextFlowFT
,
"textflow_label"
);
get
(
pTextFlowLB
,
"textflow"
);
get
(
m_
pPropertiesFrame
,
"properties"
);
get
(
m_
pEditInReadonlyCB
,
"editinreadonly"
);
get
(
m_
pPrintFrameCB
,
"printframe"
);
get
(
m_
pTextFlowFT
,
"textflow_label"
);
get
(
m_
pTextFlowLB
,
"textflow"
);
}
...
...
@@ -2902,26 +2902,26 @@ SwFrmAddPage::~SwFrmAddPage()
void
SwFrmAddPage
::
dispose
()
{
pNameFrame
.
clear
();
pNameFT
.
clear
();
pNameED
.
clear
();
pAltNameFT
.
clear
();
pAltNameED
.
clear
();
pPrevFT
.
clear
();
pPrevLB
.
clear
();
pNextFT
.
clear
();
pNextLB
.
clear
();
pProtectFrame
.
clear
();
pProtectContentCB
.
clear
();
pProtectFrameCB
.
clear
();
pProtectSizeCB
.
clear
();
m_
pNameFrame
.
clear
();
m_
pNameFT
.
clear
();
m_
pNameED
.
clear
();
m_
pAltNameFT
.
clear
();
m_
pAltNameED
.
clear
();
m_
pPrevFT
.
clear
();
m_
pPrevLB
.
clear
();
m_
pNextFT
.
clear
();
m_
pNextLB
.
clear
();
m_
pProtectFrame
.
clear
();
m_
pProtectContentCB
.
clear
();
m_
pProtectFrameCB
.
clear
();
m_
pProtectSizeCB
.
clear
();
m_pContentAlignFrame
.
clear
();
m_pVertAlignLB
.
clear
();
pPropertiesFrame
.
clear
();
pEditInReadonlyCB
.
clear
();
pPrintFrameCB
.
clear
();
pTextFlowFT
.
clear
();
pTextFlowLB
.
clear
();
m_
pPropertiesFrame
.
clear
();
m_
pEditInReadonlyCB
.
clear
();
m_
pPrintFrameCB
.
clear
();
m_
pTextFlowFT
.
clear
();
m_
pTextFlowLB
.
clear
();
SfxTabPage
::
dispose
();
}
...
...
@@ -2935,30 +2935,30 @@ void SwFrmAddPage::Reset(const SfxItemSet *rSet )
{
const
SfxPoolItem
*
pItem
;
sal_uInt16
nHtmlMode
=
::
GetHtmlMode
(
static_cast
<
const
SwDocShell
*>
(
SfxObjectShell
::
Current
()));
bHtmlMode
=
(
nHtmlMode
&
HTMLMODE_ON
)
!=
0
;
if
(
bHtmlMode
)
m_
bHtmlMode
=
(
nHtmlMode
&
HTMLMODE_ON
)
!=
0
;
if
(
m_
bHtmlMode
)
{
pProtectFrame
->
Hide
();
pEditInReadonlyCB
->
Hide
();
pPrintFrameCB
->
Hide
();
m_
pProtectFrame
->
Hide
();
m_
pEditInReadonlyCB
->
Hide
();
m_
pPrintFrameCB
->
Hide
();
}
if
(
sDlgType
==
"PictureDialog"
||
sDlgType
==
"ObjectDialog"
)
if
(
m_sDlgType
==
"PictureDialog"
||
m_
sDlgType
==
"ObjectDialog"
)
{
pEditInReadonlyCB
->
Hide
();
if
(
bHtmlMode
)
m_
pEditInReadonlyCB
->
Hide
();
if
(
m_
bHtmlMode
)
{
pPropertiesFrame
->
Hide
();
m_
pPropertiesFrame
->
Hide
();
}
m_pContentAlignFrame
->
Hide
();
}
if
(
SfxItemState
::
SET
==
rSet
->
GetItemState
(
FN_SET_FRM_ALT_NAME
,
false
,
&
pItem
))
{
pAltNameED
->
SetText
(
static_cast
<
const
SfxStringItem
*>
(
pItem
)
->
GetValue
());
pAltNameED
->
SaveValue
();
m_
pAltNameED
->
SetText
(
static_cast
<
const
SfxStringItem
*>
(
pItem
)
->
GetValue
());
m_
pAltNameED
->
SaveValue
();
}
if
(
!
bFormat
)
if
(
!
m_
bFormat
)
{
// insert graphic - properties
// bNew is not set, so recognise by selection
...
...
@@ -2968,42 +2968,42 @@ void SwFrmAddPage::Reset(const SfxItemSet *rSet )
aTmpName1
=
static_cast
<
const
SfxStringItem
*>
(
pItem
)
->
GetValue
();
}
OSL_ENSURE
(
pWrtSh
,
"keine Shell?"
);
if
(
bNew
||
aTmpName1
.
isEmpty
()
)
OSL_ENSURE
(
m_
pWrtSh
,
"keine Shell?"
);
if
(
m_
bNew
||
aTmpName1
.
isEmpty
()
)
{
if
(
sDlgType
==
"PictureDialog"
)
aTmpName1
=
pWrtSh
->
GetUniqueGrfName
();
else
if
(
sDlgType
==
"ObjectDialog"
)
aTmpName1
=
pWrtSh
->
GetUniqueOLEName
();
if
(
m_
sDlgType
==
"PictureDialog"
)
aTmpName1
=
m_
pWrtSh
->
GetUniqueGrfName
();
else
if
(
m_
sDlgType
==
"ObjectDialog"
)
aTmpName1
=
m_
pWrtSh
->
GetUniqueOLEName
();
else
aTmpName1
=
pWrtSh
->
GetUniqueFrameName
();
aTmpName1
=
m_
pWrtSh
->
GetUniqueFrameName
();
pWrtSh
->
SetFlyName
(
aTmpName1
);
m_
pWrtSh
->
SetFlyName
(
aTmpName1
);
}
pNameED
->
SetText
(
aTmpName1
);
pNameED
->
SaveValue
();
m_
pNameED
->
SetText
(
aTmpName1
);
m_
pNameED
->
SaveValue
();
}
else
{
pNameED
->
Enable
(
false
);
pAltNameED
->
Enable
(
false
);
pNameFT
->
Enable
(
false
);
pAltNameFT
->
Enable
(
false
);
m_
pNameED
->
Enable
(
false
);
m_
pAltNameED
->
Enable
(
false
);
m_
pNameFT
->
Enable
(
false
);
m_
pAltNameFT
->
Enable
(
false
);
}
if
(
sDlgType
==
"FrameDialog"
&&
pAltNameFT
->
IsVisible
())
if
(
m_sDlgType
==
"FrameDialog"
&&
m_
pAltNameFT
->
IsVisible
())
{
pAltNameFT
->
Hide
();
pAltNameED
->
Hide
();
m_
pAltNameFT
->
Hide
();
m_
pAltNameED
->
Hide
();
}
else
{
pNameED
->
SetModifyHdl
(
LINK
(
this
,
SwFrmAddPage
,
EditModifyHdl
));
m_
pNameED
->
SetModifyHdl
(
LINK
(
this
,
SwFrmAddPage
,
EditModifyHdl
));
}
if
(
!
bNew
)
if
(
!
m_
bNew
)
{
SwFrameFormat
*
pFormat
=
pWrtSh
->
GetFlyFrameFormat
();
SwFrameFormat
*
pFormat
=
m_
pWrtSh
->
GetFlyFrameFormat
();
if
(
pFormat
)
{
...
...
@@ -3024,79 +3024,79 @@ void SwFrmAddPage::Reset(const SfxItemSet *rSet )
::
std
::
vector
<
OUString
>
aThisPageFrames
;
::
std
::
vector
<
OUString
>
aNextPageFrames
;
::
std
::
vector
<
OUString
>
aRemainFrames
;
pWrtSh
->
GetConnectableFrameFormats
(
*
pFormat
,
sNextChain
,
false
,
m_
pWrtSh
->
GetConnectableFrameFormats
(
*
pFormat
,
sNextChain
,
false
,
aPrevPageFrames
,
aThisPageFrames
,
aNextPageFrames
,
aRemainFrames
);
lcl_InsertVectors
(
*
pPrevLB
,
aPrevPageFrames
,
aThisPageFrames
,
aNextPageFrames
,
aRemainFrames
);
lcl_InsertVectors
(
*
m_
pPrevLB
,
aPrevPageFrames
,
aThisPageFrames
,
aNextPageFrames
,
aRemainFrames
);
if
(
!
sPrevChain
.
isEmpty
())
{
if
(
LISTBOX_ENTRY_NOTFOUND
==
pPrevLB
->
GetEntryPos
(
sPrevChain
))
pPrevLB
->
InsertEntry
(
sPrevChain
,
1
);
pPrevLB
->
SelectEntry
(
sPrevChain
);
if
(
LISTBOX_ENTRY_NOTFOUND
==
m_
pPrevLB
->
GetEntryPos
(
sPrevChain
))
m_
pPrevLB
->
InsertEntry
(
sPrevChain
,
1
);
m_
pPrevLB
->
SelectEntry
(
sPrevChain
);
}
else
pPrevLB
->
SelectEntryPos
(
0
);
m_
pPrevLB
->
SelectEntryPos
(
0
);
aPrevPageFrames
.
erase
(
aPrevPageFrames
.
begin
(),
aPrevPageFrames
.
end
());
aNextPageFrames
.
erase
(
aNextPageFrames
.
begin
(),
aNextPageFrames
.
end
());
aThisPageFrames
.
erase
(
aThisPageFrames
.
begin
(),
aThisPageFrames
.
end
());
aRemainFrames
.
erase
(
aRemainFrames
.
begin
(),
aRemainFrames
.
end
());
pWrtSh
->
GetConnectableFrameFormats
(
*
pFormat
,
sPrevChain
,
true
,
m_
pWrtSh
->
GetConnectableFrameFormats
(
*
pFormat
,
sPrevChain
,
true
,
aPrevPageFrames
,
aThisPageFrames
,
aNextPageFrames
,
aRemainFrames
);
lcl_InsertVectors
(
*
pNextLB
,
aPrevPageFrames
,
aThisPageFrames
,
aNextPageFrames
,
aRemainFrames
);
lcl_InsertVectors
(
*
m_
pNextLB
,
aPrevPageFrames
,
aThisPageFrames
,
aNextPageFrames
,
aRemainFrames
);
if
(
!
sNextChain
.
isEmpty
())
{
if
(
LISTBOX_ENTRY_NOTFOUND
==
pNextLB
->
GetEntryPos
(
sNextChain
))
pNextLB
->
InsertEntry
(
sNextChain
,
1
);
pNextLB
->
SelectEntry
(
sNextChain
);
if
(
LISTBOX_ENTRY_NOTFOUND
==
m_
pNextLB
->
GetEntryPos
(
sNextChain
))
m_
pNextLB
->
InsertEntry
(
sNextChain
,
1
);
m_
pNextLB
->
SelectEntry
(
sNextChain
);
}
else
pNextLB
->
SelectEntryPos
(
0
);
m_
pNextLB
->
SelectEntryPos
(
0
);
Link
<
ListBox
&
,
void
>
aLink
(
LINK
(
this
,
SwFrmAddPage
,
ChainModifyHdl
));
pPrevLB
->
SetSelectHdl
(
aLink
);
pNextLB
->
SetSelectHdl
(
aLink
);
m_
pPrevLB
->
SetSelectHdl
(
aLink
);
m_
pNextLB
->
SetSelectHdl
(
aLink
);
}
}
// Pos Protected
const
SvxProtectItem
&
rProt
=
static_cast
<
const
SvxProtectItem
&
>
(
rSet
->
Get
(
RES_PROTECT
));
pProtectFrameCB
->
Check
(
rProt
.
IsPosProtected
());
pProtectContentCB
->
Check
(
rProt
.
IsContentProtected
());
pProtectSizeCB
->
Check
(
rProt
.
IsSizeProtected
());
m_
pProtectFrameCB
->
Check
(
rProt
.
IsPosProtected
());
m_
pProtectContentCB
->
Check
(
rProt
.
IsContentProtected
());
m_
pProtectSizeCB
->
Check
(
rProt
.
IsSizeProtected
());
const
SwFormatEditInReadonly
&
rEdit
=
static_cast
<
const
SwFormatEditInReadonly
&
>
(
rSet
->
Get
(
RES_EDIT_IN_READONLY
));
pEditInReadonlyCB
->
Check
(
rEdit
.
GetValue
());
pEditInReadonlyCB
->
SaveValue
();
m_pEditInReadonlyCB
->
Check
(
rEdit
.
GetValue
());
m_
pEditInReadonlyCB
->
SaveValue
();
// print
const
SvxPrintItem
&
rPrt
=
static_cast
<
const
SvxPrintItem
&>
(
rSet
->
Get
(
RES_PRINT
));
pPrintFrameCB
->
Check
(
rPrt
.
GetValue
());
pPrintFrameCB
->
SaveValue
();
m_pPrintFrameCB
->
Check
(
rPrt
.
GetValue
());
m_
pPrintFrameCB
->
SaveValue
();
// textflow
SfxItemState
eState
;
if
(
(
!
bHtmlMode
||
(
0
!=
(
nHtmlMode
&
HTMLMODE_SOME_STYLES
)))
&&
sDlgType
!=
"PictureDialog"
&&
sDlgType
!=
"ObjectDialog"
&&
if
(
(
!
m_
bHtmlMode
||
(
0
!=
(
nHtmlMode
&
HTMLMODE_SOME_STYLES
)))
&&
m_sDlgType
!=
"PictureDialog"
&&
m_
sDlgType
!=
"ObjectDialog"
&&
SfxItemState
::
UNKNOWN
!=
(
eState
=
rSet
->
GetItemState
(
RES_FRAMEDIR
))
)
{
pTextFlowFT
->
Show
();
pTextFlowLB
->
Show
();
m_
pTextFlowFT
->
Show
();
m_
pTextFlowLB
->
Show
();
//vertical text flow is not possible in HTML
if
(
bHtmlMode
)
if
(
m_
bHtmlMode
)
{
sal_uLong
nData
=
FRMDIR_VERT_TOP_RIGHT
;
pTextFlowLB
->
RemoveEntry
(
pTextFlowLB
->
GetEntryPos
(
reinterpret_cast
<
void
*>
(
nData
)));
m_pTextFlowLB
->
RemoveEntry
(
m_
pTextFlowLB
->
GetEntryPos
(
reinterpret_cast
<
void
*>
(
nData
)));
}
sal_uInt16
nVal
=
static_cast
<
const
SvxFrameDirectionItem
&>
(
rSet
->
Get
(
RES_FRAMEDIR
)).
GetValue
();
sal_Int32
nPos
;
for
(
nPos
=
pTextFlowLB
->
GetEntryCount
();
nPos
;
)
if
(
(
sal_uInt16
)
reinterpret_cast
<
sal_IntPtr
>
(
pTextFlowLB
->
GetEntryData
(
--
nPos
))
==
nVal
)
for
(
nPos
=
m_
pTextFlowLB
->
GetEntryCount
();
nPos
;
)
if
(
(
sal_uInt16
)
reinterpret_cast
<
sal_IntPtr
>
(
m_
pTextFlowLB
->
GetEntryData
(
--
nPos
))
==
nVal
)
break
;
pTextFlowLB
->
SelectEntryPos
(
nPos
);
pTextFlowLB
->
SaveValue
();
m_
pTextFlowLB
->
SelectEntryPos
(
nPos
);
m_
pTextFlowLB
->
SaveValue
();
}
else
{
pTextFlowFT
->
Hide
();
pTextFlowLB
->
Hide
();
m_
pTextFlowFT
->
Hide
();
m_
pTextFlowLB
->
Hide
();
}
// Content alignment
...
...
@@ -3119,47 +3119,47 @@ void SwFrmAddPage::Reset(const SfxItemSet *rSet )
bool
SwFrmAddPage
::
FillItemSet
(
SfxItemSet
*
rSet
)
{
bool
bRet
=
false
;
if
(
pNameED
->
IsValueChangedFromSaved
())
bRet
|=
nullptr
!=
rSet
->
Put
(
SfxStringItem
(
FN_SET_FRM_NAME
,
pNameED
->
GetText
()));
if
(
pAltNameED
->
IsValueChangedFromSaved
())
bRet
|=
nullptr
!=
rSet
->
Put
(
SfxStringItem
(
FN_SET_FRM_ALT_NAME
,
pAltNameED
->
GetText
()));
if
(
m_
pNameED
->
IsValueChangedFromSaved
())
bRet
|=
nullptr
!=
rSet
->
Put
(
SfxStringItem
(
FN_SET_FRM_NAME
,
m_
pNameED
->
GetText
()));
if
(
m_
pAltNameED
->
IsValueChangedFromSaved
())
bRet
|=
nullptr
!=
rSet
->
Put
(
SfxStringItem
(
FN_SET_FRM_ALT_NAME
,
m_
pAltNameED
->
GetText
()));
const
SfxPoolItem
*
pOldItem
;
SvxProtectItem
aProt
(
static_cast
<
const
SvxProtectItem
&
>
(
GetItemSet
().
Get
(
RES_PROTECT
))
);
aProt
.
SetContentProtect
(
pProtectContentCB
->
IsChecked
()
);
aProt
.
SetSizeProtect
(
pProtectSizeCB
->
IsChecked
()
);
aProt
.
SetPosProtect
(
pProtectFrameCB
->
IsChecked
()
);
aProt
.
SetContentProtect
(
m_
pProtectContentCB
->
IsChecked
()
);
aProt
.
SetSizeProtect
(
m_
pProtectSizeCB
->
IsChecked
()
);
aProt
.
SetPosProtect
(
m_
pProtectFrameCB
->
IsChecked
()
);
if
(
nullptr
==
(
pOldItem
=
GetOldItem
(
*
rSet
,
FN_SET_PROTECT
))
||
aProt
!=
*
pOldItem
)
bRet
|=
nullptr
!=
rSet
->
Put
(
aProt
);
if
(
pEditInReadonlyCB
->
IsValueChangedFromSaved
()
)
bRet
|=
nullptr
!=
rSet
->
Put
(
SwFormatEditInReadonly
(
RES_EDIT_IN_READONLY
,
pEditInReadonlyCB
->
IsChecked
()));
if
(
m_
pEditInReadonlyCB
->
IsValueChangedFromSaved
()
)
bRet
|=
nullptr
!=
rSet
->
Put
(
SwFormatEditInReadonly
(
RES_EDIT_IN_READONLY
,
m_
pEditInReadonlyCB
->
IsChecked
()));
if
(
pPrintFrameCB
->
IsValueChangedFromSaved
()
)
bRet
|=
nullptr
!=
rSet
->
Put
(
SvxPrintItem
(
RES_PRINT
,
pPrintFrameCB
->
IsChecked
()));
if
(
m_
pPrintFrameCB
->
IsValueChangedFromSaved
()
)
bRet
|=
nullptr
!=
rSet
->
Put
(
SvxPrintItem
(
RES_PRINT
,
m_
pPrintFrameCB
->
IsChecked
()));
// textflow
if
(
pTextFlowLB
->
IsVisible
()
)
if
(
m_
pTextFlowLB
->
IsVisible
()
)
{
sal_Int32
nPos
=
pTextFlowLB
->
GetSelectEntryPos
();
if
(
pTextFlowLB
->
IsValueChangedFromSaved
()
)
sal_Int32
nPos
=
m_
pTextFlowLB
->
GetSelectEntryPos
();
if
(
m_
pTextFlowLB
->
IsValueChangedFromSaved
()
)
{
sal_uInt16
nData
=
(
sal_uInt16
)
reinterpret_cast
<
sal_IntPtr
>
(
pTextFlowLB
->
GetEntryData
(
nPos
));
sal_uInt16
nData
=
(
sal_uInt16
)
reinterpret_cast
<
sal_IntPtr
>
(
m_
pTextFlowLB
->
GetEntryData
(
nPos
));
bRet
|=
nullptr
!=
rSet
->
Put
(
SvxFrameDirectionItem
(
(
SvxFrameDirection
)
nData
,
RES_FRAMEDIR
));
}
}
if
(
pWrtSh
)
if
(
m_
pWrtSh
)
{
const
SwFrameFormat
*
pFormat
=
pWrtSh
->
GetFlyFrameFormat
();
const
SwFrameFormat
*
pFormat
=
m_
pWrtSh
->
GetFlyFrameFormat
();
if
(
pFormat
)
{
OUString
sCurrentPrevChain
,
sCurrentNextChain
;
if
(
pPrevLB
->
GetSelectEntryPos
())
sCurrentPrevChain
=
pPrevLB
->
GetSelectEntry
();
if
(
pNextLB
->
GetSelectEntryPos
())
sCurrentNextChain
=
pNextLB
->
GetSelectEntry
();
if
(
m_
pPrevLB
->
GetSelectEntryPos
())
sCurrentPrevChain
=
m_
pPrevLB
->
GetSelectEntry
();
if
(
m_
pNextLB
->
GetSelectEntryPos
())
sCurrentNextChain
=
m_
pNextLB
->
GetSelectEntry
();
const
SwFormatChain
&
rChain
=
pFormat
->
GetChain
();
const
SwFlyFrameFormat
*
pFlyFormat
;
OUString
sNextChain
,
sPrevChain
;
...
...
@@ -3193,32 +3193,32 @@ bool SwFrmAddPage::FillItemSet(SfxItemSet *rSet)
IMPL_LINK_NOARG_TYPED
(
SwFrmAddPage
,
EditModifyHdl
,
Edit
&
,
void
)
{
bool
bEnable
=
!
pNameED
->
GetText
().
isEmpty
();
pAltNameED
->
Enable
(
bEnable
);
pAltNameFT
->
Enable
(
bEnable
);
bool
bEnable
=
!
m_
pNameED
->
GetText
().
isEmpty
();
m_
pAltNameED
->
Enable
(
bEnable
);
m_
pAltNameFT
->
Enable
(
bEnable
);
}
void
SwFrmAddPage
::
SetFormatUsed
(
bool
bFormatUsed
)
{
bFormat
=
bFormatUsed
;
if
(
bFormat
)
m_
bFormat
=
bFormatUsed
;
if
(
m_
bFormat
)
{
pNameFrame
->
Hide
();
m_
pNameFrame
->
Hide
();
}
}
IMPL_LINK_TYPED
(
SwFrmAddPage
,
ChainModifyHdl
,
ListBox
&
,
rBox
,
void
)
{
OUString
sCurrentPrevChain
,
sCurrentNextChain
;
if
(
pPrevLB
->
GetSelectEntryPos
())
sCurrentPrevChain
=
pPrevLB
->
GetSelectEntry
();
if
(
pNextLB
->
GetSelectEntryPos
())
sCurrentNextChain
=
pNextLB
->
GetSelectEntry
();
SwFrameFormat
*
pFormat
=
pWrtSh
->
GetFlyFrameFormat
();
if
(
m_
pPrevLB
->
GetSelectEntryPos
())
sCurrentPrevChain
=
m_
pPrevLB
->
GetSelectEntry
();
if
(
m_
pNextLB
->
GetSelectEntryPos
())
sCurrentNextChain
=
m_
pNextLB
->
GetSelectEntry
();
SwFrameFormat
*
pFormat
=
m_
pWrtSh
->
GetFlyFrameFormat
();
if
(
pFormat
)
{
bool
bNextBox
=
pNextLB
==
&
rBox
;
ListBox
&
rChangeLB
=
bNextBox
?
*
pPrevLB
:
*
pNextLB
;
bool
bNextBox
=
m_
pNextLB
==
&
rBox
;
ListBox
&
rChangeLB
=
bNextBox
?
*
m_pPrevLB
:
*
m_
pNextLB
;
for
(
sal_Int32
nEntry
=
rChangeLB
.
GetEntryCount
();
nEntry
>
1
;
nEntry
--
)
rChangeLB
.
RemoveEntry
(
nEntry
-
1
);
//determine chainable frames
...
...
@@ -3226,7 +3226,7 @@ IMPL_LINK_TYPED(SwFrmAddPage, ChainModifyHdl, ListBox&, rBox, void)
::
std
::
vector
<
OUString
>
aThisPageFrames
;
::
std
::
vector
<
OUString
>
aNextPageFrames
;
::
std
::
vector
<
OUString
>
aRemainFrames
;
pWrtSh
->
GetConnectableFrameFormats
(
*
pFormat
,
bNextBox
?
sCurrentNextChain
:
sCurrentPrevChain
,
!
bNextBox
,
m_
pWrtSh
->
GetConnectableFrameFormats
(
*
pFormat
,
bNextBox
?
sCurrentNextChain
:
sCurrentPrevChain
,
!
bNextBox
,
aPrevPageFrames
,
aThisPageFrames
,
aNextPageFrames
,
aRemainFrames
);
lcl_InsertVectors
(
rChangeLB
,
aPrevPageFrames
,
aThisPageFrames
,
aNextPageFrames
,
aRemainFrames
);
...
...
sw/source/uibase/inc/frmpage.hxx
Dosyayı görüntüle @
fdeaa040
...
...
@@ -273,36 +273,36 @@ public:
class
SwFrmAddPage
:
public
SfxTabPage
{
VclPtr
<
VclContainer
>
pNameFrame
;
VclPtr
<
FixedText
>
pNameFT
;
VclPtr
<
Edit
>
pNameED
;
VclPtr
<
FixedText
>
pAltNameFT
;
VclPtr
<
Edit
>
pAltNameED
;
VclPtr
<
FixedText
>
pPrevFT
;
VclPtr
<
ListBox
>
pPrevLB
;
VclPtr
<
FixedText
>
pNextFT
;
VclPtr
<
ListBox
>
pNextLB
;
VclPtr
<
VclContainer
>
pProtectFrame
;
VclPtr
<
CheckBox
>
pProtectContentCB
;
VclPtr
<
CheckBox
>
pProtectFrameCB
;
VclPtr
<
CheckBox
>
pProtectSizeCB
;
VclPtr
<
VclContainer
>
m_
pNameFrame
;
VclPtr
<
FixedText
>
m_
pNameFT
;
VclPtr
<
Edit
>
m_
pNameED
;
VclPtr
<
FixedText
>
m_
pAltNameFT
;
VclPtr
<
Edit
>
m_
pAltNameED
;
VclPtr
<
FixedText
>
m_
pPrevFT
;
VclPtr
<
ListBox
>
m_
pPrevLB
;
VclPtr
<
FixedText
>
m_
pNextFT
;
VclPtr
<
ListBox
>
m_
pNextLB
;
VclPtr
<
VclContainer
>
m_
pProtectFrame
;
VclPtr
<
CheckBox
>
m_
pProtectContentCB
;
VclPtr
<
CheckBox
>
m_
pProtectFrameCB
;
VclPtr
<
CheckBox
>
m_
pProtectSizeCB
;
VclPtr
<
VclContainer
>
m_pContentAlignFrame
;
VclPtr
<
ListBox
>
m_pVertAlignLB
;
VclPtr
<
VclContainer
>
pPropertiesFrame
;
VclPtr
<
CheckBox
>
pEditInReadonlyCB
;
VclPtr
<
CheckBox
>
pPrintFrameCB
;
VclPtr
<
FixedText
>
pTextFlowFT
;
VclPtr
<
ListBox
>
pTextFlowLB
;
VclPtr
<
VclContainer
>
m_
pPropertiesFrame
;
VclPtr
<
CheckBox
>
m_
pEditInReadonlyCB
;
VclPtr
<
CheckBox
>
m_
pPrintFrameCB
;
VclPtr
<
FixedText
>
m_
pTextFlowFT
;
VclPtr
<
ListBox
>
m_
pTextFlowLB
;
SwWrtShell
*
pWrtSh
;
SwWrtShell
*
m_
pWrtSh
;
OUString
sDlgType
;
bool
bHtmlMode
;
bool
bFormat
;
bool
bNew
;
OUString
m_
sDlgType
;
bool
m_
bHtmlMode
;
bool
m_
bFormat
;
bool
m_
bNew
;
DECL_LINK_TYPED
(
EditModifyHdl
,
Edit
&
,
void
);
DECL_LINK_TYPED
(
ChainModifyHdl
,
ListBox
&
,
void
);
...
...
@@ -321,9 +321,9 @@ public:
virtual
void
Reset
(
const
SfxItemSet
*
rSet
)
override
;
void
SetFormatUsed
(
bool
bFormat
);
void
SetFrmType
(
const
OUString
&
rType
)
{
sDlgType
=
rType
;
}
void
SetNewFrame
(
bool
bNewFrame
)
{
bNew
=
bNewFrame
;
}
void
SetShell
(
SwWrtShell
*
pSh
)
{
pWrtSh
=
pSh
;
}
void
SetFrmType
(
const
OUString
&
rType
)
{
m_
sDlgType
=
rType
;
}
void
SetNewFrame
(
bool
bNewFrame
)
{
m_
bNew
=
bNewFrame
;
}
void
SetShell
(
SwWrtShell
*
pSh
)
{
m_
pWrtSh
=
pSh
;
}
};
...
...
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