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
17dcf76e
Kaydet (Commit)
17dcf76e
authored
Nis 30, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vbahelper: sal_Bool->bool
Change-Id: Ibf21ce17a8e743701f1011e1620f26b93f952991
üst
7ae4102f
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
58 additions
and
58 deletions
+58
-58
vbacheckbox.cxx
vbahelper/source/msforms/vbacheckbox.cxx
+1
-1
vbacontrol.cxx
vbahelper/source/msforms/vbacontrol.cxx
+9
-9
vbacontrol.hxx
vbahelper/source/msforms/vbacontrol.hxx
+4
-4
vbalistbox.cxx
vbahelper/source/msforms/vbalistbox.cxx
+5
-5
vbaradiobutton.cxx
vbahelper/source/msforms/vbaradiobutton.cxx
+1
-1
vbatextbox.cxx
vbahelper/source/msforms/vbatextbox.cxx
+1
-1
vbatogglebutton.cxx
vbahelper/source/msforms/vbatogglebutton.cxx
+1
-1
vbaapplicationbase.cxx
vbahelper/source/vbahelper/vbaapplicationbase.cxx
+3
-3
vbacommandbarhelper.cxx
vbahelper/source/vbahelper/vbacommandbarhelper.cxx
+7
-7
vbacommandbarhelper.hxx
vbahelper/source/vbahelper/vbacommandbarhelper.hxx
+3
-3
vbadocumentbase.cxx
vbahelper/source/vbahelper/vbadocumentbase.cxx
+5
-5
vbafontbase.cxx
vbahelper/source/vbahelper/vbafontbase.cxx
+5
-5
vbahelper.cxx
vbahelper/source/vbahelper/vbahelper.cxx
+4
-4
vbapagesetupbase.cxx
vbahelper/source/vbahelper/vbapagesetupbase.cxx
+8
-8
vbatextframe.cxx
vbahelper/source/vbahelper/vbatextframe.cxx
+1
-1
No files found.
vbahelper/source/msforms/vbacheckbox.cxx
Dosyayı görüntüle @
17dcf76e
...
@@ -64,7 +64,7 @@ ScVbaCheckbox::setValue( const uno::Any& _value ) throw (css::uno::RuntimeExcept
...
@@ -64,7 +64,7 @@ ScVbaCheckbox::setValue( const uno::Any& _value ) throw (css::uno::RuntimeExcept
m_xProps
->
getPropertyValue
(
"State"
)
>>=
nOldValue
;
m_xProps
->
getPropertyValue
(
"State"
)
>>=
nOldValue
;
if
(
!
(
_value
>>=
nValue
)
)
if
(
!
(
_value
>>=
nValue
)
)
{
{
sal_B
ool
bValue
=
false
;
b
ool
bValue
=
false
;
_value
>>=
bValue
;
_value
>>=
bValue
;
if
(
bValue
)
if
(
bValue
)
nValue
=
-
1
;
nValue
=
-
1
;
...
...
vbahelper/source/msforms/vbacontrol.cxx
Dosyayı görüntüle @
17dcf76e
...
@@ -177,7 +177,7 @@ void ScVbaControl::removeResouce() throw( uno::RuntimeException )
...
@@ -177,7 +177,7 @@ void ScVbaControl::removeResouce() throw( uno::RuntimeException )
sal_Bool
SAL_CALL
ScVbaControl
::
getEnabled
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
sal_Bool
SAL_CALL
ScVbaControl
::
getEnabled
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
{
uno
::
Any
aValue
=
m_xProps
->
getPropertyValue
(
"Enabled"
);
uno
::
Any
aValue
=
m_xProps
->
getPropertyValue
(
"Enabled"
);
sal_B
ool
bRet
=
false
;
b
ool
bRet
=
false
;
aValue
>>=
bRet
;
aValue
>>=
bRet
;
return
bRet
;
return
bRet
;
}
}
...
@@ -191,7 +191,7 @@ void SAL_CALL ScVbaControl::setEnabled( sal_Bool bVisible ) throw (uno::RuntimeE
...
@@ -191,7 +191,7 @@ void SAL_CALL ScVbaControl::setEnabled( sal_Bool bVisible ) throw (uno::RuntimeE
sal_Bool
SAL_CALL
ScVbaControl
::
getVisible
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
sal_Bool
SAL_CALL
ScVbaControl
::
getVisible
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
{
sal_Bool
bVisible
(
sal_T
rue
);
bool
bVisible
(
t
rue
);
m_xProps
->
getPropertyValue
(
"EnableVisible"
)
>>=
bVisible
;
m_xProps
->
getPropertyValue
(
"EnableVisible"
)
>>=
bVisible
;
uno
::
Reference
<
drawing
::
XControlShape
>
xControlShape
(
m_xControl
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
drawing
::
XControlShape
>
xControlShape
(
m_xControl
,
uno
::
UNO_QUERY
);
if
(
xControlShape
.
is
()
)
if
(
xControlShape
.
is
()
)
...
@@ -618,7 +618,7 @@ void SAL_CALL ScVbaControl::setTabIndex( sal_Int32 /*nTabIndex*/ ) throw (uno::R
...
@@ -618,7 +618,7 @@ void SAL_CALL ScVbaControl::setTabIndex( sal_Int32 /*nTabIndex*/ ) throw (uno::R
return
new
ScVbaComboBox
(
xVbaParent
,
xContext
,
xControlShape
,
xModel
,
xGeoHelper
.
release
()
);
return
new
ScVbaComboBox
(
xVbaParent
,
xContext
,
xControlShape
,
xModel
,
xGeoHelper
.
release
()
);
case
form
:
:
FormComponentType
::
COMMANDBUTTON
:
case
form
:
:
FormComponentType
::
COMMANDBUTTON
:
{
{
sal_Bool
bToggle
=
sal_F
alse
;
bool
bToggle
=
f
alse
;
xProps
->
getPropertyValue
(
"Toggle"
)
>>=
bToggle
;
xProps
->
getPropertyValue
(
"Toggle"
)
>>=
bToggle
;
if
(
bToggle
)
if
(
bToggle
)
return
new
ScVbaToggleButton
(
xVbaParent
,
xContext
,
xControlShape
,
xModel
,
xGeoHelper
.
release
()
);
return
new
ScVbaToggleButton
(
xVbaParent
,
xContext
,
xControlShape
,
xModel
,
xGeoHelper
.
release
()
);
...
@@ -666,7 +666,7 @@ void SAL_CALL ScVbaControl::setTabIndex( sal_Int32 /*nTabIndex*/ ) throw (uno::R
...
@@ -666,7 +666,7 @@ void SAL_CALL ScVbaControl::setTabIndex( sal_Int32 /*nTabIndex*/ ) throw (uno::R
xVBAControl
.
set
(
new
ScVbaTextBox
(
xVbaParent
,
xContext
,
xControl
,
xModel
,
xGeoHelper
.
release
(),
true
)
);
xVBAControl
.
set
(
new
ScVbaTextBox
(
xVbaParent
,
xContext
,
xControl
,
xModel
,
xGeoHelper
.
release
(),
true
)
);
else
if
(
xServiceInfo
->
supportsService
(
"com.sun.star.awt.UnoControlButtonModel"
)
)
else
if
(
xServiceInfo
->
supportsService
(
"com.sun.star.awt.UnoControlButtonModel"
)
)
{
{
sal_Bool
bToggle
=
sal_F
alse
;
bool
bToggle
=
f
alse
;
xProps
->
getPropertyValue
(
"Toggle"
)
>>=
bToggle
;
xProps
->
getPropertyValue
(
"Toggle"
)
>>=
bToggle
;
if
(
bToggle
)
if
(
bToggle
)
xVBAControl
.
set
(
new
ScVbaToggleButton
(
xVbaParent
,
xContext
,
xControl
,
xModel
,
xGeoHelper
.
release
()
)
);
xVBAControl
.
set
(
new
ScVbaToggleButton
(
xVbaParent
,
xContext
,
xControl
,
xModel
,
xGeoHelper
.
release
()
)
);
...
@@ -740,7 +740,7 @@ void ScVbaControl::setBackColor( sal_Int32 nBackColor ) throw (uno::RuntimeExcep
...
@@ -740,7 +740,7 @@ void ScVbaControl::setBackColor( sal_Int32 nBackColor ) throw (uno::RuntimeExcep
m_xProps
->
setPropertyValue
(
"BackgroundColor"
,
uno
::
makeAny
(
XLRGBToOORGB
(
nBackColor
)
)
);
m_xProps
->
setPropertyValue
(
"BackgroundColor"
,
uno
::
makeAny
(
XLRGBToOORGB
(
nBackColor
)
)
);
}
}
sal_B
ool
ScVbaControl
::
getAutoSize
()
throw
(
uno
::
RuntimeException
)
b
ool
ScVbaControl
::
getAutoSize
()
throw
(
uno
::
RuntimeException
)
{
{
bool
bIsResizeEnabled
=
false
;
bool
bIsResizeEnabled
=
false
;
uno
::
Reference
<
uno
::
XInterface
>
xIf
(
m_xControl
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
uno
::
XInterface
>
xIf
(
m_xControl
,
uno
::
UNO_QUERY_THROW
);
...
@@ -751,7 +751,7 @@ sal_Bool ScVbaControl::getAutoSize() throw (uno::RuntimeException)
...
@@ -751,7 +751,7 @@ sal_Bool ScVbaControl::getAutoSize() throw (uno::RuntimeException)
}
}
// currently no implementation for this
// currently no implementation for this
void
ScVbaControl
::
setAutoSize
(
sal_B
ool
bAutoSize
)
throw
(
uno
::
RuntimeException
)
void
ScVbaControl
::
setAutoSize
(
b
ool
bAutoSize
)
throw
(
uno
::
RuntimeException
)
{
{
uno
::
Reference
<
uno
::
XInterface
>
xIf
(
m_xControl
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
uno
::
XInterface
>
xIf
(
m_xControl
,
uno
::
UNO_QUERY_THROW
);
SdrObject
*
pObj
=
SdrObject
::
getSdrObjectFromXShape
(
xIf
);
SdrObject
*
pObj
=
SdrObject
::
getSdrObjectFromXShape
(
xIf
);
...
@@ -759,14 +759,14 @@ void ScVbaControl::setAutoSize( sal_Bool bAutoSize ) throw (uno::RuntimeExceptio
...
@@ -759,14 +759,14 @@ void ScVbaControl::setAutoSize( sal_Bool bAutoSize ) throw (uno::RuntimeExceptio
pObj
->
SetResizeProtect
(
!
bAutoSize
);
pObj
->
SetResizeProtect
(
!
bAutoSize
);
}
}
sal_B
ool
ScVbaControl
::
getLocked
()
throw
(
uno
::
RuntimeException
)
b
ool
ScVbaControl
::
getLocked
()
throw
(
uno
::
RuntimeException
)
{
{
sal_Bool
bRes
(
sal_F
alse
);
bool
bRes
(
f
alse
);
m_xProps
->
getPropertyValue
(
"ReadOnly"
)
>>=
bRes
;
m_xProps
->
getPropertyValue
(
"ReadOnly"
)
>>=
bRes
;
return
bRes
;
return
bRes
;
}
}
void
ScVbaControl
::
setLocked
(
sal_B
ool
bLocked
)
throw
(
uno
::
RuntimeException
)
void
ScVbaControl
::
setLocked
(
b
ool
bLocked
)
throw
(
uno
::
RuntimeException
)
{
{
m_xProps
->
setPropertyValue
(
"ReadOnly"
,
uno
::
makeAny
(
bLocked
)
);
m_xProps
->
setPropertyValue
(
"ReadOnly"
,
uno
::
makeAny
(
bLocked
)
);
}
}
...
...
vbahelper/source/msforms/vbacontrol.hxx
Dosyayı görüntüle @
17dcf76e
...
@@ -111,10 +111,10 @@ public:
...
@@ -111,10 +111,10 @@ public:
//controls
//controls
sal_Int32
getBackColor
()
throw
(
css
::
uno
::
RuntimeException
);
sal_Int32
getBackColor
()
throw
(
css
::
uno
::
RuntimeException
);
void
setBackColor
(
sal_Int32
nBackColor
)
throw
(
css
::
uno
::
RuntimeException
);
void
setBackColor
(
sal_Int32
nBackColor
)
throw
(
css
::
uno
::
RuntimeException
);
sal_B
ool
getAutoSize
()
throw
(
css
::
uno
::
RuntimeException
);
b
ool
getAutoSize
()
throw
(
css
::
uno
::
RuntimeException
);
void
setAutoSize
(
sal_B
ool
bAutoSize
)
throw
(
css
::
uno
::
RuntimeException
);
void
setAutoSize
(
b
ool
bAutoSize
)
throw
(
css
::
uno
::
RuntimeException
);
sal_B
ool
getLocked
()
throw
(
css
::
uno
::
RuntimeException
);
b
ool
getLocked
()
throw
(
css
::
uno
::
RuntimeException
);
void
setLocked
(
sal_B
ool
bAutoSize
)
throw
(
css
::
uno
::
RuntimeException
);
void
setLocked
(
b
ool
bAutoSize
)
throw
(
css
::
uno
::
RuntimeException
);
};
};
...
...
vbahelper/source/msforms/vbalistbox.cxx
Dosyayı görüntüle @
17dcf76e
...
@@ -119,7 +119,7 @@ ScVbaListBox::setText( const OUString& _text ) throw (uno::RuntimeException, std
...
@@ -119,7 +119,7 @@ ScVbaListBox::setText( const OUString& _text ) throw (uno::RuntimeException, std
sal_Int32
SAL_CALL
sal_Int32
SAL_CALL
ScVbaListBox
::
getMultiSelect
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
ScVbaListBox
::
getMultiSelect
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
sal_Bool
bMultiSelect
=
sal_F
alse
;
bool
bMultiSelect
=
f
alse
;
m_xProps
->
getPropertyValue
(
"MultiSelection"
)
>>=
bMultiSelect
;
m_xProps
->
getPropertyValue
(
"MultiSelection"
)
>>=
bMultiSelect
;
return
bMultiSelect
?
msforms
::
fmMultiSelect
::
fmMultiSelectMulti
:
msforms
::
fmMultiSelect
::
fmMultiSelectSingle
;
return
bMultiSelect
?
msforms
::
fmMultiSelect
::
fmMultiSelectMulti
:
msforms
::
fmMultiSelect
::
fmMultiSelectSingle
;
...
@@ -128,15 +128,15 @@ ScVbaListBox::getMultiSelect() throw (css::uno::RuntimeException, std::exception
...
@@ -128,15 +128,15 @@ ScVbaListBox::getMultiSelect() throw (css::uno::RuntimeException, std::exception
void
SAL_CALL
void
SAL_CALL
ScVbaListBox
::
setMultiSelect
(
sal_Int32
_multiselect
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
ScVbaListBox
::
setMultiSelect
(
sal_Int32
_multiselect
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
sal_B
ool
bBoolVal
=
false
;
b
ool
bBoolVal
=
false
;
switch
(
_multiselect
)
switch
(
_multiselect
)
{
{
case
msforms
:
:
fmMultiSelect
::
fmMultiSelectMulti
:
case
msforms
:
:
fmMultiSelect
::
fmMultiSelectMulti
:
case
msforms
:
:
fmMultiSelect
::
fmMultiSelectExtended
:
case
msforms
:
:
fmMultiSelect
::
fmMultiSelectExtended
:
bBoolVal
=
sal_T
rue
;
bBoolVal
=
t
rue
;
break
;
break
;
case
msforms
:
:
fmMultiSelect
::
fmMultiSelectSingle
:
case
msforms
:
:
fmMultiSelect
::
fmMultiSelectSingle
:
bBoolVal
=
sal_F
alse
;
bBoolVal
=
f
alse
;
break
;
break
;
default
:
default
:
throw
lang
::
IllegalArgumentException
();
throw
lang
::
IllegalArgumentException
();
...
@@ -187,7 +187,7 @@ ScVbaListBox::Clear( ) throw (uno::RuntimeException, std::exception)
...
@@ -187,7 +187,7 @@ ScVbaListBox::Clear( ) throw (uno::RuntimeException, std::exception)
void
void
ScVbaListBox
::
setValueEvent
(
const
uno
::
Any
&
value
)
ScVbaListBox
::
setValueEvent
(
const
uno
::
Any
&
value
)
{
{
sal_Bool
bValue
=
sal_F
alse
;
bool
bValue
=
f
alse
;
if
(
!
(
value
>>=
bValue
)
)
if
(
!
(
value
>>=
bValue
)
)
throw
uno
::
RuntimeException
(
"Invalid type
\n
. need boolean."
,
uno
::
Reference
<
uno
::
XInterface
>
()
);
throw
uno
::
RuntimeException
(
"Invalid type
\n
. need boolean."
,
uno
::
Reference
<
uno
::
XInterface
>
()
);
uno
::
Sequence
<
sal_Int16
>
nList
;
uno
::
Sequence
<
sal_Int16
>
nList
;
...
...
vbahelper/source/msforms/vbaradiobutton.cxx
Dosyayı görüntüle @
17dcf76e
...
@@ -65,7 +65,7 @@ ScVbaRadioButton::setValue( const uno::Any& _value ) throw (uno::RuntimeExceptio
...
@@ -65,7 +65,7 @@ ScVbaRadioButton::setValue( const uno::Any& _value ) throw (uno::RuntimeExceptio
if
(
!
(
_value
>>=
nValue
)
)
if
(
!
(
_value
>>=
nValue
)
)
{
{
sal_Bool
bValue
=
sal_F
alse
;
bool
bValue
=
f
alse
;
_value
>>=
bValue
;
_value
>>=
bValue
;
if
(
bValue
)
if
(
bValue
)
nValue
=
-
1
;
nValue
=
-
1
;
...
...
vbahelper/source/msforms/vbatextbox.cxx
Dosyayı görüntüle @
17dcf76e
...
@@ -94,7 +94,7 @@ ScVbaTextBox::getMultiline() throw (css::uno::RuntimeException, std::exception)
...
@@ -94,7 +94,7 @@ ScVbaTextBox::getMultiline() throw (css::uno::RuntimeException, std::exception)
{
{
uno
::
Any
aValue
;
uno
::
Any
aValue
;
aValue
=
m_xProps
->
getPropertyValue
(
"MultiLine"
);
aValue
=
m_xProps
->
getPropertyValue
(
"MultiLine"
);
sal_B
ool
bRet
=
false
;
b
ool
bRet
=
false
;
aValue
>>=
bRet
;
aValue
>>=
bRet
;
return
bRet
;
return
bRet
;
}
}
...
...
vbahelper/source/msforms/vbatogglebutton.cxx
Dosyayı görüntüle @
17dcf76e
...
@@ -64,7 +64,7 @@ ScVbaToggleButton::setValue( const uno::Any& _value ) throw (uno::RuntimeExcepti
...
@@ -64,7 +64,7 @@ ScVbaToggleButton::setValue( const uno::Any& _value ) throw (uno::RuntimeExcepti
sal_Int16
nState
=
0
;
sal_Int16
nState
=
0
;
if
(
!
(
_value
>>=
nState
)
)
if
(
!
(
_value
>>=
nState
)
)
{
{
sal_B
ool
bState
=
false
;
b
ool
bState
=
false
;
_value
>>=
bState
;
_value
>>=
bState
;
if
(
bState
)
if
(
bState
)
nState
=
-
1
;
nState
=
-
1
;
...
...
vbahelper/source/vbahelper/vbaapplicationbase.cxx
Dosyayı görüntüle @
17dcf76e
...
@@ -150,9 +150,9 @@ typedef ::boost::unordered_map< VbaTimerInfo, VbaTimer*, VbaTimerInfoHash, ::std
...
@@ -150,9 +150,9 @@ typedef ::boost::unordered_map< VbaTimerInfo, VbaTimer*, VbaTimerInfoHash, ::std
struct
VbaApplicationBase_Impl
struct
VbaApplicationBase_Impl
{
{
VbaTimerHashMap
m_aTimerHash
;
VbaTimerHashMap
m_aTimerHash
;
sal_B
ool
mbVisible
;
b
ool
mbVisible
;
inline
VbaApplicationBase_Impl
()
:
mbVisible
(
sal_T
rue
)
{}
inline
VbaApplicationBase_Impl
()
:
mbVisible
(
t
rue
)
{}
virtual
~
VbaApplicationBase_Impl
()
virtual
~
VbaApplicationBase_Impl
()
{
{
...
@@ -364,7 +364,7 @@ void SAL_CALL VbaApplicationBase::OnTime( const uno::Any& aEarliestTime, const O
...
@@ -364,7 +364,7 @@ void SAL_CALL VbaApplicationBase::OnTime( const uno::Any& aEarliestTime, const O
||
(
aLatestTime
.
hasValue
()
&&
!
(
aLatestTime
>>=
nLatestTime
)
)
)
||
(
aLatestTime
.
hasValue
()
&&
!
(
aLatestTime
>>=
nLatestTime
)
)
)
throw
uno
::
RuntimeException
(
"Only double is supported as time for now!"
,
uno
::
Reference
<
uno
::
XInterface
>
()
);
throw
uno
::
RuntimeException
(
"Only double is supported as time for now!"
,
uno
::
Reference
<
uno
::
XInterface
>
()
);
sal_Bool
bSetTimer
=
sal_T
rue
;
bool
bSetTimer
=
t
rue
;
aSchedule
>>=
bSetTimer
;
aSchedule
>>=
bSetTimer
;
VbaTimerInfo
aTimerIndex
(
aFunction
,
::
std
::
pair
<
double
,
double
>
(
nEarliestTime
,
nLatestTime
)
);
VbaTimerInfo
aTimerIndex
(
aFunction
,
::
std
::
pair
<
double
,
double
>
(
nEarliestTime
,
nLatestTime
)
);
...
...
vbahelper/source/vbahelper/vbacommandbarhelper.cxx
Dosyayı görüntüle @
17dcf76e
...
@@ -143,7 +143,7 @@ void VbaCommandBarHelper::removeSettings( const OUString& sResourceUrl ) throw (
...
@@ -143,7 +143,7 @@ void VbaCommandBarHelper::removeSettings( const OUString& sResourceUrl ) throw (
// persistChanges();
// persistChanges();
}
}
void
VbaCommandBarHelper
::
ApplyChange
(
const
OUString
&
sResourceUrl
,
const
css
::
uno
::
Reference
<
css
::
container
::
XIndexAccess
>&
xSettings
,
sal_B
ool
bTemporary
)
throw
(
css
::
uno
::
RuntimeException
)
void
VbaCommandBarHelper
::
ApplyChange
(
const
OUString
&
sResourceUrl
,
const
css
::
uno
::
Reference
<
css
::
container
::
XIndexAccess
>&
xSettings
,
b
ool
bTemporary
)
throw
(
css
::
uno
::
RuntimeException
)
{
{
if
(
m_xDocCfgMgr
->
hasSettings
(
sResourceUrl
)
)
if
(
m_xDocCfgMgr
->
hasSettings
(
sResourceUrl
)
)
{
{
...
@@ -159,14 +159,14 @@ void VbaCommandBarHelper::ApplyChange( const OUString& sResourceUrl, const css::
...
@@ -159,14 +159,14 @@ void VbaCommandBarHelper::ApplyChange( const OUString& sResourceUrl, const css::
}
}
}
}
sal_B
ool
VbaCommandBarHelper
::
persistChanges
()
throw
(
css
::
uno
::
RuntimeException
)
b
ool
VbaCommandBarHelper
::
persistChanges
()
throw
(
css
::
uno
::
RuntimeException
)
{
{
uno
::
Reference
<
css
::
ui
::
XUIConfigurationPersistence
>
xConfigPersistence
(
m_xDocCfgMgr
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
css
::
ui
::
XUIConfigurationPersistence
>
xConfigPersistence
(
m_xDocCfgMgr
,
uno
::
UNO_QUERY_THROW
);
sal_Bool
result
=
sal_F
alse
;
bool
result
=
f
alse
;
if
(
xConfigPersistence
->
isModified
()
)
if
(
xConfigPersistence
->
isModified
()
)
{
{
xConfigPersistence
->
store
();
xConfigPersistence
->
store
();
result
=
sal_T
rue
;
result
=
t
rue
;
}
}
return
result
;
return
result
;
}
}
...
@@ -179,7 +179,7 @@ uno::Reference< frame::XLayoutManager > VbaCommandBarHelper::getLayoutManager()
...
@@ -179,7 +179,7 @@ uno::Reference< frame::XLayoutManager > VbaCommandBarHelper::getLayoutManager()
return
xLayoutManager
;
return
xLayoutManager
;
}
}
sal_B
ool
VbaCommandBarHelper
::
hasToolbar
(
const
OUString
&
sResourceUrl
,
const
OUString
&
sName
)
throw
(
css
::
uno
::
RuntimeException
)
b
ool
VbaCommandBarHelper
::
hasToolbar
(
const
OUString
&
sResourceUrl
,
const
OUString
&
sName
)
throw
(
css
::
uno
::
RuntimeException
)
{
{
if
(
m_xDocCfgMgr
->
hasSettings
(
sResourceUrl
)
)
if
(
m_xDocCfgMgr
->
hasSettings
(
sResourceUrl
)
)
{
{
...
@@ -187,9 +187,9 @@ sal_Bool VbaCommandBarHelper::hasToolbar( const OUString& sResourceUrl, const OU
...
@@ -187,9 +187,9 @@ sal_Bool VbaCommandBarHelper::hasToolbar( const OUString& sResourceUrl, const OU
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
m_xDocCfgMgr
->
getSettings
(
sResourceUrl
,
sal_False
),
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
m_xDocCfgMgr
->
getSettings
(
sResourceUrl
,
sal_False
),
uno
::
UNO_QUERY_THROW
);
xPropertySet
->
getPropertyValue
(
ITEM_DESCRIPTOR_UINAME
)
>>=
sUIName
;
xPropertySet
->
getPropertyValue
(
ITEM_DESCRIPTOR_UINAME
)
>>=
sUIName
;
if
(
sName
.
equalsIgnoreAsciiCase
(
sUIName
)
)
if
(
sName
.
equalsIgnoreAsciiCase
(
sUIName
)
)
return
sal_T
rue
;
return
t
rue
;
}
}
return
sal_F
alse
;
return
f
alse
;
}
}
// return the resource url if found
// return the resource url if found
...
...
vbahelper/source/vbahelper/vbacommandbarhelper.hxx
Dosyayı görüntüle @
17dcf76e
...
@@ -60,7 +60,7 @@ private:
...
@@ -60,7 +60,7 @@ private:
OUString
maModuleId
;
OUString
maModuleId
;
void
Init
()
throw
(
css
::
uno
::
RuntimeException
);
void
Init
()
throw
(
css
::
uno
::
RuntimeException
);
sal_B
ool
hasToolbar
(
const
OUString
&
sResourceUrl
,
const
OUString
&
sName
)
throw
(
css
::
uno
::
RuntimeException
);
b
ool
hasToolbar
(
const
OUString
&
sResourceUrl
,
const
OUString
&
sName
)
throw
(
css
::
uno
::
RuntimeException
);
public
:
public
:
VbaCommandBarHelper
(
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>&
xContext
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>&
xModel
)
throw
(
css
::
uno
::
RuntimeException
);
VbaCommandBarHelper
(
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>&
xContext
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XModel
>&
xModel
)
throw
(
css
::
uno
::
RuntimeException
);
...
@@ -78,10 +78,10 @@ public:
...
@@ -78,10 +78,10 @@ public:
{
{
return
m_xWindowState
;
return
m_xWindowState
;
}
}
sal_B
ool
persistChanges
()
throw
(
css
::
uno
::
RuntimeException
);
b
ool
persistChanges
()
throw
(
css
::
uno
::
RuntimeException
);
css
::
uno
::
Reference
<
css
::
container
::
XIndexAccess
>
getSettings
(
const
OUString
&
sResourceUrl
)
throw
(
css
::
uno
::
RuntimeException
);
css
::
uno
::
Reference
<
css
::
container
::
XIndexAccess
>
getSettings
(
const
OUString
&
sResourceUrl
)
throw
(
css
::
uno
::
RuntimeException
);
void
removeSettings
(
const
OUString
&
sResourceUrl
)
throw
(
css
::
uno
::
RuntimeException
);
void
removeSettings
(
const
OUString
&
sResourceUrl
)
throw
(
css
::
uno
::
RuntimeException
);
void
ApplyChange
(
const
OUString
&
sResourceUrl
,
const
css
::
uno
::
Reference
<
css
::
container
::
XIndexAccess
>&
xSettings
,
sal_Bool
bTemporary
=
sal_T
rue
)
throw
(
css
::
uno
::
RuntimeException
);
void
ApplyChange
(
const
OUString
&
sResourceUrl
,
const
css
::
uno
::
Reference
<
css
::
container
::
XIndexAccess
>&
xSettings
,
bool
bTemporary
=
t
rue
)
throw
(
css
::
uno
::
RuntimeException
);
css
::
uno
::
Reference
<
css
::
frame
::
XLayoutManager
>
getLayoutManager
()
throw
(
css
::
uno
::
RuntimeException
);
css
::
uno
::
Reference
<
css
::
frame
::
XLayoutManager
>
getLayoutManager
()
throw
(
css
::
uno
::
RuntimeException
);
...
...
vbahelper/source/vbahelper/vbadocumentbase.cxx
Dosyayı görüntüle @
17dcf76e
...
@@ -100,12 +100,12 @@ void
...
@@ -100,12 +100,12 @@ void
VbaDocumentBase
::
Close
(
const
uno
::
Any
&
rSaveArg
,
const
uno
::
Any
&
rFileArg
,
VbaDocumentBase
::
Close
(
const
uno
::
Any
&
rSaveArg
,
const
uno
::
Any
&
rFileArg
,
const
uno
::
Any
&
rRouteArg
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
const
uno
::
Any
&
rRouteArg
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
{
sal_Bool
bSaveChanges
=
sal_F
alse
;
bool
bSaveChanges
=
f
alse
;
OUString
aFileName
;
OUString
aFileName
;
sal_Bool
bRouteWorkbook
=
sal_T
rue
;
bool
bRouteWorkbook
=
t
rue
;
rSaveArg
>>=
bSaveChanges
;
rSaveArg
>>=
bSaveChanges
;
sal_B
ool
bFileName
=
(
rFileArg
>>=
aFileName
);
b
ool
bFileName
=
(
rFileArg
>>=
aFileName
);
rRouteArg
>>=
bRouteWorkbook
;
rRouteArg
>>=
bRouteWorkbook
;
uno
::
Reference
<
frame
::
XStorable
>
xStorable
(
getModel
(),
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
frame
::
XStorable
>
xStorable
(
getModel
(),
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
util
::
XModifiable
>
xModifiable
(
getModel
(),
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
util
::
XModifiable
>
xModifiable
(
getModel
(),
uno
::
UNO_QUERY_THROW
);
...
@@ -125,7 +125,7 @@ VbaDocumentBase::Close( const uno::Any &rSaveArg, const uno::Any &rFileArg,
...
@@ -125,7 +125,7 @@ VbaDocumentBase::Close( const uno::Any &rSaveArg, const uno::Any &rFileArg,
xModifiable
->
setModified
(
false
);
xModifiable
->
setModified
(
false
);
// first try to close the document using UI dispatch functionality
// first try to close the document using UI dispatch functionality
sal_Bool
bUIClose
=
sal_F
alse
;
bool
bUIClose
=
f
alse
;
try
try
{
{
uno
::
Reference
<
frame
::
XController
>
xController
(
getModel
()
->
getCurrentController
(),
uno
::
UNO_SET_THROW
);
uno
::
Reference
<
frame
::
XController
>
xController
(
getModel
()
->
getCurrentController
(),
uno
::
UNO_SET_THROW
);
...
@@ -142,7 +142,7 @@ VbaDocumentBase::Close( const uno::Any &rSaveArg, const uno::Any &rFileArg,
...
@@ -142,7 +142,7 @@ VbaDocumentBase::Close( const uno::Any &rSaveArg, const uno::Any &rFileArg,
xDispatchProvider
->
queryDispatch
(
aURL
,
"_self"
,
0
),
xDispatchProvider
->
queryDispatch
(
aURL
,
"_self"
,
0
),
uno
::
UNO_SET_THROW
);
uno
::
UNO_SET_THROW
);
xDispatch
->
dispatch
(
aURL
,
uno
::
Sequence
<
beans
::
PropertyValue
>
()
);
xDispatch
->
dispatch
(
aURL
,
uno
::
Sequence
<
beans
::
PropertyValue
>
()
);
bUIClose
=
sal_T
rue
;
bUIClose
=
t
rue
;
}
}
catch
(
const
uno
::
Exception
&
)
catch
(
const
uno
::
Exception
&
)
{
{
...
...
vbahelper/source/vbahelper/vbafontbase.cxx
Dosyayı görüntüle @
17dcf76e
...
@@ -55,7 +55,7 @@ VbaFontBase::setSuperscript( const uno::Any& aValue ) throw ( uno::RuntimeExcept
...
@@ -55,7 +55,7 @@ VbaFontBase::setSuperscript( const uno::Any& aValue ) throw ( uno::RuntimeExcept
if
(
mbFormControl
)
if
(
mbFormControl
)
return
;
return
;
sal_Bool
bValue
=
sal_F
alse
;
bool
bValue
=
f
alse
;
aValue
>>=
bValue
;
aValue
>>=
bValue
;
sal_Int16
nValue
=
NORMAL
;
sal_Int16
nValue
=
NORMAL
;
sal_Int8
nValue2
=
NORMALHEIGHT
;
sal_Int8
nValue2
=
NORMALHEIGHT
;
...
@@ -86,7 +86,7 @@ VbaFontBase::setSubscript( const uno::Any& aValue ) throw ( uno::RuntimeExceptio
...
@@ -86,7 +86,7 @@ VbaFontBase::setSubscript( const uno::Any& aValue ) throw ( uno::RuntimeExceptio
if
(
mbFormControl
)
if
(
mbFormControl
)
return
;
return
;
sal_Bool
bValue
=
sal_F
alse
;
bool
bValue
=
f
alse
;
aValue
>>=
bValue
;
aValue
>>=
bValue
;
sal_Int16
nValue
=
NORMAL
;
sal_Int16
nValue
=
NORMAL
;
sal_Int8
nValue2
=
NORMALHEIGHT
;
sal_Int8
nValue2
=
NORMALHEIGHT
;
...
@@ -171,7 +171,7 @@ VbaFontBase::getColorIndex() throw ( uno::RuntimeException, std::exception )
...
@@ -171,7 +171,7 @@ VbaFontBase::getColorIndex() throw ( uno::RuntimeException, std::exception )
void
SAL_CALL
void
SAL_CALL
VbaFontBase
::
setBold
(
const
uno
::
Any
&
aValue
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
VbaFontBase
::
setBold
(
const
uno
::
Any
&
aValue
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
{
sal_Bool
bValue
=
sal_F
alse
;
bool
bValue
=
f
alse
;
aValue
>>=
bValue
;
aValue
>>=
bValue
;
double
fBoldValue
=
awt
::
FontWeight
::
NORMAL
;
double
fBoldValue
=
awt
::
FontWeight
::
NORMAL
;
if
(
bValue
)
if
(
bValue
)
...
@@ -191,7 +191,7 @@ VbaFontBase::getBold() throw ( uno::RuntimeException, std::exception )
...
@@ -191,7 +191,7 @@ VbaFontBase::getBold() throw ( uno::RuntimeException, std::exception )
void
SAL_CALL
void
SAL_CALL
VbaFontBase
::
setStrikethrough
(
const
uno
::
Any
&
aValue
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
VbaFontBase
::
setStrikethrough
(
const
uno
::
Any
&
aValue
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
{
sal_Bool
bValue
=
sal_F
alse
;
bool
bValue
=
f
alse
;
aValue
>>=
bValue
;
aValue
>>=
bValue
;
short
nValue
=
awt
::
FontStrikeout
::
NONE
;
short
nValue
=
awt
::
FontStrikeout
::
NONE
;
if
(
bValue
)
if
(
bValue
)
...
@@ -223,7 +223,7 @@ VbaFontBase::getShadow() throw (uno::RuntimeException, std::exception)
...
@@ -223,7 +223,7 @@ VbaFontBase::getShadow() throw (uno::RuntimeException, std::exception)
void
SAL_CALL
void
SAL_CALL
VbaFontBase
::
setItalic
(
const
uno
::
Any
&
aValue
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
VbaFontBase
::
setItalic
(
const
uno
::
Any
&
aValue
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
{
sal_Bool
bValue
=
sal_F
alse
;
bool
bValue
=
f
alse
;
aValue
>>=
bValue
;
aValue
>>=
bValue
;
short
nValue
=
awt
::
FontSlant_NONE
;
short
nValue
=
awt
::
FontSlant_NONE
;
if
(
bValue
)
if
(
bValue
)
...
...
vbahelper/source/vbahelper/vbahelper.cxx
Dosyayı görüntüle @
17dcf76e
...
@@ -344,9 +344,9 @@ void PrintOutHelper( SfxViewShell* pViewShell, const uno::Any& From, const uno::
...
@@ -344,9 +344,9 @@ void PrintOutHelper( SfxViewShell* pViewShell, const uno::Any& From, const uno::
sal_Int32
nTo
=
0
;
sal_Int32
nTo
=
0
;
sal_Int32
nFrom
=
0
;
sal_Int32
nFrom
=
0
;
sal_Int16
nCopies
=
1
;
sal_Int16
nCopies
=
1
;
sal_Bool
bPreview
=
sal_F
alse
;
bool
bPreview
=
f
alse
;
sal_Bool
bCollate
=
sal_F
alse
;
bool
bCollate
=
f
alse
;
sal_B
ool
bSelection
=
bUseSelection
;
b
ool
bSelection
=
bUseSelection
;
From
>>=
nFrom
;
From
>>=
nFrom
;
To
>>=
nTo
;
To
>>=
nTo
;
Copies
>>=
nCopies
;
Copies
>>=
nCopies
;
...
@@ -477,7 +477,7 @@ OUString extractStringFromAny( const uno::Any& rAny, bool bUppercaseBool ) throw
...
@@ -477,7 +477,7 @@ OUString extractStringFromAny( const uno::Any& rAny, bool bUppercaseBool ) throw
case
uno
:
:
TypeClass_BOOLEAN
:
case
uno
:
:
TypeClass_BOOLEAN
:
return
bUppercaseBool
?
return
bUppercaseBool
?
(
rAny
.
get
<
bool
>
()
?
OUString
(
"TRUE"
)
:
OUString
(
"FALSE"
))
:
(
rAny
.
get
<
bool
>
()
?
OUString
(
"TRUE"
)
:
OUString
(
"FALSE"
))
:
OUString
::
boolean
(
(
sal_Bool
)
rAny
.
get
<
bool
>
()
);
OUString
::
boolean
(
rAny
.
get
<
bool
>
()
);
case
uno
:
:
TypeClass_FLOAT
:
case
uno
:
:
TypeClass_FLOAT
:
return
OUString
::
number
(
rAny
.
get
<
float
>
()
);
return
OUString
::
number
(
rAny
.
get
<
float
>
()
);
case
uno
:
:
TypeClass_DOUBLE
:
case
uno
:
:
TypeClass_DOUBLE
:
...
...
vbahelper/source/vbahelper/vbapagesetupbase.cxx
Dosyayı görüntüle @
17dcf76e
...
@@ -31,7 +31,7 @@ VbaPageSetupBase::VbaPageSetupBase(const uno::Reference< XHelperInterface >& xPa
...
@@ -31,7 +31,7 @@ VbaPageSetupBase::VbaPageSetupBase(const uno::Reference< XHelperInterface >& xPa
double
SAL_CALL
VbaPageSetupBase
::
getTopMargin
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
double
SAL_CALL
VbaPageSetupBase
::
getTopMargin
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
sal_Bool
headerOn
=
sal_F
alse
;
bool
headerOn
=
f
alse
;
sal_Int32
topMargin
=
0
;
sal_Int32
topMargin
=
0
;
sal_Int32
headerHeight
=
0
;
sal_Int32
headerHeight
=
0
;
...
@@ -60,7 +60,7 @@ double SAL_CALL VbaPageSetupBase::getTopMargin() throw (css::uno::RuntimeExcepti
...
@@ -60,7 +60,7 @@ double SAL_CALL VbaPageSetupBase::getTopMargin() throw (css::uno::RuntimeExcepti
void
SAL_CALL
VbaPageSetupBase
::
setTopMargin
(
double
margin
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
void
SAL_CALL
VbaPageSetupBase
::
setTopMargin
(
double
margin
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
sal_Int32
topMargin
=
Millimeter
::
getInHundredthsOfOneMillimeter
(
margin
);
sal_Int32
topMargin
=
Millimeter
::
getInHundredthsOfOneMillimeter
(
margin
);
sal_Bool
headerOn
=
sal_F
alse
;
bool
headerOn
=
f
alse
;
sal_Int32
headerHeight
=
0
;
sal_Int32
headerHeight
=
0
;
try
try
...
@@ -85,7 +85,7 @@ void SAL_CALL VbaPageSetupBase::setTopMargin( double margin ) throw (css::uno::R
...
@@ -85,7 +85,7 @@ void SAL_CALL VbaPageSetupBase::setTopMargin( double margin ) throw (css::uno::R
double
SAL_CALL
VbaPageSetupBase
::
getBottomMargin
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
double
SAL_CALL
VbaPageSetupBase
::
getBottomMargin
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
sal_Bool
footerOn
=
sal_F
alse
;
bool
footerOn
=
f
alse
;
sal_Int32
bottomMargin
=
0
;
sal_Int32
bottomMargin
=
0
;
sal_Int32
footerHeight
=
0
;
sal_Int32
footerHeight
=
0
;
...
@@ -114,7 +114,7 @@ double SAL_CALL VbaPageSetupBase::getBottomMargin() throw (css::uno::RuntimeExce
...
@@ -114,7 +114,7 @@ double SAL_CALL VbaPageSetupBase::getBottomMargin() throw (css::uno::RuntimeExce
void
SAL_CALL
VbaPageSetupBase
::
setBottomMargin
(
double
margin
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
void
SAL_CALL
VbaPageSetupBase
::
setBottomMargin
(
double
margin
)
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
sal_Int32
bottomMargin
=
Millimeter
::
getInHundredthsOfOneMillimeter
(
margin
);
sal_Int32
bottomMargin
=
Millimeter
::
getInHundredthsOfOneMillimeter
(
margin
);
sal_Bool
footerOn
=
sal_F
alse
;
bool
footerOn
=
f
alse
;
sal_Int32
footerHeight
=
0
;
sal_Int32
footerHeight
=
0
;
try
try
...
@@ -259,7 +259,7 @@ sal_Int32 SAL_CALL VbaPageSetupBase::getOrientation() throw (css::uno::RuntimeEx
...
@@ -259,7 +259,7 @@ sal_Int32 SAL_CALL VbaPageSetupBase::getOrientation() throw (css::uno::RuntimeEx
sal_Int32
orientation
=
mnOrientPortrait
;
sal_Int32
orientation
=
mnOrientPortrait
;
try
try
{
{
sal_Bool
isLandscape
=
sal_F
alse
;
bool
isLandscape
=
f
alse
;
uno
::
Any
aValue
=
mxPageProps
->
getPropertyValue
(
"IsLandscape"
);
uno
::
Any
aValue
=
mxPageProps
->
getPropertyValue
(
"IsLandscape"
);
aValue
>>=
isLandscape
;
aValue
>>=
isLandscape
;
...
@@ -284,15 +284,15 @@ void SAL_CALL VbaPageSetupBase::setOrientation( sal_Int32 orientation ) throw (c
...
@@ -284,15 +284,15 @@ void SAL_CALL VbaPageSetupBase::setOrientation( sal_Int32 orientation ) throw (c
try
try
{
{
sal_Bool
isLandscape
=
sal_F
alse
;
bool
isLandscape
=
f
alse
;
uno
::
Any
aValue
=
mxPageProps
->
getPropertyValue
(
"IsLandscape"
);
uno
::
Any
aValue
=
mxPageProps
->
getPropertyValue
(
"IsLandscape"
);
aValue
>>=
isLandscape
;
aValue
>>=
isLandscape
;
sal_Bool
switchOrientation
=
sal_F
alse
;
bool
switchOrientation
=
f
alse
;
if
((
isLandscape
&&
orientation
!=
mnOrientLandscape
)
||
if
((
isLandscape
&&
orientation
!=
mnOrientLandscape
)
||
(
!
isLandscape
&&
orientation
!=
mnOrientPortrait
))
(
!
isLandscape
&&
orientation
!=
mnOrientPortrait
))
{
{
switchOrientation
=
sal_T
rue
;
switchOrientation
=
t
rue
;
}
}
if
(
switchOrientation
)
if
(
switchOrientation
)
...
...
vbahelper/source/vbahelper/vbatextframe.cxx
Dosyayı görüntüle @
17dcf76e
...
@@ -60,7 +60,7 @@ VbaTextFrame::getAutoSize() throw (uno::RuntimeException, std::exception)
...
@@ -60,7 +60,7 @@ VbaTextFrame::getAutoSize() throw (uno::RuntimeException, std::exception)
// I don't know why, but in OOo, TextAutoGrowHeight is the property control autosize. not TextFitToSize.
// I don't know why, but in OOo, TextAutoGrowHeight is the property control autosize. not TextFitToSize.
// TextFitToSize control the text content.
// TextFitToSize control the text content.
// and in mso, there isnot option TextWordWrap which means auto wrap. the default is False.
// and in mso, there isnot option TextWordWrap which means auto wrap. the default is False.
sal_Bool
bAutosize
=
sal_F
alse
;
bool
bAutosize
=
f
alse
;
uno
::
Any
aTextAutoGrowHeight
=
m_xPropertySet
->
getPropertyValue
(
"TextAutoGrowHeight"
);
uno
::
Any
aTextAutoGrowHeight
=
m_xPropertySet
->
getPropertyValue
(
"TextAutoGrowHeight"
);
aTextAutoGrowHeight
>>=
bAutosize
;
aTextAutoGrowHeight
>>=
bAutosize
;
return
bAutosize
;
return
bAutosize
;
...
...
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