Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Jul 16, 2022
1 parent de4886d commit 00a01e4
Show file tree
Hide file tree
Showing 33 changed files with 239 additions and 1,406 deletions.
6 changes: 0 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ endif ()

add_library(odr
"src/odr/document.cpp"
"src/odr/document_cursor.cpp"
"src/odr/document_element.cpp"
"src/odr/exceptions.cpp"
"src/odr/file.cpp"
Expand All @@ -93,7 +92,6 @@ add_library(odr
"src/odr/internal/cfb/cfb_impl.cpp"
"src/odr/internal/cfb/cfb_util.cpp"

"src/odr/internal/common/document_cursor.cpp"
"src/odr/internal/common/document_path.cpp"
"src/odr/internal/common/file.cpp"
"src/odr/internal/common/filesystem.cpp"
Expand Down Expand Up @@ -123,7 +121,6 @@ add_library(odr
"src/odr/internal/json/json_util.cpp"

"src/odr/internal/odf/odf_crypto.cpp"
"src/odr/internal/odf/odf_cursor.cpp"
"src/odr/internal/odf/odf_document.cpp"
"src/odr/internal/odf/odf_element.cpp"
"src/odr/internal/odf/odf_file.cpp"
Expand All @@ -133,14 +130,11 @@ add_library(odr

"src/odr/internal/oldms/oldms_file.cpp"

"src/odr/internal/ooxml/presentation/ooxml_presentation_cursor.cpp"
"src/odr/internal/ooxml/presentation/ooxml_presentation_document.cpp"
"src/odr/internal/ooxml/presentation/ooxml_presentation_element.cpp"
"src/odr/internal/ooxml/spreadsheet/ooxml_spreadsheet_cursor.cpp"
"src/odr/internal/ooxml/spreadsheet/ooxml_spreadsheet_document.cpp"
"src/odr/internal/ooxml/spreadsheet/ooxml_spreadsheet_element.cpp"
"src/odr/internal/ooxml/spreadsheet/ooxml_spreadsheet_style.cpp"
"src/odr/internal/ooxml/text/ooxml_text_cursor.cpp"
"src/odr/internal/ooxml/text/ooxml_text_document.cpp"
"src/odr/internal/ooxml/text/ooxml_text_element.cpp"
"src/odr/internal/ooxml/text/ooxml_text_style.cpp"
Expand Down
7 changes: 3 additions & 4 deletions src/odr/document.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#include <odr/document.hpp>
#include <odr/document_cursor.hpp>
#include <odr/document_element.hpp>
#include <odr/file.hpp>
#include <odr/internal/abstract/document.hpp>
#include <odr/internal/abstract/document_cursor.hpp>
#include <odr/internal/common/path.hpp>
#include <stdexcept>
#include <utility>
Expand Down Expand Up @@ -37,8 +36,8 @@ DocumentType Document::document_type() const noexcept {
return m_document->document_type();
}

DocumentCursor Document::root_element() const {
return {m_document, m_document->root_element()};
Element Document::root_element() const {
return {m_document.get(), m_document->root_element()};
}

} // namespace odr
4 changes: 2 additions & 2 deletions src/odr/document.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace odr {
enum class FileType;
enum class DocumentType;
class DocumentFile;
class DocumentCursor;
class Element;

class Document final {
public:
Expand All @@ -27,7 +27,7 @@ class Document final {
[[nodiscard]] FileType file_type() const noexcept;
[[nodiscard]] DocumentType document_type() const noexcept;

[[nodiscard]] DocumentCursor root_element() const;
[[nodiscard]] Element root_element() const;

private:
std::shared_ptr<internal::abstract::Document> m_document;
Expand Down
150 changes: 0 additions & 150 deletions src/odr/document_cursor.cpp

This file was deleted.

74 changes: 0 additions & 74 deletions src/odr/document_cursor.hpp

This file was deleted.

Loading

0 comments on commit 00a01e4

Please sign in to comment.