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
78626422
Kaydet (Commit)
78626422
authored
Ock 26, 2015
tarafından
Noel Grandin
Kaydeden (comit)
Michael Meeks
Nis 09, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: VclPtr conversion in filter
Change-Id: I355315e19545610c1f26c94abe4e7d3fe19af867
üst
33d7f6dc
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
97 additions
and
48 deletions
+97
-48
impdialog.cxx
filter/source/pdf/impdialog.cxx
+12
-0
impdialog.hxx
filter/source/pdf/impdialog.hxx
+2
-0
impsvgdialog.cxx
filter/source/svg/impsvgdialog.cxx
+52
-39
impsvgdialog.hxx
filter/source/svg/impsvgdialog.hxx
+10
-9
xmlfiltersettingsdialog.cxx
filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
+6
-0
xmlfiltersettingsdialog.hxx
filter/source/xsltdialog/xmlfiltersettingsdialog.hxx
+1
-0
xmlfiltertabdialog.cxx
filter/source/xsltdialog/xmlfiltertabdialog.cxx
+6
-0
xmlfiltertabdialog.hxx
filter/source/xsltdialog/xmlfiltertabdialog.hxx
+1
-0
xmlfiltertestdialog.cxx
filter/source/xsltdialog/xmlfiltertestdialog.cxx
+6
-0
xmlfiltertestdialog.hxx
filter/source/xsltdialog/xmlfiltertestdialog.hxx
+1
-0
No files found.
filter/source/pdf/impdialog.cxx
Dosyayı görüntüle @
78626422
...
...
@@ -311,6 +311,11 @@ IMPL_LINK_NOARG(ImpPDFTabDialog, CancelHdl)
ImpPDFTabDialog
::~
ImpPDFTabDialog
()
{
dispose
();
}
void
ImpPDFTabDialog
::
dispose
()
{
//delete the pages, needed because otherwise the child tab pages
//don't get destroyed
...
...
@@ -320,6 +325,7 @@ ImpPDFTabDialog::~ImpPDFTabDialog()
RemoveTabPage
(
mnLinksPage
);
RemoveTabPage
(
mnSecurityPageId
);
RemoveTabPage
(
mnSigningPageId
);
SfxTabDialog
::
dispose
();
}
...
...
@@ -1510,10 +1516,16 @@ ImplErrorDialog::ImplErrorDialog(const std::set< vcl::PDFWriter::ErrorCode >& rE
}
ImplErrorDialog
::~
ImplErrorDialog
()
{
dispose
();
}
void
ImplErrorDialog
::
dispose
()
{
// free strings again
for
(
sal_uInt16
n
=
0
;
n
<
m_pErrors
->
GetEntryCount
();
n
++
)
delete
static_cast
<
OUString
*>
(
m_pErrors
->
GetEntryData
(
n
));
MessageDialog
::
dispose
();
}
IMPL_LINK_NOARG
(
ImplErrorDialog
,
SelectHdl
)
...
...
filter/source/pdf/impdialog.hxx
Dosyayı görüntüle @
78626422
...
...
@@ -63,6 +63,7 @@ class ImplErrorDialog : public MessageDialog
public
:
ImplErrorDialog
(
const
std
::
set
<
vcl
::
PDFWriter
::
ErrorCode
>&
);
virtual
~
ImplErrorDialog
();
virtual
void
dispose
()
SAL_OVERRIDE
;
};
class
ImpPDFTabSecurityPage
;
...
...
@@ -171,6 +172,7 @@ public:
const
css
::
uno
::
Reference
<
XComponent
>&
rDoc
);
virtual
~
ImpPDFTabDialog
();
virtual
void
dispose
()
SAL_OVERRIDE
;
Sequence
<
PropertyValue
>
GetFilterData
();
...
...
filter/source/svg/impsvgdialog.cxx
Dosyayı görüntüle @
78626422
...
...
@@ -36,73 +36,86 @@ inline sal_Int32 implMap( vcl::Window& /*rWnd*/, sal_Int32 nVal )
ImpSVGDialog
::
ImpSVGDialog
(
vcl
::
Window
*
pParent
,
Sequence
<
PropertyValue
>&
rFilterData
)
:
ModalDialog
(
pParent
),
maFI
(
this
),
maCBTinyProfile
(
this
),
maCBEmbedFonts
(
this
),
maCBUseNativeDecoration
(
this
),
maBTOK
(
this
,
WB_DEF_OK
),
maBTCancel
(
this
),
maBTHelp
(
this
),
maFI
(
new
FixedLine
(
this
)
),
maCBTinyProfile
(
new
CheckBox
(
this
)
),
maCBEmbedFonts
(
new
CheckBox
(
this
)
),
maCBUseNativeDecoration
(
new
CheckBox
(
this
)
),
maBTOK
(
new
OKButton
(
this
,
WB_DEF_OK
)
),
maBTCancel
(
new
CancelButton
(
this
)
),
maBTHelp
(
new
HelpButton
(
this
)
),
maConfigItem
(
SVG_EXPORTFILTER_CONFIGPATH
,
&
rFilterData
),
mbOldNativeDecoration
(
false
)
{
SetText
(
"SVG Export Options"
);
SetOutputSizePixel
(
Size
(
implMap
(
*
this
,
177
),
implMap
(
*
this
,
77
)
)
);
maFI
.
SetText
(
"Export"
);
maFI
.
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
6
),
implMap
(
*
this
,
3
)
),
maFI
->
SetText
(
"Export"
);
maFI
->
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
6
),
implMap
(
*
this
,
3
)
),
Size
(
implMap
(
*
this
,
165
),
implMap
(
*
this
,
8
)
)
);
maCBTinyProfile
.
SetText
(
"Use SVG Tiny profile"
);
maCBTinyProfile
.
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
12
),
implMap
(
*
this
,
14
)
),
maCBTinyProfile
->
SetText
(
"Use SVG Tiny profile"
);
maCBTinyProfile
->
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
12
),
implMap
(
*
this
,
14
)
),
Size
(
implMap
(
*
this
,
142
),
implMap
(
*
this
,
10
)
)
);
maCBEmbedFonts
.
SetText
(
"Embed fonts"
);
maCBEmbedFonts
.
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
12
),
implMap
(
*
this
,
27
)
),
maCBEmbedFonts
->
SetText
(
"Embed fonts"
);
maCBEmbedFonts
->
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
12
),
implMap
(
*
this
,
27
)
),
Size
(
implMap
(
*
this
,
142
),
implMap
(
*
this
,
10
)
)
);
maCBUseNativeDecoration
.
SetText
(
"Use SVG native text decoration"
);
maCBUseNativeDecoration
.
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
12
),
implMap
(
*
this
,
41
)
),
maCBUseNativeDecoration
->
SetText
(
"Use SVG native text decoration"
);
maCBUseNativeDecoration
->
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
12
),
implMap
(
*
this
,
41
)
),
Size
(
implMap
(
*
this
,
142
),
implMap
(
*
this
,
10
)
)
);
maCBTinyProfile
.
Check
(
maConfigItem
.
ReadBool
(
OUString
(
SVG_PROP_TINYPROFILE
),
false
)
);
maCBEmbedFonts
.
Check
(
maConfigItem
.
ReadBool
(
OUString
(
SVG_PROP_EMBEDFONTS
),
true
)
);
maCBUseNativeDecoration
.
Check
(
maConfigItem
.
ReadBool
(
OUString
(
SVG_PROP_NATIVEDECORATION
),
true
)
);
maCBTinyProfile
->
Check
(
maConfigItem
.
ReadBool
(
OUString
(
SVG_PROP_TINYPROFILE
),
false
)
);
maCBEmbedFonts
->
Check
(
maConfigItem
.
ReadBool
(
OUString
(
SVG_PROP_EMBEDFONTS
),
true
)
);
maCBUseNativeDecoration
->
Check
(
maConfigItem
.
ReadBool
(
OUString
(
SVG_PROP_NATIVEDECORATION
),
true
)
);
maBTOK
.
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
12
),
implMap
(
*
this
,
57
)
),
maBTOK
->
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
12
),
implMap
(
*
this
,
57
)
),
Size
(
implMap
(
*
this
,
50
),
implMap
(
*
this
,
14
)
)
);
maBTCancel
.
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
65
),
implMap
(
*
this
,
57
)
),
maBTCancel
->
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
65
),
implMap
(
*
this
,
57
)
),
Size
(
implMap
(
*
this
,
50
),
implMap
(
*
this
,
14
)
)
);
maBTHelp
.
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
121
),
implMap
(
*
this
,
57
)
),
maBTHelp
->
SetPosSizePixel
(
Point
(
implMap
(
*
this
,
121
),
implMap
(
*
this
,
57
)
),
Size
(
implMap
(
*
this
,
50
),
implMap
(
*
this
,
14
)
)
);
maCBTinyProfile
.
SetToggleHdl
(
LINK
(
this
,
ImpSVGDialog
,
OnToggleCheckbox
)
);
OnToggleCheckbox
(
&
maCBTinyProfile
);
maCBTinyProfile
->
SetToggleHdl
(
LINK
(
this
,
ImpSVGDialog
,
OnToggleCheckbox
)
);
OnToggleCheckbox
(
maCBTinyProfile
.
get
()
);
maFI
.
Show
();
maFI
->
Show
();
maCBTinyProfile
.
Show
();
maCBEmbedFonts
.
Show
();
maCBUseNativeDecoration
.
Show
();
maCBTinyProfile
->
Show
();
maCBEmbedFonts
->
Show
();
maCBUseNativeDecoration
->
Show
();
maBTOK
.
Show
();
maBTCancel
.
Show
();
maBTHelp
.
Show
();
maBTOK
->
Show
();
maBTCancel
->
Show
();
maBTHelp
->
Show
();
}
ImpSVGDialog
::~
ImpSVGDialog
()
{
dispose
();
}
void
ImpSVGDialog
::
dispose
()
{
maFI
.
disposeAndClear
();
maCBTinyProfile
.
disposeAndClear
();
maCBEmbedFonts
.
disposeAndClear
();
maCBUseNativeDecoration
.
disposeAndClear
();
maBTOK
.
disposeAndClear
();
maBTCancel
.
disposeAndClear
();
maBTHelp
.
disposeAndClear
();
ModalDialog
::
dispose
();
}
Sequence
<
PropertyValue
>
ImpSVGDialog
::
GetFilterData
()
{
maConfigItem
.
WriteBool
(
OUString
(
SVG_PROP_TINYPROFILE
),
maCBTinyProfile
.
IsChecked
()
);
maConfigItem
.
WriteBool
(
OUString
(
SVG_PROP_EMBEDFONTS
),
maCBEmbedFonts
.
IsChecked
()
);
maConfigItem
.
WriteBool
(
OUString
(
SVG_PROP_NATIVEDECORATION
),
maCBUseNativeDecoration
.
IsChecked
()
);
maConfigItem
.
WriteBool
(
OUString
(
SVG_PROP_TINYPROFILE
),
maCBTinyProfile
->
IsChecked
()
);
maConfigItem
.
WriteBool
(
OUString
(
SVG_PROP_EMBEDFONTS
),
maCBEmbedFonts
->
IsChecked
()
);
maConfigItem
.
WriteBool
(
OUString
(
SVG_PROP_NATIVEDECORATION
),
maCBUseNativeDecoration
->
IsChecked
()
);
return
(
maConfigItem
.
GetFilterData
()
);
}
...
...
@@ -111,19 +124,19 @@ Sequence< PropertyValue > ImpSVGDialog::GetFilterData()
IMPL_LINK
(
ImpSVGDialog
,
OnToggleCheckbox
,
CheckBox
*
,
pBox
)
{
if
(
pBox
==
&
maCBTinyProfile
)
if
(
pBox
==
maCBTinyProfile
.
get
()
)
{
if
(
pBox
->
IsChecked
()
)
{
mbOldNativeDecoration
=
maCBUseNativeDecoration
.
IsChecked
();
mbOldNativeDecoration
=
maCBUseNativeDecoration
->
IsChecked
();
maCBUseNativeDecoration
.
Check
(
false
);
maCBUseNativeDecoration
.
Disable
();
maCBUseNativeDecoration
->
Check
(
false
);
maCBUseNativeDecoration
->
Disable
();
}
else
{
maCBUseNativeDecoration
.
Enable
();
maCBUseNativeDecoration
.
Check
(
mbOldNativeDecoration
);
maCBUseNativeDecoration
->
Enable
();
maCBUseNativeDecoration
->
Check
(
mbOldNativeDecoration
);
}
}
...
...
filter/source/svg/impsvgdialog.hxx
Dosyayı görüntüle @
78626422
...
...
@@ -48,17 +48,17 @@ class ImpSVGDialog : public ModalDialog
{
private
:
FixedLine
maFI
;
CheckBox
maCBTinyProfile
;
CheckBox
maCBEmbedFonts
;
CheckBox
maCBUseNativeDecoration
;
VclPtr
<
FixedLine
>
maFI
;
VclPtr
<
CheckBox
>
maCBTinyProfile
;
VclPtr
<
CheckBox
>
maCBEmbedFonts
;
VclPtr
<
CheckBox
>
maCBUseNativeDecoration
;
OKButton
maBTOK
;
CancelButton
maBTCancel
;
HelpButton
maBTHelp
;
VclPtr
<
OKButton
>
maBTOK
;
VclPtr
<
CancelButton
>
maBTCancel
;
VclPtr
<
HelpButton
>
maBTHelp
;
FilterConfigItem
maConfigItem
;
bool
mbOldNativeDecoration
;
FilterConfigItem
maConfigItem
;
bool
mbOldNativeDecoration
;
DECL_LINK
(
OnToggleCheckbox
,
CheckBox
*
);
...
...
@@ -67,6 +67,7 @@ public:
ImpSVGDialog
(
vcl
::
Window
*
pParent
,
/*ResMgr& rResMgr,*/
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>&
rFilterData
);
virtual
~
ImpSVGDialog
();
virtual
void
dispose
()
SAL_OVERRIDE
;
com
::
sun
::
star
::
uno
::
Sequence
<
com
::
sun
::
star
::
beans
::
PropertyValue
>
GetFilterData
();
};
...
...
filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
Dosyayı görüntüle @
78626422
...
...
@@ -1398,9 +1398,15 @@ Size SvxPathControl::GetOptimalSize() const
}
SvxPathControl
::~
SvxPathControl
()
{
dispose
();
}
void
SvxPathControl
::
dispose
()
{
delete
m_pFocusCtrl
;
delete
m_pHeaderBar
;
vcl
::
Window
::
dispose
();
}
extern
"C"
SAL_DLLPUBLIC_EXPORT
vcl
::
Window
*
SAL_CALL
makeSvxPathControl
(
vcl
::
Window
*
pParent
,
VclBuilder
::
stringmap
&
)
...
...
filter/source/xsltdialog/xmlfiltersettingsdialog.hxx
Dosyayı görüntüle @
78626422
...
...
@@ -50,6 +50,7 @@ public:
HeaderBar
*
getHeaderBar
()
{
return
m_pHeaderBar
;
}
XMLFilterListBox
*
getListBox
()
{
return
m_pFocusCtrl
;
}
virtual
~
SvxPathControl
();
virtual
void
dispose
()
SAL_OVERRIDE
;
virtual
bool
Notify
(
NotifyEvent
&
rNEvt
)
SAL_OVERRIDE
;
};
...
...
filter/source/xsltdialog/xmlfiltertabdialog.cxx
Dosyayı görüntüle @
78626422
...
...
@@ -74,10 +74,16 @@ XMLFilterTabDialog::XMLFilterTabDialog(vcl::Window *pParent, ResMgr& rResMgr,
XMLFilterTabDialog
::~
XMLFilterTabDialog
()
{
dispose
();
}
void
XMLFilterTabDialog
::
dispose
()
{
delete
mpBasicPage
;
delete
mpXSLTPage
;
delete
mpNewInfo
;
TabDialog
::
dispose
();
}
...
...
filter/source/xsltdialog/xmlfiltertabdialog.hxx
Dosyayı görüntüle @
78626422
...
...
@@ -36,6 +36,7 @@ class XMLFilterTabDialog: public TabDialog
public
:
XMLFilterTabDialog
(
vcl
::
Window
*
pParent
,
ResMgr
&
rResMgr
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>&
rxContext
,
const
filter_info_impl
*
pInfo
);
virtual
~
XMLFilterTabDialog
();
virtual
void
dispose
()
SAL_OVERRIDE
;
bool
onOk
();
...
...
filter/source/xsltdialog/xmlfiltertestdialog.cxx
Dosyayı görüntüle @
78626422
...
...
@@ -177,6 +177,11 @@ XMLFilterTestDialog::XMLFilterTestDialog(vcl::Window* pParent,
}
XMLFilterTestDialog
::~
XMLFilterTestDialog
()
{
dispose
();
}
void
XMLFilterTestDialog
::
dispose
()
{
try
{
...
...
@@ -189,6 +194,7 @@ XMLFilterTestDialog::~XMLFilterTestDialog()
}
delete
m_pFilterInfo
;
ModalDialog
::
dispose
();
}
void
XMLFilterTestDialog
::
test
(
const
filter_info_impl
&
rFilterInfo
)
...
...
filter/source/xsltdialog/xmlfiltertestdialog.hxx
Dosyayı görüntüle @
78626422
...
...
@@ -37,6 +37,7 @@ public:
XMLFilterTestDialog
(
vcl
::
Window
*
pParent
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>&
rxContext
);
virtual
~
XMLFilterTestDialog
();
virtual
void
dispose
()
SAL_OVERRIDE
;
void
test
(
const
filter_info_impl
&
rFilterInfo
);
...
...
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