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
c16025ea
Kaydet (Commit)
c16025ea
authored
Ock 18, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
writerfilter: whitespace fixes in SdtHelper
Change-Id: Idcb74c5e911ec2337f1e8743dc4627464f1cfd27
üst
4144858f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
42 deletions
+54
-42
SdtHelper.cxx
writerfilter/source/dmapper/SdtHelper.cxx
+4
-2
SdtHelper.hxx
writerfilter/source/dmapper/SdtHelper.hxx
+50
-40
No files found.
writerfilter/source/dmapper/SdtHelper.cxx
Dosyayı görüntüle @
c16025ea
...
@@ -19,8 +19,10 @@
...
@@ -19,8 +19,10 @@
#include <StyleSheetTable.hxx>
#include <StyleSheetTable.hxx>
#include <SdtHelper.hxx>
#include <SdtHelper.hxx>
namespace
writerfilter
{
namespace
writerfilter
namespace
dmapper
{
{
namespace
dmapper
{
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
;
...
...
writerfilter/source/dmapper/SdtHelper.hxx
Dosyayı görüntüle @
c16025ea
...
@@ -17,54 +17,64 @@
...
@@ -17,54 +17,64 @@
#include <WriterFilterDllApi.hxx>
#include <WriterFilterDllApi.hxx>
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
com
namespace
awt
{
{
struct
Size
;
namespace
sun
class
XControlModel
;
{
}
namespace
star
}}}
{
namespace
awt
{
struct
Size
;
class
XControlModel
;
}
}
}
}
namespace
writerfilter
{
namespace
writerfilter
namespace
dmapper
{
{
namespace
dmapper
{
/**
/**
* Helper to create form controls from w:sdt tokens.
* Helper to create form controls from w:sdt tokens.
*
*
* w:sdt tokens can't be imported as form fields, as w:sdt supports
* w:sdt tokens can't be imported as form fields, as w:sdt supports
* e.g. date picking as well.
* e.g. date picking as well.
*/
*/
class
SdtHelper
class
SdtHelper
{
{
DomainMapper_Impl
&
m_rDM_Impl
;
DomainMapper_Impl
&
m_rDM_Impl
;
/// Items of the drop-down control.
/// Items of the drop-down control.
std
::
vector
<
OUString
>
m_aDropDownItems
;
std
::
vector
<
OUString
>
m_aDropDownItems
;
/// Pieces of the default text -- currently used only by the dropdown control.
/// Pieces of the default text -- currently used only by the dropdown control.
OUStringBuffer
m_aSdtTexts
;
OUStringBuffer
m_aSdtTexts
;
/// Date format, see com/sun/star/awt/UnoControlDateFieldModel.idl
/// Date format, see com/sun/star/awt/UnoControlDateFieldModel.idl
boost
::
optional
<
sal_Int16
>
m_oDateFormat
;
boost
::
optional
<
sal_Int16
>
m_oDateFormat
;
bool
m_bHasElements
;
bool
m_bHasElements
;
/// Create and append the drawing::XControlShape, containing the various models.
/// Create and append the drawing::XControlShape, containing the various models.
void
createControlShape
(
com
::
sun
::
star
::
awt
::
Size
aSize
,
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
awt
::
XControlModel
>
);
void
createControlShape
(
com
::
sun
::
star
::
awt
::
Size
aSize
,
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
awt
::
XControlModel
>
);
public
:
public
:
SdtHelper
(
DomainMapper_Impl
&
rDM_Impl
);
SdtHelper
(
DomainMapper_Impl
&
rDM_Impl
);
virtual
~
SdtHelper
();
virtual
~
SdtHelper
();
std
::
vector
<
OUString
>&
getDropDownItems
();
std
::
vector
<
OUString
>&
getDropDownItems
();
OUStringBuffer
&
getSdtTexts
();
OUStringBuffer
&
getSdtTexts
();
boost
::
optional
<
sal_Int16
>&
getDateFormat
();
boost
::
optional
<
sal_Int16
>&
getDateFormat
();
/// If createControlShape() was ever called.
/// If createControlShape() was ever called.
bool
hasElements
();
bool
hasElements
();
/// Create drop-down control from w:sdt's w:dropDownList.
/// Create drop-down control from w:sdt's w:dropDownList.
void
createDropDownControl
();
void
createDropDownControl
();
/// Create date control from w:sdt's w:date.
/// Create date control from w:sdt's w:date.
void
createDateControl
(
OUString
&
rDefaultText
);
void
createDateControl
(
OUString
&
rDefaultText
);
};
};
}
// namespace dmapper
}
// namespace dmapper
}
// namespace writerfilter
}
// namespace writerfilter
#endif
#endif
...
...
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