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
fdb9807a
Kaydet (Commit)
fdb9807a
authored
Nis 21, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
writerfilter: fix indentation in rtfsdrimport
Change-Id: Ibecedba7a8a6e6b3218f64aefdd05897a6612a71
üst
164c89b5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
37 deletions
+39
-37
rtfsdrimport.cxx
writerfilter/source/rtftok/rtfsdrimport.cxx
+0
-0
rtfsdrimport.hxx
writerfilter/source/rtftok/rtfsdrimport.hxx
+39
-37
No files found.
writerfilter/source/rtftok/rtfsdrimport.cxx
Dosyayı görüntüle @
fdb9807a
This diff is collapsed.
Click to expand it.
writerfilter/source/rtftok/rtfsdrimport.hxx
Dosyayı görüntüle @
fdb9807a
...
@@ -14,43 +14,45 @@
...
@@ -14,43 +14,45 @@
#include <rtfdocumentimpl.hxx>
#include <rtfdocumentimpl.hxx>
namespace
writerfilter
{
namespace
writerfilter
namespace
rtftok
{
{
/// Handles the import of drawings using RTF markup.
namespace
rtftok
class
RTFSdrImport
{
{
/// Handles the import of drawings using RTF markup.
public
:
class
RTFSdrImport
RTFSdrImport
(
RTFDocumentImpl
&
rImport
,
uno
::
Reference
<
lang
::
XComponent
>
const
&
xDstDoc
);
{
virtual
~
RTFSdrImport
();
public
:
RTFSdrImport
(
RTFDocumentImpl
&
rImport
,
uno
::
Reference
<
lang
::
XComponent
>
const
&
xDstDoc
);
void
resolve
(
RTFShape
&
rShape
,
bool
bClose
);
virtual
~
RTFSdrImport
();
void
close
();
void
append
(
const
OUString
&
aKey
,
const
OUString
&
aValue
);
void
resolve
(
RTFShape
&
rShape
,
bool
bClose
);
/// Append property on the current parent.
void
close
();
void
appendGroupProperty
(
const
OUString
&
aKey
,
const
OUString
&
aValue
);
void
append
(
const
OUString
&
aKey
,
const
OUString
&
aValue
);
void
resolveDhgt
(
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
,
sal_Int32
nZOrder
,
bool
bOldStyle
);
/// Append property on the current parent.
void
resolveFLine
(
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
,
sal_Int32
nFLine
);
void
appendGroupProperty
(
const
OUString
&
aKey
,
const
OUString
&
aValue
);
/**
void
resolveDhgt
(
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
,
sal_Int32
nZOrder
,
bool
bOldStyle
);
* These are the default in Word, but not in Writer.
void
resolveFLine
(
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
,
sal_Int32
nFLine
);
*
/**
* @param bNew if the frame is new-style or old-style.
* These are the default in Word, but not in Writer.
*/
*
std
::
vector
<
beans
::
PropertyValue
>
getTextFrameDefaults
(
bool
bNew
);
* @param bNew if the frame is new-style or old-style.
/// Push a new group shape to the parent stack.
*/
void
pushParent
(
uno
::
Reference
<
drawing
::
XShapes
>
xParent
);
std
::
vector
<
beans
::
PropertyValue
>
getTextFrameDefaults
(
bool
bNew
);
/// Pop the current group shape from the parent stack.
/// Push a new group shape to the parent stack.
void
popParent
();
void
pushParent
(
uno
::
Reference
<
drawing
::
XShapes
>
xParent
);
private
:
/// Pop the current group shape from the parent stack.
void
createShape
(
const
OUString
&
aService
,
uno
::
Reference
<
drawing
::
XShape
>&
xShape
,
uno
::
Reference
<
beans
::
XPropertySet
>&
xPropertySet
);
void
popParent
();
void
applyProperty
(
uno
::
Reference
<
drawing
::
XShape
>
xShape
,
const
OUString
&
aKey
,
const
OUString
&
aValue
);
private
:
void
createShape
(
const
OUString
&
aService
,
uno
::
Reference
<
drawing
::
XShape
>&
xShape
,
uno
::
Reference
<
beans
::
XPropertySet
>&
xPropertySet
);
RTFDocumentImpl
&
m_rImport
;
void
applyProperty
(
uno
::
Reference
<
drawing
::
XShape
>
xShape
,
const
OUString
&
aKey
,
const
OUString
&
aValue
);
std
::
stack
<
uno
::
Reference
<
drawing
::
XShapes
>
>
m_aParents
;
uno
::
Reference
<
drawing
::
XShape
>
m_xShape
;
RTFDocumentImpl
&
m_rImport
;
/// If m_xShape is imported as a Writer text frame (instead of a drawinglayer rectangle).
std
::
stack
<
uno
::
Reference
<
drawing
::
XShapes
>
>
m_aParents
;
bool
m_bTextFrame
;
uno
::
Reference
<
drawing
::
XShape
>
m_xShape
;
};
/// If m_xShape is imported as a Writer text frame (instead of a drawinglayer rectangle).
}
// namespace rtftok
bool
m_bTextFrame
;
};
}
// namespace rtftok
}
// namespace writerfilter
}
// namespace writerfilter
#endif // _RTFSDRIPORT_HXX_
#endif // _RTFSDRIPORT_HXX_
...
...
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